In [ ]:
. ./nbs_header.ps1
. ./core.ps1
In [ ]:
{ pwsh ../apps/builder/build.ps1 } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # DibParser (Polyglot)                                                       │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
#r 
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r 
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r 
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r 
@"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
#r 
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsec.dll"
#r 
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsecCS.dll"

── pwsh ────────────────────────────────────────────────────────────────────────
ls ~/.nuget/packages/argu

╭─[ 475.13ms - stdout ]────────────────────────────────────────────────────────╮
│                                                                              │
│     Directory: C:\Users\i574n\.nuget\packages\argu                           │
│                                                                              │
│ Mode                 LastWriteTime         Length[     │
│ 32;1m Name                                                                 │
│ ----                 -------------         ------ [      │
│ 32;1m----                                                                  │
│ d----          2023-05-17  4:38 PM                6.1.1               │
│ d----          2024-03-12  9:22 PM                6.1.4               │
│ d----          2024-01-29  6:12 PM                6.1.5               │
│ d----          2024-03-12  9:20 PM                6.2.0               │
│ d----          2024-02-23  7:50 PM                6.2.1               │
│ d----          2024-03-12  9:15 PM                6.2.2               │
│ d----          2024-05-14  9:20 PM                6.2.3               │
│ d----          2024-06-06  8:37 PM                6.2.4               │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
#if !INTERACTIVE
open Lib
#endif

── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FParsec
open SpiralFileSystem.Operators

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## escapeCell (test)                                                         │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let inline escapeCell input =
    input
    |> SpiralSm.split "\n"
    |> Array.map (function
        | line when line |> SpiralSm.starts_with "\\#!" || line |> 
SpiralSm.starts_with "\\#r" ->
            System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
        | line -> line
    )
    |> SpiralSm.concat "\n"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

$"a{nl}\\#!magic{nl}b{nl}"
|> escapeCell
|> _assertEqual (
    $"a{nl}#!magic{nl}b{nl}"
)

╭─[ 62.97ms - stdout ]─────────────────────────────────────────────────────────╮
│ "a                                                                           │
│ #!magic                                                                      │
│ b                                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicMarker                                                               │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let magicMarker : Parser<string, unit> = pstring "#!"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic"
|> run magicMarker
|> _assertEqual (
    Success ("#!", (), Position ("", 2, 1, 3))
)

╭─[ 34.04ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: "#!"                                                                │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"##!magic"
|> run magicMarker
|> _assertEqual (
    Failure (
        $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
        ParserError (
            Position ("", 0, 1, 1),
            (),
            ErrorMessageList (ExpectedString "#!")
        ),
        ()
    )
)

╭─[ 38.70ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure:                                                                     │
│ Error in Ln: 1 Col: 1                                                        │
│ ##!magic                                                                     │
│ ^                                                                            │
│ Expecting: '#!'                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicCommand                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let magicCommand =
    magicMarker
    >>. manyTill anyChar newline
    |>> (System.String.Concat >> SpiralSm.trim)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic

a"
|> run magicCommand
|> _assertEqual (
    Success ("magic", (), Position ("", 8, 2, 1))
)

╭─[ 22.98ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: "magic"                                                             │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

" #!magic

a"
|> run magicCommand
|> _assertEqual (
    Failure (
        $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
        ParserError (
            Position ("", 0, 1, 1),
            (),
            ErrorMessageList (ExpectedString "#!")
        ),
        ()
    )
)

╭─[ 19.90ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure:                                                                     │
│ Error in Ln: 1 Col: 1                                                        │
│  #!magic                                                                     │
│ ^                                                                            │
│ Expecting: '#!'                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## content                                                                   │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let content =
    (newline >>. magicMarker) <|> (eof >>. preturn "")
    |> attempt
    |> lookAhead
    |> manyTill anyChar
    |>> (System.String.Concat >> SpiralSm.trim)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic


a


"
|> run content
|> _assertEqual (
    Success ("#!magic


a", (), Position ("", 14, 7, 1))
)

╭─[ 22.22ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: "#!magic                                                            │
│                                                                              │
│                                                                              │
│ a"                                                                           │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Output                                                                    │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Output =
    | Fs
    | Md
    | Spi
    | Spir

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Magic                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Magic =
    | Fsharp
    | Markdown
    | Spiral of Output
    | Magic of string

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## kernelOutputs                                                             │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline kernelOutputs magic =
    match magic with
    | Fsharp -> [[ Fs ]]
    | Markdown -> [[ Md ]]
    | Spiral output -> [[ output ]]
    | _ -> [[]]

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Block                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Block =
    {
        magic : Magic
        content : string
    }

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## block                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let block =
    pipe2
        magicCommand
        content
        (fun magic content ->
            let magic, content =
                match magic with
                | "fsharp" -> Fsharp, content
                | "markdown" -> Markdown, content
                | "spiral" ->
                    let output = if content |> SpiralSm.contains "//// real\n" 
then Spir else Spi
                    let content =
                        if output = Spi
                        then content
                        else
                            content
                            |> SpiralSm.replace "//// real\n\n" ""
                            |> SpiralSm.replace "//// real\n" ""
                    Spiral output, content
                | magic -> magic |> Magic, content
            {
                magic = magic
                content = content
            })

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic


a


"
|> run block
|> _assertEqual (
    Success (
        { magic = Magic "magic"; content = "a" },
        (),
        Position ("", 14, 7, 1)
    )
)

╭─[ 37.72ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: { magic = Magic "magic"                                             │
│   content = "a" }                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## blocks                                                                    │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let blocks =
    skipMany newline
    >>. sepEndBy block (skipMany1 newline)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test


"#!magic1

a

\#!magic2

b

"
|> escapeCell
|> run blocks
|> _assertEqual (
    Success (
        [[
            { magic = Magic "magic1"; content = "a" }
            { magic = Magic "magic2"; content = "b" }
        ]],
        (),
        Position ("", 26, 9, 1)
    )
)

╭─[ 36.00ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: [{ magic = Magic "magic1"                                           │
│    content = "a" }; { magic = Magic "magic2"                                 │
│                       content = "b" }]                                       │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlock                                                               │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlock output (block : Block) =
    match output, block with
    | output, { magic = Markdown; content = content } ->
        let markdownComment =
            match output with
            | Spi | Spir -> "/// "
            | Fs -> "/// "
            | _ -> ""
        content
        |> SpiralSm.split "\n"
        |> Array.map (SpiralSm.trim_end [[||]])
        |> Array.filter (SpiralSm.ends_with " (test)" >> not)
        |> Array.map (function
            | "" -> markdownComment
            | line -> System.Text.RegularExpressions.Regex.Replace (line, 
"^\\s*", $"$&{markdownComment}")
        )
        |> SpiralSm.concat "\n"
    | Fs, { magic = Fsharp; content = content } ->
        let trimmedContent = content |> SpiralSm.trim
        if trimmedContent |> SpiralSm.contains "//// test\n"
            || trimmedContent |> SpiralSm.contains "//// ignore\n"
        then ""
        else
            content
            |> SpiralSm.split "\n"
            |> Array.filter (SpiralSm.trim_start [[||]] >> SpiralSm.starts_with 
"#r" >> not)
            |> SpiralSm.concat "\n"
    | (Spi | Spir), { magic = Spiral output'; content = content } when output' =
output ->
        let trimmedContent = content |> SpiralSm.trim
        if trimmedContent |> SpiralSm.contains "//// test\n"
            || trimmedContent |> SpiralSm.contains "//// ignore\n"
        then ""
        else content
    | _ -> ""

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!markdown


a

    b

c


\#!markdown


c


\#!fsharp


let a = 1"
|> escapeCell
|> run block
|> function
    | Success (block, _, _) -> formatBlock Fs block
    | Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
/// 
    /// b
/// 
/// c"

╭─[ 47.77ms - stdout ]─────────────────────────────────────────────────────────╮
│ "/// a                                                                       │
│ ///                                                                          │
│     /// b                                                                    │
│ ///                                                                          │
│ /// c"                                                                       │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlocks                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlocks output blocks =
    blocks
    |> List.map (fun block ->
        block, formatBlock output block
    )
    |> List.filter (snd >> (<>) "")
    |> fun list ->
        (list, (None, [[]]))
        ||> List.foldBack (fun (block, content) (lastMagic, acc) ->
            let lineBreak =
                if block.magic = Markdown && lastMagic <> Some Markdown && 
lastMagic <> None
                then ""
                else "\n"
            Some block.magic, $"{content}{lineBreak}" :: acc
        )
    |> snd
    |> SpiralSm.concat "\n"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!markdown


a

b


\#!markdown


c


\#!fsharp


let a = 1

\#!markdown

d (test)

\#!fsharp

//// test

let a = 2

\#!markdown

e

\#!fsharp

let a = 3"
|> escapeCell
|> run blocks
|> function
    | Success (blocks, _, _) -> formatBlocks Fs blocks
    | Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
/// 
/// b

/// c
let a = 1

/// e
let a = 3
"

╭─[ 61.34ms - stdout ]─────────────────────────────────────────────────────────╮
│ "/// a                                                                       │
│ ///                                                                          │
│ /// b                                                                        │
│                                                                              │
│ /// c                                                                        │
│ let a = 1                                                                    │
│                                                                              │
│ /// e                                                                        │
│ let a = 3                                                                    │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parse                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline parse output input =
    match run blocks input with
    | Success (blocks, _, _) ->
        let blocks =
            blocks
            |> List.filter (fun block ->
                block.magic |> kernelOutputs |> List.contains output || 
block.magic = Markdown
            )

        match blocks with
        | { magic = Markdown; content = content } :: _
            when output = Fs
            && content |> SpiralSm.starts_with "# "
            && content |> SpiralSm.ends_with ")"
            ->
            let inline indentBlock (block : Block) =
                { block with
                    content =
                        block.content
                        |> SpiralSm.split "\n"
                        |> Array.fold
                            (fun (lines, isMultiline) line ->
                                let trimmedLine = line |> SpiralSm.trim
                                if trimmedLine = ""
                                then "" :: lines, isMultiline
                                else
                                    let inline singleQuoteLine () =
                                        trimmedLine |> Seq.sumBy ((=) '"' >> 
System.Convert.ToInt32) = 1
                                        && trimmedLine |> SpiralSm.contains 
@"'""'" |> not
                                        && trimmedLine |> SpiralSm.ends_with "{"
|> not
                                        && trimmedLine |> SpiralSm.ends_with 
"{|" |> not
                                        && trimmedLine |> SpiralSm.starts_with 
"}" |> not
                                        && trimmedLine |> SpiralSm.starts_with 
"|}" |> not

                                    match isMultiline, trimmedLine |> 
SpiralSm.split_string [[| $"{q}{q}{q}" |]] with
                                    | false, [[| _; _ |]] ->
                                        $"    {line}" :: lines, true

                                    | true, [[| _; _ |]] ->
                                        line :: lines, false

                                    | false, _ when singleQuoteLine () ->
                                        $"    {line}" :: lines, true

                                    | false, _ when line |> SpiralSm.starts_with
"#" && block.magic = Fsharp ->
                                        line :: lines, false

                                    | false, _ ->
                                        $"    {line}" :: lines, false

                                    | true, _ when singleQuoteLine () && line |>
SpiralSm.starts_with "    " ->
                                        $"    {line}" :: lines, false

                                    | true, _ when singleQuoteLine () ->
                                        line :: lines, false

                                    | true, _ ->
                                        line :: lines, true
                            )
                            ([[]], false)
                        |> fst
                        |> List.rev
                        |> SpiralSm.concat "\n"
                }

            let moduleName, namespaceName =
                System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 
\((.*)\)$")
                |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value

            let moduleBlock =
                {
                    magic = Fsharp
                    content =
                        $"#if !INTERACTIVE
namespace {namespaceName}
#endif

module {moduleName} ="
                }

            blocks
            |> List.indexed
            |> List.fold
                (fun blocks (index, block) ->
                    match index with
                    | 0 -> blocks
                    | 1 -> indentBlock block :: moduleBlock :: blocks
                    | _ -> indentBlock block :: blocks
                )
                [[]]
            |> List.rev
        | _ -> blocks
        |> Result.Ok
    | Failure (errorMsg, _, _) -> Result.Error errorMsg

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let example1 =
    $"""#!meta

{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}

\#!markdown

# TestModule (TestNamespace)

\#!fsharp

\#!import file.dib

\#!fsharp

\#r "nuget:Expecto"

\#!markdown

## ParserLibrary

\#!fsharp

open System

\#!markdown

## x (test)

\#!fsharp

//// ignore

let x = 1

\#!spiral

//// test

inl x = 1i32

\#!spiral

//// real

inl x = 2i32

\#!spiral

inl x = 3i32

\#!markdown

### TextInput

\#!fsharp

let str1 = "abc
def"

let str2 =
    "abc\
def"

let str3 =
    $"1{{
        1
    }}1"

let str4 =
    $"1{{({{|
        a = 1
    |}}).a}}1"

let str5 =
    "abc \
        def"

let x =
    match '"' with
    | '"' -> true
    | _ -> false

let long1 = {q}{q}{q}a{q}{q}{q}

let long2 =
    {q}{q}{q}
a
{q}{q}{q}

\#!fsharp

type Position =
    {{
#if INTERACTIVE
        line : string
#else
        line : int
#endif
        column : int
    }}"""
    |> escapeCell

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Fs
|> Result.toOption
|> Option.get
|> (formatBlocks Fs)
|> _assertEqual $"""#if !INTERACTIVE
namespace TestNamespace
#endif

module TestModule =

    /// ## ParserLibrary
    open System

    /// ### TextInput
    let str1 = "abc
def"

    let str2 =
        "abc\
def"

    let str3 =
        $"1{{
            1
        }}1"

    let str4 =
        $"1{{({{|
            a = 1
        |}}).a}}1"

    let str5 =
        "abc \
            def"

    let x =
        match '"' with
        | '"' -> true
        | _ -> false

    let long1 = {q}{q}{q}a{q}{q}{q}

    let long2 =
        {q}{q}{q}
a
{q}{q}{q}

    type Position =
        {{
#if INTERACTIVE
            line : string
#else
            line : int
#endif
            column : int
        }}
"""

╭─[ 159.91ms - stdout ]────────────────────────────────────────────────────────╮
│ "#if !INTERACTIVE                                                            │
│ namespace TestNamespace                                                      │
│ #endif                                                                       │
│                                                                              │
│ module TestModule =                                                          │
│                                                                              │
│     /// ## ParserLibrary                                                     │
│     open System                                                              │
│                                                                              │
│     /// ### TextInput                                                        │
│     let str1 = "abc                                                          │
│ def"                                                                         │
│                                                                              │
│     let str2 =                                                               │
│         "abc\                                                                │
│ def"                                                                         │
│                                                                              │
│     let str3 =                                                               │
│         $"1{                                                                 │
│             1                                                                │
│         }1"                                                                  │
│                                                                              │
│     let str4 =                                                               │
│         $"1{({|                                                              │
│             a = 1                                                            │
│         |}).a}1"                                                             │
│                                                                              │
│     let str5 =                                                               │
│         "abc \                                                               │
│             def"                                                             │
│                                                                              │
│     let x =                                                                  │
│         match '"' with                                                       │
│         | '"' -> true                                                        │
│         | _ -> false                                                         │
│                                                                              │
│     let long1 = """a"""                                                      │
│                                                                              │
│     let long2 =                                                              │
│         """                                                                  │
│ a                                                                            │
│ """                                                                          │
│                                                                              │
│     type Position =                                                          │
│         {                                                                    │
│ #if INTERACTIVE                                                              │
│             line : string                                                    │
│ #else                                                                        │
│             line : int                                                       │
│ #endif                                                                       │
│             column : int                                                     │
│         }                                                                    │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Md
|> Result.toOption
|> Option.get
|> (formatBlocks Md)
|> _assertEqual "# TestModule (TestNamespace)

## ParserLibrary

### TextInput
"

╭─[ 139.22ms - stdout ]────────────────────────────────────────────────────────╮
│ "# TestModule (TestNamespace)                                                │
│                                                                              │
│ ## ParserLibrary                                                             │
│                                                                              │
│ ### TextInput                                                                │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Spi
|> Result.toOption
|> Option.get
|> (formatBlocks Spi)
|> _assertEqual "/// # TestModule (TestNamespace)

/// ## ParserLibrary
inl x = 3i32

/// ### TextInput
"

╭─[ 134.21ms - stdout ]────────────────────────────────────────────────────────╮
│ "/// # TestModule (TestNamespace)                                            │
│                                                                              │
│ /// ## ParserLibrary                                                         │
│ inl x = 3i32                                                                 │
│                                                                              │
│ /// ### TextInput                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Spir
|> Result.toOption
|> Option.get
|> (formatBlocks Spir)
|> _assertEqual "/// # TestModule (TestNamespace)

/// ## ParserLibrary
inl x = 2i32

/// ### TextInput
"

╭─[ 141.33ms - stdout ]────────────────────────────────────────────────────────╮
│ "/// # TestModule (TestNamespace)                                            │
│                                                                              │
│ /// ## ParserLibrary                                                         │
│ inl x = 2i32                                                                 │
│                                                                              │
│ /// ### TextInput                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parseDibCode                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseDibCode output file = async {
    trace Debug
        (fun () -> "parseDibCode")
        (fun () -> $"output: {output} / file: {file} / {_locals ()}")
    let! input = file |> SpiralFileSystem.read_all_text_async
    match parse output input with
    | Result.Ok blocks -> return blocks |> formatBlocks output
    | Result.Error msg -> return failwith msg
}

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeDibCode                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeDibCode output path = async {
    trace Debug
        (fun () -> "writeDibCode")
        (fun () -> $"output: {output} / path: {path} / {_locals ()}")
    let! result = parseDibCode output path
    let pathDir = path |> System.IO.Path.GetDirectoryName
    let fileNameWithoutExt =
        match output, path |> System.IO.Path.GetFileNameWithoutExtension with
        | Spir, fileNameWithoutExt -> $"{fileNameWithoutExt}_real"
        | _, fileNameWithoutExt -> fileNameWithoutExt
    let outputPath = pathDir </> $"{fileNameWithoutExt}.{output |> string |> 
SpiralSm.to_lower}"
    do! result |> SpiralFileSystem.write_all_text_async outputPath
}

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments                                                                 │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
        File of file : string * Output

    interface Argu.IArgParserTemplate with
        member s.Usage =
            match s with
            | File _ -> nameof File

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

Argu.ArgumentParser.Create<Arguments>().PrintUsage ()

╭─[ 90.05ms - return value ]───────────────────────────────────────────────────╮
│ "USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir>                         │
│                                                                              │
│ FILE:                                                                        │
│                                                                              │
│     <file> <fs|md|spi|spir>                                                  │
│                           File                                               │
│                                                                              │
│ OPTIONS:                                                                     │
│                                                                              │
│     --help                display this list of options.                      │
│ "                                                                            │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main                                                                      │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
    let argsMap = args |> Runtime.parseArgsMap<Arguments>

    let files =
        argsMap.[[nameof Arguments.File]]
        |> List.map (function
            | Arguments.File (path, output) -> path, output
        )

    files
    |> List.map (fun (path, output) -> path |> writeDibCode output)
    |> Async.Parallel
    |> Async.Ignore
    |> Async.runWithTimeout 30000
    |> function
        | Some () -> 0
        | None -> 1

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let args =
    System.Environment.GetEnvironmentVariable "ARGS"
    |> SpiralRuntime.split_args
    |> Result.toArray
    |> Array.collect id

match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"

╭─[ 144.28ms - return value ]──────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0                                            │
│ </pre></div><style>                                                          │
│ .dni-code-hint {                                                             │
│     font-style: italic;                                                      │
│     overflow: hidden;                                                        │
│     white-space: nowrap;                                                     │
│ }                                                                            │
│ .dni-treeview {                                                              │
│     white-space: nowrap;                                                     │
│ }                                                                            │
│ .dni-treeview td {                                                           │
│     vertical-align: top;                                                     │
│     text-align: start;                                                       │
│ }                                                                            │
│ details.dni-treeview {                                                       │
│     padding-left: 1em;                                                       │
│ }                                                                            │
│ table td {                                                                   │
│     text-align: start;                                                       │
│ }                                                                            │
│ table tr {                                                                   │
│     vertical-align: top;                                                     │
│     margin: 0em 0px;                                                         │
│ }                                                                            │
│ table tr td pre                                                              │
│ {                                                                            │
│     vertical-align: top !important;                                          │
│     margin: 0em 0px !important;                                              │
│ }                                                                            │
│ table th {                                                                   │
│     text-align: start;                                                       │
│ }                                                                            │
│ </style>                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

╭─[ 146.48ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:05 d #1 writeDibCode / output: Fs / path: Builder.dib             │
│ 00:00:05 d #2 parseDibCode / output: Fs / file: Builder.dib             │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Builder.dib"])) }
00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/builder/Builder.dib", "--output-path", "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/builder/Builder.dib" --output-path "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Builder (Polyglot)                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildProject                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildProject runtime outputDir path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>     let extension = fullPath |> System.IO.Path.GetExtension
> 
>     trace Debug
>         (fun () -> "buildProject")
>         (fun () -> $"fullPath: {fullPath} / {_locals ()}")
> 
>     match extension with
>     | ".fsproj" -> ()
>     | _ -> failwith "Invalid project file"
> 
>     let runtimes =
>         runtime
>         |> Option.map List.singleton
>         |> Option.defaultValue [[ "linux-x64"; "win-x64" ]]
> 
>     let outputDir = outputDir |> Option.defaultValue "dist"
> 
>     return!
>         runtimes
>         |> List.map (fun runtime -> async {
>             let command = $@"dotnet publish ""{path}"" --configuration Release 
> --output ""{outputDir}"" --runtime {runtime}"
>             let! exitCode, _result =
>                 SpiralRuntime.execution_options (fun x ->
>                     { x with
>                         l0 = command
>                         l6 = Some fileDir
>                     }
>                 )
>                 |> SpiralRuntime.execute_with_options_async
>             return exitCode
>         })
>         |> Async.Sequential
>         |> Async.map Array.sum
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## persistCodeProject                                                        │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistCodeProject packages modules name hash code = async {
>     trace Debug
>         (fun () -> "persistCodeProject")
>         (fun () -> $"packages: {packages} / modules: {modules} / name: {name} / 
> hash: {hash} / code.Length: {code |> String.length} / {_locals ()}")
> 
>     let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
>     let targetDir =
>         let targetDir = workspaceRoot </> "target/Builder" </> name
>         match hash with
>         | Some hash -> targetDir </> "packages" </> hash
>         | None -> targetDir
>     targetDir |> System.IO.Directory.CreateDirectory |> ignore
> 
>     let filePath = targetDir </> $"{name}.fs" |> System.IO.Path.GetFullPath
>     do! code |> SpiralFileSystem.write_all_text_exists filePath
> 
>     let modulesCode =
>         modules
>         |> List.map (fun path -> $"""<Compile Include="{workspaceRoot </> path}"
> />""")
>         |> SpiralSm.concat "\n        "
> 
>     let fsprojPath = targetDir </> $"{name}.fsproj"
>     let fsprojCode = $"""<Project Sdk="Microsoft.NET.Sdk">
>     <PropertyGroup>
>         <TargetFramework>net9.0</TargetFramework>
>         <LangVersion>preview</LangVersion>
>         <RollForward>Major</RollForward>
>         <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
>         <PublishAot>false</PublishAot>
>         <PublishTrimmed>false</PublishTrimmed>
>         <PublishSingleFile>true</PublishSingleFile>
>         <SelfContained>true</SelfContained>
>         <Version>0.0.1-alpha.1</Version>
>         <OutputType>Exe</OutputType>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('FreeBSD'))">
>         <DefineConstants>_FREEBSD</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('Linux'))">
>         <DefineConstants>_LINUX</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('OSX'))">
>         <DefineConstants>_OSX</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('Windows'))">
>         <DefineConstants>_WINDOWS</DefineConstants>
>     </PropertyGroup>
> 
>     <ItemGroup>
>         {modulesCode}
>         <Compile Include="{filePath}" />
>     </ItemGroup>
> 
>     <Import Project="{workspaceRoot}/.paket/Paket.Restore.targets" />
> </Project>
> """
>     do! fsprojCode |> SpiralFileSystem.write_all_text_exists fsprojPath
> 
>     let paketReferencesPath = targetDir </> "paket.references"
>     let paketReferencesCode =
>         "FSharp.Core" :: packages
>         |> SpiralSm.concat "\n"
>     do! paketReferencesCode |> SpiralFileSystem.write_all_text_exists 
> paketReferencesPath
> 
>     return fsprojPath
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildCode                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildCode runtime packages modules outputDir name code = async {
>     let! fsprojPath = code |> persistCodeProject packages modules name None
>     let! exitCode = fsprojPath |> buildProject runtime outputDir
>     if exitCode <> 0 then
>         let! fsprojText = fsprojPath |> SpiralFileSystem.read_all_text_async
>         trace Critical
>             (fun () -> "buildCode")
>             (fun () -> $"code: {code |> SpiralSm.ellipsis_end 400} / fsprojText:
> {fsprojText} / {_locals ()}")
>     return exitCode
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "1 + 1 |> ignore"
> |> buildCode None [[]] [[]] None "test1"
> |> Async.runWithTimeout 180000
> |> _assertEqual (Some 0)
> 
> ╭─[ 6.18s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:02 d #1 persistCodeProject / packages: [] / modules: [] / name:   │
> │ test1 / hash:  / code.Length: 15                                             │
> │ 00:00:02 d #2 buildProject / fullPath:                                  │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj                       │
> │ 00:00:07 d #1 runtime.execute_with_options_async / { file_name =        │
> │ dotnet; arguments = US1_0                                                    │
> │   "publish "C:\home\git\polyglot\target/Builder\test1\test1.fsproj"          │
> │ --configuration Release --output "dist" --runtime linux-x64"; options = {    │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test1\test1.fsproj" --configuration     │
> │ Release --output "dist" --runtime linux-x64; cancellation_token = None;      │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test1" } }     │
> │ 00:00:07 v #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for  │
> │ .NET                                                                         │
> │ 00:00:08 v #3 >   Determining projects to restore...                    │
> │ 00:00:09 v #4 >   Restored                                              │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj (in 338 ms).          │
> │ 00:00:09 v #5 >                                                         │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj]                      │
> │ 00:00:09 v #6 >   test1 ->                                              │
> │ C:\home\git\polyglot\target\Builder\test1\bin\Release\net9.0\linux-x64\test1 │
> │ .dll                                                                         │
> │ 00:00:10 v #7 >   test1 ->                                              │
> │ C:\home\git\polyglot\target\Builder\test1\dist\                              │
> │ 00:00:10 d #8 runtime.execute_with_options_async / { exit_code = 0;     │
> │ output_length = 657 }                                                        │
> │ 00:00:10 d #9 runtime.execute_with_options_async / { file_name =        │
> │ dotnet; arguments = US1_0                                                    │
> │   "publish "C:\home\git\polyglot\target/Builder\test1\test1.fsproj"          │
> │ --configuration Release --output "dist" --runtime win-x64"; options = {      │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test1\test1.fsproj" --configuration     │
> │ Release --output "dist" --runtime win-x64; cancellation_token = None;        │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test1" } }     │
> │ 00:00:10 v #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for │
> │ .NET                                                                         │
> │ 00:00:11 v #11 >   Determining projects to restore...                   │
> │ 00:00:11 v #12 >   Restored                                             │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj (in 312 ms).          │
> │ 00:00:12 v #13 >                                                        │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj]                      │
> │ 00:00:12 v #14 >   test1 ->                                             │
> │ C:\home\git\polyglot\target\Builder\test1\bin\Release\net9.0\win-x64\test1.d │
> │ ll                                                                           │
> │ 00:00:13 v #15 >   test1 ->                                             │
> │ C:\home\git\polyglot\target\Builder\test1\dist\                              │
> │ 00:00:13 d #16 runtime.execute_with_options_async / { exit_code = 0;    │
> │ output_length = 655 }                                                        │
> │ Some 0                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "1 + a |> ignore"
> |> buildCode None [[]] [[]] None "test2"
> |> Async.runWithTimeout 180000
> |> _assertEqual (Some 2)
> 
> ╭─[ 5.56s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:08 d #3 persistCodeProject / packages: [] / modules: [] / name:   │
> │ test2 / hash:  / code.Length: 15                                             │
> │ 00:00:08 d #4 buildProject / fullPath:                                  │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj                       │
> │ 00:00:13 d #17 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   "publish "C:\home\git\polyglot\target/Builder\test2\test2.fsproj"          │
> │ --configuration Release --output "dist" --runtime linux-x64"; options = {    │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test2\test2.fsproj" --configuration     │
> │ Release --output "dist" --runtime linux-x64; cancellation_token = None;      │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test2" } }     │
> │ 00:00:14 v #18 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for │
> │ .NET                                                                         │
> │ 00:00:14 v #19 >   Determining projects to restore...                   │
> │ 00:00:15 v #20 >   Restored                                             │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj (in 305 ms).          │
> │ 00:00:15 v #21 >                                                        │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:16 v #22 >                                                        │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fs(1,5): error FS0039: The   │
> │ value or constructor 'a' is not defined. [                                   │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:16 d #23 runtime.execute_with_options_async / { exit_code = 1;    │
> │ output_length = 679 }                                                        │
> │ 00:00:16 d #24 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   "publish "C:\home\git\polyglot\target/Builder\test2\test2.fsproj"          │
> │ --configuration Release --output "dist" --runtime win-x64"; options = {      │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test2\test2.fsproj" --configuration     │
> │ Release --output "dist" --runtime win-x64; cancellation_token = None;        │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test2" } }     │
> │ 00:00:16 v #25 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for │
> │ .NET                                                                         │
> │ 00:00:17 v #26 >   Determining projects to restore...                   │
> │ 00:00:17 v #27 >   Restored                                             │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj (in 307 ms).          │
> │ 00:00:17 v #28 >                                                        │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:19 v #29 >                                                        │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fs(1,5): error FS0039: The   │
> │ value or constructor 'a' is not defined. [                                   │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:19 d #30 runtime.execute_with_options_async / { exit_code = 1;    │
> │ output_length = 679 }                                                        │
> │ 00:00:14 c #5 buildCode / code: 1 + a |> ignore / fsprojText: <Project  │
> │ Sdk="Microsoft.NET.Sdk">                                                     │
> │     <PropertyGroup>                                                          │
> │         <TargetFramework>net9.0</TargetFramework>                            │
> │         <LangVersion>preview</LangVersion>                                   │
> │         <RollForward>Major</RollForward>                                     │
> │         <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>            │
> │         <PublishAot>false</PublishAot>                                       │
> │         <PublishTrimmed>false</PublishTrimmed>                               │
> │         <PublishSingleFile>true</PublishSingleFile>                          │
> │         <SelfContained>true</SelfContained>                                  │
> │         <Version>0.0.1-alpha.1</Version>                                     │
> │         <OutputType>Exe</OutputType>                                         │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('FreeBSD'))">        │
> │         <DefineConstants>_FREEBSD</DefineConstants>                          │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">          │
> │         <DefineConstants>_LINUX</DefineConstants>                            │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">            │
> │         <DefineConstants>_OSX</DefineConstants>                              │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">        │
> │         <DefineConstants>_WINDOWS</DefineConstants>                          │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <ItemGroup>                                                              │
> │                                                                              │
> │         <Compile                                                             │
> │ Include="C:\home\git\polyglot\target\Builder\test2\test2.fs" />              │
> │     </ItemGroup>                                                             │
> │                                                                              │
> │     <Import Project="C:\home\git\polyglot/.paket/Paket.Restore.targets" />   │
> │ </Project>                                                                   │
> │                                                                              │
> │ Some 2                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## readFile                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline readFile path = async {
>     let! code = path |> SpiralFileSystem.read_all_text_async
> 
>     let code = System.Text.RegularExpressions.Regex.Replace (
>         code,
>         @"( *)(let\s+main\s+.*?\s*=)",
>         fun m -> m.Groups.[[1]].Value + "[[<EntryPoint>]]\n" + 
> m.Groups.[[1]].Value + m.Groups.[[2]].Value
>     )
> 
>     let codeTrim = code |> SpiralSm.trim_end [[||]]
>     return
>         if codeTrim |> SpiralSm.ends_with "\n()"
>         then codeTrim |> SpiralSm.slice 0 ((codeTrim |> String.length) - 3)
>         else code
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildFile                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildFile runtime packages modules path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let dir = fullPath |> System.IO.Path.GetDirectoryName
>     let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>     let! code = fullPath |> readFile
>     return! code |> buildCode runtime packages modules (dir </> "dist" |> Some) 
> name
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## persistFile                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistFile packages modules path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>     let! code = fullPath |> readFile
>     return! code |> persistCodeProject packages modules name None
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce>]] 
> Path of path : string
>     | [[<Argu.ArguAttributes.Unique>]] Packages of packages : string list
>     | [[<Argu.ArguAttributes.Unique>]] Modules of modules : string list
>     | [[<Argu.ArguAttributes.Unique>]] Runtime of runtime : string
>     | [[<Argu.ArguAttributes.Unique>]] Persist_Only
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | Path _ -> nameof Path
>             | Packages _ -> nameof Packages
>             | Modules _ -> nameof Modules
>             | Runtime _ -> nameof Runtime
>             | Persist_Only -> nameof Persist_Only
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 108.71ms - return value ]──────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] [--packages [<packages>...]]                    │
> │                    [--modules [<modules>...]] [--runtime <runtime>]          │
> │                    [--persist-only] <path>                                   │
> │                                                                              │
> │ PATH:                                                                        │
> │                                                                              │
> │     <path>                Path                                               │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --packages [<packages>...]                                               │
> │                           Packages                                           │
> │     --modules [<modules>...]                                                 │
> │                           Modules                                            │
> │     --runtime <runtime>   Runtime                                            │
> │     --persist-only        Persist_Only                                       │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let path =
>         match argsMap.[[nameof Arguments.Path]] with
>         | [[ Arguments.Path path ]] -> Some path
>         | _ -> None
>         |> Option.get
> 
>     let packages =
>         match argsMap |> Map.tryFind (nameof Arguments.Packages) with
>         | Some [[ Arguments.Packages packages ]] -> packages
>         | _ -> [[]]
> 
>     let modules =
>         match argsMap |> Map.tryFind (nameof Arguments.Modules) with
>         | Some [[ Arguments.Modules modules ]] -> modules
>         | _ -> [[]]
> 
>     let runtime =
>         match argsMap |> Map.tryFind (nameof Arguments.Runtime) with
>         | Some [[ Arguments.Runtime runtime ]] -> Some runtime
>         | _ -> None
> 
>     let persistOnly = argsMap |> Map.containsKey (nameof Arguments.Persist_Only)
> 
>     if persistOnly
>     then path |> persistFile packages modules |> Async.map (fun _ -> 0)
>     else path |> buildFile runtime packages modules
>     |> Async.runWithTimeout (60000 * 60)
>     |> function
>         | Some exitCode -> exitCode
>         | None -> 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 5.81s - return value ]─────────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 5.81s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:15 d #6 persistCodeProject / packages: [Argu;                     │
> │ FSharp.Control.AsyncSeq; System.Reactive.Linq] / modules: [                  │
> │ lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] /     │
> │ name: Builder / hash:  / code.Length: 8210                                   │
> │ 00:00:15 d #7 buildProject / fullPath:                                  │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj                   │
> │ 00:00:20 d #31 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   "publish "C:\home\git\polyglot\target/Builder\Builder\Builder.fsproj"      │
> │ --configuration Release --output "C:\home\git\polyglot\apps\builder\dist"    │
> │ --runtime linux-x64"; options = { command = dotnet publish                   │
> │ "C:\home\git\polyglot\target/Builder\Builder\Builder.fsproj" --configuration │
> │ Release --output "C:\home\git\polyglot\apps\builder\dist" --runtime          │
> │ linux-x64; cancellation_token = None; environment_variables = [||]; on_line  │
> │ = None; stdin = None; trace = true; working_directory = Some                 │
> │ "C:\home\git\polyglot\target\Builder\Builder" } }                            │
> │ 00:00:20 v #32 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for │
> │ .NET                                                                         │
> │ 00:00:20 v #33 >   Determining projects to restore...                   │
> │ 00:00:21 v #34 >   Restored                                             │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj (in 344 ms).      │
> │ 00:00:21 v #35 >                                                        │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj]                  │
> │ 00:00:22 v #36 >   Builder ->                                           │
> │ C:\home\git\polyglot\target\Builder\Builder\bin\Release\net9.0\linux-x64\Bui │
> │ lder.dll                                                                     │
> │ 00:00:23 v #37 >   Builder -> C:\home\git\polyglot\apps\builder\dist\   │
> │ 00:00:23 d #38 runtime.execute_with_options_async / { exit_code = 0;    │
> │ output_length = 665 }                                                        │
> │ 00:00:23 d #39 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   "publish "C:\home\git\polyglot\target/Builder\Builder\Builder.fsproj"      │
> │ --configuration Release --output "C:\home\git\polyglot\apps\builder\dist"    │
> │ --runtime win-x64"; options = { command = dotnet publish                     │
> │ "C:\home\git\polyglot\target/Builder\Builder\Builder.fsproj" --configuration │
> │ Release --output "C:\home\git\polyglot\apps\builder\dist" --runtime win-x64; │
> │ cancellation_token = None; environment_variables = [||]; on_line = None;     │
> │ stdin = None; trace = true; working_directory = Some                         │
> │ "C:\home\git\polyglot\target\Builder\Builder" } }                            │
> │ 00:00:23 v #40 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for │
> │ .NET                                                                         │
> │ 00:00:23 v #41 >   Determining projects to restore...                   │
> │ 00:00:24 v #42 >   Restored                                             │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj (in 349 ms).      │
> │ 00:00:24 v #43 >                                                        │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj]                  │
> │ 00:00:24 v #44 >   Builder ->                                           │
> │ C:\home\git\polyglot\target\Builder\Builder\bin\Release\net9.0\win-x64\Build │
> │ er.dll                                                                       │
> │ 00:00:25 v #45 >   Builder -> C:\home\git\polyglot\apps\builder\dist\   │
> │ 00:00:25 d #46 runtime.execute_with_options_async / { exit_code = 0;    │
> │ output_length = 663 }                                                        │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 35732 }
00:00:38 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:39 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/builder/Builder.dib.ipynb to html
00:00:39 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:39 v #7 !   validate(nb)
00:00:40 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:40 v #9 !   return _pygments_highlight(
00:00:40 v #10 ! [NbConvertApp] Writing 335543 bytes to c:\home\git\polyglot\apps\builder\Builder.dib.html
00:00:40 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 860 }
00:00:40 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 860 }
00:00:40 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/builder/Builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/builder/Builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:41 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:41 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:41 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 36651 }
In [ ]:
{ pwsh ../apps/spiral/builder/build.ps1 -SkipFsx 1 } | Invoke-Block
00:00:02 d #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: spiral_builder / hash:  / code.Length: 6665621
targetDir: C:\home\git\polyglot\target\Builder\spiral_builder
Fable 4.21.0: F# to Rust compiler (status: alpha)

Thanks to the contributor! @tpetricek
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\spiral_builder\spiral_builder.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 169ms

Skipped compilation because all generated files are up-to-date!

    Directory: C:\home\git\polyglot\target\Builder\spiral_builder\target

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2024-09-29  5:34 PM                rs
   Compiling proc-macro2 v1.0.88
   Compiling typenum v1.17.0
   Compiling uuid v1.11.0
   Compiling serde_json v1.0.129
   Compiling quote v1.0.37
   Compiling syn v2.0.79
   Compiling hybrid-array v0.2.0-rc.11
   Compiling block-buffer v0.11.0-rc.2
   Compiling crypto-common v0.2.0-rc.1
   Compiling digest v0.11.0-pre.9
   Compiling sha2 v0.11.0-pre.4
   Compiling zerocopy-derive v0.7.35
   Compiling futures-macro v0.3.31
   Compiling thiserror-impl v1.0.64
   Compiling zerocopy v0.7.35
   Compiling futures-util v0.3.31
   Compiling thiserror v1.0.64
   Compiling async-walkdir v2.0.0
   Compiling rand_core v0.9.0-alpha.2
   Compiling ppv-lite86 v0.2.20
   Compiling rand_chacha v0.9.0-alpha.2
   Compiling rand v0.9.0-alpha.2
   Compiling futures-executor v0.3.31
   Compiling futures v0.3.31
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
    Finished `release` profile [optimized] target(s) in 36.98s
     Running unittests spiral_builder.rs (C:\home\git\polyglot\workspace\target\release\deps\spiral_builder-1946bf53ea519377.exe)

running 1 test
test module_7e2cd9e0::Spiral_builder::verify_app ... ok

successes:

successes:
    module_7e2cd9e0::Spiral_builder::verify_app

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Compiling hybrid-array v0.2.0-rc.11
   Compiling zerocopy v0.7.35
   Compiling futures-util v0.3.31
   Compiling thiserror v1.0.64
   Compiling async-walkdir v2.0.0
   Compiling block-buffer v0.11.0-rc.2
   Compiling crypto-common v0.2.0-rc.1
   Compiling rand_core v0.9.0-alpha.2
   Compiling ppv-lite86 v0.2.20
   Compiling rand_chacha v0.9.0-alpha.2
   Compiling rand v0.9.0-alpha.2
   Compiling digest v0.11.0-pre.9
   Compiling sha2 v0.11.0-pre.4
   Compiling futures-executor v0.3.31
   Compiling futures v0.3.31
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
error: failed to remove file `C:\home\git\polyglot\workspace\target\release\spiral_builder.exe`

Caused by:
  Access is denied. (os error 5)

# Invoke-Block / $retry: 1/1 / $Location:  / Get-Location: C:\home\git\polyglot\apps\spiral\builder / $OnError: Continue / $exitcode: 101 / $EnvVars: {
  "PATH": "C:\\Users\\i574n\\scoop\\apps\\pwsh\\current;C:\\Users\\i574n\\scoop\\apps\\python312\\current\\Scripts;C:\\Users\\i574n\\scoop\\apps\\python312\\current\\.;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\ProgramData\\scoop\\shims;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\Perforce;C:\\Program Files\\Wasmtime\\bin;C:\\Program Files\\Perforce\\;C:\\Users\\i574n\\scoop\\apps\\vscode-insiders\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\perl\\current\\perl\\site\\bin;C:\\Users\\i574n\\scoop\\apps\\perl\\current\\perl\\bin;C:\\Users\\i574n\\scoop\\apps\\elixir\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\rustup\\current\\.cargo\\bin;C:\\Users\\i574n\\scoop\\apps\\latex\\current\\texmfs\\install\\miktex\\bin\\x64;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk-preview\\current;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk\\current;C:\\Users\\i574n\\scoop\\apps\\gsudo\\current;C:\\Users\\i574n\\scoop\\apps\\python\\current;C:\\Users\\i574n\\scoop\\apps\\nircmd\\current;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n/scoop/buckets/mold/home/windows/path;C:\\Users\\i574n/scoop/persist/rustup/.cargo/bin;C:\\Users\\i574n/scoop/apps/nvm/current/nodejs/nodejs;C:\\Users\\i574n/scoop/apps/cygwin/current/root/bin;C:\\Users\\i574n\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n\\.bun\\bin;C:\\Users\\i574n\\.dotnet\\tools;C:\\Users\\i574n\\scoop\\shims;C:\\Users\\i574n\\.fly\\bin;C:\\Program Files\\Wasmtime\\bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin"
} / $Error: '' / $ScriptBlock:
'cargo build --release'


In [ ]:
{ pwsh ../apps/parser/build.ps1 } | Invoke-Block
00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "DibParser.dib"])) }
00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/parser/DibParser.dib", "--output-path", "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/DibParser.dib" --output-path "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # DibParser (Polyglot)                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
> arsec.dll"
> #r 
> @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
> arsecCS.dll"
> 
> ── pwsh ────────────────────────────────────────────────────────────────────────
> ls ~/.nuget/packages/argu
> 
> ╭─[ 564.06ms - stdout ]────────────────────────────────────────────────────────╮
> │                                                                              │
> │     Directory: C:\Users\i574n\.nuget\packages\argu                           │
> │                                                                              │
> │ Mode                 LastWriteTime         Length[     │
> │ 32;1m Name                                                                 │
> │ ----                 -------------         ------ [      │
> │ 32;1m----                                                                  │
> │ d----          2023-05-17  4:38 PM                6.1.1               │
> │ d----          2024-03-12  9:22 PM                6.1.4               │
> │ d----          2024-01-29  6:12 PM                6.1.5               │
> │ d----          2024-03-12  9:20 PM                6.2.0               │
> │ d----          2024-02-23  7:50 PM                6.2.1               │
> │ d----          2024-03-12  9:15 PM                6.2.2               │
> │ d----          2024-05-14  9:20 PM                6.2.3               │
> │ d----          2024-06-06  8:37 PM                6.2.4               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open FParsec
> open SpiralFileSystem.Operators
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## escapeCell (test)                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let inline escapeCell input =
>     input
>     |> SpiralSm.split "\n"
>     |> Array.map (function
>         | line when line |> SpiralSm.starts_with "\\#!" || line |> 
> SpiralSm.starts_with "\\#r" ->
>             System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
>         | line -> line
>     )
>     |> SpiralSm.concat "\n"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> $"a{nl}\\#!magic{nl}b{nl}"
> |> escapeCell
> |> _assertEqual (
>     $"a{nl}#!magic{nl}b{nl}"
> )
> 
> ╭─[ 66.03ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "a                                                                           │
> │ #!magic                                                                      │
> │ b                                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## magicMarker                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let magicMarker : Parser<string, unit> = pstring "#!"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic"
> |> run magicMarker
> |> _assertEqual (
>     Success ("#!", (), Position ("", 2, 1, 3))
> )
> 
> ╭─[ 36.87ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "#!"                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "##!magic"
> |> run magicMarker
> |> _assertEqual (
>     Failure (
>         $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
>         ParserError (
>             Position ("", 0, 1, 1),
>             (),
>             ErrorMessageList (ExpectedString "#!")
>         ),
>         ()
>     )
> )
> 
> ╭─[ 45.85ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure:                                                                     │
> │ Error in Ln: 1 Col: 1                                                        │
> │ ##!magic                                                                     │
> │ ^                                                                            │
> │ Expecting: '#!'                                                              │
> │                                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## magicCommand                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let magicCommand =
>     magicMarker
>     >>. manyTill anyChar newline
>     |>> (System.String.Concat >> SpiralSm.trim)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> a"
> |> run magicCommand
> |> _assertEqual (
>     Success ("magic", (), Position ("", 8, 2, 1))
> )
> 
> ╭─[ 26.65ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "magic"                                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> " #!magic
> 
> a"
> |> run magicCommand
> |> _assertEqual (
>     Failure (
>         $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
>         ParserError (
>             Position ("", 0, 1, 1),
>             (),
>             ErrorMessageList (ExpectedString "#!")
>         ),
>         ()
>     )
> )
> 
> ╭─[ 27.55ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure:                                                                     │
> │ Error in Ln: 1 Col: 1                                                        │
> │  #!magic                                                                     │
> │ ^                                                                            │
> │ Expecting: '#!'                                                              │
> │                                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## content                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let content =
>     (newline >>. magicMarker) <|> (eof >>. preturn "")
>     |> attempt
>     |> lookAhead
>     |> manyTill anyChar
>     |>> (System.String.Concat >> SpiralSm.trim)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> 
> a
> 
> 
> "
> |> run content
> |> _assertEqual (
>     Success ("#!magic
> 
> 
> a", (), Position ("", 14, 7, 1))
> )
> 
> ╭─[ 25.10ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "#!magic                                                            │
> │                                                                              │
> │                                                                              │
> │ a"                                                                           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Output                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Output =
>     | Fs
>     | Md
>     | Spi
>     | Spir
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Magic                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Magic =
>     | Fsharp
>     | Markdown
>     | Spiral of Output
>     | Magic of string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## kernelOutputs                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline kernelOutputs magic =
>     match magic with
>     | Fsharp -> [[ Fs ]]
>     | Markdown -> [[ Md ]]
>     | Spiral output -> [[ output ]]
>     | _ -> [[]]
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Block                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Block =
>     {
>         magic : Magic
>         content : string
>     }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## block                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let block =
>     pipe2
>         magicCommand
>         content
>         (fun magic content ->
>             let magic, content =
>                 match magic with
>                 | "fsharp" -> Fsharp, content
>                 | "markdown" -> Markdown, content
>                 | "spiral" ->
>                     let output = if content |> SpiralSm.contains "//// real\n" 
> then Spir else Spi
>                     let content =
>                         if output = Spi
>                         then content
>                         else
>                             content
>                             |> SpiralSm.replace "//// real\n\n" ""
>                             |> SpiralSm.replace "//// real\n" ""
>                     Spiral output, content
>                 | magic -> magic |> Magic, content
>             {
>                 magic = magic
>                 content = content
>             })
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> 
> a
> 
> 
> "
> |> run block
> |> _assertEqual (
>     Success (
>         { magic = Magic "magic"; content = "a" },
>         (),
>         Position ("", 14, 7, 1)
>     )
> )
> 
> ╭─[ 47.98ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: { magic = Magic "magic"                                             │
> │   content = "a" }                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## blocks                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let blocks =
>     skipMany newline
>     >>. sepEndBy block (skipMany1 newline)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> 
> "#!magic1
> 
> a
> 
> \#!magic2
> 
> b
> 
> "
> |> escapeCell
> |> run blocks
> |> _assertEqual (
>     Success (
>         [[
>             { magic = Magic "magic1"; content = "a" }
>             { magic = Magic "magic2"; content = "b" }
>         ]],
>         (),
>         Position ("", 26, 9, 1)
>     )
> )
> 
> ╭─[ 42.73ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: [{ magic = Magic "magic1"                                           │
> │    content = "a" }; { magic = Magic "magic2"                                 │
> │                       content = "b" }]                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## formatBlock                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline formatBlock output (block : Block) =
>     match output, block with
>     | output, { magic = Markdown; content = content } ->
>         let markdownComment =
>             match output with
>             | Spi | Spir -> "/// "
>             | Fs -> "/// "
>             | _ -> ""
>         content
>         |> SpiralSm.split "\n"
>         |> Array.map (SpiralSm.trim_end [[||]])
>         |> Array.filter (SpiralSm.ends_with " (test)" >> not)
>         |> Array.map (function
>             | "" -> markdownComment
>             | line -> System.Text.RegularExpressions.Regex.Replace (line, 
> "^\\s*", $"$&{markdownComment}")
>         )
>         |> SpiralSm.concat "\n"
>     | Fs, { magic = Fsharp; content = content } ->
>         let trimmedContent = content |> SpiralSm.trim
>         if trimmedContent |> SpiralSm.contains "//// test\n"
>             || trimmedContent |> SpiralSm.contains "//// ignore\n"
>         then ""
>         else
>             content
>             |> SpiralSm.split "\n"
>             |> Array.filter (SpiralSm.trim_start [[||]] >> SpiralSm.starts_with 
> "#r" >> not)
>             |> SpiralSm.concat "\n"
>     | (Spi | Spir), { magic = Spiral output'; content = content } when output' =
> output ->
>         let trimmedContent = content |> SpiralSm.trim
>         if trimmedContent |> SpiralSm.contains "//// test\n"
>             || trimmedContent |> SpiralSm.contains "//// ignore\n"
>         then ""
>         else content
>     | _ -> ""
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!markdown
> 
> 
> a
> 
>     b
> 
> c
> 
> 
> \#!markdown
> 
> 
> c
> 
> 
> \#!fsharp
> 
> 
> let a = 1"
> |> escapeCell
> |> run block
> |> function
>     | Success (block, _, _) -> formatBlock Fs block
>     | Failure (msg, _, _) -> failwith msg
> |> _assertEqual "/// a
> /// 
>     /// b
> /// 
> /// c"
> 
> ╭─[ 47.99ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "/// a                                                                       │
> │ ///                                                                          │
> │     /// b                                                                    │
> │ ///                                                                          │
> │ /// c"                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## formatBlocks                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline formatBlocks output blocks =
>     blocks
>     |> List.map (fun block ->
>         block, formatBlock output block
>     )
>     |> List.filter (snd >> (<>) "")
>     |> fun list ->
>         (list, (None, [[]]))
>         ||> List.foldBack (fun (block, content) (lastMagic, acc) ->
>             let lineBreak =
>                 if block.magic = Markdown && lastMagic <> Some Markdown && 
> lastMagic <> None
>                 then ""
>                 else "\n"
>             Some block.magic, $"{content}{lineBreak}" :: acc
>         )
>     |> snd
>     |> SpiralSm.concat "\n"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!markdown
> 
> 
> a
> 
> b
> 
> 
> \#!markdown
> 
> 
> c
> 
> 
> \#!fsharp
> 
> 
> let a = 1
> 
> \#!markdown
> 
> d (test)
> 
> \#!fsharp
> 
> //// test
> 
> let a = 2
> 
> \#!markdown
> 
> e
> 
> \#!fsharp
> 
> let a = 3"
> |> escapeCell
> |> run blocks
> |> function
>     | Success (blocks, _, _) -> formatBlocks Fs blocks
>     | Failure (msg, _, _) -> failwith msg
> |> _assertEqual "/// a
> /// 
> /// b
> 
> /// c
> let a = 1
> 
> /// e
> let a = 3
> "
> 
> ╭─[ 77.96ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "/// a                                                                       │
> │ ///                                                                          │
> │ /// b                                                                        │
> │                                                                              │
> │ /// c                                                                        │
> │ let a = 1                                                                    │
> │                                                                              │
> │ /// e                                                                        │
> │ let a = 3                                                                    │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## parse                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parse output input =
>     match run blocks input with
>     | Success (blocks, _, _) ->
>         let blocks =
>             blocks
>             |> List.filter (fun block ->
>                 block.magic |> kernelOutputs |> List.contains output || 
> block.magic = Markdown
>             )
> 
>         match blocks with
>         | { magic = Markdown; content = content } :: _
>             when output = Fs
>             && content |> SpiralSm.starts_with "# "
>             && content |> SpiralSm.ends_with ")"
>             ->
>             let inline indentBlock (block : Block) =
>                 { block with
>                     content =
>                         block.content
>                         |> SpiralSm.split "\n"
>                         |> Array.fold
>                             (fun (lines, isMultiline) line ->
>                                 let trimmedLine = line |> SpiralSm.trim
>                                 if trimmedLine = ""
>                                 then "" :: lines, isMultiline
>                                 else
>                                     let inline singleQuoteLine () =
>                                         trimmedLine |> Seq.sumBy ((=) '"' >> 
> System.Convert.ToInt32) = 1
>                                         && trimmedLine |> SpiralSm.contains 
> @"'""'" |> not
>                                         && trimmedLine |> SpiralSm.ends_with "{"
> |> not
>                                         && trimmedLine |> SpiralSm.ends_with 
> "{|" |> not
>                                         && trimmedLine |> SpiralSm.starts_with 
> "}" |> not
>                                         && trimmedLine |> SpiralSm.starts_with 
> "|}" |> not
> 
>                                     match isMultiline, trimmedLine |> 
> SpiralSm.split_string [[| $"{q}{q}{q}" |]] with
>                                     | false, [[| _; _ |]] ->
>                                         $"    {line}" :: lines, true
> 
>                                     | true, [[| _; _ |]] ->
>                                         line :: lines, false
> 
>                                     | false, _ when singleQuoteLine () ->
>                                         $"    {line}" :: lines, true
> 
>                                     | false, _ when line |> SpiralSm.starts_with
> "#" && block.magic = Fsharp ->
>                                         line :: lines, false
> 
>                                     | false, _ ->
>                                         $"    {line}" :: lines, false
> 
>                                     | true, _ when singleQuoteLine () && line |>
> SpiralSm.starts_with "    " ->
>                                         $"    {line}" :: lines, false
> 
>                                     | true, _ when singleQuoteLine () ->
>                                         line :: lines, false
> 
>                                     | true, _ ->
>                                         line :: lines, true
>                             )
>                             ([[]], false)
>                         |> fst
>                         |> List.rev
>                         |> SpiralSm.concat "\n"
>                 }
> 
>             let moduleName, namespaceName =
>                 System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 
> \((.*)\)$")
>                 |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value
> 
>             let moduleBlock =
>                 {
>                     magic = Fsharp
>                     content =
>                         $"#if !INTERACTIVE
> namespace {namespaceName}
> #endif
> 
> module {moduleName} ="
>                 }
> 
>             blocks
>             |> List.indexed
>             |> List.fold
>                 (fun blocks (index, block) ->
>                     match index with
>                     | 0 -> blocks
>                     | 1 -> indentBlock block :: moduleBlock :: blocks
>                     | _ -> indentBlock block :: blocks
>                 )
>                 [[]]
>             |> List.rev
>         | _ -> blocks
>         |> Result.Ok
>     | Failure (errorMsg, _, _) -> Result.Error errorMsg
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example1 =
>     $"""#!meta
> 
> {{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
> "fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}
> 
> \#!markdown
> 
> # TestModule (TestNamespace)
> 
> \#!fsharp
> 
> \#!import file.dib
> 
> \#!fsharp
> 
> \#r "nuget:Expecto"
> 
> \#!markdown
> 
> ## ParserLibrary
> 
> \#!fsharp
> 
> open System
> 
> \#!markdown
> 
> ## x (test)
> 
> \#!fsharp
> 
> //// ignore
> 
> let x = 1
> 
> \#!spiral
> 
> //// test
> 
> inl x = 1i32
> 
> \#!spiral
> 
> //// real
> 
> inl x = 2i32
> 
> \#!spiral
> 
> inl x = 3i32
> 
> \#!markdown
> 
> ### TextInput
> 
> \#!fsharp
> 
> let str1 = "abc
> def"
> 
> let str2 =
>     "abc\
> def"
> 
> let str3 =
>     $"1{{
>         1
>     }}1"
> 
> let str4 =
>     $"1{{({{|
>         a = 1
>     |}}).a}}1"
> 
> let str5 =
>     "abc \
>         def"
> 
> let x =
>     match '"' with
>     | '"' -> true
>     | _ -> false
> 
> let long1 = {q}{q}{q}a{q}{q}{q}
> 
> let long2 =
>     {q}{q}{q}
> a
> {q}{q}{q}
> 
> \#!fsharp
> 
> type Position =
>     {{
> #if INTERACTIVE
>         line : string
> #else
>         line : int
> #endif
>         column : int
>     }}"""
>     |> escapeCell
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Fs
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Fs)
> |> _assertEqual $"""#if !INTERACTIVE
> namespace TestNamespace
> #endif
> 
> module TestModule =
> 
>     /// ## ParserLibrary
>     open System
> 
>     /// ### TextInput
>     let str1 = "abc
> def"
> 
>     let str2 =
>         "abc\
> def"
> 
>     let str3 =
>         $"1{{
>             1
>         }}1"
> 
>     let str4 =
>         $"1{{({{|
>             a = 1
>         |}}).a}}1"
> 
>     let str5 =
>         "abc \
>             def"
> 
>     let x =
>         match '"' with
>         | '"' -> true
>         | _ -> false
> 
>     let long1 = {q}{q}{q}a{q}{q}{q}
> 
>     let long2 =
>         {q}{q}{q}
> a
> {q}{q}{q}
> 
>     type Position =
>         {{
> #if INTERACTIVE
>             line : string
> #else
>             line : int
> #endif
>             column : int
>         }}
> """
> 
> ╭─[ 186.09ms - stdout ]────────────────────────────────────────────────────────╮
> │ "#if !INTERACTIVE                                                            │
> │ namespace TestNamespace                                                      │
> │ #endif                                                                       │
> │                                                                              │
> │ module TestModule =                                                          │
> │                                                                              │
> │     /// ## ParserLibrary                                                     │
> │     open System                                                              │
> │                                                                              │
> │     /// ### TextInput                                                        │
> │     let str1 = "abc                                                          │
> │ def"                                                                         │
> │                                                                              │
> │     let str2 =                                                               │
> │         "abc\                                                                │
> │ def"                                                                         │
> │                                                                              │
> │     let str3 =                                                               │
> │         $"1{                                                                 │
> │             1                                                                │
> │         }1"                                                                  │
> │                                                                              │
> │     let str4 =                                                               │
> │         $"1{({|                                                              │
> │             a = 1                                                            │
> │         |}).a}1"                                                             │
> │                                                                              │
> │     let str5 =                                                               │
> │         "abc \                                                               │
> │             def"                                                             │
> │                                                                              │
> │     let x =                                                                  │
> │         match '"' with                                                       │
> │         | '"' -> true                                                        │
> │         | _ -> false                                                         │
> │                                                                              │
> │     let long1 = """a"""                                                      │
> │                                                                              │
> │     let long2 =                                                              │
> │         """                                                                  │
> │ a                                                                            │
> │ """                                                                          │
> │                                                                              │
> │     type Position =                                                          │
> │         {                                                                    │
> │ #if INTERACTIVE                                                              │
> │             line : string                                                    │
> │ #else                                                                        │
> │             line : int                                                       │
> │ #endif                                                                       │
> │             column : int                                                     │
> │         }                                                                    │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Md
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Md)
> |> _assertEqual "# TestModule (TestNamespace)
> 
> ## ParserLibrary
> 
> ### TextInput
> "
> 
> ╭─[ 170.68ms - stdout ]────────────────────────────────────────────────────────╮
> │ "# TestModule (TestNamespace)                                                │
> │                                                                              │
> │ ## ParserLibrary                                                             │
> │                                                                              │
> │ ### TextInput                                                                │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Spi
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Spi)
> |> _assertEqual "/// # TestModule (TestNamespace)
> 
> /// ## ParserLibrary
> inl x = 3i32
> 
> /// ### TextInput
> "
> 
> ╭─[ 171.07ms - stdout ]────────────────────────────────────────────────────────╮
> │ "/// # TestModule (TestNamespace)                                            │
> │                                                                              │
> │ /// ## ParserLibrary                                                         │
> │ inl x = 3i32                                                                 │
> │                                                                              │
> │ /// ### TextInput                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Spir
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Spir)
> |> _assertEqual "/// # TestModule (TestNamespace)
> 
> /// ## ParserLibrary
> inl x = 2i32
> 
> /// ### TextInput
> "
> 
> ╭─[ 165.05ms - stdout ]────────────────────────────────────────────────────────╮
> │ "/// # TestModule (TestNamespace)                                            │
> │                                                                              │
> │ /// ## ParserLibrary                                                         │
> │ inl x = 2i32                                                                 │
> │                                                                              │
> │ /// ### TextInput                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## parseDibCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parseDibCode output file = async {
>     trace Debug
>         (fun () -> "parseDibCode")
>         (fun () -> $"output: {output} / file: {file} / {_locals ()}")
>     let! input = file |> SpiralFileSystem.read_all_text_async
>     match parse output input with
>     | Result.Ok blocks -> return blocks |> formatBlocks output
>     | Result.Error msg -> return failwith msg
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## writeDibCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline writeDibCode output path = async {
>     trace Debug
>         (fun () -> "writeDibCode")
>         (fun () -> $"output: {output} / path: {path} / {_locals ()}")
>     let! result = parseDibCode output path
>     let pathDir = path |> System.IO.Path.GetDirectoryName
>     let fileNameWithoutExt =
>         match output, path |> System.IO.Path.GetFileNameWithoutExtension with
>         | Spir, fileNameWithoutExt -> $"{fileNameWithoutExt}_real"
>         | _, fileNameWithoutExt -> fileNameWithoutExt
>     let outputPath = pathDir </> $"{fileNameWithoutExt}.{output |> string |> 
> SpiralSm.to_lower}"
>     do! result |> SpiralFileSystem.write_all_text_async outputPath
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
>         File of file : string * Output
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | File _ -> nameof File
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 105.47ms - return value ]──────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir>                         │
> │                                                                              │
> │ FILE:                                                                        │
> │                                                                              │
> │     <file> <fs|md|spi|spir>                                                  │
> │                           File                                               │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let files =
>         argsMap.[[nameof Arguments.File]]
>         |> List.map (function
>             | Arguments.File (path, output) -> path, output
>         )
> 
>     files
>     |> List.map (fun (path, output) -> path |> writeDibCode output)
>     |> Async.Parallel
>     |> Async.Ignore
>     |> Async.runWithTimeout 30000
>     |> function
>         | Some () -> 0
>         | None -> 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 175.43ms - return value ]──────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 177.80ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:06 d #1 writeDibCode / output: Fs / path: DibParser.dib           │
> │ 00:00:06 d #2 parseDibCode / output: Fs / file: DibParser.dib           │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 44158 }
00:00:26 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:27 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb to html
00:00:27 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:27 v #7 !   validate(nb)
00:00:28 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:28 v #9 !   return _pygments_highlight(
00:00:29 v #10 ! [NbConvertApp] Writing 378794 bytes to c:\home\git\polyglot\apps\parser\DibParser.dib.html
00:00:29 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 862 }
00:00:29 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 862 }
00:00:29 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/DibParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/DibParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:29 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:29 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:29 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 45079 }
00:00:00 d #1 persistCodeProject / packages: [Argu; FParsec; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: DibParser / hash:  / code.Length: 10861
00:00:00 d #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  "publish "C:\home\git\polyglot\target/Builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime linux-x64"; options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DibParser" } }
00:00:00 v #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 v #3 >   Determining projects to restore...
00:00:01 v #4 >   Restored C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj (in 428 ms).
00:00:02 v #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj]
00:00:15 v #6 >   DibParser -> C:\home\git\polyglot\target\Builder\DibParser\bin\Release\net9.0\linux-x64\DibParser.dll
00:00:16 v #7 >   DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:16 d #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 680 }
00:00:16 d #9 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  "publish "C:\home\git\polyglot\target/Builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime win-x64"; options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DibParser" } }
00:00:17 v #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:17 v #11 >   Determining projects to restore...
00:00:18 v #12 >   Restored C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj (in 429 ms).
00:00:18 v #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj]
00:00:32 v #14 >   DibParser -> C:\home\git\polyglot\target\Builder\DibParser\bin\Release\net9.0\win-x64\DibParser.dll
00:00:33 v #15 >   DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:34 d #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 678 }
00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "JsonParser.dib"])) }
00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/parser/JsonParser.dib", "--output-path", "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/JsonParser.dib" --output-path "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # JsonParser (Polyglot)                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open Parser
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## JsonParser                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> (*
> // --------------------------------
> JSON spec from http://www.json.org/
> // --------------------------------
> 
> The JSON spec is available at [[json.org]](http://www.json.org/). I'll paraphase
> it here:
> 
> * A `value` can be a `string` or a `number` or a `bool` or `null` or an `object`
> or an `array`.
>   * These structures can be nested.
> * A `string` is a sequence of zero or more Unicode characters, wrapped in double
> quotes, using backslash escapes.
> * A `number` is very much like a C or Java number, except that the octal and 
> hexadecimal formats are not used.
> * A `boolean` is the literal `true` or `false`
> * A `null` is the literal `null`
> * An `object` is an unordered set of name/value pairs.
>   * An object begins with { (left brace) and ends with } (right brace).
>   * Each name is followed by : (colon) and the name/value pairs are separated by
> , (comma).
> * An `array` is an ordered collection of values.
>   * An array begins with [[ (left bracket) and ends with ]] (right bracket).
>   * Values are separated by , (comma).
> * Whitespace can be inserted between any pair of tokens.
> *)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let inline parserEqual (expected : ParseResult<'a>) (actual : ParseResult<'a * 
> Input>) =
>     match actual, expected with
>     | Success (_actual, _), Success _expected ->
>         printResult actual
>         _actual |> _assertEqual _expected
>     | Failure (l1, e1, p1), Failure (l2, e2, p2) when l1 = l2 && e1 = e2 && p1 =
> p2 ->
>         printResult actual
>     | _ ->
>         printfn $"Actual: {actual}"
>         printfn $"Expected: {expected}"
>         failwith "Parse failed"
>     actual
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### JValue                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type JValue =
>     | JString of string
>     | JNumber of float
>     | JBool   of bool
>     | JNull
>     | JObject of Map<string, JValue>
>     | JArray  of JValue list
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jValue, jValueRef = createParserForwardedToRef<JValue> ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jNull                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jNull =
>     pstring "null"
>     >>% JNull
>     <?> "null"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jValue "null"
> |> parserEqual (Success JNull)
> 
> ╭─[ 286.95ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNull, { lines = [                      │
> │ |&quot;null&quot;|]<br />                  position = { line = 0<br />       │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNull, { lines = [|&quot;null&quot;|]<br />     │
> │ position = { line = 0<br />               column = 4 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNull</code></span></summary><div><table><thead> │
> │ <tr></tr></thead><tbody><tr><td>IsJString</td><td><div                       │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;null&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ null                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 299.44ms - stdout ]────────────────────────────────────────────────────────╮
> │ JNull                                                                        │
> │ JNull                                                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNull "nulp"
> |> parserEqual (
>     Failure (
>         "null",
>         "Unexpected 'p'",
>         { currentLine = "nulp"; line = 0; column = 3 }
>     )
> )
> 
> ╭─[ 83.64ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;null&quot;, &quot;Unexpected      │
> │ &#39;p&#39;&quot;, { currentLine = &quot;nulp&quot;<br />                    │
> │ line = 0<br />                                     column = 3                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;null&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;p&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;nulp&quot;<br />  line = 0<br />  column = 3             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;nulp&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 89.08ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:3 Error parsing null                                              │
> │ nulp                                                                         │
> │    ^Unexpected 'p'                                                           │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jBool                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jBool =
>     let jtrue =
>         pstring "true"
>         >>% JBool true
>     let jfalse =
>         pstring "false"
>         >>% JBool false
> 
>     jtrue <|> jfalse
>     <?> "bool"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "true"
> |> parserEqual (Success (JBool true))
> 
> ╭─[ 63.51ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JBool true, { lines = [                 │
> │ |&quot;true&quot;|]<br />                       position = { line = 0<br />  │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JBool true, { lines = [|&quot;true&quot;|]<br   │
> │ />  position = { line = 0<br />               column = 4 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JBool                                            │
> │ true</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><div class="dni-plaintext"><pre>true                         │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;true&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ true                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 74.64ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JBool true                                                                   │
> │ JBool true                                                                   │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "false"
> |> parserEqual (Success (JBool false))
> 
> ╭─[ 76.88ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JBool false, { lines = [                │
> │ |&quot;false&quot;|]<br />                        position = { line = 0<br   │
> │ />                                     column = 5 }                          │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JBool false, { lines = [|&quot;false&quot;|]<br │
> │ />  position = { line = 0<br />               column = 5 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JBool                                            │
> │ false</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>false                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;false&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 5 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ false                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 5                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>5                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 85.66ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JBool false                                                                  │
> │ JBool false                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "truX"
> |> parserEqual (
>     Failure (
>         "bool",
>         "Unexpected 't'",
>         { currentLine = "truX"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 44.95ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;bool&quot;, &quot;Unexpected      │
> │ &#39;t&#39;&quot;, { currentLine = &quot;truX&quot;<br />                    │
> │ line = 0<br />                                     column = 0                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;bool&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;t&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;truX&quot;<br />  line = 0<br />  column = 0             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;truX&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 53.14ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing bool                                              │
> │ truX                                                                         │
> │ ^Unexpected 't'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jUnescapedChar                                                           │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jUnescapedChar =
>     satisfy (fun ch -> ch <> '\\' && ch <> '\"') "char"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnescapedChar "a"
> |> parserEqual (Success 'a')
> 
> ╭─[ 101.17ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;a&#39;, { lines = [                │
> │ |&quot;a&quot;|]<br />                position = { line = 0<br />            │
> │ column = 1 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(a, { lines = [|&quot;a&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 1 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;a&#39;                   │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;a&quot;|]<br />  position = { line = 0<br />               column = 1 │
> │ }                                                                            │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ a                            │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 1                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 113.18ms - stdout ]────────────────────────────────────────────────────────╮
> │ 'a'                                                                          │
> │ 'a'                                                                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnescapedChar "\\"
> |> parserEqual (
>     Failure (
>         "char",
>         "Unexpected '\\'",
>         { currentLine = "\\"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 57.52ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;char&quot;, &quot;Unexpected      │
> │ &#39;\&#39;&quot;, { currentLine = &quot;\&quot;<br />                       │
> │ line = 0<br />                                     column = 0                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;char&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;\&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;\&quot;<br />  line = 0<br />  column = 0                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;\&quot;            │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 63.07ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing char                                              │
> │ \                                                                            │
> │ ^Unexpected '\'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jEscapedChar                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jEscapedChar =
>     [[
>         ("\\\"",'\"')
>         ("\\\\",'\\')
>         ("\\/",'/')
>         ("\\b",'\b')
>         ("\\f",'\f')
>         ("\\n",'\n')
>         ("\\r",'\r')
>         ("\\t",'\t')
>     ]]
>     |> List.map (fun (toMatch, result) ->
>         pstring toMatch >>% result
>     )
>     |> choice
>     <?> "escaped char"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "\\\\"
> |> parserEqual (Success '\\')
> 
> ╭─[ 62.08ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │
> │ |&quot;\\&quot;|]<br />                 position = { line = 0<br />          │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br />  position │
> │ = { line = 0<br />               column = 2 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\\&#39;                  │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\\&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \\                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 72.11ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\\'                                                                         │
> │ '\\'                                                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "\\t"
> |> parserEqual (Success '\t')
> 
> ╭─[ 47.52ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\009&#39;, { lines = [             │
> │ |&quot;\t&quot;|]<br />                   position = { line = 0<br />        │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(	, { lines = [|&quot;\t&quot;|]<br />  position = │
> │ { line = 0<br />               column = 2 }                                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\009&#39;                │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\t&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \t                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 54.70ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\009'                                                                       │
> │ '\009'                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar @"\\"
> |> parserEqual (Success '\\')
> 
> ╭─[ 47.41ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │
> │ |&quot;\\&quot;|]<br />                 position = { line = 0<br />          │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br />  position │
> │ = { line = 0<br />               column = 2 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\\&#39;                  │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\\&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \\                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 56.60ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\\'                                                                         │
> │ '\\'                                                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar @"\n"
> |> parserEqual (Success '\n')
> 
> ╭─[ 67.99ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\010&#39;, { lines = [|&quot;<br   │
> │ />&quot;|]<br />                   position = { line = 0<br />               │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(<br />, { lines = [|&quot;<br />&quot;|]<br />  │
> │ position = { line = 0<br />               column = 2 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\010&#39;                │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;<br />&quot;|]<br />  position = { line = 0<br />                     │
> │ column = 2 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ <br />                       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 75.84ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\010'                                                                       │
> │ '\010'                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "a"
> |> parserEqual (
>     Failure (
>         "escaped char",
>         "Unexpected 'a'",
>         { currentLine = "a"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 51.97ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;escaped char&quot;,               │
> │ &quot;Unexpected &#39;a&#39;&quot;, { currentLine = &quot;a&quot;<br />      │
> │ line = 0<br />                                             column = 0        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;escaped char&quot;      │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;a&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;a&quot;<br />  line = 0<br />  column = 0                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;a&quot;            │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 61.16ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing escaped char                                      │
> │ a                                                                            │
> │ ^Unexpected 'a'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jUnicodeChar                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jUnicodeChar =
>     let backslash = pchar '\\'
>     let uChar = pchar 'u'
>     let hexdigit = anyOf ([[ '0' .. '9' ]] @ [[ 'A' .. 'F' ]] @ [[ 'a' .. 'f' 
> ]])
>     let fourHexDigits = hexdigit .>>. hexdigit .>>. hexdigit .>>. hexdigit
> 
>     let inline convertToChar (((h1, h2), h3), h4) =
>         let str = $"%c{h1}%c{h2}%c{h3}%c{h4}"
>         Int32.Parse (str, Globalization.NumberStyles.HexNumber) |> char
> 
>     backslash >>. uChar >>. fourHexDigits
>     |>> convertToChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnicodeChar "\\u263A"
> |> parserEqual (Success '☺')
> 
> ╭─[ 62.23ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;☺&#39;, { lines = [                │
> │ |&quot;\u263A&quot;|]<br />                position = { line = 0<br />       │
> │ column = 6 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(☺, { lines = [|&quot;\u263A&quot;|]<br />       │
> │ position = { line = 0<br />               column = 6 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;☺&#39;                   │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\u263A&quot;|]<br />  position = { line = 0<br />                     │
> │ column = 6 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \u263A                       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 6                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>6                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 69.29ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '☺'                                                                          │
> │ '☺'                                                                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jString                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let quotedString =
>     let quote = pchar '\"' <?> "quote"
>     let jchar = jUnescapedChar <|> jEscapedChar <|> jUnicodeChar
> 
>     quote >>. manyChars jchar .>> quote
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jString =
>     quotedString
>     |>> JString
>     <?> "quoted string"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"\""
> |> parserEqual (Success (JString ""))
> 
> ╭─[ 67.27ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;&quot;, { lines = [       │
> │ |&quot;&quot;&quot;&quot;|]<br />                       position = { line =  │
> │ 0<br />                                    column = 2 }                      │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;&quot;, { lines = [               │
> │ |&quot;&quot;&quot;&quot;|]<br />  position = { line = 0<br />               │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;&quot;</code></span></summary><div><table><thead><tr></tr></thead><tbo │
> │ dy><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;&quot;         │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><su...span                           │
> │ class="dni-code-hint"><code>{ lines = [|&quot;&quot;&quot;&quot;|]<br />     │
> │ position = { line = 0<br />               column = 2 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;&quot;                 │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 78.10ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString ""                                                                   │
> │ JString ""                                                                   │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"a\""
> |> parserEqual (Success (JString "a"))
> 
> ╭─[ 51.75ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;a&quot;, { lines = [      │
> │ |&quot;&quot;a&quot;&quot;|]<br />                        position = { line  │
> │ = 0<br />                                     column = 3 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;a&quot;, { lines = [              │
> │ |&quot;&quot;a&quot;&quot;|]<br />  position = { line = 0<br />              │
> │ column = 3 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;a&quot;</code></span></summary><div><table><thead><tr></tr></thead><tb │
> │ ody><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;a&quot;       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treev...an class="dni-code-hint"><code>{ lines │
> │ = [|&quot;&quot;a&quot;&quot;|]<br />  position = { line = 0<br />           │
> │ column = 3 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;a&quot;                │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 3                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 61.87ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "a"                                                                  │
> │ JString "a"                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\""
> |> parserEqual (Success (JString "ab"))
> 
> ╭─[ 53.40ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab&quot;, { lines = [     │
> │ |&quot;&quot;ab&quot;&quot;|]<br />                         position = {     │
> │ line = 0<br />                                      column = 4 }             │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab&quot;, { lines = [             │
> │ |&quot;&quot;ab&quot;&quot;|]<br />  position = { line = 0<br />             │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;ab&quot;</code></span></summary><div><table><thead><tr></tr></thead><t │
> │ body><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;ab&quot;     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="d... class="dni-code-hint"><code>{ lines = [       │
> │ |&quot;&quot;ab&quot;&quot;|]<br />  position = { line = 0<br />             │
> │ column = 4 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab&quot;               │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 62.26ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab"                                                                 │
> │ JString "ab"                                                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\\tde\""
> |> parserEqual (Success (JString "ab\tde"))
> 
> ╭─[ 59.34ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab	de&quot;, { lines = [    │
> │ |&quot;&quot;ab\tde&quot;&quot;|]<br />                            position  │
> │ = { line = 0<br />                                         column = 8 }      │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab	de&quot;, { lines = [            │
> │ |&quot;&quot;ab\tde&quot;&quot;|]<br />  position = { line = 0<br />         │
> │ column = 8 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString &quot;ab	                                  │
> │ de&quot;</code></span></summary><div><table><thead><tr></tr></thead><tbody>< │
> │ tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;ab	de&quot;          │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2...dni-code-hint"><code>{ lines = [|&quot;&quot;ab\tde&quot;&quot;|]<br />  │
> │ position = { line = 0<br />               column = 8 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab\tde&quot;           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 8                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>8                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 65.55ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab	de"                                                                │
> │ JString "ab	de"                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\\u263Ade\""
> |> parserEqual (Success (JString "ab☺de"))
> 
> ╭─[ 54.48ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab☺de&quot;, { lines = [  │
> │ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br />                                  │
> │ position = { line = 0<br />                                         column = │
> │ 12 }                                                                         │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab☺de&quot;, { lines = [          │
> │ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br />  position = { line = 0<br />     │
> │ column = 12 }                                                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;ab☺de&quot;</code></span></summary><div><table><thead><tr></tr></thead │
> │ ><tbody><tr><td>Item</td><td><div                                            │
> │ class="dni-plaintext"><pre>&quot;ab☺de&quot;                                 │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr...nt"><c │
> │ ode>{ lines = [|&quot;&quot;ab\u263Ade&quot;&quot;|]<br />  position = {     │
> │ line = 0<br />               column = 12 }                                   │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab\u263Ade&quot;       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 12                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>12                                                │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 62.51ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab☺de"                                                              │
> │ JString "ab☺de"                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jNumber                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jNumber =
>     let optSign = opt (pchar '-')
> 
>     let zero = pstring "0"
> 
>     let digitOneNine =
>         satisfy (fun ch -> Char.IsDigit ch && ch <> '0') "1-9"
> 
>     let digit =
>         satisfy Char.IsDigit "digit"
> 
>     let point = pchar '.'
> 
>     let e = pchar 'e' <|> pchar 'E'
> 
>     let optPlusMinus = opt (pchar '-' <|> pchar '+')
> 
>     let nonZeroInt =
>         digitOneNine .>>. manyChars digit
>         |>> fun (first, rest) -> string first + rest
> 
>     let intPart = zero <|> nonZeroInt
> 
>     let fractionPart = point >>. manyChars1 digit
> 
>     let exponentPart = e >>. optPlusMinus .>>. manyChars1 digit
> 
>     let inline (|>?) opt f =
>         match opt with
>         | None -> ""
>         | Some x -> f x
> 
>     let inline convertToJNumber (((optSign, intPart), fractionPart), expPart) =
>         let signStr =
>             optSign
>             |>? string
> 
>         let fractionPartStr =
>             fractionPart
>             |>? (fun digits -> "." + digits)
> 
>         let expPartStr =
>             expPart
>             |>? fun (optSign, digits) ->
>                 let sign = optSign |>? string
>                 "e" + sign + digits
> 
>         (signStr + intPart + fractionPartStr + expPartStr)
>         |> float
>         |> JNumber
> 
>     optSign .>>. intPart .>>. opt fractionPart .>>. opt exponentPart
>     |>> convertToJNumber
>     <?> "number"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "123"
> |> parserEqual (Success (JNumber 123.0))
> 
> ╭─[ 64.84ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │
> │ |&quot;123&quot;|]<br />                          position = { line = 0<br   │
> │ />                                       column = 3 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.0, { lines = [|&quot;123&quot;|]<br │
> │ />  position = { line = 0<br />               column = 3 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.0                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123&quot;|]<br />  position =  │
> │ { line = 0<br />               column = 3 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123                          │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 3                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 70.64ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.0                                                                │
> │ JNumber 123.0                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "-123"
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 57.99ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123&quot;|]<br />                           position = { line = 0<br │
> │ />                                        column = 4 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123&quot;|]<br />  position = { line = 0<br />               column  │
> │ = 4 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 67.87ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "123.4"
> |> parserEqual (Success (JNumber 123.4))
> 
> ╭─[ 61.44ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │
> │ |&quot;123.4&quot;|]<br />                          position = { line = 0<br │
> │ />                                       column = 5 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │
> │ |&quot;123.4&quot;|]<br />  position = { line = 0<br />               column │
> │ = 5 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.4</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.4                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 5 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 5                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>5                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 67.58ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.4                                                                │
> │ JNumber 123.4                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "-123."
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 51.84ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123.&quot;|]<br />                           position = { line =     │
> │ 0<br />                                        column = 4 }                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123.&quot;|]<br />  position = { line = 0<br />               column │
> │ = 4 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123.&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 4 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123.                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 60.24ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "00.1"
> |> parserEqual (Success (JNumber 0.0))
> 
> ╭─[ 54.06ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 0.0, { lines = [                │
> │ |&quot;00.1&quot;|]<br />                        position = { line = 0<br /> │
> │ column = 1 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 0.0, { lines = [|&quot;00.1&quot;|]<br  │
> │ />  position = { line = 0<br />               column = 1 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 0.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>0.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;00.1&quot;|]<br />  position = │
> │ { line = 0<br />               column = 1 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 00.1                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 1                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 62.18ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 0.0                                                                  │
> │ JNumber 0.0                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let jNumber_ = jNumber .>> spaces1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123"
> |> parserEqual (Success (JNumber 123.0))
> 
> ╭─[ 49.44ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │
> │ |&quot;123&quot;|]<br />                          position = { line = 1<br   │
> │ />                                       column = 0 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.0, { lines = [|&quot;123&quot;|]<br │
> │ />  position = { line = 1<br />               column = 0 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.0                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123&quot;|]<br />  position =  │
> │ { line = 1<br />               column = 0 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123                          │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 55.99ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.0                                                                │
> │ JNumber 123.0                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "-123"
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 58.19ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123&quot;|]<br />                           position = { line = 1<br │
> │ />                                        column = 0 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123&quot;|]<br />  position = { line = 1<br />               column  │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123&quot;|]<br />  position = │
> │ { line = 1<br />               column = 0 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 68.05ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "-123."
> |> parserEqual (
>     Failure (
>         "number andThen many1 whitespace",
>         "Unexpected '.'",
>         { currentLine = "-123."; line = 0; column = 4 }
>     )
> )
> 
> ╭─[ 48.23ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure<br />  (&quot;number andThen many1       │
> │ whitespace&quot;, &quot;Unexpected &#39;.&#39;&quot;, { currentLine =        │
> │ &quot;-123.&quot;<br />                                                      │
> │ line = 0<br />                                                               │
> │ column = 4                                                                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;number andThen many1    │
> │ whitespace&quot;                                                             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;.&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;-123.&quot;<br />  line = 0<br />  column = 4            │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;-123.&quot;        │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 53.16ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:4 Error parsing number andThen many1 whitespace                   │
> │ -123.                                                                        │
> │     ^Unexpected '.'                                                          │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4"
> |> parserEqual (Success (JNumber 123.4))
> 
> ╭─[ 50.63ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │
> │ |&quot;123.4&quot;|]<br />                          position = { line = 1<br │
> │ />                                       column = 0 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │
> │ |&quot;123.4&quot;|]<br />  position = { line = 1<br />               column │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.4</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.4                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4&quot;|]<br />  position  │
> │ = { line = 1<br />               column = 0 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 58.25ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.4                                                                │
> │ JNumber 123.4                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "00.4"
> |> parserEqual (
>     Failure (
>         "number andThen many1 whitespace",
>         "Unexpected '0'",
>         { currentLine = "00.4"; line = 0; column = 1 }
>     )
> )
> 
> ╭─[ 43.74ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure<br />  (&quot;number andThen many1       │
> │ whitespace&quot;, &quot;Unexpected &#39;0&#39;&quot;, { currentLine =        │
> │ &quot;00.4&quot;<br />                                                       │
> │ line = 0<br />                                                               │
> │ column = 1                                                                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;number andThen many1    │
> │ whitespace&quot;                                                             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;0&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;00.4&quot;<br />  line = 0<br />  column = 1             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;00.4&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 48.03ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:1 Error parsing number andThen many1 whitespace                   │
> │ 00.4                                                                         │
> │  ^Unexpected '0'                                                             │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123e4"
> |> parserEqual (Success (JNumber 1230000.0))
> 
> ╭─[ 52.88ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 1230000.0, { lines = [          │
> │ |&quot;123e4&quot;|]<br />                              position = { line =  │
> │ 1<br />                                           column = 0 }               │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 1230000.0, { lines = [                  │
> │ |&quot;123e4&quot;|]<br />  position = { line = 1<br />               column │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1230000.0</code></span></summary><div><table><thead><tr></tr></thead><tbody> │
> │ <tr><td>Item</td><td><div class="dni-plaintext"><pre>1230000.0               │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123e4&quot;|]<br />  position  │
> │ = { line = 1<br />               column = 0 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123e4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 59.43ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 1230000.0                                                            │
> │ JNumber 1230000.0                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4e5"
> |> parserEqual (Success (JNumber 12340000.0))
> 
> ╭─[ 45.60ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 12340000.0, { lines = [         │
> │ |&quot;123.4e5&quot;|]<br />                               position = { line │
> │ = 1<br />                                            column = 0 }            │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 12340000.0, { lines = [                 │
> │ |&quot;123.4e5&quot;|]<br />  position = { line = 1<br />                    │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 12340000.0</code></span></summary><div><table><thead><tr></tr></thead><tbody │
> │ ><tr><td>Item</td><td><div class="dni-plaintext"><pre>12340000.0             │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4e5&quot;|]<br />          │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4e5                      │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 52.53ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 12340000.0                                                           │
> │ JNumber 12340000.0                                                           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4e-5"
> |> parserEqual (Success (JNumber 0.001234))
> 
> ╭─[ 48.58ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 0.001234, { lines = [           │
> │ |&quot;123.4e-5&quot;|]<br />                             position = { line  │
> │ = 1<br />                                          column = 0 }              │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 0.001234, { lines = [                   │
> │ |&quot;123.4e-5&quot;|]<br />  position = { line = 1<br />                   │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 0.001234</code></span></summary><div><table><thead><tr></tr></thead><tbody>< │
> │ tr><td>Item</td><td><div class="dni-plaintext"><pre>0.001234                 │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4e-5&quot;|]<br />         │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4e-5                     │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 54.36ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 0.001234                                                             │
> │ JNumber 0.001234                                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jArray                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jArray =
>     let left = pchar '[[' .>> spaces
>     let right = pchar ']]' .>> spaces
>     let comma = pchar ',' .>> spaces
>     let value = jValue .>> spaces
> 
>     let values = sepBy value comma
> 
>     between left values right
>     |>> JArray
>     <?> "array"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>             jArray
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jArray "[[ 1, 2 ]]"
> |> parserEqual (Success (JArray [[ JNumber 1.0; JNumber 2.0 ]]))
> 
> ╭─[ 129.56ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JArray [JNumber 1.0; JNumber 2.0], {    │
> │ lines = [|&quot;[ 1, 2 ]&quot;|]<br />                                       │
> │ position = { line = 1<br />                                                  │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JArray [JNumber 1.0; JNumber 2.0], { lines = [  │
> │ |&quot;[ 1, 2 ]&quot;|]<br />  position = { line = 1<br />                   │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JArray [JNumber 1.0; JNumber                     │
> │ 2.0]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><table><thead><tr><th><i>index</i></th><th>value</th></tr></ │
> │ thead><tbody><tr><td>0</td><td><details class="dni-treeview"><summary><span  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>1.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td>...ummary><span                │
> │ class="dni-code-hint"><code>{ lines = [|&quot;[ 1, 2 ]&quot;|]<br />         │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ [ 1, 2 ]                     │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 136.74ms - stdout ]────────────────────────────────────────────────────────╮
> │ JArray [JNumber 1.0; JNumber 2.0]                                            │
> │ JArray [JNumber 1.0; JNumber 2.0]                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jArray "[[ 1, 2, ]]"
> |> parserEqual (
>     Failure (
>         "array",
>         "Unexpected ','",
>         { currentLine = "[[ 1, 2, ]]"; line = 0; column = 6 }
>     )
> )
> 
> ╭─[ 57.46ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;array&quot;, &quot;Unexpected     │
> │ &#39;,&#39;&quot;, { currentLine = &quot;[ 1, 2, ]&quot;<br />               │
> │ line = 0<br />                                      column = 6               │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;array&quot;             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;,&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;[ 1, 2, ]&quot;<br />  line = 0<br />  column = 6        │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;[ 1, 2, ]&quot;    │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>6                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 61.89ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:6 Error parsing array                                             │
> │ [ 1, 2, ]                                                                    │
> │       ^Unexpected ','                                                        │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jObject                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jObject =
>     let left = spaces >>. pchar '{' .>> spaces
>     let right = pchar '}' .>> spaces
>     let colon = pchar ':' .>> spaces
>     let comma = pchar ',' .>> spaces
>     let key = quotedString .>> spaces
>     let value = jValue .>> spaces
> 
>     let keyValue = (key .>> colon) .>>. value
>     let keyValues = sepBy keyValue comma
> 
>     between left keyValues right
>     |>> Map.ofList
>     |>> JObject
>     <?> "object"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>             jArray
>             jObject
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jObject """{ "a":1, "b"  :  2 }"""
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "a", JNumber 1.0
>                 "b", JNumber 2.0
>             ]]
>         )
>     )
> )
> 
> ╭─[ 137.75ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject (map [(&quot;a&quot;,    │
> │ JNumber 1.0); (&quot;b&quot;, JNumber 2.0)]),<br />   { lines = [|&quot;{    │
> │ &quot;a&quot;:1, &quot;b&quot;  :  2 }&quot;|]<br />     position = { line = │
> │ 1<br />                  column = 0 }                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JObject (map [(&quot;a&quot;, JNumber 1.0);     │
> │ (&quot;b&quot;, JNumber 2.0)]), { lines = [|&quot;{ &quot;a&quot;:1,         │
> │ &quot;b&quot;  :  2 }&quot;|]<br />  position = { line = 1<br />             │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JObject (map [(&quot;a&quot;, JNumber 1.0);      │
> │ (&quot;b&quot;, JNumber                                                      │
> │ 2.0)])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><table><thead><tr><th><i>key</i></th><th>value</th></tr></ │
> │ thead><tbody><tr><td><div class="dni-plaintext"><pre>&quot;a&quot;           │
> │ </pre></div></td><td><details class="dni-treeview"><summary><span            │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>1.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</...ot;a&quot;:1, &quot;b&quot;  :   │
> │ 2 }&quot;|]<br />  position = { line = 1<br />               column = 0 }    │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ { &quot;a&quot;:1,           │
> │ &quot;b&quot;  :  2 }                                                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 145.34ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)])                       │
> │ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)])                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jObject """{ "a":1, "b"  :  2, }"""
> |> parserEqual (
>     Failure (
>         "object",
>         "Unexpected ','",
>         { currentLine = """{ "a":1, "b"  :  2, }"""; line = 0; column = 18 }
>     )
> )
> 
> ╭─[ 64.22ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;object&quot;, &quot;Unexpected    │
> │ &#39;,&#39;&quot;, { currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  : │
> │ 2, }&quot;<br />                                       line = 0<br />        │
> │ column = 18                                                                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;object&quot;            │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;,&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  :  2, }&quot;<br />    │
> │ line = 0<br />  column = 18                                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;{ &quot;a&quot;:1, │
> │ &quot;b&quot;  :  2, }&quot;                                                 │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>18                                                │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 70.95ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:18 Error parsing object                                           │
> │ { "a":1, "b"  :  2, }                                                        │
> │                   ^Unexpected ','                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jValue                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example1 = """{
>     "name" : "Scott",
>     "isMale" : true,
>     "bday" : {"year":2001, "month":12, "day":25 },
>     "favouriteColors" : [["blue", "green"]],
>     "emptyArray" : [[]],
>     "emptyObject" : {}
> }"""
> run jValue example1
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "name", JString "Scott"
>                 "isMale", JBool true
>                 "bday", JObject (
>                     Map.ofList [[
>                         "year", JNumber 2001.0
>                         "month", JNumber 12.0
>                         "day", JNumber 25.0
>                     ]]
>                 )
>                 "favouriteColors", JArray [[ JString "blue"; JString "green" ]]
>                 "emptyArray", JArray [[]]
>                 "emptyObject", JObject Map.empty
>             ]]
>         )
>     )
> )
> 
> ╭─[ 236.08ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;bday&quot;,<br />          JObject<br />            (map<br />       │
> │ [(&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />   │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArray [     │
> │ ]);<br />         (&quot;emptyObject&quot;, JObject (map []));<br />         │
> │ (&quot;favouriteColors&quot;,                                                │
> │ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>(JObject<br />  (map<br />     [                 │
> │ (&quot;bday&quot;,<br />       JObject<br />         (map<br />            [ │
> │ (&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />    │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArray [     │
> │ ]);<br />      (&quot;emptyObject&quot;, JObject (map []));<br />            │
> │ (&quot;favouriteColors&quot;, JArray [JString &quot;blue&quot;; JString      │
> │ &quot;gr...</code></span></summary><div><table><thead><tr></tr></thead><tbod │
> │ y><tr><td>Item1</td><td><details class="dni-treeview"><summary><span         │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;bday&quot;,<br />       JObject<br />         (map<br />            [ │
> │ (&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />    │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArra...,,   │
> │ &quot;isMale&quot; : true,,     &quot;bday&quot; : {&quot;year&quot;:2001,   │
> │ &quot;month&quot;:12, &quot;day&quot;:25 },,     &quot;favouriteColors&quot; │
> │ : [&quot;blue&quot;, &quot;green&quot;],,     &quot;emptyArray&quot; : [],,  │
> │ &quot;emptyObject&quot; : {}, }                                              │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 8<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>8                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 243.70ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("bday",                                                               │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("day", JNumber 25.0); ("month", JNumber 12.0);                 │
> │              ("year", JNumber 2001.0)])); ("emptyArray", JArray []);         │
> │       ("emptyObject", JObject (map []));                                     │
> │       ("favouriteColors", JArray [JString "blue"; JString "green"]);         │
> │       ("isMale", JBool true); ("name", JString "Scott")])                    │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("bday", JObject (map [("day", JNumber 25.0); ("month", JNumber 12.0); │
> │ ("year", JNumber 2001.0)]));                                                 │
> │       ("emptyArray", JArray []); ("emptyObject", JObject (map []));          │
> │       ("favouriteColors", JArray [JString "blue"; JString "green"]);         │
> │ ("isMale", JBool true); ("name", JString "Scott")])                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example2 = """{"widget": {
>     "debug": "on",
>     "window": {
>         "title": "Sample Konfabulator Widget",
>         "name": "main_window",
>         "width": 500,
>         "height": 500
>     },
>     "image": {
>         "src": "Images/Sun.png",
>         "name": "sun1",
>         "hOffset": 250,
>         "vOffset": 250,
>         "alignment": "center"
>     },
>     "text": {
>         "data": "Click Here",
>         "size": 36,
>         "style": "bold",
>         "name": "text1",
>         "hOffset": 250,
>         "vOffset": 100,
>         "alignment": "center",
>         "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
>     }
> }}"""
> 
> run jValue example2
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "widget", JObject (
>                     Map.ofList [[
>                         "debug", JString "on"
>                         "window", JObject (
>                             Map.ofList [[
>                                 "title", JString "Sample Konfabulator Widget"
>                                 "name", JString "main_window"
>                                 "width", JNumber 500.0
>                                 "height", JNumber 500.0
>                             ]]
>                         )
>                         "image", JObject (
>                             Map.ofList [[
>                                 "src", JString "Images/Sun.png"
>                                 "name", JString "sun1"
>                                 "hOffset", JNumber 250.0
>                                 "vOffset", JNumber 250.0
>                                 "alignment", JString "center"
>                             ]]
>                         )
>                         "text", JObject (
>                             Map.ofList [[
>                                 "data", JString "Click Here"
>                                 "size", JNumber 36.0
>                                 "style", JString "bold"
>                                 "name", JString "text1"
>                                 "hOffset", JNumber 250.0
>                                 "vOffset", JNumber 100.0
>                                 "alignment", JString "center"
>                                 "onMouseUp", JString "sun1.opacity = 
> (sun1.opacity / 100) * 90;"
>                             ]]
>                         )
>                     ]]
>                 )
>             ]]
>         )
>     )
> )
> 
> ╭─[ 487.31ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;widget&quot;,<br />          JObject<br />            (map<br />     │
> │ [(&quot;debug&quot;, JString &quot;on&quot;);<br />                          │
> │ (&quot;image&quot;,<br />                 JObject<br />                      │
> │ (map<br />                      [(&quot;alignment&quot;, JString             │
> │ &quot;center&quot;);<br />                                                   │
> │ (&quot;hOffset&quot;...</code></span></summary><div><table><thead><tr></tr>< │
> │ /thead><tbody><tr><td>Item</td><td><details                                  │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>(JObject<br  │
> │ />  (map<br />     [(&quot;widget&quot;,<br />       JObject<br />           │
> │ (map<br />            [(&quot;debug&quot;, JString &quot;on&quot;);<br />    │
> │ (&quot;image&quot;,<br />              JObject<br />                (map<br  │
> │ />                   [(&quot;alignment&quot;, JString &quot;center&quot;);   │
> │ (&quot;hOffset&quot;, JNumber 250.0);<br />                                  │
> │ (&quot;name&quot;, JString                                                   │
> │ &quot;sun1&quot;...</code></span></summary><div><table><thead><tr></tr></the │
> │ ad><tbody><tr><td>Item1</td><td><details class="dni-treeview"><summary><span │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;widget&quot;,<br />       JObject<br />         (map<br />            │
> │ [(&quot;debug&quot;, JString &quot;on&quot;);<br />                          │
> │ (&quot;image&quot;,<br />              JObject<br />                (...t;,, │
> │ &quot;name&quot;: &quot;text1&quot;,,         &quot;hOffset&quot;: 250,,     │
> │ &quot;vOffset&quot;: 100,,         &quot;alignment&quot;:                    │
> │ &quot;center&quot;,,         &quot;onMouseUp&quot;: &quot;sun1.opacity =     │
> │ (sun1.opacity / 100) * 90;&quot;,     }, }}                                  │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 26<br />  column = 0                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>26                              │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 493.84ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("widget",                                                             │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("debug", JString "on");                                        │
> │              ("image",                                                       │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("hOffset", JNumber     │
> │ 250.0);                                                                      │
> │                     ("name", JString "sun1"); ("src", JString                │
> │ "Images/Sun.png");                                                           │
> │                     ("vOffset", JNumber 250.0)]));                           │
> │              ("text",                                                        │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center");                         │
> │                     ("data", JString "Click Here"); ("hOffset", JNumber      │
> │ 250.0);                                                                      │
> │                     ("name", JString "text1");                               │
> │                     ("onMouseUp",                                            │
> │                      JString "sun1.opacity = (sun1.opacity / 100) * 90;");   │
> │                     ("size", JNumber 36.0); ("style", JString "bold");       │
> │                     ("vOffset", JNumber 100.0)]));                           │
> │              ("window",                                                      │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("height", JNumber 500.0); ("name", JString              │
> │ "main_window");                                                              │
> │                     ("title", JString "Sample Konfabulator Widget");         │
> │                     ("width", JNumber 500.0)]))]))])                         │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("widget",                                                             │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("debug", JString "on");                                        │
> │              ("image",                                                       │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("hOffset", JNumber     │
> │ 250.0); ("name", JString "sun1");                                            │
> │                     ("src", JString "Images/Sun.png"); ("vOffset", JNumber   │
> │ 250.0)]));                                                                   │
> │              ("text",                                                        │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("data", JString "Click │
> │ Here"); ("hOffset", JNumber 250.0);                                          │
> │                     ("name", JString "text1"); ("onMouseUp", JString         │
> │ "sun1.opacity = (sun1.opacity / 100) * 90;");                                │
> │                     ("size", JNumber 36.0); ("style", JString "bold");       │
> │ ("vOffset", JNumber 100.0)]));                                               │
> │              ("window",                                                      │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("height", JNumber 500.0); ("name", JString              │
> │ "main_window");                                                              │
> │                     ("title", JString "Sample Konfabulator Widget");         │
> │ ("width", JNumber 500.0)]))]))])                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example3 = """{
>   "string": "Hello, \"World\"!",
>   "escapedString": "This string contains \\/\\\\\\b\\f\\n\\r\\t\\\"\\'",
>   "number": 42,
>   "scientificNumber": 3.14e-10,
>   "boolean": true,
>   "nullValue": null,
>   "array": [[1, 2, 3, 4, 5]],
>   "unicodeString1": "프리마",
>   "unicodeString2": "\u0048\u0065\u006C\u006C\u006F, 
> \u0022\u0057\u006F\u0072\u006C\u0064\u0022!",
>   "specialCharacters": "!@#$%^&*()",
>   "emptyArray": [[]],
>   "emptyObject": {},
>   "nestedArrays": [[[[1, 2, 3]], [[4, 5, 6]]]],
>   "object": {
>     "nestedString": "Nested Value",
>     "nestedNumber": 3.14,
>     "nestedBoolean": false,
>     "nestedNull": null,
>     "nestedArray": [["a", "b", "c"]],
>     "nestedObject": {
>       "nestedProperty": "Nested Object Value"
>     }
>   },
>   "nestedObjects": [[
>     {"name": "Alice", "age": 25},
>     {"name": "Bob", "age": 30}
>   ]]
> }"""
> run jValue example3
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "string", JString @"Hello, ""World""!"
>                 "escapedString", JString @"This string contains 
> \/\\\b\f\n\r\t\""\'"
>                 "number", JNumber 42.0
>                 "scientificNumber", JNumber 3.14e-10
>                 "boolean", JBool true
>                 "nullValue", JNull
>                 "array", JArray [[
>                     JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 
> 5.0
>                 ]]
>                 "unicodeString1", JString "프리마"
>                 "unicodeString2", JString @"Hello, ""World""!"
>                 "specialCharacters", JString "!@#$%^&*()"
>                 "emptyArray", JArray [[]]
>                 "emptyObject", JObject Map.empty
>                 "nestedArrays", JArray [[
>                     JArray [[ JNumber 1.0; JNumber 2.0; JNumber 3.0 ]]
>                     JArray [[ JNumber 4.0; JNumber 5.0; JNumber 6.0 ]]
>                 ]]
>                 "object", JObject (
>                     Map.ofList [[
>                         "nestedString", JString "Nested Value"
>                         "nestedNumber", JNumber 3.14
>                         "nestedBoolean", JBool false
>                         "nestedNull", JNull
>                         "nestedArray", JArray [[JString "a"; JString "b"; 
> JString "c"]]
>                         "nestedObject", JObject (
>                             Map.ofList [[
>                                 "nestedProperty", JString "Nested Object Value"
>                             ]]
>                         )
>                     ]]
>                 )
>                 "nestedObjects", JArray [[
>                   JObject (Map.ofList [[ "name", JString "Alice"; "age", JNumber
> 25.0 ]])
>                   JObject (Map.ofList [[ "name", JString "Bob"; "age", JNumber 
> 30.0 ]])
>                 ]]
>             ]]
>         )
>     )
> )
> 
> ╭─[ 613.41ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;array&quot;,<br />          JArray<br />            [JNumber 1.0;    │
> │ JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 5.0]);<br />                  │
> │ (&quot;boolean&quot;, JBool true); (&quot;emptyArray&quot;, JArray []);<br   │
> │ />         (&quot;emptyObject&quot;, JObject (map []));<br />                │
> │ (&quot;escapedString&quot;, JString &quot;This                               │
> │ s...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><details class="dni-treeview"><summary><span                 │
> │ class="dni-code-hint"><code>(JObject<br />  (map<br />     [                 │
> │ (&quot;array&quot;,<br />       JArray [JNumber 1.0; JNumber 2.0; JNumber    │
> │ 3.0; JNumber 4.0; JNumber 5.0]);<br />      (&quot;boolean&quot;, JBool      │
> │ true); (&quot;emptyArray&quot;, JArray []);<br />                            │
> │ (&quot;emptyObject&quot;, JObject (map []));<br />                           │
> │ (&quot;escapedString&quot;, JString &quot;This string contains \/\\\b\f<br   │
> │ />\r\t\&quot;\&#39;&quot;);<br />                                            │
> │ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item1</td><td><details class="dni-treeview"><summary><span                 │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;array&quot;,<br />       JArray [JNumber 1.0; JNumber 2.0; JNumber    │
> │ 3.0; JNumber 4.0; JNumber 5.0]);<br />      (&quot;boolean&quot;, JBool      │
> │ true); (&quot;emptyArray&quot;, JArray []);<br />                            │
> │ (&quot;emptyObject&quot;, JObject (map []));<br />                           │
> │ (&quot;es...nestedObject&quot;: {,       &quot;nestedProperty&quot;:         │
> │ &quot;Nested Object Value&quot;,     },   },,   &quot;nestedObjects&quot;: [ │
> │ ,     {&quot;name&quot;: &quot;Alice&quot;, &quot;age&quot;: 25},,           │
> │ {&quot;name&quot;: &quot;Bob&quot;, &quot;age&quot;: 30},   ], }             │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 29<br />  column = 0                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>29                              │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 625.06ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("array",                                                              │
> │        JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber   │
> │ 5.0]);                                                                       │
> │       ("boolean", JBool true); ("emptyArray", JArray []);                    │
> │       ("emptyObject", JObject (map []));                                     │
> │       ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'");  │
> │       ("nestedArrays",                                                       │
> │        JArray                                                                │
> │          [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0];                    │
> │           JArray [JNumber 4.0; JNumber 5.0; JNumber 6.0]]);                  │
> │       ("nestedObjects",                                                      │
> │        JArray                                                                │
> │          [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]);  │
> │           JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]);  │
> │       ("nullValue", JNull); ("number", JNumber 42.0); ...])                  │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("array", JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0;  │
> │ JNumber 5.0]); ("boolean", JBool true);                                      │
> │       ("emptyArray", JArray []); ("emptyObject", JObject (map []));          │
> │       ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'");  │
> │       ("nestedArrays",                                                       │
> │        JArray [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0]; JArray [      │
> │ JNumber 4.0; JNumber 5.0; JNumber 6.0]]);                                    │
> │       ("nestedObjects",                                                      │
> │        JArray                                                                │
> │          [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]);  │
> │           JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]);  │
> │ ("nullValue", JNull);                                                        │
> │       ("number", JNumber 42.0); ...])                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 266592 }
00:00:32 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:34 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb to html
00:00:34 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:34 v #7 !   validate(nb)
00:00:35 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:35 v #9 !   return _pygments_highlight(
00:00:36 v #10 ! [NbConvertApp] Writing 534279 bytes to c:\home\git\polyglot\apps\parser\JsonParser.dib.html
00:00:37 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 864 }
00:00:37 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 864 }
00:00:37 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/JsonParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/JsonParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:37 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:37 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:37 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 267515 }
00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Parser.dib"])) }
00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/parser/Parser.dib", "--output-path", "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/Parser.dib" --output-path "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Parser (Polyglot)                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### TextInput                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Position =
>     {
>         line : int
>         column : int
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let initialPos = { line = 0; column = 0 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline incrCol (pos : Position) =
>     { pos with column = pos.column + 1 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline incrLine pos =
>     { line = pos.line + 1; column = 0 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type InputState =
>     {
>         lines : string[[]]
>         position : Position
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline fromStr str =
>     {
>         lines =
>             if str |> String.IsNullOrEmpty
>             then [[||]]
>             else str |> SpiralSm.split_string [[| "\r\n"; "\n" |]]
>         position = initialPos
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> fromStr "" |> _assertEqual {
>     lines = [[||]]
>     position = { line = 0; column = 0 }
> }
> 
> ╭─[ 94.43ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [||]                                                               │
> │   position = { line = 0                                                      │
> │                column = 0 } }                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> fromStr "Hello \n World" |> _assertEqual {
>     lines = [[| "Hello "; " World" |]]
>     position = { line = 0; column = 0 }
> }
> 
> ╭─[ 39.32ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello "; " World"|]                                             │
> │   position = { line = 0                                                      │
> │                column = 0 } }                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline currentLine inputState =
>     let linePos = inputState.position.line
>     if linePos < inputState.lines.Length
>     then inputState.lines.[[linePos]]
>     else "end of file"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline nextChar input =
>     let linePos = input.position.line
>     let colPos = input.position.column
> 
>     if linePos >= input.lines.Length
>     then input, None
>     else
>         let currentLine = currentLine input
>         if colPos < currentLine.Length then
>             let char = currentLine.[[colPos]]
>             let newPos = incrCol input.position
>             let newState = { input with position = newPos }
>             newState, Some char
>         else
>             let char = '\n'
>             let newPos = incrLine input.position
>             let newState = { input with position = newPos }
>             newState, Some char
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let newInput, charOpt = fromStr "Hello World" |> nextChar
> 
> newInput |> _assertEqual {
>     lines = [[| "Hello World" |]]
>     position = { line = 0; column = 1 }
> }
> charOpt |> _assertEqual (Some 'H')
> 
> ╭─[ 80.32ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello World"|]                                                  │
> │   position = { line = 0                                                      │
> │                column = 1 } }                                                │
> │                                                                              │
> │ Some 'H'                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let newInput, charOpt = fromStr "Hello\n\nWorld" |> nextChar
> 
> newInput |> _assertEqual {
>     lines = [[| "Hello"; ""; "World" |]]
>     position = { line = 0; column = 1 }
> }
> charOpt |> _assertEqual (Some 'H')
> 
> ╭─[ 39.48ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello"; ""; "World"|]                                           │
> │   position = { line = 0                                                      │
> │                column = 1 } }                                                │
> │                                                                              │
> │ Some 'H'                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### Parser                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Input = InputState
> type ParserLabel = string
> type ParserError = string
> 
> type ParserPosition =
>     {
>         currentLine : string
>         line : int
>         column : int
>     }
> 
> type ParseResult<'a> =
>     | Success of 'a
>     | Failure of ParserLabel * ParserError * ParserPosition
> 
> type Parser<'a> =
>     {
>         label : ParserLabel
>         parseFn : Input -> ParseResult<'a * Input>
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline printResult result =
>     match result with
>     | Success (value, input) ->
>         printfn $"%A{value}"
>     | Failure (label, error, parserPos) ->
>         let errorLine = parserPos.currentLine
>         let colPos = parserPos.column
>         let linePos = parserPos.line
>         let failureCaret = $"{' ' |> string |> String.replicate colPos}^{error}"
>         printfn $"Line:%i{linePos} Col:%i{colPos} Error parsing 
> %s{label}\n%s{errorLine}\n%s{failureCaret}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline runOnInput parser input =
>     parser.parseFn input
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline run parser inputStr =
>     runOnInput parser (fromStr inputStr)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parserPositionFromInputState (inputState : Input) =
>     {
>         currentLine = currentLine inputState
>         line = inputState.position.line
>         column = inputState.position.column
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getLabel parser =
>     parser.label
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline setLabel parser newLabel =
>     {
>         label = newLabel
>         parseFn = fun input ->
>             match parser.parseFn input with
>             | Success s -> Success s
>             | Failure (oldLabel, err, pos) -> Failure (newLabel, err, pos)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<?>) = setLabel
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline satisfy predicate label =
>     {
>         label = label
>         parseFn = fun input ->
>             let remainingInput, charOpt = nextChar input
>             match charOpt with
>             | None ->
>                 let err = "No more input"
>                 let pos = parserPositionFromInputState input
>                 Failure (label, err, pos)
>             | Some first ->
>                 if predicate first
>                 then Success (first, remainingInput)
>                 else
>                     let err = $"Unexpected '%c{first}'"
>                     let pos = parserPositionFromInputState input
>                     Failure (label, err, pos)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> runOnInput parser input |> _assertEqual (
>     Success (
>         'H',
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 56.13ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('H', { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "World"
> let parser = satisfy (fun c -> c = 'H') "H"
> runOnInput parser input |> _assertEqual (
>     Failure (
>         "H",
>         "Unexpected 'W'",
>         {
>             currentLine = "World"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 43.57ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("H", "Unexpected 'W'", { currentLine = "World"                      │
> │                                   line = 0                                   │
> │                                   column = 0 })                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline bindP f p =
>     {
>         label = "unknown"
>         parseFn = fun input ->
>             match runOnInput p input with
>             | Failure (label, err, pos) -> Failure (label, err, pos)
>             | Success (value1, remainingInput) -> runOnInput (f value1) 
> remainingInput
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>=) p f = bindP f p
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         'e',
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 69.99ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('e', { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 2 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "World"
> let parser = satisfy (fun c -> c = 'W') "W"
> let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
> runOnInput parser2 input |> _assertEqual (
>     Failure (
>         "e",
>         "Unexpected 'o'",
>         {
>             currentLine = "World"
>             line = 0
>             column = 1
>         }
>     )
> )
> 
> ╭─[ 60.80ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("e", "Unexpected 'o'", { currentLine = "World"                      │
> │                                   line = 0                                   │
> │                                   column = 1 })                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline returnP x =
>     {
>         label = $"%A{x}"
>         parseFn = fun input -> Success (x, input)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = returnP "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 33.56ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 0 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline mapP f =
>     bindP (f >> returnP)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<!>) = mapP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (|>>) x f = f <!> x
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = parser |>> string
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         "H",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 54.36ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("H", { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline applyP fP xP =
>     fP >>=
>         fun f ->
>             xP >>=
>                 fun x ->
>                     returnP (f x)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<*>) = applyP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline lift2 f xP yP =
>     returnP f <*> xP <*> yP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = lift2 (fun c1 c2 -> string c1 + string c2) parser parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         "He",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 84.25ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("He", { lines = [|"Hello"|]                                         │
> │                  position = { line = 0                                       │
> │                               column = 2 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline andThen p1 p2 =
>     p1 >>=
>         fun p1Result ->
>             p2 >>=
>                 fun p2Result ->
>                     returnP (p1Result, p2Result)
>     <?> $"{getLabel p1} andThen {getLabel p2}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (.>>.) = andThen
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = parser .>>. parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         ('H', 'e'),
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 68.52ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (('H', 'e'), { lines = [|"Hello"|]                                   │
> │                        position = { line = 0                                 │
> │                                     column = 2 } })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline orElse p1 p2 =
>     {
>         label = $"{getLabel p1} orElse {getLabel p2}"
>         parseFn = fun input ->
>             match runOnInput p1 input with
>             | Success _ as result -> result
>             | Failure _ -> runOnInput p2 input
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<|>) = orElse
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'h') "h"
> let parser3 = parser <|> parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         'h',
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 60.59ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('h', { lines = [|"hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline choice listOfParsers =
>     listOfParsers |> List.reduce (<|>)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'h') "h"
> let parser3 = choice [[ parser; parser2 ]]
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         'h',
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 61.60ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('h', { lines = [|"hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let rec sequence parserList =
>     match parserList with
>     | [[]] -> returnP [[]]
>     | head :: tail -> (lift2 cons) head (sequence tail)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = sequence [[ parser; parser2 ]]
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e' ]],
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 61.08ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'], { lines = [|"Hello"|]                                   │
> │                        position = { line = 0                                 │
> │                                     column = 2 } })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let rec parseZeroOrMore parser input =
>     match runOnInput parser input with
>     | Failure (_, _, _) ->
>         [[]], input
>     | Success (firstValue, inputAfterFirstParse) ->
>         let subsequentValues, remainingInput = parseZeroOrMore parser 
> inputAfterFirstParse
>         firstValue :: subsequentValues, remainingInput
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline many parser =
>     {
>         label = $"many {getLabel parser}"
>         parseFn = fun input -> Success (parseZeroOrMore parser input)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = many parser
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         [[]],
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 68.99ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ([], { lines = [|"hello"|]                                           │
> │                position = { line = 0                                         │
> │                             column = 0 } })                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline many1 p =
>     p >>=
>         fun head ->
>             many p >>=
>                 fun tail ->
>                     returnP (head :: tail)
>     <?> $"many1 {getLabel p}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = many1 parser
> runOnInput parser2 input |> _assertEqual (
>     Failure (
>         "many1 H",
>         "Unexpected 'h'",
>         {
>             currentLine = "hello"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 81.59ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("many1 H", "Unexpected 'h'", { currentLine = "hello"                │
> │                                         line = 0                             │
> │                                         column = 0 })                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline opt p =
>     let some = p |>> Some
>     let none = returnP None
>     (some <|> none)
>     <?> $"opt {getLabel p}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = opt parser
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         None,
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 62.62ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (None, { lines = [|"hello"|]                                         │
> │                  position = { line = 0                                       │
> │                               column = 0 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (.>>) p1 p2 =
>     p1 .>>. p2
>     |> mapP fst
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>.) p1 p2 =
>     p1 .>>. p2
>     |> mapP snd
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline between p1 p2 p3 =
>     p1 >>. p2 .>> p3
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "[[Hello]]"
> let parser =
>     between
>         (satisfy (fun c -> c = '[[') "[[")
>         (many (satisfy (fun c -> [[ 'a' .. 'z' ]] @ [[ 'A' .. 'Z' ]] |> 
> List.contains c) "letter"))
>         (satisfy (fun c -> c = ']]') "]]")
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
>         {
>             lines = [[| "[[Hello]]" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 168.23ms - stdout ]────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'; 'l'; 'l'; 'o'], { lines = [|"[Hello]"|]                  │
> │                                       position = { line = 0                  │
> │                                                    column = 7 } })           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sepBy1 p sep =
>     let sepThenP = sep >>. p
>     p .>>. many sepThenP
>     |>> fun (p, pList) -> p :: pList
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sepBy p sep =
>     sepBy1 p sep <|> returnP [[]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello,World"
> let parser = sepBy (many (satisfy (fun c -> c <> ',') "not comma")) (satisfy 
> (fun c -> c = ',') "comma")
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ [[ 'H'; 'e'; 'l'; 'l'; 'o' ]]; [[ 'W'; 'o'; 'r'; 'l'; 'd'; '\n' ]] 
> ]],
>         {
>             lines = [[| "Hello,World" |]]
>             position = { line = 1; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 130.56ms - stdout ]────────────────────────────────────────────────────────╮
> │ Success ([['H'; 'e'; 'l'; 'l'; 'o']; ['W'; 'o'; 'r'; 'l'; 'd'; '\010']], {   │
> │ lines = [|"Hello,World"|]                                                    │
> │                                                                              │
> │ position = { line = 1                                                        │
> │                                                                              │
> │ column = 0 } })                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline pchar charToMatch =
>     satisfy ((=) charToMatch) $"%c{charToMatch}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline anyOf listOfChars =
>     listOfChars
>     |> List.map pchar
>     |> choice
>     <?> $"anyOf %A{listOfChars}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = anyOf [[ 'H'; 'e'; 'l'; 'o' ]] |> many
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 50.21ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'; 'l'; 'l'; 'o'], { lines = [|"Hello"|]                    │
> │                                       position = { line = 0                  │
> │                                                    column = 5 } })           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline charListToStr charList =
>     charList |> List.toArray |> String
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline manyChars cp =
>     many cp
>     |>> charListToStr
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline manyChars1 cp =
>     many1 cp
>     |>> charListToStr
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = manyChars1 (anyOf [[ 'H'; 'e'; 'l'; 'o' ]])
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 95.24ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 5 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline pstring str =
>     str
>     |> List.ofSeq
>     |> List.map pchar
>     |> sequence
>     |> mapP charListToStr
>     <?> str
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = pstring "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 80.24ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 5 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let whitespaceChar =
>     satisfy Char.IsWhiteSpace "whitespace"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let spaces = many whitespaceChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let spaces1 = many1 whitespaceChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "  Hello"
> let parser = spaces1 .>>. pstring "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         ([[ ' '; ' ' ]], "Hello"),
>         {
>             lines = [[| "  Hello" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 73.33ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (([' '; ' '], "Hello"), { lines = [|"  Hello"|]                      │
> │                                   position = { line = 0                      │
> │                                                column = 7 } })               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let digitChar =
>     satisfy Char.IsDigit "digit"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = digitChar
> runOnInput parser input |> _assertEqual (
>     Failure (
>         "digit",
>         "Unexpected 'H'",
>         {
>             currentLine = "Hello"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 35.92ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("digit", "Unexpected 'H'", { currentLine = "Hello"                  │
> │                                       line = 0                               │
> │                                       column = 0 })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let pint =
>     let inline resultToInt (sign, digits) =
>         let i = int digits
>         match sign with
>         | Some ch -> -i
>         | None -> i
> 
>     let digits = manyChars1 digitChar
> 
>     opt (pchar '-') .>>. digits
>     |> mapP resultToInt
>     <?> "integer"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run pint "-123"
> |> _assertEqual (
>     Success (
>         -123,
>         {
>             lines = [[| "-123" |]]
>             position = { line = 0; column = 4 }
>         }
>     )
> )
> 
> ╭─[ 41.90ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (-123, { lines = [|"-123"|]                                          │
> │                  position = { line = 0                                       │
> │                               column = 4 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let pfloat =
>     let inline resultToFloat (((sign, digits1), point), digits2) =
>         let fl = float $"{digits1}.{digits2}"
>         match sign with
>         | Some ch -> -fl
>         | None -> fl
> 
>     let digits = manyChars1 digitChar
> 
>     opt (pchar '-') .>>. digits .>>. pchar '.' .>>. digits
>     |> mapP resultToFloat
>     <?> "float"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run pfloat "-123.45"
> |> _assertEqual (
>     Success (
>         -123.45,
>         {
>             lines = [[| "-123.45" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 44.30ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (-123.45, { lines = [|"-123.45"|]                                    │
> │                     position = { line = 0                                    │
> │                                  column = 7 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline createParserForwardedToRef<'a> () =
>     let mutable parserRef : Parser<'a> =
>         {
>             label = "unknown"
>             parseFn = fun _ -> failwith "unfixed forwarded parser"
>         }
> 
>     let wrapperParser =
>         { parserRef with
>             parseFn = fun input -> runOnInput parserRef input
>         }
> 
>     wrapperParser, (fun v -> parserRef <- v)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>%) p x =
>     p
>     |>> fun _ -> x
00:00:30 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 39314 }
00:00:30 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:32 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/Parser.dib.ipynb to html
00:00:32 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:32 v #7 !   validate(nb)
00:00:33 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:33 v #9 !   return _pygments_highlight(
00:00:34 v #10 ! [NbConvertApp] Writing 413747 bytes to c:\home\git\polyglot\apps\parser\Parser.dib.html
00:00:34 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 856 }
00:00:34 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 856 }
00:00:34 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/Parser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/Parser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:35 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:35 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:35 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 40229 }
00:00:00 d #1 writeDibCode / output: Fs / path: Parser.dib
00:00:00 d #1 writeDibCode / output: Fs / path: JsonParser.dib
00:00:00 d #2 parseDibCode / output: Fs / file: JsonParser.dib
00:00:00 d #2 parseDibCode / output: Fs / file: Parser.dib
In [ ]:
{ pwsh ../apps/spiral/build.ps1 } | Invoke-Block
00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Supervisor.dib", "--retries", "3"])) }
00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/Supervisor.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/Supervisor.dib" --output-path "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Supervisor (Polyglot)                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
> mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
> ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
> 7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
> #r 
> @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
> rp.Json.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> open Microsoft.AspNetCore.SignalR.Client
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### sendJson                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sendJson (port : int) (json : string) = async {
>     let host = "127.0.0.1"
>     let! portOpen = SpiralNetworking.test_port_open host port
>     if portOpen then
>         try
>             let connection = 
> HubConnectionBuilder().WithUrl($"http://{host}:{port}").Build()
>             do! connection.StartAsync () |> Async.AwaitTask
>             let! result = connection.InvokeAsync<string> ("ClientToServerMsg", 
> json) |> Async.AwaitTask
>             do! connection.StopAsync () |> Async.AwaitTask
>             trace Verbose (fun () -> $"Supervisor.sendJson / port: {port} / 
> json: {json |> SpiralSm.ellipsis_end 200} / result: {result |> Option.ofObj |> 
> Option.map (SpiralSm.ellipsis_end 200)}") _locals
>             return Some result
>         with ex ->
>             trace Critical (fun () -> $"Supervisor.sendJson / port: {port} / 
> json: {json |> SpiralSm.ellipsis_end 200} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>             return None
>     else
>         trace Debug (fun () -> $"Supervisor.sendJson / port: {port} / error: 
> port not open") _locals
>         return None
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### sendObj                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sendObj port obj =
>     obj
>     |> System.Text.Json.JsonSerializer.Serialize
>     |> sendJson port
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### VSCPos                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type VSCPos = {| line : int; character : int |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### VSCRange                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type VSCRange = VSCPos * VSCPos
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### RString                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type RString = VSCRange * string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### TracedError                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type TracedError = {| trace : string list; message : string |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### ClientErrorsRes                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type ClientErrorsRes =
>     | FatalError of string
>     | TracedError of TracedError
>     | PackageErrors of {| uri : string; errors : RString list |}
>     | TokenizerErrors of {| uri : string; errors : RString list |}
>     | ParserErrors of {| uri : string; errors : RString list |}
>     | TypeErrors of {| uri : string; errors : RString list |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### workspaceRoot                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### awaitCompiler                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline awaitCompiler port cancellationToken = async {
>     let host = "127.0.0.1"
>     let struct (ct, disposable) = cancellationToken |> 
> SpiralThreading.new_disposable_token
>     let! ct = ct |> SpiralAsync.merge_cancellation_token_with_default_async
> 
>     let compiler = MailboxProcessor.Start (fun inbox -> async {
>         let! availablePort = SpiralNetworking.get_available_port (Some 180) host
> port
>         if availablePort <> port then
>             inbox.Post (port, false)
>         else
>             let compilerPath =
>                 workspaceRoot </> "deps/The-Spiral-Language/The Spiral Language 
> 2/artifacts/bin/The Spiral Language 2/release"
>                 |> System.IO.Path.GetFullPath
> 
>             let dllPath = compilerPath </> "Spiral.dll"
> 
>             let! exitCode, result =
>                 SpiralRuntime.execution_options (fun x ->
>                     { x with
>                         l0 = $@"dotnet ""{dllPath}"" --port {availablePort} 
> --default-int i32 --default-float f64"
>                         l1 = Some ct
>                         l3 = Some (fun struct (_, line, _) -> async {
>                             if line |> SpiralSm.contains 
> $"System.IO.IOException: Failed to bind to address http://{host}:{port}: address
> already in use." then
>                                 inbox.Post (port, false)
> 
>                             if line |> SpiralSm.contains $"Server bound to: 
> http://localhost:{availablePort}" then
>                                 let rec loop retry = async {
>                                     do!
>                                         SpiralNetworking.wait_for_port_access 
> (Some 100) true host availablePort
>                                         |> Async.runWithTimeoutAsync 500
>                                         |> Async.Ignore
> 
>                                     let _locals () = $"port: {availablePort} / 
> retry: {retry} / {_locals ()}"
>                                     try
>                                         let pingObj = {| Ping = true |}
>                                         let! pingResult = pingObj |> sendObj 
> availablePort
>                                         trace Verbose (fun () -> 
> $"Supervisor.awaitCompiler / Ping / result: '%A{pingResult}'") _locals
> 
>                                         match pingResult with
>                                         | Some _ -> inbox.Post (availablePort, 
> true)
>                                         | None -> do! loop (retry + 1)
>                                     with ex ->
>                                         trace Verbose (fun () -> 
> $"Supervisor.awaitCompiler / Ping / ex: {ex |> SpiralSm.format_exception}") 
> _locals
>                                         do! loop (retry + 1)
>                                 }
>                                 do! loop 1
>                         })
>                         l6 = Some workspaceRoot
>                     }
>                 )
>                 |> SpiralRuntime.execute_with_options_async
> 
>             trace Debug (fun () -> $"Supervisor.awaitCompiler / exitCode: 
> {exitCode} / result: {result}") _locals
>             disposable.Dispose ()
>     }, ct)
> 
>     let! serverPort, managed = compiler.Receive ()
> 
>     let connection = 
> HubConnectionBuilder().WithUrl($"http://{host}:{serverPort}").Build ()
>     do! connection.StartAsync () |> Async.AwaitTask
> 
>     let event = Event<_> ()
>     let disposable' = connection.On<string> ("ServerToClientMsg", event.Trigger)
>     let stream =
>         FSharp.Control.AsyncSeq.unfoldAsync
>             (fun () -> async {
>                 let! msg = event.Publish |> Async.AwaitEvent
>                 return Some (msg |> 
> FSharp.Json.Json.deserialize<ClientErrorsRes>, ())
>             })
>             ()
> 
>     let disposable' =
>         new_disposable (fun () ->
>             async {
>                 disposable'.Dispose ()
>                 do! connection.StopAsync () |> Async.AwaitTask
>                 disposable.Dispose ()
>                 if managed
>                 then do!
>                     SpiralNetworking.wait_for_port_access (Some 100) false host 
> serverPort
>                     |> Async.runWithTimeoutAsync 1500
>                     |> Async.Ignore
>             }
>             |> Async.RunSynchronously
>         )
> 
>     return
>         serverPort,
>         stream,
>         ct,
>         disposable'
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### getFilePathFromUri                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getFilePathFromUri uri =
>     match System.Uri.TryCreate (uri, System.UriKind.Absolute) with
>     | true, uri -> uri.AbsolutePath |> System.IO.Path.GetFullPath
>     | _ -> failwith "invalid uri"
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### getCompilerPort                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getCompilerPort () =
>     13805
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### serialize_obj                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
>     let serializeObj obj =
>         try
>             obj
>             |> FSharp.Json.Json.serialize
>             |> SpiralSm.replace "\\\\" "\\"
>             |> SpiralSm.replace "\\r\\n" "\n"
>             |> SpiralSm.replace "\\n" "\n"
>         with ex ->
>             trace Critical (fun () -> "Supervisor.serialize_obj / obj: %A{obj}")
> _locals
>             ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### Backend                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Backend =
>     | Fsharp
>     | Cuda
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### buildFile                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildFile backend timeout port cancellationToken path =
>     let rec loop retry = async {
>         let fullPath = path |> System.IO.Path.GetFullPath
>         let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>         let fileName = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>         let! code = fullPath |> SpiralFileSystem.read_all_text_async
> 
>         let stream, disposable = fileDir |> FileSystem.watchDirectory (fun _ -> 
> true)
>         use _ = disposable
> 
>         let struct (token, disposable) = SpiralThreading.new_disposable_token 
> cancellationToken
>         use _ = disposable
> 
>         let port = port |> Option.defaultWith getCompilerPort
>         let! serverPort, errors, ct, disposable = awaitCompiler port (Some 
> token)
>         use _ = disposable
> 
>         let outputFileName =
>             match backend with
>             | Fsharp -> $"{fileName}.fsx"
>             | Cuda -> $"{fileName}.py"
> 
>         let outputContentSeq =
>             stream
>             |> FSharp.Control.AsyncSeq.chooseAsync (function
>                 | _, (FileSystem.FileSystemChange.Changed (path, Some text))
>                     when (path |> System.IO.Path.GetFileName) = outputFileName
>                     ->
>                         // fileDir </> path |> 
> SpiralFileSystem.read_all_text_retry_async
>                         text |> Some |> Async.init
>                 | _ -> None |> Async.init
>             )
>             |> FSharp.Control.AsyncSeq.map (fun content ->
>                 Some (content |> SpiralSm.replace "\r\n" "\n"), None
>             )
> 
>         let inline printErrorData (data : {| uri : string; errors : RString list
> |}) =
>             let fileName = data.uri |> System.IO.Path.GetFileName
>             let errors =
>                 data.errors
>                 |> List.map snd
>                 |> SpiralSm.concat "\n"
>             $"{fileName}:\n{errors}"
> 
>         let errorsSeq =
>             errors
>             |> FSharp.Control.AsyncSeq.choose (fun error ->
>                 match error with
>                 | FatalError message ->
>                     Some (message, error)
>                 | TracedError data ->
>                     Some (data.message, error)
>                 | PackageErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | TokenizerErrors data when data.errors |> List.isEmpty |> not 
> ->
>                     Some (data |> printErrorData, error)
>                 | ParserErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | TypeErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | _ -> None
>             )
>             |> FSharp.Control.AsyncSeq.map (fun (message, error) ->
>                 None, Some (message, error)
>             )
> 
>         let timerSeq =
>             500
>             |> FSharp.Control.AsyncSeq.intervalMs
>             |> FSharp.Control.AsyncSeq.map (fun _ -> None, None)
> 
>         let outputSeq =
>             [[ outputContentSeq; errorsSeq; timerSeq ]]
>             |> FSharp.Control.AsyncSeq.mergeAll
> 
>         let! outputChild =
>             ((None, [[]], 0), outputSeq)
>             ||> FSharp.Control.AsyncSeq.scan (
>                 fun (outputContentResult, errors, typeErrorCount) 
> (outputContent, error) ->
>                     trace Debug (fun () -> $"Supervisor.buildFile / 
> AsyncSeq.scan / outputContent:\n{outputContent |> Option.defaultValue 
> System.String.Empty |> SpiralSm.ellipsis_end 300} / errors: {errors |> 
> serializeObj} / outputContentResult: {outputContentResult} / typeErrorCount: 
> {typeErrorCount} / retry: {retry} / error: {error} / path: {path}") _locals
>                     match outputContent, error with
>                     | Some outputContent, None -> Some outputContent, errors, 
> typeErrorCount
>                     | None, Some (_, FatalError "File main has a type error 
> somewhere in its path.") ->
>                         outputContentResult, errors, typeErrorCount + 1
>                     | None, Some error -> outputContentResult, error :: errors, 
> typeErrorCount
>                     | None, None when typeErrorCount >= 1 ->
>                         outputContentResult, errors, typeErrorCount + 1
>                     | _ -> outputContentResult, errors, typeErrorCount
>             )
>             |> FSharp.Control.AsyncSeq.takeWhileInclusive (fun (outputContent, 
> errors, typeErrorCount) ->
>                 trace Debug (fun () -> $"Supervisor.buildFile / 
> takeWhileInclusive / outputContent:\n{outputContent |> Option.defaultValue 
> System.String.Empty |> SpiralSm.ellipsis_end 300} / errors: {errors |> 
> serializeObj} / typeErrorCount: {typeErrorCount} / retry: {retry} / path: 
> {path}") _locals
>     #if INTERACTIVE
>                 let errorWait = 2
>     #else
>                 let errorWait = 2
>     #endif
>                 match outputContent, errors with
>                 | None, [[]] when typeErrorCount > errorWait -> false
>                 | None, [[]] -> true
>                 | _ -> false
>             )
>             |> FSharp.Control.AsyncSeq.tryLast
>             |> Async.withCancellationToken ct
>             |> Async.catch
>             |> Async.runWithTimeoutAsync timeout
>             |> Async.StartChild
> 
>         // do! Async.Sleep 60
> 
>         let fullPathUri = fullPath |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
> 
>         let fileOpenObj = {| FileOpen = {| uri = fullPathUri; spiText = code |} 
> |}
>         let! _fileOpenResult = fileOpenObj |> sendObj serverPort
> 
>         // do! Async.Sleep 60
> 
>         let backendId =
>             match backend with
>             | Fsharp -> "Fsharp"
>             | Cuda -> "Python + Cuda"
>         let buildFileObj = {| BuildFile = {| uri = fullPathUri; backend = 
> backendId |} |}
>         let! _buildFileResult = buildFileObj |> sendObj serverPort
> 
>         let! result, typeErrorCount =
>             outputChild
>             |> Async.map (function
>                 | Some (Ok (Some (outputCode, errors, typeErrorCount))) ->
>                     (outputCode, errors |> List.distinct |> List.rev), 
> typeErrorCount
>                 | Some (Error ex) ->
>                     trace Critical (fun () -> $"Supervisor.buildFile / error: 
> {ex |> SpiralSm.format_exception} / retry: {retry}") _locals
>                     (None, [[]]), 0
>                 | _ -> (None, [[]]), 0
>             )
>         
>         match result with
>         | None, _ when typeErrorCount > 0 && retry = 0 ->
>             return! loop (retry + 1)
>         | _ ->
>             if fileDir |> SpiralSm.starts_with (workspaceRoot </> "target") then
>                 let fileDirUri = fileDir |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
>                 let fileDeleteObj = {| FileDelete = {| uris = [[| fileDirUri |]]
> |} |}
>                 let! _fileDeleteResult = fileDeleteObj |> sendObj serverPort
>                 ()
> 
>             let outputPath = fileDir </> outputFileName
>             return outputPath, result
>     }
>     loop 0
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### SpiralInput                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type SpiralInput =
>     | Spi of string * string option
>     | Spir of string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### persistCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistCode (input: {| backend : Backend option; input: SpiralInput; 
> packages: string [[]] |}) = async {
>     let targetDir = workspaceRoot </> "target/spiral_Eval"
> 
>     let packagesDir = targetDir </> "packages"
>     
>     let hashHex = $"%A{input.backend}%A{input.input}" |> SpiralCrypto.hash_text
> 
>     let packageDir = packagesDir </> hashHex
>     packageDir |> System.IO.Directory.CreateDirectory |> ignore
> 
>     let moduleName = "main"
> 
>     let spirModule, spiModule =
>         match input.input with
>         | Spi (spi, Some spir) -> true, true
>         | Spi (spi, None) -> false, true
>         | Spir spir -> true, false
>         |> fun (spir, spi) ->
>             (if spir then $"{moduleName}_real*-" else ""),
>             if spi then moduleName else ""
> 
>     let libLinkTargetPath = workspaceRoot </> "lib/spiral"
>     let libLinkPath = packageDir </> "spiral"
>     
>     let packagesModule =
>         input.packages
>         |> Array.map (fun package ->
>             let path = workspaceRoot </> package
>             let packageName = path |> System.IO.Path.GetFileName
>             let libLinkPath = packageDir </> packageName
>             libLinkPath |> SpiralFileSystem.link_directory path
>             $"{packageName}-"
>         )
>         |> String.concat "\n    "
> 
>     let packageDir' =
>         if input.packages |> Array.isEmpty
>         then workspaceRoot </> "lib"
>         else
>             libLinkPath |> SpiralFileSystem.link_directory libLinkTargetPath
>             packageDir
> 
>     let spiprojPath = packageDir </> "package.spiproj"
>     let spiprojCode =
>         $"""packageDir: {packageDir'}
> packages:
>     |core-
>     spiral-
>     {packagesModule}
> modules:
>     {spirModule}
>     {spiModule}
> """
>     do! spiprojCode |> SpiralFileSystem.write_all_text_exists spiprojPath
> 
>     let spirPath = packageDir </> $"{moduleName}_real.spir"
>     let spiPath = packageDir </> $"{moduleName}.spi"
> 
>     let spirCode, spiCode =
>         match input.input with
>         | Spi (spi, Some spir) -> Some spir, Some spi
>         | Spi (spi, None) -> None, Some spi
>         | Spir spir -> Some spir, None
> 
>     match spirCode with
>     | Some spir -> do! spir |> SpiralFileSystem.write_all_text_exists spirPath
>     | None -> ()
>     match spiCode with
>     | Some spi -> do! spi |> SpiralFileSystem.write_all_text_exists spiPath
>     | None -> ()
> 
>     let spiralPath =
>         match input.input with
>         | Spi _ -> spiPath
>         | Spir _ -> spirPath
>     match input.backend with
>     | None -> return spiralPath, None
>     | Some backend ->
>         let outputFileName =
>             let fileName =
>                 match input.input with
>                 | Spi _ -> moduleName
>                 | Spir _ -> $"{moduleName}_real"
>             match backend with
>             | Fsharp -> $"{fileName}.fsx"
>             | Cuda -> $"{fileName}.py"
>         let outputPath = packageDir </> outputFileName
>         if outputPath |> System.IO.File.Exists |> not
>         then return spiralPath, None
>         else
>             let! oldCode = spiralPath |> SpiralFileSystem.read_all_text_async
>             if oldCode <> (spiCode |> Option.defaultValue (spirCode |> 
> Option.defaultValue ""))
>             then return spiralPath, None
>             else
>                 let! outputCode = outputPath |> 
> SpiralFileSystem.read_all_text_async
>                 return spiralPath, Some (outputPath, outputCode |> 
> SpiralSm.replace "\r\n" "\n")
>     }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### buildCode                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let buildCode backend packages isCache timeout cancellationToken input = async {
>     let! mainPath, outputCache =
>         persistCode {| input = input; backend = Some backend; packages = 
> packages |}
>     match outputCache with
>     | Some (outputPath, outputCode) when isCache -> return mainPath, 
> (outputPath, Some outputCode), [[]]
>     | _ ->
>         let! outputPath, (outputCode, errors) = mainPath |> buildFile backend 
> timeout None cancellationToken
>         return mainPath, (outputPath, outputCode), errors
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl app () =
>     console.write_line "text"
>     1i32
> 
> inl main () =
>     app
>     |> dyn
>     |> ignore
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 15000 None
> |> Async.runWithTimeout 15000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some """let rec closure1 () () : unit =
>     let v0 : (string -> unit) = System.Console.WriteLine
>     let v1 : string = "text"
>     v0 v1
> and closure0 () () : int32 =
>     let v0 : unit = ()
>     let v1 : (unit -> unit) = closure1()
>     let v2 : unit = (fun () -> v1 (); v0) ()
>     1
> let v0 : (unit -> int32) = closure0()
> ()
> """,
>         [[]]
>     )
> )
> 
> ╭─[ 7.42s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:23 v #1 async.run_with_timeout_async / { timeout = 180 }          │
> │ 00:00:19 d #1 runtime.execute_with_options_async / { file_name =        │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@7-93>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:20 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot            │
> │ 00:00:20 v #3 > 00:00:00 d #2 dllPath:                             │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:20 v #4 > 00:00:00 d #3 targetDir:                           │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:23 v #2 async.run_with_timeout_async / { timeout = 100 }          │
> │ 00:00:23 v #3 async.run_with_timeout_async / { timeout = 100 }          │
> │ 00:00:24 v #4 async.run_with_timeout_async / { timeout = 100 }          │
> │ 00:00:20 v #5 > Starting the Spiral Server. It is bound to:             │
> │ http://localhost:13805                                                       │
> │ 00:00:24 v #5 async.run_with_timeout_async / { timeout = 100 }          │
> │ 00:00:13 d #1 Async.runWithTimeoutAsync / timeout: 500                  │
> │ 00:00:13 v #2 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / │
> │ result:                                                                      │
> │ 00:00:13 v #3 Supervisor.awaitCompiler / Ping / result: 'Some null' /   │
> │ port: 13805 / retry: 1                                                       │
> │ 00:00:20 v #6 > Server bound to: http://localhost:13805                 │
> │ 00:00:13 d #4 Supervisor.buildFile / takeWhileInclusive /               │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:13 d #5 Supervisor.buildFile / AsyncSeq.scan / outputContent:     │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:13 d #6 Supervisor.buildFile / takeWhileInclusive /               │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:13 v #7 Supervisor.sendJson / port: 13805 / json:                 │
> │ {"FileOpen":{"spiText":"inl app () =\n    console.write_line                 │
> │ \u0022text\u0022\n    1i32\n\ninl main                                       │
> │ ...et/spiral_Eval/packages/22ccd04317d5605c65f81c7f777766f357e85dc69f2d6d04b │
> │ 9dc60aebd08a0d6/main.spi"}} / result:                                        │
> │ 00:00:13 v #8 Supervisor.sendJson / port: 13805 / json:                 │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/22ccd04317d5605c65f81c7f777766f357e85dc69f2d6d04b9dc60a │
> │ ebd08a0d6/main.spi"}} / result:                                              │
> │ 00:00:14 d #9 Supervisor.buildFile / AsyncSeq.scan / outputContent:     │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:14 d #10 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:21 v #7 > 00:00:02 d #4                                      │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6/main.spi                               │
> │ 00:00:14 d #11 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:14 d #12 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:15 d #13 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:15 d #14 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:15 d #15 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:15 d #16 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:16 d #17 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:16 d #18 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:16 d #19 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:16 d #20 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:17 d #21 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:17 d #22 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:17 d #23 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:17 d #24 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:18 d #25 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:18 d #26 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:18 d #27 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │ let rec closure1 () () : unit =                                              │
> │     let v0 : (string -> unit) = System.Console.WriteLine                     │
> │     let v1 : string = "text"                                                 │
> │     v0 v1                                                                    │
> │ and closure0 () () : i...t v0 : unit = ()                                    │
> │     let v1 : (unit -> unit) = closure1()                                     │
> │     let v2 : unit = (fun () -> v1 (); v0) ()                                 │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:18 d #28 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │ let rec closure1 () () : unit =                                              │
> │     let v0 : (string -> unit) = System.Console.WriteLine                     │
> │     let v1 : string = "text"                                                 │
> │     v0 v1                                                                    │
> │ and closure0 () () : i...t v0 : unit = ()                                    │
> │     let v1 : (unit -> unit) = closure1()                                     │
> │     let v2 : unit = (fun () -> v1 (); v0) ()                                 │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:18 v #29 Supervisor.sendJson / port: 13805 / json:                │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/22ccd04317d5605c65 │
> │ f81c7f777766f357e85dc69f2d6d04b9dc60aebd08a0d6"]}} / result:                 │
> │ 00:00:29 v #6 async.run_with_timeout_async / { timeout = 100 }          │
> │ 00:00:18 d #30 FileSystem.watchWithFilter / Disposing watch stream /    │
> │ filter: FileName, LastWrite                                                  │
> │ Some                                                                         │
> │   (Some                                                                      │
> │      "let rec closure1 () () : unit =                                        │
> │     let v0 : (string -> unit) = System.Console.WriteLine                     │
> │     let v1 : string = "text"                                                 │
> │     v0 v1                                                                    │
> │ and closure0 () () : int32 =                                                 │
> │     let v0 : unit = ()                                                       │
> │     let v1 : (unit -> unit) = closure1()                                     │
> │     let v2 : unit = (fun () -> v1 (); v0) ()                                 │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │ ",                                                                           │
> │    [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> ""
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "Cannot find `main` in file main." ]]
>     )
> )
> 
> ╭─[ 6.38s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:30 v #7 async.run_with_timeout_async / { timeout = 180 }          │
> │ 00:00:26 d #8 runtime.execute_with_options_async / { file_name =        │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@7-93>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:27 v #9 > 00:00:00 d #1 pwd: C:\home\git\polyglot            │
> │ 00:00:27 v #10 > 00:00:00 d #2 dllPath:                            │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:27 v #11 > 00:00:00 d #3 targetDir:                          │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:31 v #8 async.run_with_timeout_async / { timeout = 100 }          │
> │ 00:00:31 v #9 async.run_with_timeout_async / { timeout = 100 }          │
> │ 00:00:31 v #10 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:27 v #12 > Starting the Spiral Server. It is bound to:            │
> │ http://localhost:13805                                                       │
> │ 00:00:31 v #11 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:20 d #31 Async.runWithTimeoutAsync / timeout: 500                 │
> │ 00:00:20 v #32 Supervisor.sendJson / port: 13805 / json: {"Ping":true}  │
> │ / result:                                                                    │
> │ 00:00:20 v #33 Supervisor.awaitCompiler / Ping / result: 'Some null' /  │
> │ port: 13805 / retry: 1                                                       │
> │ 00:00:28 v #13 > Server bound to: http://localhost:13805                │
> │ 00:00:20 d #34 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:20 d #35 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:20 d #36 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:20 v #37 Supervisor.sendJson / port: 13805 / json:                │
> │ {"FileOpen":{"spiText":"","uri":"file:///c:/home/git/polyglot/target/spiral_ │
> │ Eval/packages/a65342ccc7da0da967b18d8e705d0260e9a932e5e68c0feb33db55c4d28170 │
> │ aa/main.spi"}} / result:                                                     │
> │ 00:00:20 v #38 Supervisor.sendJson / port: 13805 / json:                │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/a65342ccc7da0da967b18d8e705d0260e9a932e5e68c0feb33db55c │
> │ 4d28170aa/main.spi"}} / result:                                              │
> │ 00:00:21 d #39 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:21 d #40 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:29 v #14 > 00:00:02 d #4                                     │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa/main.spi                               │
> │ 00:00:21 d #41 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:21 d #42 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:22 d #43 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:22 d #44 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:22 d #45 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:22 d #46 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:23 d #47 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:23 d #48 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:23 d #49 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:23 d #50 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:24 d #51 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:24 d #52 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:24 d #53 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:24 d #54 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:25 d #55 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((Cannot find `main` in file main., FatalError "Cannot find       │
> │ `main` in file main.")) / path:                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:25 d #56 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "Cannot find `main` in file main.",                                      │
> │     {                                                                        │
> │       "FatalError": "Cannot find `main` in file main."                       │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:25 v #57 Supervisor.sendJson / port: 13805 / json:                │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/a65342ccc7da0da967 │
> │ b18d8e705d0260e9a932e5e68c0feb33db55c4d28170aa"]}} / result:                 │
> │ 00:00:36 v #12 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:25 d #58 FileSystem.watchWithFilter / Disposing watch stream /    │
> │ filter: FileName, LastWrite                                                  │
> │ Some (None, ["Cannot find `main` in file main."])                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     1i32 / 0i32
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "An attempt to divide by zero has been detected at compile time." ]]
>     )
> )
> 
> ╭─[ 6.14s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:36 v #13 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:00:33 d #15 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@7-93>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:33 v #16 > 00:00:00 d #1 pwd: C:\home\git\polyglot           │
> │ 00:00:33 v #17 > 00:00:00 d #2 dllPath:                            │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:33 v #18 > 00:00:00 d #3 targetDir:                          │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:37 v #14 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:37 v #15 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:34 v #19 > Starting the Spiral Server. It is bound to:            │
> │ http://localhost:13805                                                       │
> │ 00:00:37 v #16 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:26 v #59 Supervisor.sendJson / port: 13805 / json: {"Ping":true}  │
> │ / result:                                                                    │
> │ 00:00:26 v #60 Supervisor.awaitCompiler / Ping / result: 'Some null' /  │
> │ port: 13805 / retry: 1                                                       │
> │ 00:00:34 v #20 > Server bound to: http://localhost:13805                │
> │ 00:00:26 d #61 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:26 d #62 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:26 d #63 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:26 v #64 Supervisor.sendJson / port: 13805 / json:                │
> │ {"FileOpen":{"spiText":"inl main () =\n    1i32 /                            │
> │ 0i32\n","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/fef9 │
> │ 812d9b06b75b1ab26589e52c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi"}} /   │
> │ result:                                                                      │
> │ 00:00:26 v #65 Supervisor.sendJson / port: 13805 / json:                │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/fef9812d9b06b75b1ab26589e52c6d6ff05910b73ead9e8c4f27f88 │
> │ d2a5cdfb2/main.spi"}} / result:                                              │
> │ 00:00:27 d #66 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:27 d #67 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:35 v #21 > 00:00:01 d #4                                     │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi                               │
> │ 00:00:27 d #68 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:27 d #69 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:28 d #70 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:28 d #71 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:28 d #72 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:28 d #73 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:29 d #74 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:29 d #75 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:29 d #76 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:29 d #77 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:30 d #78 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:30 d #79 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:30 d #80 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:30 d #81 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:31 d #82 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((An attempt to divide by zero has been detected at compile       │
> │ time., TracedError                                                           │
> │   { message = "An attempt to divide by zero has been detected at compile     │
> │ time."                                                                       │
> │     trace =                                                                  │
> │      ["Error trace on line: 1, column: 10 in module:                         │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ";                                                                           │
> │       "Error trace on line: 2, column: 5 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │     1i32 / 0i32                                                              │
> │     ^                                                                        │
> │ "] })) / path:                                                               │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:31 d #83 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "An attempt to divide by zero has been detected at compile time.",       │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "An attempt to divide by zero has been detected at        │
> │ compile time.",                                                              │
> │         "trace": [                                                           │
> │           "Error trace on line: 1, column: 10 in module:                     │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ",                                                                           │
> │           "Error trace on line: 2, column: 5 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │     1i32 / 0i32                                                              │
> │     ^                                                                        │
> │ "                                                                            │
> │         ]                                                                    │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:31 v #84 Supervisor.sendJson / port: 13805 / json:                │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1a │
> │ b26589e52c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2"]}} / result:                 │
> │ 00:00:42 v #17 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:31 d #85 FileSystem.watchWithFilter / Disposing watch stream /    │
> │ filter: FileName, LastWrite                                                  │
> │ Some (None, ["An attempt to divide by zero has been detected at compile      │
> │ time."])                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     1 + ""
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[
>             "main.spi:
> Constraint satisfaction error.
> Got: string
> Fails to satisfy: number"
>         ]]
>     )
> )
> 
> ╭─[ 6.42s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:43 v #18 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:00:39 d #22 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@7-93>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:39 v #23 > 00:00:00 d #1 pwd: C:\home\git\polyglot           │
> │ 00:00:39 v #24 > 00:00:00 d #2 dllPath:                            │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:39 v #25 > 00:00:00 d #3 targetDir:                          │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:43 v #19 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:43 v #20 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:40 v #26 > Starting the Spiral Server. It is bound to:            │
> │ http://localhost:13805                                                       │
> │ 00:00:43 v #21 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:32 v #86 Supervisor.sendJson / port: 13805 / json: {"Ping":true}  │
> │ / result:                                                                    │
> │ 00:00:32 v #87 Supervisor.awaitCompiler / Ping / result: 'Some null' /  │
> │ port: 13805 / retry: 1                                                       │
> │ 00:00:40 v #27 > Server bound to: http://localhost:13805                │
> │ 00:00:32 d #88 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:32 d #89 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:32 d #90 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:32 v #91 Supervisor.sendJson / port: 13805 / json:                │
> │ {"FileOpen":{"spiText":"inl main () =\n    1 \u002B                          │
> │ \u0022\u0022\n","uri":"file:///c:/home/git/polyg...et/spiral_Eval/packages/c │
> │ 030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"}}  │
> │ / result:                                                                    │
> │ 00:00:32 v #92 Supervisor.sendJson / port: 13805 / json:                │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/c030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df │
> │ 713504aa0/main.spi"}} / result:                                              │
> │ 00:00:33 d #93 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:33 d #94 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:41 v #28 > 00:00:01 d #4                                     │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0/main.spi                               │
> │ 00:00:33 d #95 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:33 d #96 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:34 d #97 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:34 d #98 Supervisor.buildFile / takeWhileInclusive /              │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:34 d #99 Supervisor.buildFile / AsyncSeq.scan / outputContent:    │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:34 d #100 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:35 d #101 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:35 d #102 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:36 d #103 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:36 d #104 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:36 d #105 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:36 d #106 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:36 d #107 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((File main has a type error somewhere in its path., FatalError   │
> │ "File main has a type error somewhere in its path.")) / path:                │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:36 d #108 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 1 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:37 d #109 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 1 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:37 d #110 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 2 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:37 d #111 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 2 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:37 d #112 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 3 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:48 v #22 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:00:37 d #113 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:37 d #114 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:37 d #115 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:37 v #116 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileOpen":{"spiText":"inl main () =\n    1 \u002B                          │
> │ \u0022\u0022\n","uri":"file:///c:/home/git/polyg...et/spiral_Eval/packages/c │
> │ 030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"}}  │
> │ / result:                                                                    │
> │ 00:00:37 v #117 Supervisor.sendJson / port: 13805 / json:               │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/c030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df │
> │ 713504aa0/main.spi"}} / result:                                              │
> │ 00:00:45 v #29 > 00:00:05 d #5                                     │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0/main.spi                               │
> │ 00:00:37 d #118 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error: Some((main.spi:                                                       │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number, TypeErrors                                         │
> │   { errors =                                                                 │
> │      [(({ character = 8                                                      │
> │           line = 1 }, { character = 10                                       │
> │                         line = 1 }),                                         │
> │        "Constraint satisfaction error.                                       │
> │ Got: string                                                                  │
> │ Fails to satisfy: number")]                                                  │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:37 d #119 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number",                                                   │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 10,                                             │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Constraint satisfaction error.                                  │
> │ Got: string                                                                  │
> │ Fails to satisfy: number"                                                    │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 1 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:37 v #120 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0"]}} / result:                 │
> │ 00:00:37 d #121 FileSystem.watchWithFilter / Disposing watch stream /   │
> │ filter: FileName, LastWrite                                                  │
> │ 00:00:49 v #23 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:37 d #122 FileSystem.watchWithFilter / Disposing watch stream /   │
> │ filter: FileName, LastWrite                                                  │
> │ Some (None, ["main.spi:                                                      │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number"])                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     x + y
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[
>             "main.spi:
> Unbound variable: x.
> Unbound variable: y."
>         ]]
>     )
> )
> 
> ╭─[ 5.82s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:49 v #24 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:00:45 d #30 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@7-93>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:46 v #31 > 00:00:00 d #1 pwd: C:\home\git\polyglot           │
> │ 00:00:46 v #32 > 00:00:00 d #2 dllPath:                            │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:46 v #33 > 00:00:00 d #3 targetDir:                          │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:50 v #25 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:50 v #26 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:46 v #34 > Starting the Spiral Server. It is bound to:            │
> │ http://localhost:13805                                                       │
> │ 00:00:50 v #27 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:50 v #28 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:39 d #123 Async.runWithTimeoutAsync / timeout: 500                │
> │ 00:00:39 v #124 Supervisor.sendJson / port: 13805 / json: {"Ping":true} │
> │ / result:                                                                    │
> │ 00:00:39 v #125 Supervisor.awaitCompiler / Ping / result: 'Some null' / │
> │ port: 13805 / retry: 1                                                       │
> │ 00:00:46 v #35 > Server bound to: http://localhost:13805                │
> │ 00:00:39 d #126 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:39 d #127 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:39 d #128 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:39 v #129 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileOpen":{"spiText":"inl main () =\n    x \u002B                          │
> │ y\n","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec5 │
> │ 07f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"}} /      │
> │ result:                                                                      │
> │ 00:00:39 v #130 Supervisor.sendJson / port: 13805 / json:               │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767f │
> │ de35dc5d1/main.spi"}} / result:                                              │
> │ 00:00:40 d #131 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:40 d #132 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:47 v #36 > 00:00:01 d #4                                     │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1/main.spi                               │
> │ 00:00:40 d #133 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:40 d #134 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:41 d #135 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:41 d #136 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:41 d #137 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:41 d #138 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:42 d #139 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:42 d #140 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:42 d #141 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:42 d #142 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:43 d #143 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:43 d #144 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:43 d #145 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((File main has a type error somewhere in its path., FatalError   │
> │ "File main has a type error somewhere in its path.")) / path:                │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:43 d #146 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 1 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:43 d #147 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 1 / retry: 0 /       │
> │ error: Some((main.spi:                                                       │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y., TypeErrors                                             │
> │   { errors =                                                                 │
> │      [(({ character = 4                                                      │
> │           line = 1 }, { character = 5                                        │
> │                         line = 1 }), "Unbound variable: x.");                │
> │       (({ character = 8                                                      │
> │           line = 1 }, { character = 9                                        │
> │                         line = 1 }), "Unbound variable: y.")]                │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:43 d #148 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y.",                                                       │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 4,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 5,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: x."                                           │
> │           ],                                                                 │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 9,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: y."                                           │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 1 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:54 v #29 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:00:43 d #149 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:43 d #150 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:43 d #151 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:43 v #152 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileOpen":{"spiText":"inl main () =\n    x \u002B                          │
> │ y\n","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec5 │
> │ 07f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"}} /      │
> │ result:                                                                      │
> │ 00:00:43 v #153 Supervisor.sendJson / port: 13805 / json:               │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767f │
> │ de35dc5d1/main.spi"}} / result:                                              │
> │ 00:00:51 v #37 > 00:00:05 d #5                                     │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1/main.spi                               │
> │ 00:00:43 d #154 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error: Some((main.spi:                                                       │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y., TypeErrors                                             │
> │   { errors =                                                                 │
> │      [(({ character = 4                                                      │
> │           line = 1 }, { character = 5                                        │
> │                         line = 1 }), "Unbound variable: x.");                │
> │       (({ character = 8                                                      │
> │           line = 1 }, { character = 9                                        │
> │                         line = 1 }), "Unbound variable: y.")]                │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:43 d #155 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y.",                                                       │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 4,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 5,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: x."                                           │
> │           ],                                                                 │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 9,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: y."                                           │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 1 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:43 v #156 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1"]}} / result:                 │
> │ 00:00:43 d #157 FileSystem.watchWithFilter / Disposing watch stream /   │
> │ filter: FileName, LastWrite                                                  │
> │ 00:00:54 v #30 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:43 d #158 FileSystem.watchWithFilter / Disposing watch stream /   │
> │ filter: FileName, LastWrite                                                  │
> │ Some (None, ["main.spi:                                                      │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y."])                                                      │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl main () =
>     real
>         inl unbox_real forall a. (obj : a) : a =
>             typecase obj with
>             | _ => obj
>         unbox_real ()
>     ()
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "Cannot apply a forall with a term." ]]
>     )
> )
> 
> ╭─[ 6.00s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:55 v #31 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:00:51 d #38 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@7-93>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:52 v #39 > 00:00:00 d #1 pwd: C:\home\git\polyglot           │
> │ 00:00:52 v #40 > 00:00:00 d #2 dllPath:                            │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:52 v #41 > 00:00:00 d #3 targetDir:                          │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:55 v #32 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:56 v #33 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:52 v #42 > Starting the Spiral Server. It is bound to:            │
> │ http://localhost:13805                                                       │
> │ 00:00:56 v #34 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:56 v #35 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:45 d #159 Async.runWithTimeoutAsync / timeout: 500                │
> │ 00:00:45 v #160 Supervisor.sendJson / port: 13805 / json: {"Ping":true} │
> │ / result:                                                                    │
> │ 00:00:45 v #161 Supervisor.awaitCompiler / Ping / result: 'Some null' / │
> │ port: 13805 / retry: 1                                                       │
> │ 00:00:52 v #43 > Server bound to: http://localhost:13805                │
> │ 00:00:45 d #162 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:45 d #163 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:45 d #164 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:45 v #165 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl unbox_real    │
> │ forall a. (obj : a) : a                                                      │
> │ =\...et/spiral_Eval/packages/667528659dc2e5af51a6ec17f1774bd7ffff5b5a47e4e11 │
> │ 7eec78e740987f29a/main.spi"}} / result:                                      │
> │ 00:00:45 v #166 Supervisor.sendJson / port: 13805 / json:               │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/667528659dc2e5af51a6ec17f1774bd7ffff5b5a47e4e117eec78e7 │
> │ 40987f29a/main.spi"}} / result:                                              │
> │ 00:00:45 d #167 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:45 d #168 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:53 v #44 > 00:00:01 d #4                                     │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi                               │
> │ 00:00:46 d #169 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:46 d #170 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:46 d #171 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:46 d #172 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:47 d #173 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:47 d #174 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:47 d #175 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:47 d #176 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:48 d #177 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:48 d #178 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:48 d #179 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:48 d #180 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:49 d #181 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:49 d #182 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:49 d #183 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((Cannot apply a forall with a term., TracedError                 │
> │   { message = "Cannot apply a forall with a term."                           │
> │     trace =                                                                  │
> │      ["Error trace on line: 2, column: 10 in module:                         │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ";                                                                           │
> │       "Error trace on line: 4, column: 9 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │         inl unbox_real forall a. (obj : a) : a =                             │
> │         ^                                                                    │
> │ ";                                                                           │
> │       "Error trace on line: 7, column: 9 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │         unbox_real ()                                                        │
> │         ^                                                                    │
> │ "] })) / path:                                                               │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:49 d #184 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "Cannot apply a forall with a term.",                                    │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "Cannot apply a forall with a term.",                     │
> │         "trace": [                                                           │
> │           "Error trace on line: 2, column: 10 in module:                     │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ",                                                                           │
> │           "Error trace on line: 4, column: 9 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │         inl unbox_real forall a. (obj : a) : a =                             │
> │         ^                                                                    │
> │ ",                                                                           │
> │           "Error trace on line: 7, column: 9 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │         unbox_real ()                                                        │
> │         ^                                                                    │
> │ "                                                                            │
> │         ]                                                                    │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:49 v #185 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51 │
> │ a6ec17f1774bd7ffff5b5a47e4e117eec78e740987f29a"]}} / result:                 │
> │ 00:01:00 v #36 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:49 d #186 FileSystem.watchWithFilter / Disposing watch stream /   │
> │ filter: FileName, LastWrite                                                  │
> │ Some (None, ["Cannot apply a forall with a term."])                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl main () =
>     real
>         inl unbox_real forall a. (obj : a) : a =
>             typecase obj with
>             | _ => obj
>         unbox_real `i32 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "The main function should not have a forall." ]]
>     )
> )
> 
> ╭─[ 6.15s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:01:01 v #37 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:00:57 d #45 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@7-93>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:58 v #46 > 00:00:00 d #1 pwd: C:\home\git\polyglot           │
> │ 00:00:58 v #47 > 00:00:00 d #2 dllPath:                            │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:58 v #48 > 00:00:00 d #3 targetDir:                          │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:01:02 v #38 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:02 v #39 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:58 v #49 > Starting the Spiral Server. It is bound to:            │
> │ http://localhost:13805                                                       │
> │ 00:01:02 v #40 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:51 v #187 Supervisor.sendJson / port: 13805 / json: {"Ping":true} │
> │ / result:                                                                    │
> │ 00:00:51 v #188 Supervisor.awaitCompiler / Ping / result: 'Some null' / │
> │ port: 13805 / retry: 1                                                       │
> │ 00:00:58 v #50 > Server bound to: http://localhost:13805                │
> │ 00:00:51 d #189 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:51 d #190 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:51 d #191 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:51 v #192 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl unbox_real    │
> │ forall a. (obj : a) : a                                                      │
> │ =\...et/spiral_Eval/packages/0ba44c42df309b790acdf4f9fc55fcc7912380f5dd2d90f │
> │ ad118bad793251c4f/main.spi"}} / result:                                      │
> │ 00:00:51 v #193 Supervisor.sendJson / port: 13805 / json:               │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/0ba44c42df309b790acdf4f9fc55fcc7912380f5dd2d90fad118bad │
> │ 793251c4f/main.spi"}} / result:                                              │
> │ 00:00:51 d #194 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:51 d #195 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:59 v #51 > 00:00:01 d #4                                     │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f/main.spi                               │
> │ 00:00:52 d #196 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:52 d #197 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:52 d #198 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:52 d #199 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:53 d #200 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:53 d #201 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:53 d #202 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:53 d #203 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:54 d #204 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:54 d #205 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:54 d #206 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:54 d #207 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:55 d #208 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:55 d #209 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:55 d #210 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((The main function should not have a forall., TracedError {      │
> │ message = "The main function should not have a forall."                      │
> │               trace = [] })) / path:                                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:55 d #211 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "The main function should not have a forall.",                           │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "The main function should not have a forall.",            │
> │         "trace": []                                                          │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:55 v #212 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/0ba44c42df309b790a │
> │ cdf4f9fc55fcc7912380f5dd2d90fad118bad793251c4f"]}} / result:                 │
> │ 00:01:07 v #41 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:55 d #213 FileSystem.watchWithFilter / Disposing watch stream /   │
> │ filter: FileName, LastWrite                                                  │
> │ Some (None, ["The main function should not have a forall."])                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.1 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some "0.3325000000000001\n",
>         [[]]
>     )
> )
> 
> ╭─[ 6.16s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:01:07 v #42 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:01:03 d #52 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@7-93>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:01:04 v #53 > 00:00:00 d #1 pwd: C:\home\git\polyglot           │
> │ 00:01:04 v #54 > 00:00:00 d #2 dllPath:                            │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:01:04 v #55 > 00:00:00 d #3 targetDir:                          │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:01:08 v #43 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:08 v #44 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:04 v #56 > Starting the Spiral Server. It is bound to:            │
> │ http://localhost:13805                                                       │
> │ 00:01:08 v #45 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:08 v #46 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:00:57 d #214 Async.runWithTimeoutAsync / timeout: 500                │
> │ 00:00:57 v #215 Supervisor.sendJson / port: 13805 / json: {"Ping":true} │
> │ / result:                                                                    │
> │ 00:00:57 v #216 Supervisor.awaitCompiler / Ping / result: 'Some null' / │
> │ port: 13805 / retry: 1                                                       │
> │ 00:01:04 v #57 > Server bound to: http://localhost:13805                │
> │ 00:00:57 d #217 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:57 d #218 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:57 d #219 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:57 v #220 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/c127414de2a2a92d9fd93ea5a8e9312a6aad9129ffd │
> │ 3cbd56ac7f0327106f1db/main.spi"}} / result:                                  │
> │ 00:00:57 v #221 Supervisor.sendJson / port: 13805 / json:               │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/c127414de2a2a92d9fd93ea5a8e9312a6aad9129ffd3cbd56ac7f03 │
> │ 27106f1db/main.spi"}} / result:                                              │
> │ 00:00:58 d #222 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:58 d #223 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:05 v #58 > 00:00:01 d #4                                     │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db/main.spi                               │
> │ 00:00:58 d #224 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:58 d #225 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:59 d #226 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:59 d #227 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:59 d #228 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:59 d #229 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:00 d #230 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:00 d #231 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:00 d #232 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:00 d #233 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:01 d #234 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:01 d #235 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:01 d #236 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:01 d #237 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:02 d #238 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │ 0.3325000000000001                                                           │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:02 d #239 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │ 0.3325000000000001                                                           │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:01:02 v #240 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c127414de2a2a92d9f │
> │ d93ea5a8e9312a6aad9129ffd3cbd56ac7f0327106f1db"]}} / result:                 │
> │ 00:01:13 v #47 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:02 d #241 FileSystem.watchWithFilter / Disposing watch stream /   │
> │ filter: FileName, LastWrite                                                  │
> │ Some (Some "0.3325000000000001                                               │
> │ ", [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.1 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Cuda [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some @"kernel = r""""""
> """"""
> class static_array():
>     def __init__(self, length):
>         self.ptr = [[]]
>         for _ in range(length):
>             self.ptr.append(None)
> 
>     def __getitem__(self, index):
>         assert 0 <= index < len(self.ptr), ""The get index needs to be in 
> range.""
>         return self.ptr[[index]]
>     
>     def __setitem__(self, index, value):
>         assert 0 <= index < len(self.ptr), ""The set index needs to be in 
> range.""
>         self.ptr[[index]] = value
> 
> class static_array_list(static_array):
>     def __init__(self, length):
>         super().__init__(length)
>         self.length = 0
> 
>     def __getitem__(self, index):
>         assert 0 <= index < self.length, ""The get index needs to be in range.""
>         return self.ptr[[index]]
>     
>     def __setitem__(self, index, value):
>         assert 0 <= index < self.length, ""The set index needs to be in range.""
>         self.ptr[[index]] = value
> 
>     def push(self,value):
>         assert (self.length < len(self.ptr)), ""The length before pushing has to
> be less than the maximum length of the array.""
>         self.ptr[[self.length]] = value
>         self.length += 1
> 
>     def pop(self):
>         assert (0 < self.length), ""The length before popping has to be greater 
> than 0.""
>         self.length -= 1
>         return self.ptr[[self.length]]
> 
>     def unsafe_set_length(self,i):
>         assert 0 <= i <= len(self.ptr), ""The new length has to be in range.""
>         self.length = i
> 
> class dynamic_array(static_array): 
>     pass
> 
> class dynamic_array_list(static_array_list):
>     def length_(self): return self.length
> 
> import cupy as cp
> from dataclasses import dataclass
> from typing import NamedTuple, Union, Callable, Tuple
> i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = 
> string = str
> 
> def main():
>     return 0.3325000000000001
> 
> if __name__ == '__main__': result = main(); None if result is None else 
> print(result)
> ",
>         [[]]
>     )
> )
> 
> ╭─[ 6.16s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:01:13 v #48 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:01:10 d #59 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@7-93>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:01:10 v #60 > 00:00:00 d #1 pwd: C:\home\git\polyglot           │
> │ 00:01:10 v #61 > 00:00:00 d #2 dllPath:                            │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:01:10 v #62 > 00:00:00 d #3 targetDir:                          │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:01:14 v #49 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:14 v #50 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:10 v #63 > Starting the Spiral Server. It is bound to:            │
> │ http://localhost:13805                                                       │
> │ 00:01:14 v #51 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:14 v #52 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:03 d #242 Async.runWithTimeoutAsync / timeout: 500                │
> │ 00:01:03 v #243 Supervisor.sendJson / port: 13805 / json: {"Ping":true} │
> │ / result:                                                                    │
> │ 00:01:03 v #244 Supervisor.awaitCompiler / Ping / result: 'Some null' / │
> │ port: 13805 / retry: 1                                                       │
> │ 00:01:11 v #64 > Server bound to: http://localhost:13805                │
> │ 00:01:03 d #245 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:03 d #246 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:03 d #247 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:03 v #248 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/ca288d6928a8e761855210f25f97fdc056ee1f21be4 │
> │ a24b26e8533ec368831c8/main.spi"}} / result:                                  │
> │ 00:01:03 v #249 Supervisor.sendJson / port: 13805 / json:               │
> │ {"BuildFile":{"backend":"Python \u002B                                       │
> │ Cuda","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/ca288d │
> │ 6928a8e761855210f25f97fdc056ee1f21be4a24b26e8533ec368831c8/main.spi"}} /     │
> │ result:                                                                      │
> │ 00:01:04 d #250 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:04 d #251 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:12 v #65 > 00:00:01 d #4                                     │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8/main.spi                               │
> │ 00:01:04 d #252 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:04 d #253 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:05 d #254 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:05 d #255 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:05 d #256 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:05 d #257 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:06 d #258 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:06 d #259 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:06 d #260 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:06 d #261 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:07 d #262 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:07 d #263 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:07 d #264 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:07 d #265 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:08 d #266 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │ kernel = r"""                                                                │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.app...char = string = str                               │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:08 d #267 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │ kernel = r"""                                                                │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.app...char = string = str                               │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:01:08 v #268 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/ca288d6928a8e76185 │
> │ 5210f25f97fdc056ee1f21be4a24b26e8533ec368831c8"]}} / result:                 │
> │ 00:01:19 v #53 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:08 d #269 FileSystem.watchWithFilter / Disposing watch stream /   │
> │ filter: FileName, LastWrite                                                  │
> │ Some                                                                         │
> │   (Some                                                                      │
> │      "kernel = r"""                                                          │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.append(None)                                            │
> │                                                                              │
> │     def __getitem__(self, index):                                            │
> │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
> │ range."                                                                      │
> │         return self.ptr[index]                                               │
> │                                                                              │
> │     def __setitem__(self, index, value):                                     │
> │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
> │ range."                                                                      │
> │         self.ptr[index] = value                                              │
> │                                                                              │
> │ class static_array_list(static_array):                                       │
> │     def __init__(self, length):                                              │
> │         super().__init__(length)                                             │
> │         self.length = 0                                                      │
> │                                                                              │
> │     def __getitem__(self, index):                                            │
> │         assert 0 <= index < self.length, "The get index needs to be in       │
> │ range."                                                                      │
> │         return self.ptr[index]                                               │
> │                                                                              │
> │     def __setitem__(self, index, value):                                     │
> │         assert 0 <= index < self.length, "The set index needs to be in       │
> │ range."                                                                      │
> │         self.ptr[index] = value                                              │
> │                                                                              │
> │     def push(self,value):                                                    │
> │         assert (self.length < len(self.ptr)), "The length before pushing has │
> │ to be less than the maximum length of the array."                            │
> │         self.ptr[self.length] = value                                        │
> │         self.length += 1                                                     │
> │                                                                              │
> │     def pop(self):                                                           │
> │         assert (0 < self.length), "The length before popping has to be       │
> │ greater than 0."                                                             │
> │         self.length -= 1                                                     │
> │         return self.ptr[self.length]                                         │
> │                                                                              │
> │     def unsafe_set_length(self,i):                                           │
> │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
> │         self.length = i                                                      │
> │                                                                              │
> │ class dynamic_array(static_array):                                           │
> │     pass                                                                     │
> │                                                                              │
> │ class dynamic_array_list(static_array_list):                                 │
> │     def length_(self): return self.length                                    │
> │                                                                              │
> │ import cupy as cp                                                            │
> │ from dataclasses import dataclass                                            │
> │ from typing import NamedTuple, Union, Callable, Tuple                        │
> │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
> │ string = str                                                                 │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │ ",                                                                           │
> │    [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.01 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some "0.33332500000000004\n",
>         [[]]
>     )
> )
> // |> _assertEqual None
> // |> fun x -> printfn $"{x.ToDisplayString ()}"
> 
> ╭─[ 5.95s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:01:19 v #54 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:01:16 d #66 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@7-93>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:01:16 v #67 > 00:00:00 d #1 pwd: C:\home\git\polyglot           │
> │ 00:01:16 v #68 > 00:00:00 d #2 dllPath:                            │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:01:16 v #69 > 00:00:00 d #3 targetDir:                          │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:01:20 v #55 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:20 v #56 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:16 v #70 > Starting the Spiral Server. It is bound to:            │
> │ http://localhost:13805                                                       │
> │ 00:01:20 v #57 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:09 v #270 Supervisor.sendJson / port: 13805 / json: {"Ping":true} │
> │ / result:                                                                    │
> │ 00:01:09 v #271 Supervisor.awaitCompiler / Ping / result: 'Some null' / │
> │ port: 13805 / retry: 1                                                       │
> │ 00:01:17 v #71 > Server bound to: http://localhost:13805                │
> │ 00:01:09 d #272 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:09 d #273 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:09 d #274 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:09 v #275 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/2acc44d97e6b50ce3caf39a0b93135633484d22c3ef │
> │ 6e7797ce64875a41451f4/main.spi"}} / result:                                  │
> │ 00:01:09 v #276 Supervisor.sendJson / port: 13805 / json:               │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/2acc44d97e6b50ce3caf39a0b93135633484d22c3ef6e7797ce6487 │
> │ 5a41451f4/main.spi"}} / result:                                              │
> │ 00:01:10 d #277 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:10 d #278 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:17 v #72 > 00:00:01 d #4                                     │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4/main.spi                               │
> │ 00:01:10 d #279 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:10 d #280 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:11 d #281 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:11 d #282 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:11 d #283 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:11 d #284 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:12 d #285 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:12 d #286 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:12 d #287 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:12 d #288 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:13 d #289 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:13 d #290 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:13 d #291 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:13 d #292 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:14 d #293 Supervisor.buildFile / AsyncSeq.scan / outputContent:   │
> │ 0.33332500000000004                                                          │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:14 d #294 Supervisor.buildFile / takeWhileInclusive /             │
> │ outputContent:                                                               │
> │ 0.33332500000000004                                                          │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:01:14 v #295 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/2acc44d97e6b50ce3c │
> │ af39a0b93135633484d22c3ef6e7797ce64875a41451f4"]}} / result:                 │
> │ 00:01:25 v #58 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:14 d #296 FileSystem.watchWithFilter / Disposing watch stream /   │
> │ filter: FileName, LastWrite                                                  │
> │ Some (Some "0.33332500000000004                                              │
> │ ", [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getFileTokenRange                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getFileTokenRange port cancellationToken path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let! code = fullPath |> SpiralFileSystem.read_all_text_async
>     let lines = code |> SpiralSm.split "\n"
> 
>     let struct (token, disposable) = SpiralThreading.new_disposable_token 
> cancellationToken
>     use _ = disposable
> 
>     let port = port |> Option.defaultWith getCompilerPort
>     let! serverPort, _errors, ct, disposable = awaitCompiler port (Some token)
>     use _ = disposable
> 
>     let fullPathUri = fullPath |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
> 
>     let fileOpenObj = {| FileOpen = {| uri = fullPathUri; spiText = code |} |}
>     let! _fileOpenResult = fileOpenObj |> sendObj serverPort
> 
>     // do! Async.Sleep 60
> 
>     let fileTokenRangeObj =
>         {|
>             FileTokenRange =
>                 {|
>                     uri = fullPathUri
>                     range =
>                         [[|
>                             {| line = 0; character = 0 |}
>                             {| line = lines.Length - 1; character = 
> lines.[[lines.Length - 1]].Length |}
>                         |]]
>                 |}
>         |}
>     let! fileTokenRangeResult =
>         fileTokenRangeObj
>         |> sendObj serverPort
>         |> Async.withCancellationToken ct
> 
>     let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>     if fileDir |> SpiralSm.starts_with (workspaceRoot </> "target") then
>         let fileDirUri = fileDir |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
>         let fileDeleteObj = {| FileDelete = {| uris = [[| fileDirUri |]] |} |}
>         let! _fileDeleteResult = fileDeleteObj |> sendObj serverPort
>         ()
> 
>     return fileTokenRangeResult |> Option.map FSharp.Json.Json.deserialize<int 
> array>
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getCodeTokenRange                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getCodeTokenRange cancellationToken code = async {
>     let! mainPath, _ =
>         persistCode {| input = Spi (code, None); backend = None; packages = 
> [[||]] |}
> 
>     let codeDir = mainPath |> System.IO.Path.GetDirectoryName
>     let tokensPath = codeDir </> "tokens.json"
>     let! tokens = async {
>         if tokensPath |> System.IO.File.Exists |> not
>         then return None
>         else
>             let! text = tokensPath |> SpiralFileSystem.read_all_text_async
> 
>             return
>                 if text.Length > 2
>                 then text |> FSharp.Json.Json.deserialize<int array> |> Some
>                 else None
>     }
>     match tokens with
>     | Some tokens ->
>         return tokens |> Some
>     | None -> return! mainPath |> getFileTokenRange None cancellationToken
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () = ()"""
> |> getCodeTokenRange None
> |> Async.runWithTimeout 10000
> |> Option.flatten
> |> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 
> 8; 0; 0; 2; 1; 4; 0; 0;
> 2; 1; 8; 0; 0; 1; 1; 8; 0 |]])
> 
> ╭─[ 5.52s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:01:33 v #59 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:01:29 d #73 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:it@4-194>; stdin = None; trace = true; working_directory = Some    │
> │ "C:\home\git\polyglot" } }                                                   │
> │ 00:01:30 v #74 > 00:00:00 d #1 pwd: C:\home\git\polyglot           │
> │ 00:01:30 v #75 > 00:00:00 d #2 dllPath:                            │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:01:30 v #76 > 00:00:00 d #3 targetDir:                          │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:01:33 v #60 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:34 v #61 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:34 v #62 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:30 v #77 > Starting the Spiral Server. It is bound to:            │
> │ http://localhost:13805                                                       │
> │ 00:01:34 v #63 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:23 v #297 Supervisor.sendJson / port: 13805 / json: {"Ping":true} │
> │ / result:                                                                    │
> │ 00:01:23 v #298 Supervisor.awaitCompiler / Ping / result: 'Some null' / │
> │ port: 13805 / retry: 1                                                       │
> │ 00:01:30 v #78 > Server bound to: http://localhost:13805                │
> │ 00:01:23 v #299 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileOpen":{"spiText":"inl main () =                                        │
> │ ()","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/20e725d4 │
> │ 6cfdc99c0f307f1933a76ec7da4570c1b757721164d86f19feaf821e/main.spi"}} /       │
> │ result:                                                                      │
> │ 00:01:24 v #300 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileTokenRange":{"range":[                                                 │
> │ {"character":0,"line":0},{"character":16,"line":0}],"uri":"file:///c:/ho...e │
> │ t/spiral_Eval/packages/20e725d46cfdc99c0f307f1933a76ec7da4570c1b757721164d86 │
> │ f19feaf821e/main.spi"}} / result: Some([                                     │
> │   0,                                                                         │
> │   0,                                                                         │
> │   3,                                                                         │
> │   7,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   4,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   5,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │  ...8,                                                                       │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   1,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0                                                                          │
> │ ])                                                                           │
> │ 00:01:24 v #301 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/20e725d46cfdc99c0f │
> │ 307f1933a76ec7da4570c1b757721164d86f19feaf821e"]}} / result:                 │
> │ 00:01:35 v #64 async.run_with_timeout_async / { timeout = 100 }         │
> │ Some [|0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 0; 2; 1;  │
> │ 4; 0; 0; 2; 1; 8; 0; 0; 1; 1; 8; 0|]                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () = 1i32"""
> |> getCodeTokenRange None
> |> Async.runWithTimeout 10000
> |> Option.flatten
> |> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 
> 8; 0; 0; 2; 1; 4; 0; 0;
> 2; 1; 3; 0; 0; 1; 3; 12; 0 |]])
> 
> ╭─[ 5.90s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:01:39 v #65 async.run_with_timeout_async / { timeout = 180 }         │
> │ 00:01:35 d #79 runtime.execute_with_options_async / { file_name =       │
> │ dotnet; arguments = US1_0                                                    │
> │   ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language        │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64"; options = { command = dotnet         │
> │ "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language           │
> │ 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805       │
> │ --default-int i32 --default-float f64; cancellation_token = Some             │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:it@4-426>; stdin = None; trace = true; working_directory = Some    │
> │ "C:\home\git\polyglot" } }                                                   │
> │ 00:01:35 v #80 > 00:00:00 d #1 pwd: C:\home\git\polyglot           │
> │ 00:01:35 v #81 > 00:00:00 d #2 dllPath:                            │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:01:35 v #82 > 00:00:00 d #3 targetDir:                          │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:01:39 v #66 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:39 v #67 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:39 v #68 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:36 v #83 > Starting the Spiral Server. It is bound to:            │
> │ http://localhost:13805                                                       │
> │ 00:01:40 v #69 async.run_with_timeout_async / { timeout = 100 }         │
> │ 00:01:28 d #302 Async.runWithTimeoutAsync / timeout: 500                │
> │ 00:01:29 v #303 Supervisor.sendJson / port: 13805 / json: {"Ping":true} │
> │ / result:                                                                    │
> │ 00:01:29 v #304 Supervisor.awaitCompiler / Ping / result: 'Some null' / │
> │ port: 13805 / retry: 1                                                       │
> │ 00:01:36 v #84 > Server bound to: http://localhost:13805                │
> │ 00:01:29 v #305 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileOpen":{"spiText":"inl main () =                                        │
> │ 1i32","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/537082 │
> │ 9508ddefc7386d6b4d280722b47d97cb925585525bee733a187ff8f18b/main.spi"}} /     │
> │ result:                                                                      │
> │ 00:01:30 v #306 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileTokenRange":{"range":[                                                 │
> │ {"character":0,"line":0},{"character":18,"line":0}],"uri":"file:///c:/ho...e │
> │ t/spiral_Eval/packages/5370829508ddefc7386d6b4d280722b47d97cb925585525bee733 │
> │ a187ff8f18b/main.spi"}} / result: Some([                                     │
> │   0,                                                                         │
> │   0,                                                                         │
> │   3,                                                                         │
> │   7,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   4,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   5,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │  ...,                                                                        │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   3,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   1,                                                                         │
> │   3,                                                                         │
> │   12,                                                                        │
> │   0                                                                          │
> │ ])                                                                           │
> │ 00:01:30 v #307 Supervisor.sendJson / port: 13805 / json:               │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/5370829508ddefc738 │
> │ 6d6b4d280722b47d97cb925585525bee733a187ff8f18b"]}} / result:                 │
> │ 00:01:41 v #70 async.run_with_timeout_async / { timeout = 100 }         │
> │ Some [|0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 0; 2; 1;  │
> │ 4; 0; 0; 2; 1; 3; 0; 0; 1; 3; 12; 0|]                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | Build_File of string * string
>     | File_Token_Range of string * string
>     | Execute_Command of string
>     | [[<Argu.ArguAttributes.Unique>]] Timeout of int
>     | [[<Argu.ArguAttributes.Unique>]] Port of int
>     | [[<Argu.ArguAttributes.Unique>]] Parallel
>     | [[<Argu.ArguAttributes.Unique>]] Exit_On_Error
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | Build_File _ -> nameof Build_File
>             | File_Token_Range _ -> nameof File_Token_Range
>             | Execute_Command _ -> nameof Execute_Command
>             | Timeout _ -> nameof Timeout
>             | Port _ -> nameof Port
>             | Parallel -> nameof Parallel
>             | Exit_On_Error-> nameof Exit_On_Error
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 177.05ms - return value ]──────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] [--build-file <string> <string>]                │
> │                    [--file-token-range <string> <string>]                    │
> │                    [--execute-command <string>] [--timeout <int>] [--port    │
> │ <int>]                                                                       │
> │                    [--parallel] [--exit-on-error]                            │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --build-file <string> <string>                                           │
> │                           Build_File                                         │
> │     --file-token-range <string> <string>                                     │
> │                           File_Token_Range                                   │
> │     --execute-command <string>                                               │
> │                           Execute_Command                                    │
> │     --timeout <int>       Timeout                                            │
> │     --port <int>          Port                                               │
> │     --parallel            Parallel                                           │
> │     --exit-on-error       Exit_On_Error                                      │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let buildFileActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.Build_File)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.Build_File (inputPath, outputPath) -> Some (inputPath, 
> outputPath)
>             | _ -> None
>         )
> 
>     let fileTokenRangeActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.File_Token_Range)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.File_Token_Range (inputPath, outputPath) -> Some 
> (inputPath, outputPath)
>             | _ -> None
>         )
> 
>     let executeCommandActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.Execute_Command)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.Execute_Command command -> Some command
>             | _ -> None
>         )
> 
>     let timeout =
>         match argsMap |> Map.tryFind (nameof Arguments.Timeout) with
>         | Some [[ Arguments.Timeout timeout ]] -> timeout
>         | _ -> 60000 * 60
> 
>     let port =
>         match argsMap |> Map.tryFind (nameof Arguments.Port) with
>         | Some [[ Arguments.Port port ]] -> Some port
>         | _ -> None
> 
>     let isParallel = argsMap |> Map.containsKey (nameof Arguments.Parallel)
> 
>     let isExitOnError = argsMap |> Map.containsKey (nameof 
> Arguments.Exit_On_Error)
> 
>     async {
>         let port =
>             port
>             |> Option.defaultWith getCompilerPort
>         let struct (localToken, disposable) = 
> SpiralThreading.new_disposable_token None
>         let! serverPort, _errors, compilerToken, disposable = awaitCompiler port
> (Some localToken)
>         use _ = disposable
> 
>         let buildFileAsync =
>             buildFileActions
>             |> List.map (fun (inputPath, outputPath) -> async {
>                 let! _outputPath, (outputCode, errors) =
>                     let backend =
>                         if outputPath |> SpiralSm.ends_with ".fsx"
>                         then Fsharp
>                         elif outputPath |> SpiralSm.ends_with ".py"
>                         then Cuda
>                         else failwith $"Supervisor.main / invalid backend / 
> outputPath: {outputPath}"
>                     let isReal = inputPath |> SpiralSm.ends_with ".spir"
>                     inputPath |> buildFile backend timeout (Some serverPort) 
> None
> 
>                 errors
>                 |> List.map snd
>                 |> List.iter (fun error ->
>                     trace Critical (fun () -> $"main / error: {error |> 
> serializeObj}") _locals
>                 )
> 
>                 match outputCode with
>                 | Some outputCode ->
>                     do! outputCode |> SpiralFileSystem.write_all_text_exists 
> outputPath
>                     return 0
>                 | None ->
>                     if isExitOnError
>                     then SpiralRuntime.current_process_kill ()
> 
>                     return 1
>             })
> 
>         let fileTokenRangeAsync =
>             fileTokenRangeActions
>             |> List.map (fun (inputPath, outputPath) -> async {
>                 let! tokenRange = inputPath |> getFileTokenRange (Some 
> serverPort) None
>                 match tokenRange with
>                 | Some tokenRange ->
>                     do! tokenRange |> FSharp.Json.Json.serialize |> 
> SpiralFileSystem.write_all_text_exists outputPath
>                     return 0
>                 | None ->
>                     if isExitOnError
>                     then SpiralRuntime.current_process_kill ()
> 
>                     return 1
>             })
> 
>         let executeCommandAsync =
>             executeCommandActions
>             |> List.map (fun command -> async {
>                 let! exitCode, result =
>                     SpiralRuntime.execution_options (fun x ->
>                         { x with
>                             l0 = command
>                             l1 = Some compilerToken
>                         }
>                     )
>                     |> SpiralRuntime.execute_with_options_async
> 
>                 trace Debug (fun () -> $"main / executeCommand / exitCode: 
> {exitCode} / command: {command}") _locals
> 
>                 if isExitOnError && exitCode <> 0
>                 then SpiralRuntime.current_process_kill ()
> 
>                 return exitCode
>             })
> 
>         return!
>             [[| buildFileAsync; fileTokenRangeAsync; executeCommandAsync |]]
>             |> Seq.collect id
>             |> fun x ->
>                 if isParallel
>                 then Async.Parallel (x, float System.Environment.ProcessorCount 
> * 0.51 |> ceil |> int)
>                 else Async.Sequential x
>             |> Async.map Array.sum
>     }
>     |> Async.runWithTimeout timeout
>     |> Option.defaultValue 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 107.09ms - return value ]──────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 236131 }
00:02:07 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:09 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb to html
00:02:09 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:09 v #7 !   validate(nb)
00:02:10 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:02:10 v #9 !   return _pygments_highlight(
00:02:11 v #10 ! [NbConvertApp] Writing 583855 bytes to c:\home\git\polyglot\apps\spiral\Supervisor.dib.html
00:02:12 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 864 }
00:02:12 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 864 }
00:02:12 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Supervisor.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Supervisor.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:12 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:12 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:12 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 237054 }
00:00:00 d #1 writeDibCode / output: Fs / path: Supervisor.dib
00:00:00 d #2 parseDibCode / output: Fs / file: Supervisor.dib
00:00:00 d #1 persistCodeProject / packages: [Argu; FSharp.Control.AsyncSeq; FSharp.Json; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: Supervisor / hash:  / code.Length: 28671
00:00:00 d #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  "publish "C:\home\git\polyglot\target/Builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime linux-x64"; options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\Supervisor" } }
00:00:00 v #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 v #3 >   Determining projects to restore...
00:00:02 v #4 >   Restored C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj (in 551 ms).
00:00:02 v #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj]
00:00:24 v #6 >   Supervisor -> C:\home\git\polyglot\target\Builder\Supervisor\bin\Release\net9.0\linux-x64\Supervisor.dll
00:00:25 v #7 >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:26 d #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 688 }
00:00:26 d #9 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  "publish "C:\home\git\polyglot\target/Builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime win-x64"; options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\Supervisor" } }
00:00:26 v #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:27 v #11 >   Determining projects to restore...
00:00:28 v #12 >   Restored C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj (in 540 ms).
00:00:28 v #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj]
00:00:50 v #14 >   Supervisor -> C:\home\git\polyglot\target\Builder\Supervisor\bin\Release\net9.0\win-x64\Supervisor.dll
00:00:51 v #15 >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:52 d #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 686 }
00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Eval.dib", "--retries", "3"])) }
00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/Eval.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/Eval.dib" --output-path "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Eval (Polyglot)                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
> mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
> ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
> 7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
> #r 
> @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
> rp.Json.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.management/7.0.0/lib/netstandard2.
> 0/System.Management.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> open Microsoft.AspNetCore.SignalR.Client
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open System
> open System.Collections.Generic
> open System.IO
> open System.Text
> open System.Threading
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## mapErrors                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline mapErrors (severity, errors, lastTopLevelIndex) allCode =
>     let allCodeLineLength =
>         allCode |> SpiralSm.split "\n" |> Array.length
> 
>     errors
>     |> List.map (fun (_, error) ->
>         match error with
>         | Supervisor.FatalError message ->
>             (
>                 severity, message, 0, ("", (0, 0), (0, 0))
>             )
>             |> List.singleton
>         | Supervisor.TracedError data ->
>             data.trace
>             |> List.truncate 5
>             |> List.append [[ data.message ]]
>             |> List.map (fun message ->
>                 (
>                     severity, message, 0, ("", (0, 0), (0, 0))
>                 )
>             )
>         | Supervisor.PackageErrors data
>         | Supervisor.TokenizerErrors data
>         | Supervisor.ParserErrors data
>         | Supervisor.TypeErrors data ->
>             data.errors
>             |> List.filter (fun ((rangeStart, _), _) ->
>                 trace Debug (fun () -> $"Eval.mapErrors / rangeStart.line: 
> {rangeStart.line} / lastTopLevelIndex: {lastTopLevelIndex} / allCodeLineLength: 
> {allCodeLineLength} / filtered: {rangeStart.line > allCodeLineLength}") _locals
>                 rangeStart.line > allCodeLineLength
>             )
>             |> List.map (fun ((rangeStart, rangeEnd), message) ->
>                 (
>                     severity,
>                     message,
>                     0,
>                     (
>                         (data.uri |> System.IO.Path.GetFileName),
>                         (
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeStart.line - allCodeLineLength - 2
>                             | _ -> rangeStart.line - allCodeLineLength),
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeStart.character - 4
>                             | _ -> rangeStart.character)
>                         ),
>                         (
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeEnd.line - allCodeLineLength - 2
>                             | _ -> rangeEnd.line - allCodeLineLength),
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeEnd.character - 4
>                             | _ -> rangeEnd.character)
>                         )
>                     )
>                 )
>             )
>     )
>     |> List.collect id
>     |> List.toArray
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### workspaceRoot                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### targetDir                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let targetDir = workspaceRoot </> "target/spiral_Eval"
> [[ targetDir ]]
> |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### assemblyName                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let assemblyName = Reflection.Assembly.GetEntryAssembly().GetName().Name
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## allCode                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable allCode = ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### allPackages                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable allPackages : string [[]] = [[||]]
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## allCodeReal                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable allCodeReal = ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## traceToggle                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable traceToggle = false
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getParentProcessId                                                        │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let getParentProcessId () =
>     if SpiralPlatform.is_windows () |> not
>     then 0u
>     else
>         let pid = System.Diagnostics.Process.GetCurrentProcess().Id
>         let query = $"SELECT ParentProcessId FROM Win32_Process WHERE ProcessId 
> = {pid}"
>         use searcher = new System.Management.ManagementObjectSearcher (query)
>         use results = searcher.Get ()
>         let data = results |> Seq.cast<System.Management.ManagementObject>
>         if data |> Seq.isEmpty
>         then 0u
>         else data |> Seq.head |> (fun mo -> mo.[["ParentProcessId"]] :?> uint32)
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## startTokenRangeWatcher                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline startTokenRangeWatcher () =
>     if [[ "dotnet-repl" ]] |> List.contains assemblyName |> not then
>         let tokensDir = targetDir </> "tokens"
> 
>         [[ tokensDir ]]
>         |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
>         let stream, disposable = FileSystem.watchDirectory (fun _ -> false) 
> tokensDir
> 
>         try
>             let existingFilesChild =
>                 tokensDir
>                 |> System.IO.Directory.GetDirectories
>                 |> Array.map (fun codeDir -> async {
>                     try
>                         let tokensPath = codeDir </> "tokens.json"
>                         if tokensPath |> File.Exists |> not then
>                             let spiralCodePath = codeDir </> "main.spi"
>                             let spiralRealCodePath = codeDir </> 
> "main_real.spir"
>                             let spiralExists = spiralCodePath |> 
> System.IO.File.Exists
>                             let spiralRealExists = spiralRealCodePath |> 
> System.IO.File.Exists
>                             if spiralExists |> not && spiralRealExists |> not
>                             then do! codeDir |> 
> SpiralFileSystem.delete_directory_async |> Async.Ignore
>                             else
>                                 let! tokens =
>                                     if spiralExists then spiralCodePath else 
> spiralRealCodePath
>                                     |> Supervisor.getFileTokenRange None None
>                                 match tokens with
>                                 | Some tokens ->
>                                     do!
>                                         tokens
>                                         |> FSharp.Json.Json.serialize
>                                         |> SpiralFileSystem.write_all_text_async
> tokensPath
>                                 | None ->
>                                     trace Verbose (fun () -> 
> $"Eval.startTokenRangeWatcher / GetDirectories / tokens: None") _locals
>                     with ex ->
>                         trace Critical (fun () -> $"Eval.startTokenRangeWatcher 
> / GetDirectories / ex: {ex |> SpiralSm.format_exception}") _locals
>                 })
>                 |> Async.Parallel
>                 |> Async.Ignore
> 
>             let streamAsyncChild =
>                 stream
>                 |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event)
> ->
>                     match event with
>                     | FileSystem.FileSystemChange.Changed (codePath, _)
>                         when [[ "main.spi"; "main_real.spir" ]]
>                             |> List.contains (System.IO.Path.GetFileName 
> codePath)
>                         ->
>                         async {
>                             let hashDir = codePath |> 
> System.IO.Directory.GetParent
>                             let hashHex = hashDir.Name
>                             let codePath = tokensDir </> codePath
>                             let tokensPath = tokensDir </> hashHex </> 
> "tokens.json"
>                             // do! Async.Sleep 30
>                             let rec loop retry = async {
>                                 let! tokens = codePath |> 
> Supervisor.getFileTokenRange None None
>                                 if retry = 3 || tokens <> Some [[||]]
>                                 then return tokens, retry
>                                 else
>                                     trace Debug
>                                         (fun () -> $"Eval.startTokenRangeWatcher
> / iterAsyncParallel")
>                                         (fun () -> $"retry: {retry} / tokens: 
> {tokens}")
>                                     do! Async.Sleep 30
>                                     return! loop (retry + 1)
>                             }
>                             let! tokens, retries = loop 1
>                             match tokens with
>                             | Some tokens ->
>                                 do!
>                                     tokens
>                                     |> FSharp.Json.Json.serialize
>                                     |> SpiralFileSystem.write_all_text_exists 
> tokensPath
>                             | None ->
>                                 trace Debug
>                                     (fun () -> $"Eval.startTokenRangeWatcher / 
> iterAsyncParallel")
>                                     (fun () -> $"retries: {retries} / tokens: 
> {tokens}")
>                         }
>                         |> Async.retryAsync 3
>                         |> Async.map (Result.toOption >> Option.defaultValue ())
>                     | _ -> () |> Async.init
>                 )
> 
>             let parentAsyncChild = async {
>                 let parentProcessId = getParentProcessId ()
>                 trace Verbose
>                     (fun () -> "Eval.parentAsyncChild")
>                     (fun () -> $"parentProcessId: {parentProcessId} / {_locals 
> ()}")
> 
>                 if parentProcessId > 0u then
>                     let parentProcess = parentProcessId |> int |> 
> System.Diagnostics.Process.GetProcessById
>                     do! parentProcess.WaitForExitAsync () |> Async.AwaitTask
>                     trace Debug
>                         (fun () -> "Eval.parentAsyncChild / Parent process has 
> exited. Performing cleanup...")
>                         (fun () -> $"{_locals ()}")
>                     System.Threading.Thread.Sleep 1000
>                     System.Environment.Exit 1
>             }
> 
>             async {
>                 do! Async.Sleep 3000
>                 existingFilesChild |> Async.StartImmediate
>                 streamAsyncChild |> Async.Start
>                 parentAsyncChild |> Async.Start
>             }
>             |> Async.Start
>         with ex ->
>             trace Critical (fun () -> $"Eval.startTokenRangeWatcher / ex: {ex |>
> SpiralSm.format_exception}") _locals
> 
>         disposable
>     else new_disposable (fun () -> ())
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## startCommandsWatcher                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let startCommandsWatcher (uriServer : string) =
>     let commandsDir = targetDir </> "eval_commands"
>     let commandHistoryDir = targetDir </> "eval_command_history"
>     [[ commandsDir; commandHistoryDir ]]
>     |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
>     Directory.EnumerateFiles commandsDir |> Seq.iter File.Delete
> 
>     let stream, disposable =
>         commandsDir
>         |> FileSystem.watchDirectory (function
>             | FileSystem.FileSystemChange.Created _ -> true
>             | _ -> false
>         )
> 
>     let connection = HubConnectionBuilder().WithUrl(uriServer).Build()
>     connection.StartAsync() |> Async.AwaitTask |> Async.Start
>     // let _ = connection.On<string>("ServerToClientMsg", fun x ->
>     //     printfn $"ServerToClientMsg: '{x}'"
>     // )
> 
>     stream
>     |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event) -> async {
>         let _locals () = $"ticks: {ticks} / event: {event} / {_locals ()}"
>         trace Verbose (fun () -> "Eval.startCommandsWatcher / 
> iterAsyncParallel") _locals
> 
>         match event with
>         | FileSystem.FileSystemChange.Created (path, Some json) ->
>             try
>                 let fullPath = commandsDir </> path
>                 let! result = 
> connection.InvokeAsync<string>("ClientToServerMsg", json) |> Async.AwaitTask
>                 let commandHistoryPath = commandHistoryDir </> path
>                 do! fullPath |> SpiralFileSystem.move_file_async 
> commandHistoryPath |> Async.Ignore
>                 if result |> SpiralSm.trim |> String.length > 0 then
>                     let resultPath = commandHistoryDir </> 
> $"{Path.GetFileNameWithoutExtension path}_result.json"
>                     do! result |> SpiralFileSystem.write_all_text_async 
> resultPath
>             with ex ->
>                 let _locals () = $"ex: {ex |> SpiralSm.format_exception} / 
> {_locals ()}"
>                 trace Critical (fun () -> "Eval.startCommandsWatcher / 
> iterAsyncParallel") _locals
>         | _ -> ()
>     })
>     |> Async.StartChild
>     |> Async.Ignore
>     |> Async.Start
> 
>     new_disposable (fun () ->
>         disposable.Dispose ()
>     )
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## prepareSpiral                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let prepareSpiral rawCellCode lines =
>     let lastBlock =
>         lines
>         |> Array.tryFindBack (fun line ->
>             line |> String.length > 0
>             && line.[[0]] <> ' '
>         )
> 
>     let hasMain =
>         lastBlock
>         |> Option.exists (fun line ->
>             line |> SpiralSm.starts_with "inl main "
>             || line |> SpiralSm.starts_with "let main "
>         )
> 
>     if hasMain
>     then rawCellCode, None
>     else
>         let lastTopLevelIndex, _ =
>             (lines |> Array.indexed, (None, false))
>             ||> Array.foldBack (fun (i, line) (lastTopLevelIndex, finished) ->
>                 // trace Verbose (fun () -> $"Eval.prepareSpiral / i: {i} / 
> line: '{line}' / lastTopLevelIndex: {lastTopLevelIndex} / finished: {finished}")
> _locals
>                 match line with
>                 | _ when finished -> lastTopLevelIndex, true
>                 | "" -> lastTopLevelIndex, false
>                 | line when
>                     line |> SpiralSm.starts_with " "
>                     || line |> SpiralSm.starts_with "// " -> lastTopLevelIndex, 
> false
>                 | line when
>                     line |> SpiralSm.starts_with "open "
>                     || line |> SpiralSm.starts_with "prototype "
>                     || line |> SpiralSm.starts_with "instance "
>                     || line |> SpiralSm.starts_with "type "
>                     || line |> SpiralSm.starts_with "union "
>                     || line |> SpiralSm.starts_with "nominal " -> 
> lastTopLevelIndex, true
>                 | line when
>                     line |> SpiralSm.starts_with "inl "
>                     || line |> SpiralSm.starts_with "and "
>                     || line |> SpiralSm.starts_with "let " ->
>                     let m =
>                         System.Text.RegularExpressions.Regex.Match (
>                             line,
>                             @"^(?:and +)?(inl|let) +((?:[[{( 
> ]]*)?[[~\(\w]]+[[\w\d']]*(?:|[[\w\d']]+[[ }]]*(?:&? *[[\w\d']]*\))?| 
> *[[~\w]][[\w\d']]*\)|, *[[~\w]][[\w\d']]*)) +[[:=]](?! +function)"
>                         )
>                     trace Verbose (fun () -> $"Eval.prepareSpi / m: '{m}' / 
> m.Groups.Count: {m.Groups.Count}") _locals
>                     if m.Groups.Count = 3
>                     then Some i, false
>                     else lastTopLevelIndex, true
>                 | _ -> Some i, false
>             )
>         let code =
>             match lastTopLevelIndex with
>             | Some lastTopLevelIndex ->
>                 lines
>                 |> Array.mapi (fun i line ->
>                     match i with
>                     | i when i < lastTopLevelIndex -> line
>                     | i when i = lastTopLevelIndex -> $"\nlet main () =\n    
> {line}"
>                     | _ when line |> SpiralSm.trim = "" -> ""
>                     | _ -> $"    {line}"
>                 )
>                 |> SpiralSm.concat "\n"
>             | None -> $"{rawCellCode}\n\ninl main () = ()\n"
>         code, lastTopLevelIndex
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## processSpiralOutput                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let processSpiralOutput
>     (props : {|
>         printCode: bool
>         traceLevel: TraceLevel
>         builderCommands: string array
>         lastTopLevelIndex: int option
>         backend: Supervisor.Backend
>         cancellationToken: _
>         spiralErrors: _
>         code: string
>         outputPath: string
>         isReal: bool
>     |})
>     = async {
>     let inline _trace (fn : unit -> string) =
>         if props.traceLevel = Verbose
>         then trace Info (fun () -> $"Eval.processSpiralOutput / props: {props |>
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / {fn ()}") _locals
>         else fn () |> System.Console.WriteLine
> 
>     if props.printCode then
>         let ext = props.outputPath |> System.IO.Path.GetExtension
>         _trace (fun () -> if props.builderCommands.Length > 0 then 
> $"{ext}:\n{props.code}\n" else props.code)
> 
>     let workspaceRootExternal =
>         let currentDir =
>             System.IO.Directory.GetCurrentDirectory ()
>             |> SpiralSm.to_lower
>         let workspaceRoot = workspaceRoot |> SpiralSm.to_lower
>         if currentDir |> SpiralSm.starts_with workspaceRoot
>         then None
>         else Some workspaceRoot
> 
>     let! spiralBuilderResults =
>         match props.builderCommands, props.lastTopLevelIndex with
>         | [[||]], _ | _, None -> [[||]] |> Async.init
>         | builderCommands, _ ->
>             builderCommands
>             |> Array.map (fun builderCommand ->
>                 let path =
>                     workspaceRoot </> 
> $@"workspace/target/release/spiral_builder{SpiralPlatform.get_executable_suffix 
> ()}"
>                     |> System.IO.Path.GetFullPath
>                 let commands =
>                     if props.backend = Supervisor.Fsharp
>                         && (
>                             builderCommand |> SpiralSm.starts_with "rust"
>                             || builderCommand |> SpiralSm.starts_with 
> "typescript"
>                             || builderCommand |> SpiralSm.starts_with "python"
>                         )
>                     then [[| $"{path} fable --fs-path \"{props.outputPath}\" 
> --command \"{builderCommand}\"" |]]
>                     elif props.backend = Supervisor.Cuda
>                         && builderCommand |> SpiralSm.starts_with "cuda"
>                     then [[| $"{path} {builderCommand} --py-path 
> \"{props.outputPath}\"" |]]
>                     else [[||]]
>                 builderCommand, commands
>             )
>             |> Array.filter (fun (_, commands) -> commands.Length > 0)
>             |> Array.map (fun (builderCommand, commands) ->
>                 commands
>                 |> Array.map (fun command -> async {
>                     let! exitCode, result =
>                         SpiralRuntime.execution_options (fun x ->
>                             { x with
>                                 l0 = command
>                                 l1 = props.cancellationToken
>                                 l2 = [[|
>                                     "AUTOMATION", assemblyName = "dotnet-repl" 
> |> string
>                                     "TRACE_LEVEL", $"%A{if props.printCode then 
> props.traceLevel else Info}"
>                                 |]]
>                                 l6 = workspaceRootExternal
>                             }
>                         )
>                         |> SpiralRuntime.execute_with_options_async
>                     trace Debug
>                         (fun () -> $"Eval.processSpiralOutput / spiral_builder")
>                         (fun () -> $"exitCode: {exitCode} / builderCommand: 
> {builderCommand} / command: {command} / result: {result |> SpiralSm.ellipsis_end
> 400} / {_locals ()}")
>                     return
>                         if exitCode = 0
>                         then {| code = result; eval = false; builderCommand = 
> builderCommand |} |> Ok
>                         else result |> Error
>                 })
>             )
>             |> Array.collect id
>             |> Async.Parallel
> 
>     let hasEval =
>         props.backend = Supervisor.Fsharp
>         && props.builderCommands |> Array.exists (fun x -> x |> 
> SpiralSm.starts_with "fsharp")
> 
>     let outputResult =
>         if props.builderCommands.Length > 0 && not hasEval
>         then None
>         else
>             let code =
>                 if props.builderCommands.Length > 1
>                 then
>                     let header = "System.Console.WriteLine \".fsx output:\"\n"
>                     $"{header}{props.code}"
>                 else props.code
>             Some (Ok [[ {| code = code; eval = true; builderCommand = "" |} ]])
> 
>     match outputResult, spiralBuilderResults with
>     | Some outputResult, [[||]] ->
>         return outputResult, [[||]]
>     | None, [[||]] ->
>         return Ok [[ {| code = "()"; eval = true; builderCommand = "" |} ]], 
> [[||]]
>     | _, spiralBuilderResults ->
>         try
>             let spiralResults =
>                 match outputResult with
>                 | Some (Ok code) ->
>                     spiralBuilderResults
>                     |> Array.append (code |> List.map Ok |> List.toArray)
>                 | _ -> spiralBuilderResults
>             let codes =
>                 spiralResults
>                 |> Array.map (fun spiralBuilderResult' ->
>                     let commandResult, errors =
>                         match spiralBuilderResult' with
>                         | Ok result when result.eval = false ->
>                             let result' =
>                                 result.code
>                                 |> 
> FSharp.Json.Json.deserialize<Map<string,string>>
>                             let result =
>                                 match result' |> Map.tryFind "command_result" 
> with
>                                 | Some result'' ->
>                                     result''
>                                     |> 
> FSharp.Json.Json.deserialize<Map<string,string>>
>                                     |> Map.add "builderCommand" 
> result.builderCommand
>                                 | None -> Map.empty
>                             result, [[||]]
>                         | Ok result when result.eval = true ->
>                             let result =
>                                 [[
>                                     "extension", "fsx"
>                                     "code", result.code
>                                     "output", ""
>                                 ]]
>                                 |> Map.ofList
>                             result, [[||]]
>                         | Error error ->
>                             Map.empty,
>                             [[|
>                                 (
>                                     TraceLevel.Critical, 
> $"Eval.processSpiralOutput / evalResult error / errors[[0]] / outputPath: 
> {props.outputPath} / builderCommands: %A{props.builderCommands} / 
> spiralBuilderResult': %A{spiralBuilderResult'} / error: %A{error}", 0, ("", (0, 
> 0), (0, 0))
>                                 )
>                             |]]
>                         | _ ->
>                             Map.empty, [[||]]
> 
>                     if errors |> Array.isEmpty |> not
>                     then Error (Exception $"Eval.processSpiralOutput / 
> evalResult errors / Exception / commandResult: %A{commandResult}"), errors
>                     else
>                         let extension = commandResult.[["extension"]]
>                         let code = commandResult.[["code"]]
>                         let output = commandResult.[["output"]]
>                         let builderCommand =
>                             commandResult
>                             |> Map.tryFind "builderCommand"
>                             |> Option.defaultValue ""
> 
>                         let eval = output = "" && extension = "fsx"
> 
>                         if props.printCode && not eval
>                         then _trace (fun () -> $""".{extension}:{'\n'}{code}""")
> 
>                         trace Debug
>                             (fun () -> $"Eval.processSpiralOutput / result")
>                             (fun () -> $"builderCommand: {builderCommand} / 
> extension: {extension} / commandResult: {commandResult |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400}/ {_locals ()}")
> 
>                         let code =
>                             if props.printCode
>                                 || spiralResults.Length > 1
>                                 || props.builderCommands.Length > 1
>                             then
>                                 if eval then
>                                     code
>                                 else
>                                     let header =
>                                         let info =
>                                             match props.backend, builderCommand 
> with
>                                             | Supervisor.Fsharp, builderCommand
>                                                 when builderCommand |> 
> SpiralSm.contains " " -> $" ({builderCommand})"
>                                             | Supervisor.Fsharp, _ -> ""
>                                             | _ -> $" ({props.backend})"
>                                         if info = ""
>                                         then $".{extension} output:\n"
>                                         else $".{extension} output{info}:\n"
>                                     $"""{if output |> SpiralSm.contains "\n" 
> then "\n" else ""}{header}{output}"""
>                             elif eval
>                             then code
>                             else output
>                         Ok {| code = code; eval = eval; builderCommand = 
> builderCommand |}, [[||]]
>                 )
>             trace Debug
>                 (fun () -> $"Eval.processSpiralOutput / codes")
>                 (fun () ->
>                     let props = {| props with cancellationToken = None |}
>                     $"codes: {codes |> FSharp.Json.Json.serialize |> 
> SpiralSm.ellipsis_end 400} / spiralResults: {spiralResults |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / spiralBuilderResults:
> {spiralBuilderResults |> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 
> 400} / props: {props |> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400}
> / {_locals ()}")
>             return
>                 (((Ok [[]]), [[||]]), codes)
>                 ||> Array.fold (fun (acc_code, acc_errors) (code, errors) ->
>                     match code, acc_code with
>                     | Ok code, Ok acc_code ->
>                         let errors =
>                             acc_errors
>                             |> Array.append errors
>                             |> Array.append props.spiralErrors
>                         let errors =
>                             if errors |> Array.isEmpty
>                             then errors
>                             else
>                                 let code = $"%A{code}"
>                                 errors
>                                 |> Array.append [[|
>                                     TraceLevel.Critical, 
> $"Eval.processSpiralOutput / errors / errors[[-1]] / outputPath: 
> {props.outputPath} / builderCommands: %A{props.builderCommands} / code: {code |>
> SpiralSm.ellipsis_end 400}", 0, ("", (0, 0), (0, 0))
>                                 |]]
>                         Ok (code :: acc_code), errors
>                     | Error ex, _
>                     | _, Error ex ->
>                         Error (Exception $"Eval.processSpiralOutput / -1 / 
> Exception / spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}"),
>                         acc_errors |> Array.append errors
>                 )
>         with ex ->
>             trace Critical (fun () -> $"Eval.processSpiralOutput / try 2 ex / 
> spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>             return
>                 Error (Exception $"Eval.processSpiralOutput / try 2 ex / 
> Exception / spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}"),
>                 [[|
>                     (
>                         TraceLevel.Critical, $"Eval.processSpiralOutput / try 2 
> ex / errors[[0]] / spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}", 0, ("", (0, 0), (0, 0))
>                     )
>                 |]]
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## tryGetPropertyValue                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let tryGetPropertyValue (propertyName: string) (obj: obj) =
>     let objType = obj.GetType ()
>     let propertyInfo = propertyName |> objType.GetProperty
>     if propertyInfo <> null
>     then propertyInfo.GetValue (obj, null) |> Some
>     else None
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## eval                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline eval
>     (fsi_eval:
>         string
>         -> System.Threading.CancellationToken
>         -> Choice<'a, Exception> * (TraceLevel * string * int * (string * (int *
> int) * (int * int))) array)
>     (cancellationToken: Option<System.Threading.CancellationToken>)
>     (code: string)
>     =
>     trace Verbose
>         (fun () -> $"Eval.eval")
>         (fun () -> $"code: {code |> SpiralSm.ellipsis_end 400} / {_locals ()}")
> 
>     let rawCellCode =
>         code |> SpiralSm.replace "\r\n" "\n"
> 
>     let lines = rawCellCode |> SpiralSm.split "\n"
> 
>     if lines |> Array.exists (fun line -> line |> SpiralSm.starts_with "#r " && 
> line |> SpiralSm.ends_with "\"") then
>         let cancellationToken = defaultArg cancellationToken 
> System.Threading.CancellationToken.None
>         let ch, errors = fsi_eval code cancellationToken
>         trace Verbose (fun () -> $"Eval.eval / fsi_eval 1 / ch: %A{ch} / errors:
> {errors}") _locals
>         match ch with
>         | Choice1Of2 v -> Ok(v), errors
>         | Choice2Of2 ex -> Error(ex), errors
>     else
>         let builderCommands =
>             lines
>             |> Array.choose (fun line ->
>                 if line |> SpiralSm.starts_with "///! "
>                 then line |> SpiralSm.split "///! " |> Array.tryItem 1
>                 else None
>             )
> 
>         let packages =
>             lines
>             |> Array.choose (fun line ->
>                 if line |> SpiralSm.starts_with "//// package="
>                 then line |> SpiralSm.split "=" |> Array.skip 1 |> 
> SpiralSm.concat "" |> Some
>                 else None
>             )
>         
>         allPackages <- packages |> Array.append allPackages |> Array.distinct
> 
>         let timeout =
>             lines
>             |> Array.tryPick (fun line ->
>                 if line |> SpiralSm.starts_with "//// timeout="
>                 then line |> SpiralSm.split "=" |> Array.tryItem 1 |> Option.map
> int
>                 else None
>             )
>             |> Option.defaultValue (60000 * 60)
> 
>         let boolArg def command =
>             lines
>             |> Array.tryPick (fun line ->
>                 let text = $"//// {command}"
>                 match line.[[0..text.Length-1]], line.[[text.Length..]] with
>                 | head, "" when head = text ->
>                     Some true
>                 | head, _ when head = text ->
>                     line |> SpiralSm.split "=" |> Array.tryItem 1 |> Option.map 
> ((<>) "false")
>                 | _ -> None
>             )
>             |> Option.defaultValue def
> 
>         let printCode = "print_code" |> boolArg false
>         let isTraceToggle = "trace_toggle" |> boolArg false
>         let isTrace = "trace" |> boolArg false
>         let isCache = "cache" |> boolArg false
>         let isReal = "real" |> boolArg false
> 
>         if isTraceToggle
>         then traceToggle <- not traceToggle
> 
>         let oldLevel = get_trace_level ()
>         let traceLevel =
>             if isTrace || traceToggle
>             then Verbose
>             else Info
>         traceLevel
>         |> to_trace_level
>         |> set_trace_level
>         use _ = (new_disposable (fun () ->
>             oldLevel |> set_trace_level
>         ))
> 
>         async {
>             try
>                 let cellCode, lastTopLevelIndex = prepareSpiral rawCellCode 
> lines
>                 let newAllCode =
>                     if isReal
>                     then $"{allCodeReal}\n\n{cellCode}"
>                     else $"{allCode}\n\n{cellCode}"
> 
>                 let buildBackends =
>                     if builderCommands.Length = 0
>                     then [[| Supervisor.Fsharp |]]
>                     else
>                         builderCommands
>                         |> Array.map (fun x ->
>                             if x |> SpiralSm.starts_with "cuda"
>                             then Supervisor.Cuda
>                             else Supervisor.Fsharp
>                         )
>                         |> Array.distinct
> 
>                 trace Verbose
>                     (fun () -> $"Eval.eval")
>                     (fun () -> $"lastTopLevelIndex: {lastTopLevelIndex} / 
> builderCommands: %A{builderCommands} / buildBackends: %A{buildBackends} / 
> isReal: {isReal} / {_locals ()}")
> 
>                 let! buildCodeResults =
>                     buildBackends
>                     |> Array.map (fun backend -> async {
>                         let! result =
>                             if isReal
>                             then Supervisor.Spir newAllCode
>                             else
>                                 Supervisor.Spi
>                                     (newAllCode, if allCodeReal = "" then None 
> else Some allCodeReal)
>                             |> Supervisor.buildCode backend allPackages isCache 
> timeout cancellationToken
>                         return backend, result
>                     })
>                     |> Async.Parallel
>                     |> Async.catch
>                     |> Async.runWithTimeoutAsync timeout
> 
>                 match buildCodeResults with
>                 | Some (Ok buildCodeResults) ->
>                     let! result, errors =
>                         ((Ok [[]], [[||]]), buildCodeResults)
>                         ||> Async.fold (fun acc buildCodeResult -> async {
>                             match buildCodeResult with
>                             | backend, (_, (outputPath, Some code), 
> spiralErrors) ->
>                                 let spiralErrors =
>                                     mapErrors (Warning, spiralErrors, 
> lastTopLevelIndex) allCode
>                                 let! result =
>                                     processSpiralOutput
>                                         {|
>                                             printCode = printCode
>                                             traceLevel = traceLevel
>                                             builderCommands = builderCommands
>                                             lastTopLevelIndex = 
> lastTopLevelIndex
>                                             backend = backend
>                                             cancellationToken = 
> cancellationToken
>                                             spiralErrors = spiralErrors
>                                             code = code
>                                             outputPath = outputPath
>                                             isReal = isReal
>                                         |}
>                                 match result, acc with
>                                 | (Ok code, errors), (Ok acc_code, acc_errors) 
> ->
>                                     return Ok (acc_code @ code), acc_errors |> 
> Array.append errors
>                                 | (Error ex, errors), _ | _, (Error ex, errors) 
> ->
>                                     return
>                                         Error (Exception $"Eval.eval / 
> processSpiralOutput / Exception / buildCodeResult: %A{buildCodeResult |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / ex: {ex |> 
> SpiralSm.format_exception}"),
>                                         errors |> Array.append errors
>                             | _, (_, _, errors) when errors |> List.isEmpty |> 
> not ->
>                                 return errors.[[0]] |> fst |> Exception |> 
> Error,
>                                 mapErrors (TraceLevel.Critical, errors, 
> lastTopLevelIndex) allCode
>                             | _ -> return acc
>                         })
>                     let cancellationToken = defaultArg cancellationToken 
> System.Threading.CancellationToken.None
>                     match result, errors with
>                     | Ok code, [[||]] ->
>                         let code, eval =
>                             code
>                             |> List.map (fun code ->
>                                 if code.eval
>                                 then None, Some code.code
>                                 else Some code.code, None
>                             )
>                             |> List.unzip
>                         let code = code |> List.choose id
>                         let eval = eval |> List.choose id
> 
>                         trace Debug
>                             (fun () -> $"Eval.eval")
>                             (fun () -> $"eval: {eval |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / code: {code |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / {_locals ()}")
> 
>                         let ch, errors =
>                             match eval, code with
>                             | [[]], [[]] ->
>                                 Choice2Of2 (Exception $"Eval.eval / eval=[[]] / 
> code=[[]] / buildCodeResults: %A{buildCodeResults} / code: %A{code}"), errors
>                             | [[ eval ]], [[]] ->
>                                 let ch, errors2 = fsi_eval eval 
> cancellationToken
>                                 let errors =
>                                     errors2
>                                     // |> Array.map (fun (e1, e2, e3, _) ->
>                                     //     (e1, e2, e3, ("", (0, 0), (0, 0)))
>                                     // )
>                                     |> Array.append errors
>                                 ch, errors
>                             | [[]], _ ->
>                                 let code = code |> List.rev |> String.concat 
> "\n\n"
>                                 let code =
>                                     if printCode
>                                     then $"\"\"\"{code}\n\n\"\"\""
>                                     else $"\"\"\"{code}\n\"\"\""
>                                 let ch, errors2 = fsi_eval code 
> cancellationToken
>                                 let errors =
>                                     errors2
>                                     // |> Array.map (fun (e1, e2, e3, _) ->
>                                     //     (e1, e2, e3, ("", (0, 0), (0, 0)))
>                                     // )
>                                     |> Array.append errors
>                                 ch, errors
>                             | _ ->
>                                 let code, errors =
>                                     ((Ok (code |> List.rev), [[||]]), eval)
>                                     ||> List.fold (fun (acc, acc_errors) eval ->
>                                         match acc with
>                                         | Error ch -> Error ch, acc_errors
>                                         | Ok acc ->
>                                             let ch, errors = fsi_eval eval 
> cancellationToken
>                                             let errors =
>                                                 errors
>                                                 // |> Array.map (fun (e1, e2, 
> e3, _) ->
>                                                 //     (e1, e2, e3, ("", (0, 0),
> (0, 0)))
>                                                 // )
>                                                 |> Array.append acc_errors
>                                             match ch with
>                                             | Choice1Of2 v ->
>                                                 let v =
>                                                     v
>                                                     |> tryGetPropertyValue 
> "ReflectionValue"
>                                                     |> Option.map (fun x -> 
> $"%A{x}")
>                                                     |> Option.defaultValue ""
>                                                 Ok (v :: acc), errors
>                                             | Choice2Of2 ex ->
>                                                 trace Critical (fun () -> 
> $"Eval.eval / fsi_eval fold Choice error / buildCodeResults: 
> %A{buildCodeResults} / ex: {ex |> SpiralSm.format_exception}") _locals
>                                                 Error ch, errors
>                                     )
>                                 match code with
>                                 | Error ch -> ch, errors
>                                 | Ok code ->
>                                     let code =
>                                         code
>                                         |> List.filter ((<>) "")
>                                         |> String.concat "\n\n"
> 
>                                     let code =
>                                         if builderCommands.Length > 0 && 
> eval.Length = 0
>                                         then code
>                                         elif code |> SpiralSm.contains "\n\n\n"
>                                         then $"{code}\n\n"
>                                         else $"{code}\n"
> 
>                                     let code =
>                                         if printCode
>                                         then $"\"\"\"{code}\n\n\n\"\"\""
>                                         else $"\"\"\"{code}\n\"\"\""
>                                     let ch, errors2 = fsi_eval code 
> cancellationToken
>                                     let errors =
>                                         errors2
>                                         // |> Array.map (fun (e1, e2, e3, _) ->
>                                         //     (e1, e2, e3, ("", (0, 0), (0, 
> 0)))
>                                         // )
>                                         |> Array.append errors
>                                     ch, errors
>                         match ch with
>                         | Choice1Of2 v ->
>                             if isReal
>                             then allCodeReal <- newAllCode
>                             else allCode <- newAllCode
>                             return Ok(v), errors
>                         | Choice2Of2 ex ->
>                             return
>                                 Error (Exception $"Eval.eval / -2 / Exception / 
> ex: {ex |> SpiralSm.format_exception} / buildCodeResults: {buildCodeResults |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400}"),
>                                 errors
>                     | Ok code, errors ->
>                         return
>                             Error (Exception "Eval.eval / errors / 
> buildCodeResults: %A{buildCodeResults} / code: %A{code}"),
>                             errors
>                     | Error ex, errors ->
>                         return
>                             Error (Exception $"Eval.eval / -1 / Exception / ex: 
> {ex |> SpiralSm.format_exception} / buildCodeResults: {buildCodeResults |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 1500}"),
>                             errors
>                 | Some (Error ex) ->
>                     trace Critical (fun () -> $"Eval.eval / buildCodeResults 
> Error / buildCodeResults: %A{buildCodeResults} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>                     return
>                         Error (Exception $"Eval.eval / buildCodeResults Error / 
> Exception / buildCodeResults: %A{buildCodeResults} / ex: {ex |> 
> SpiralSm.format_exception}"),
>                         [[|
>                             (
>                                 TraceLevel.Critical, $"Eval.eval / 
> buildCodeResults Error / errors[[0]] / ex: {ex |> SpiralSm.format_exception} / 
> buildCodeResults: %A{buildCodeResults}", 0, ("", (0, 0), (0, 0))
>                             )
>                         |]]
>                 | _ ->
>                     return
>                         Error (Exception $"Eval.eval / buildCodeResults / 
> Exception / buildCodeResults: %A{buildCodeResults}"),
>                         [[|
>                             (
>                                 TraceLevel.Critical, $"Eval.eval / 
> buildCodeResults / errors[[0]] / buildCodeResults: %A{buildCodeResults}", 0, 
> ("", (0, 0), (0, 0))
>                             )
>                         |]]
>             with ex ->
>                 trace Critical (fun () -> $"Eval.eval / try 1 ex / ex: {ex |> 
> SpiralSm.format_exception} / lines: %A{lines}") _locals
>                 return
>                     Error (Exception $"Eval.eval / try 1 ex / Exception / ex: 
> {ex |> SpiralSm.format_exception} / lines: %A{lines}"),
>                     [[|
>                         (
>                             TraceLevel.Critical, $"Eval.eval / try 1 ex / 
> errors[[0]] / ex: {ex |> SpiralSm.format_exception} / lines: %A{lines}", 0, ("",
> (0, 0), (0, 0))
>                         )
>                     |]]
>         }
>         |> Async.runWithTimeout timeout
>         |> Option.defaultValue (
>             Error (Exception $"Eval.eval / Async.runWithTimeout / Exception / 
> timeout: {timeout} / lines: %A{lines}"),
>             [[|
>                 (
>                     TraceLevel.Critical, $"Eval.eval / Async.runWithTimeout / 
> errors[[0]] / timeout: {timeout} / lines: %A{lines}", 0, ("", (0, 0), (0, 0))
>                 )
>             |]]
>         )
00:01:13 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 52580 }
00:01:13 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:15 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb to html
00:01:15 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:15 v #7 !   validate(nb)
00:01:16 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:01:16 v #9 !   return _pygments_highlight(
00:01:18 v #10 ! [NbConvertApp] Writing 452152 bytes to c:\home\git\polyglot\apps\spiral\Eval.dib.html
00:01:18 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 852 }
00:01:18 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 852 }
00:01:18 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Eval.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Eval.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:19 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:19 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:19 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 53491 }
00:00:00 d #1 writeDibCode / output: Fs / path: Eval.dib
00:00:00 d #2 parseDibCode / output: Fs / file: Eval.dib
In [ ]:
{ pwsh ../lib/fsharp/build.ps1 -sequential 1 } | Invoke-Block
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 d #1 Async.runWithTimeoutAsync / timeout: 500
00:00:02 v #2 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:02 v #3 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:02 v #6 > Server bound to: http://localhost:13805
00:00:02 d #7 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path Async.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Async.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:02 v #8 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Async.dib", "--retries", "3"])) }
00:00:02 v #9 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/Async.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Async.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:05 v #10 > >
00:00:05 v #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:05 v #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:05 v #13 > > │ # Async (Polyglot)                                                           │
00:00:05 v #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #15 > >
00:00:30 v #16 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #17 > > #if !INTERACTIVE
00:00:30 v #18 > > open Lib
00:00:30 v #19 > > #endif
00:00:30 v #20 > >
00:00:30 v #21 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #22 > > open Common
00:00:30 v #23 > >
00:00:30 v #24 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 v #25 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 v #26 > > │ ## choice                                                                    │
00:00:30 v #27 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #28 > >
00:00:30 v #29 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #30 > > let inline choice asyncs = async {
00:00:30 v #31 > >     let e = Event<_> ()
00:00:30 v #32 > >     use cts = new System.Threading.CancellationTokenSource ()
00:00:30 v #33 > >     let fn =
00:00:30 v #34 > >         asyncs
00:00:30 v #35 > >         |> Seq.map (fun a -> async {
00:00:30 v #36 > >             let! x = a
00:00:30 v #37 > >             e.Trigger x
00:00:30 v #38 > >         })
00:00:30 v #39 > >         |> Async.Parallel
00:00:30 v #40 > >         |> Async.Ignore
00:00:30 v #41 > >     Async.Start (fn, cts.Token)
00:00:30 v #42 > >     let! result = Async.AwaitEvent e.Publish
00:00:30 v #43 > >     cts.Cancel ()
00:00:30 v #44 > >     return result
00:00:30 v #45 > > }
00:00:30 v #46 > >
00:00:30 v #47 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 v #48 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 v #49 > > │ ## map                                                                       │
00:00:30 v #50 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #51 > >
00:00:30 v #52 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #53 > > let inline map fn a = async {
00:00:30 v #54 > >     let! x = a
00:00:30 v #55 > >     return fn x
00:00:30 v #56 > > }
00:00:30 v #57 > >
00:00:30 v #58 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 v #59 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 v #60 > > │ ## runWithTimeoutChoiceAsync                                                 │
00:00:30 v #61 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #62 > >
00:00:30 v #63 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #64 > > let inline runWithTimeoutChoiceAsync (timeout : int) fn =
00:00:30 v #65 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:30 v #66 > >
00:00:30 v #67 > >     let timeoutTask = async {
00:00:30 v #68 > >         do! Async.Sleep timeout
00:00:30 v #69 > >         trace Debug (fun () -> "runWithTimeoutChoiceAsync") _locals
00:00:30 v #70 > >         return None
00:00:30 v #71 > >     }
00:00:30 v #72 > >
00:00:30 v #73 > >     let task = async {
00:00:30 v #74 > >         try
00:00:30 v #75 > >             let! result = fn
00:00:30 v #76 > >             return Some result
00:00:30 v #77 > >         with
00:00:30 v #78 > >         | :? System.AggregateException as ex when
00:00:30 v #79 > >             ex.InnerExceptions
00:00:30 v #80 > >             |> Seq.exists (function :?
00:00:30 v #81 > > System.Threading.Tasks.TaskCanceledException -> true | _ -> false)
00:00:30 v #82 > >             ->
00:00:30 v #83 > >             trace Warning
00:00:30 v #84 > >                 (fun () -> "runWithTimeoutChoiceAsync")
00:00:30 v #85 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:30 v #86 > > ()}")
00:00:30 v #87 > >             return None
00:00:30 v #88 > >         | ex ->
00:00:30 v #89 > >             trace Critical
00:00:30 v #90 > >                 (fun () -> "runWithTimeoutChoiceAsync")
00:00:30 v #91 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:30 v #92 > > ()}")
00:00:30 v #93 > >             return None
00:00:30 v #94 > >     }
00:00:30 v #95 > >
00:00:30 v #96 > >     [[ timeoutTask; task ]]
00:00:30 v #97 > >     |> choice
00:00:30 v #98 > >
00:00:30 v #99 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #100 > > let inline runWithTimeoutChoice timeout fn =
00:00:30 v #101 > >     fn
00:00:30 v #102 > >     |> runWithTimeoutChoiceAsync timeout
00:00:30 v #103 > >     |> Async.RunSynchronously
00:00:30 v #104 > >
00:00:30 v #105 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #106 > > //// test
00:00:30 v #107 > >
00:00:30 v #108 > > Async.Sleep 120
00:00:30 v #109 > > |> runWithTimeoutChoice 10
00:00:30 v #110 > > |> _assertEqual None
00:00:30 v #111 > >
00:00:30 v #112 > > ╭─[ 237.91ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 v #113 > > │ 00:00:01 d #1 runWithTimeoutChoiceAsync / timeout: 10                   │
00:00:30 v #114 > > │ <null>                                                                       │
00:00:30 v #115 > > │                                                                              │
00:00:30 v #116 > > │                                                                              │
00:00:30 v #117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #118 > >
00:00:30 v #119 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #120 > > //// test
00:00:30 v #121 > >
00:00:30 v #122 > > Async.Sleep 10
00:00:30 v #123 > > |> runWithTimeoutChoice 60
00:00:30 v #124 > > |> _assertEqual (Some ())
00:00:31 v #125 > >
00:00:31 v #126 > > ╭─[ 219.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 v #127 > > │ Some ()                                                                      │
00:00:31 v #128 > > │                                                                              │
00:00:31 v #129 > > │                                                                              │
00:00:31 v #130 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #131 > >
00:00:31 v #132 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:31 v #133 > > //// test
00:00:31 v #134 > >
00:00:31 v #135 > > async {
00:00:31 v #136 > >     raise (exn "error")
00:00:31 v #137 > > }
00:00:31 v #138 > > |> runWithTimeoutChoice 60
00:00:31 v #139 > > |> _assertEqual None
00:00:31 v #140 > >
00:00:31 v #141 > > ╭─[ 211.58ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 v #142 > > │ 00:00:01 c #2 runWithTimeoutChoiceAsync / ex: System.Exception: error / │
00:00:31 v #143 > > │ timeout: 60                                                                  │
00:00:31 v #144 > > │ <null>                                                                       │
00:00:31 v #145 > > │                                                                              │
00:00:31 v #146 > > │                                                                              │
00:00:31 v #147 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #148 > >
00:00:31 v #149 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 v #150 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 v #151 > > │ ## catch                                                                     │
00:00:31 v #152 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #153 > >
00:00:31 v #154 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:31 v #155 > > let inline catch a =
00:00:31 v #156 > >     a
00:00:31 v #157 > >     |> Async.Catch
00:00:31 v #158 > >     |> map (function
00:00:31 v #159 > >         | Choice1Of2 result -> Ok result
00:00:31 v #160 > >         | Choice2Of2 ex -> Error ex
00:00:31 v #161 > >     )
00:00:31 v #162 > >
00:00:31 v #163 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 v #164 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 v #165 > > │ ## runWithTimeoutAsync                                                       │
00:00:31 v #166 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #167 > >
00:00:31 v #168 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:31 v #169 > > let inline runWithTimeoutAsync (timeout : int) fn = async {
00:00:31 v #170 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:31 v #171 > >     let! child = Async.StartChild (fn, timeout)
00:00:31 v #172 > >     return!
00:00:31 v #173 > >         child
00:00:31 v #174 > >         |> catch
00:00:31 v #175 > >         |> map (function
00:00:31 v #176 > >             | Ok result -> Some result
00:00:31 v #177 > >             | Error (:? System.TimeoutException as ex) ->
00:00:31 v #178 > >                 trace Debug (fun () -> $"Async.runWithTimeoutAsync") _locals
00:00:31 v #179 > >                 None
00:00:31 v #180 > >             | Error ex ->
00:00:31 v #181 > >                 trace Critical (fun () -> $"Async.runWithTimeoutAsync** / ex:
00:00:31 v #182 > > %A{ex}") _locals
00:00:31 v #183 > >                 None
00:00:31 v #184 > >         )
00:00:31 v #185 > > }
00:00:31 v #186 > >
00:00:31 v #187 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:31 v #188 > > let inline runWithTimeout timeout fn =
00:00:31 v #189 > >     fn
00:00:31 v #190 > >     |> runWithTimeoutAsync timeout
00:00:31 v #191 > >     |> Async.RunSynchronously
00:00:31 v #192 > >
00:00:31 v #193 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:31 v #194 > > //// test
00:00:31 v #195 > >
00:00:31 v #196 > > Async.Sleep 60
00:00:31 v #197 > > |> runWithTimeout 10
00:00:31 v #198 > > |> _assertEqual None
00:00:31 v #199 > >
00:00:31 v #200 > > ╭─[ 159.26ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 v #201 > > │ 00:00:02 d #3 Async.runWithTimeoutAsync / timeout: 10                   │
00:00:31 v #202 > > │ <null>                                                                       │
00:00:31 v #203 > > │                                                                              │
00:00:31 v #204 > > │                                                                              │
00:00:31 v #205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #206 > >
00:00:31 v #207 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:31 v #208 > > //// test
00:00:31 v #209 > >
00:00:31 v #210 > > Async.Sleep 10
00:00:31 v #211 > > |> runWithTimeout 60
00:00:31 v #212 > > |> _assertEqual (Some ())
00:00:31 v #213 > >
00:00:31 v #214 > > ╭─[ 137.33ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 v #215 > > │ Some ()                                                                      │
00:00:31 v #216 > > │                                                                              │
00:00:31 v #217 > > │                                                                              │
00:00:31 v #218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #219 > >
00:00:31 v #220 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:31 v #221 > > //// test
00:00:31 v #222 > >
00:00:31 v #223 > > async {
00:00:31 v #224 > >     raise (exn "error")
00:00:31 v #225 > > }
00:00:31 v #226 > > |> runWithTimeout 60
00:00:31 v #227 > > |> _assertEqual None
00:00:32 v #228 > >
00:00:32 v #229 > > ╭─[ 176.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 v #230 > > │ 00:00:02 c #4 Async.runWithTimeoutAsync** / ex: System.Exception: error │
00:00:32 v #231 > > │    at FSI_0036.it@4-119.Invoke(Unit unitVar)                                 │
00:00:32 v #232 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:00:32 v #233 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:00:32 v #234 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:00:32 v #235 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:00:32 v #236 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112                          │
00:00:32 v #237 > > │ --- End of stack trace from previous location ---                            │
00:00:32 v #238 > > │    at Microsoft.FSharp.Control.AsyncResult`1.Commit() in                     │
00:00:32 v #239 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 454                             │
00:00:32 v #240 > > │    at                                                                        │
00:00:32 v #241 > > │ <StartupCode$FSharp-Core>.$Async.AwaitAndBindChildResult@1962-4.Invoke(Unit  │
00:00:32 v #242 > > │ unitVar) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 1964                │
00:00:32 v #243 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:00:32 v #244 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:00:32 v #245 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:00:32 v #246 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:00:32 v #247 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 / timeout: 60            │
00:00:32 v #248 > > │ <null>                                                                       │
00:00:32 v #249 > > │                                                                              │
00:00:32 v #250 > > │                                                                              │
00:00:32 v #251 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #252 > >
00:00:32 v #253 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #254 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #255 > > │ ## runWithTimeoutStrict                                                      │
00:00:32 v #256 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #257 > >
00:00:32 v #258 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:32 v #259 > > let inline runWithTimeoutStrict (timeout : int) fn =
00:00:32 v #260 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:32 v #261 > >
00:00:32 v #262 > >     let timeoutTask = async {
00:00:32 v #263 > >         do! Async.Sleep timeout
00:00:32 v #264 > >         return None, _locals
00:00:32 v #265 > >     }
00:00:32 v #266 > >
00:00:32 v #267 > >     let task = async {
00:00:32 v #268 > >         try
00:00:32 v #269 > >             return Async.RunSynchronously (fn, timeout) |> Some, _locals
00:00:32 v #270 > >         with
00:00:32 v #271 > >         | :? System.TimeoutException as ex ->
00:00:32 v #272 > >             let _locals () = $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:32 v #273 > > ()}"
00:00:32 v #274 > >             return None, _locals
00:00:32 v #275 > >         | ex ->
00:00:32 v #276 > >             trace Critical
00:00:32 v #277 > >                 (fun () -> "Async.runWithTimeoutStrict / async error")
00:00:32 v #278 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:32 v #279 > > ()}")
00:00:32 v #280 > >             return raise ex
00:00:32 v #281 > >     }
00:00:32 v #282 > >
00:00:32 v #283 > >     try
00:00:32 v #284 > >         [[| timeoutTask; task |]]
00:00:32 v #285 > >         |> Array.map Async.StartAsTask
00:00:32 v #286 > >         |> System.Threading.Tasks.Task.WhenAny
00:00:32 v #287 > >         |> fun task ->
00:00:32 v #288 > >             match task.Result.Result with
00:00:32 v #289 > >             | None, _locals ->
00:00:32 v #290 > >                 trace Debug (fun () -> "runWithTimeoutStrict") _locals
00:00:32 v #291 > >                 None
00:00:32 v #292 > >             | result, _ -> result
00:00:32 v #293 > >     with
00:00:32 v #294 > >     | :? System.AggregateException as ex when
00:00:32 v #295 > >         ex.InnerExceptions
00:00:32 v #296 > >         |> Seq.exists (function :? System.Threading.Tasks.TaskCanceledException
00:00:32 v #297 > > -> true | _ -> false)
00:00:32 v #298 > >         ->
00:00:32 v #299 > >         trace Warning
00:00:32 v #300 > >             (fun () -> "Async.runWithTimeoutStrict")
00:00:32 v #301 > >             (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals ()}")
00:00:32 v #302 > >         None
00:00:32 v #303 > >     | ex ->
00:00:32 v #304 > >         trace Critical
00:00:32 v #305 > >             (fun () -> "Async.runWithTimeoutStrict / task error")
00:00:32 v #306 > >             (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals ()}")
00:00:32 v #307 > >         None
00:00:32 v #308 > >
00:00:32 v #309 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:32 v #310 > > //// test
00:00:32 v #311 > >
00:00:32 v #312 > > Async.Sleep 60
00:00:32 v #313 > > |> runWithTimeoutStrict 10
00:00:32 v #314 > > |> _assertEqual None
00:00:32 v #315 > >
00:00:32 v #316 > > ╭─[ 176.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 v #317 > > │ 00:00:02 d #5 runWithTimeoutStrict / timeout: 10                        │
00:00:32 v #318 > > │ <null>                                                                       │
00:00:32 v #319 > > │                                                                              │
00:00:32 v #320 > > │                                                                              │
00:00:32 v #321 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #322 > >
00:00:32 v #323 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:32 v #324 > > //// test
00:00:32 v #325 > >
00:00:32 v #326 > > Async.Sleep 10
00:00:32 v #327 > > |> runWithTimeoutStrict 60
00:00:32 v #328 > > |> _assertEqual (Some ())
00:00:32 v #329 > >
00:00:32 v #330 > > ╭─[ 170.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 v #331 > > │ Some ()                                                                      │
00:00:32 v #332 > > │                                                                              │
00:00:32 v #333 > > │                                                                              │
00:00:32 v #334 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #335 > >
00:00:32 v #336 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:32 v #337 > > //// test
00:00:32 v #338 > >
00:00:32 v #339 > > async {
00:00:32 v #340 > >     raise (exn "error")
00:00:32 v #341 > > }
00:00:32 v #342 > > |> runWithTimeoutStrict 60
00:00:32 v #343 > > |> _assertEqual None
00:00:32 v #344 > >
00:00:32 v #345 > > ╭─[ 192.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 v #346 > > │ 00:00:03 c #6 Async.runWithTimeoutStrict / async error / ex:            │
00:00:32 v #347 > > │ System.Exception: error / timeout: 60                                        │
00:00:32 v #348 > > │ 00:00:03 c #7 Async.runWithTimeoutStrict / task error / ex:             │
00:00:32 v #349 > > │ System.AggregateException: One or more errors occurred. (error) / timeout:   │
00:00:32 v #350 > > │ 60                                                                           │
00:00:32 v #351 > > │ <null>                                                                       │
00:00:32 v #352 > > │                                                                              │
00:00:32 v #353 > > │                                                                              │
00:00:32 v #354 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #355 > >
00:00:32 v #356 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #357 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #358 > > │ ## awaitValueTask                                                            │
00:00:32 v #359 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #360 > >
00:00:32 v #361 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:32 v #362 > > let inline awaitValueTaskUnit (task : System.Threading.Tasks.ValueTask) =
00:00:32 v #363 > >     task.AsTask () |> Async.AwaitTask
00:00:32 v #364 > >
00:00:32 v #365 > > let inline awaitValueTask (task : System.Threading.Tasks.ValueTask<_>) =
00:00:32 v #366 > >     task.AsTask () |> Async.AwaitTask
00:00:32 v #367 > >
00:00:32 v #368 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #369 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #370 > > │ ## init                                                                      │
00:00:32 v #371 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #372 > >
00:00:32 v #373 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:32 v #374 > > let inline init x = async {
00:00:32 v #375 > >     return x
00:00:32 v #376 > > }
00:00:32 v #377 > >
00:00:32 v #378 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:32 v #379 > > //// test
00:00:32 v #380 > >
00:00:32 v #381 > > init 1
00:00:32 v #382 > > |> Async.RunSynchronously
00:00:32 v #383 > > |> _assertEqual 1
00:00:32 v #384 > >
00:00:32 v #385 > > ╭─[ 35.42ms - stdout ]─────────────────────────────────────────────────────────╮
00:00:32 v #386 > > │ 1                                                                            │
00:00:32 v #387 > > │                                                                              │
00:00:32 v #388 > > │                                                                              │
00:00:32 v #389 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #390 > >
00:00:32 v #391 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #392 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #393 > > │ ## withCancellationToken                                                     │
00:00:32 v #394 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #395 > >
00:00:32 v #396 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:32 v #397 > > let inline withCancellationToken (ct : System.Threading.CancellationToken) fn =
00:00:32 v #398 > >     Async.StartImmediateAsTask (fn, ct)
00:00:32 v #399 > >     |> Async.AwaitTask
00:00:32 v #400 > >
00:00:32 v #401 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:32 v #402 > > //// test
00:00:32 v #403 > >
00:00:32 v #404 > > let cts = new System.Threading.CancellationTokenSource ()
00:00:32 v #405 > >
00:00:32 v #406 > > async {
00:00:32 v #407 > >     let run = async {
00:00:32 v #408 > >         do! Async.Sleep 100
00:00:32 v #409 > >         return 1
00:00:32 v #410 > >     }
00:00:32 v #411 > >
00:00:32 v #412 > >     let! child =
00:00:32 v #413 > >         run
00:00:32 v #414 > >         |> withCancellationToken cts.Token
00:00:32 v #415 > >         |> catch
00:00:32 v #416 > >         |> Async.StartChild
00:00:32 v #417 > >
00:00:32 v #418 > >     do! Async.Sleep 50
00:00:32 v #419 > >     cts.Cancel ()
00:00:32 v #420 > >     return! child
00:00:32 v #421 > > }
00:00:32 v #422 > > |> Async.RunSynchronously
00:00:32 v #423 > > |> Result.mapError _.Message
00:00:32 v #424 > > |> _assertEqual (Error ("A task was canceled."))
00:00:33 v #425 > >
00:00:33 v #426 > > ╭─[ 202.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:33 v #427 > > │ Error "A task was canceled."                                                 │
00:00:33 v #428 > > │                                                                              │
00:00:33 v #429 > > │                                                                              │
00:00:33 v #430 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 v #431 > >
00:00:33 v #432 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 v #433 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 v #434 > > │ ## retryAsync                                                                │
00:00:33 v #435 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 v #436 > >
00:00:33 v #437 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:33 v #438 > > let inline retryAsync retries fn =
00:00:33 v #439 > >     let rec loop retry lastError = async {
00:00:33 v #440 > >         try
00:00:33 v #441 > >             return!
00:00:33 v #442 > >                 if retry <= retries
00:00:33 v #443 > >                 then fn |> map Ok
00:00:33 v #444 > >                 else lastError |> Error |> init
00:00:33 v #445 > >         with ex ->
00:00:33 v #446 > >             trace Debug (fun () -> $"Async.retryAsync / retry: {retry}/{retries}
00:00:33 v #447 > > / ex: {ex |> SpiralSm.format_exception}") _locals
00:00:33 v #448 > >             do! Async.Sleep 30
00:00:33 v #449 > >             return! loop (retry + 1) (ex |> SpiralSm.format_exception)
00:00:33 v #450 > >     }
00:00:33 v #451 > >     loop 1 "Async.retryAsync / invalid retries / retries: {retries}"
00:00:33 v #452 > >
00:00:33 v #453 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:33 v #454 > > //// test
00:00:33 v #455 > >
00:00:33 v #456 > > let retry_fn_test = ref 0
00:00:33 v #457 > > async {
00:00:33 v #458 > >     retry_fn_test.Value <- retry_fn_test.Value + 1
00:00:33 v #459 > >     return retry_fn_test.Value
00:00:33 v #460 > > }
00:00:33 v #461 > > |> retryAsync 3
00:00:33 v #462 > > |> Async.RunSynchronously
00:00:33 v #463 > > |> _assertEqual (Ok 1)
00:00:33 v #464 > >
00:00:33 v #465 > > ╭─[ 133.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:33 v #466 > > │ Ok 1                                                                         │
00:00:33 v #467 > > │                                                                              │
00:00:33 v #468 > > │                                                                              │
00:00:33 v #469 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 v #470 > >
00:00:33 v #471 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:33 v #472 > > //// test
00:00:33 v #473 > >
00:00:33 v #474 > > let retry_fn_test = ref 0
00:00:33 v #475 > > async {
00:00:33 v #476 > >     return
00:00:33 v #477 > >         if retry_fn_test.Value >= 2
00:00:33 v #478 > >         then retry_fn_test.Value
00:00:33 v #479 > >         else
00:00:33 v #480 > >             retry_fn_test.Value <- retry_fn_test.Value + 1
00:00:33 v #481 > >             failwith "test"
00:00:33 v #482 > > }
00:00:33 v #483 > > |> retryAsync 3
00:00:33 v #484 > > |> Async.RunSynchronously
00:00:33 v #485 > > |> _assertEqual (Ok 2)
00:00:33 v #486 > >
00:00:33 v #487 > > ╭─[ 213.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:33 v #488 > > │ 00:00:04 d #8 Async.retryAsync / retry: 1/3 / ex: System.Exception:     │
00:00:33 v #489 > > │ test                                                                         │
00:00:33 v #490 > > │ 00:00:04 d #9 Async.retryAsync / retry: 2/3 / ex: System.Exception:     │
00:00:33 v #491 > > │ test                                                                         │
00:00:33 v #492 > > │ Ok 2                                                                         │
00:00:33 v #493 > > │                                                                              │
00:00:33 v #494 > > │                                                                              │
00:00:33 v #495 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 v #496 > >
00:00:33 v #497 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 v #498 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 v #499 > > │ ## fold                                                                      │
00:00:33 v #500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 v #501 > >
00:00:33 v #502 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:33 v #503 > > let fold folder state array =
00:00:33 v #504 > >     let rec loop acc i =
00:00:33 v #505 > >         async {
00:00:33 v #506 > >             if i < Array.length array then
00:00:33 v #507 > >                 let! newAcc = folder acc array.[[i]]
00:00:33 v #508 > >                 return! loop newAcc (i + 1)
00:00:33 v #509 > >             else
00:00:33 v #510 > >                 return acc
00:00:33 v #511 > >         }
00:00:33 v #512 > >     loop state 0
00:00:33 v #513 > 00:00:31 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 21208 }
00:00:33 v #514 > 00:00:31 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:35 v #515 > 00:00:33 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb to html
00:00:35 v #516 > 00:00:33 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:35 v #517 > 00:00:33 v #7 !   validate(nb)
00:00:36 v #518 > 00:00:34 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:36 v #519 > 00:00:34 v #9 !   return _pygments_highlight(
00:00:37 v #520 > 00:00:34 v #10 ! [NbConvertApp] Writing 332808 bytes to c:\home\git\polyglot\lib\fsharp\Async.dib.html
00:00:37 v #521 > 00:00:35 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 852 }
00:00:37 v #522 > 00:00:35 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 852 }
00:00:37 v #523 > 00:00:35 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Async.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Async.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:38 v #524 > 00:00:35 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:38 v #525 > 00:00:35 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:38 v #526 > 00:00:35 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 22119 }
00:00:38 d #527 runtime.execute_with_options_async / { exit_code = 0; output_length = 25683 }
00:00:38 d #4 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Async.dib --retries 3
00:00:38 d #528 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path AsyncSeq.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path AsyncSeq.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:38 v #529 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "AsyncSeq.dib", "--retries", "3"])) }
00:00:38 v #530 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib" --output-path "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:41 v #531 > >
00:00:41 v #532 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 v #533 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 v #534 > > │ # AsyncSeq (Polyglot)                                                        │
00:00:41 v #535 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:06 v #536 > >
00:01:06 v #537 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:06 v #538 > > #r
00:01:06 v #539 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:01:06 v #540 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:01:06 v #541 > > #r
00:01:06 v #542 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:01:06 v #543 > > 0/System.Reactive.dll"
00:01:06 v #544 > > #r
00:01:06 v #545 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:01:06 v #546 > > netstandard2.0/System.Reactive.Linq.dll"
00:01:07 v #547 > >
00:01:07 v #548 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:07 v #549 > > #if !INTERACTIVE
00:01:07 v #550 > > open Lib
00:01:07 v #551 > > #endif
00:01:07 v #552 > >
00:01:07 v #553 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:07 v #554 > > open Common
00:01:07 v #555 > >
00:01:07 v #556 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:07 v #557 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:07 v #558 > > │ ## subscribeEvent                                                            │
00:01:07 v #559 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:07 v #560 > >
00:01:07 v #561 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:07 v #562 > > let inline subscribeEvent (event: IEvent<'H, 'A>) map =
00:01:07 v #563 > >     let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
00:01:07 v #564 > > 'A>(event.AddHandler, event.RemoveHandler)
00:01:07 v #565 > >     System.Reactive.Linq.Observable.Select (observable, fun event -> map
00:01:07 v #566 > > event.EventArgs)
00:01:07 v #567 > >     |> FSharp.Control.AsyncSeq.ofObservableBuffered
00:01:07 v #568 > >
00:01:07 v #569 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:07 v #570 > > //// test
00:01:07 v #571 > >
00:01:07 v #572 > > type TestEvent () as self =
00:01:07 v #573 > >     member val Calls = [[]] with get, set
00:01:07 v #574 > >     member val Event = Event<ErrorEventHandler, ErrorEventArgs> () with get
00:01:07 v #575 > >
00:01:07 v #576 > >     member _.AddCall text =
00:01:07 v #577 > >         self.Calls <- self.Calls @ [[ text ]]
00:01:07 v #578 > >
00:01:07 v #579 > >     member _.EventInterface =
00:01:07 v #580 > >         { new IEvent<ErrorEventHandler, ErrorEventArgs> with
00:01:07 v #581 > >             member _.AddHandler handler =
00:01:07 v #582 > >                 self.AddCall "AddHandler"
00:01:07 v #583 > >                 self.Event.Publish.AddHandler handler
00:01:07 v #584 > >
00:01:07 v #585 > >             member _.RemoveHandler handler =
00:01:07 v #586 > >                 self.AddCall "RemoveHandler"
00:01:07 v #587 > >                 self.Event.Publish.RemoveHandler handler
00:01:07 v #588 > >
00:01:07 v #589 > >             member _.Subscribe observer =
00:01:07 v #590 > >                 self.AddCall "IObservable.Subscribe"
00:01:07 v #591 > >                 let disposable = self.Event.Publish.Subscribe observer
00:01:07 v #592 > >                 new_disposable (fun () ->
00:01:07 v #593 > >                     self.AddCall "IObservable.Dispose"
00:01:07 v #594 > >                     disposable.Dispose ()
00:01:07 v #595 > >                 )
00:01:07 v #596 > >         }
00:01:07 v #597 > >
00:01:07 v #598 > >     member _.Subscribe () =
00:01:07 v #599 > >         subscribeEvent
00:01:07 v #600 > >             self.EventInterface
00:01:07 v #601 > >             (fun args ->
00:01:07 v #602 > >                 let result = args.GetException () |> SpiralSm.format_exception
00:01:07 v #603 > >                 self.AddCall $"TestEvent.Subscribe({result})"
00:01:07 v #604 > >                 result
00:01:07 v #605 > >             )
00:01:07 v #606 > >
00:01:07 v #607 > >     member _.Iter subscription =
00:01:07 v #608 > >         subscription
00:01:07 v #609 > >         |> FSharp.Control.AsyncSeq.iteriAsync (fun i error -> async {
00:01:07 v #610 > >             self.AddCall $"TestEvent.Iter({i}: {error})"
00:01:07 v #611 > >         })
00:01:07 v #612 > >
00:01:07 v #613 > >     member _.WaitCall text = async {
00:01:07 v #614 > >         while self.Calls |> List.last <> text do
00:01:07 v #615 > >             do! Async.SwitchToThreadPool ()
00:01:07 v #616 > >     }
00:01:07 v #617 > >
00:01:07 v #618 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:07 v #619 > > //// test
00:01:07 v #620 > >
00:01:07 v #621 > > let testEvent = TestEvent ()
00:01:07 v #622 > >
00:01:07 v #623 > > async {
00:01:07 v #624 > >     testEvent.AddCall "1"
00:01:07 v #625 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:01:07 v #626 > >     do! testEvent.WaitCall "AddHandler"
00:01:07 v #627 > >     testEvent.AddCall "2"
00:01:07 v #628 > >     do! child
00:01:07 v #629 > >     testEvent.AddCall "3"
00:01:07 v #630 > > }
00:01:07 v #631 > > |> Async.runWithTimeout 300
00:01:07 v #632 > > |> _assertEqual None
00:01:07 v #633 > >
00:01:07 v #634 > > testEvent.Calls
00:01:07 v #635 > > |> Seq.toList
00:01:07 v #636 > > |> _assertEqual [[ "1"; "AddHandler"; "2"; "RemoveHandler" ]]
00:01:08 v #637 > >
00:01:08 v #638 > > ╭─[ 594.89ms - stdout ]────────────────────────────────────────────────────────╮
00:01:08 v #639 > > │ 00:00:02 d #1 Async.runWithTimeoutAsync / timeout: 300                  │
00:01:08 v #640 > > │ <null>                                                                       │
00:01:08 v #641 > > │                                                                              │
00:01:08 v #642 > > │ ["1"; "AddHandler"; "2"; "RemoveHandler"]                                    │
00:01:08 v #643 > > │                                                                              │
00:01:08 v #644 > > │                                                                              │
00:01:08 v #645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:08 v #646 > >
00:01:08 v #647 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:08 v #648 > > //// test
00:01:08 v #649 > >
00:01:08 v #650 > > let testEvent = TestEvent ()
00:01:08 v #651 > >
00:01:08 v #652 > > async {
00:01:08 v #653 > >     testEvent.AddCall "1"
00:01:08 v #654 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:01:08 v #655 > >     do! testEvent.WaitCall "AddHandler"
00:01:08 v #656 > >     testEvent.AddCall "2"
00:01:08 v #657 > >     use _ = testEvent.EventInterface.Subscribe (fun args ->
00:01:08 v #658 > >         testEvent.AddCall $"testEvent.EventInterface.Subscribe({args})"
00:01:08 v #659 > >     )
00:01:08 v #660 > >     testEvent.AddCall "3"
00:01:08 v #661 > >     do! child
00:01:08 v #662 > >     testEvent.AddCall "4"
00:01:08 v #663 > > }
00:01:08 v #664 > > |> Async.runWithTimeout 300
00:01:08 v #665 > > |> _assertEqual None
00:01:08 v #666 > >
00:01:08 v #667 > > testEvent.Calls
00:01:08 v #668 > > |> _assertEqual [[ "1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3";
00:01:08 v #669 > > "RemoveHandler"; "IObservable.Dispose" ]]
00:01:08 v #670 > >
00:01:08 v #671 > > ╭─[ 479.04ms - stdout ]────────────────────────────────────────────────────────╮
00:01:08 v #672 > > │ 00:00:02 d #2 Async.runWithTimeoutAsync / timeout: 300                  │
00:01:08 v #673 > > │ <null>                                                                       │
00:01:08 v #674 > > │                                                                              │
00:01:08 v #675 > > │ ["1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3"; "RemoveHandler";      │
00:01:08 v #676 > > │ "IObservable.Dispose"]                                                       │
00:01:08 v #677 > > │                                                                              │
00:01:08 v #678 > > │                                                                              │
00:01:08 v #679 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:08 v #680 > >
00:01:08 v #681 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:08 v #682 > > //// test
00:01:08 v #683 > >
00:01:08 v #684 > > let testEvent = TestEvent ()
00:01:08 v #685 > >
00:01:08 v #686 > > async {
00:01:08 v #687 > >     testEvent.AddCall "1"
00:01:08 v #688 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:01:08 v #689 > >     do! testEvent.WaitCall "AddHandler"
00:01:08 v #690 > >     testEvent.AddCall "2"
00:01:08 v #691 > >     use _ = testEvent.EventInterface.Subscribe (fun args ->
00:01:08 v #692 > >         async {
00:01:08 v #693 > >             do! testEvent.WaitCall "TestEvent.Iter(0: System.Exception: error)"
00:01:08 v #694 > >             testEvent.AddCall
00:01:08 v #695 > > $"testEvent.EventInterface.Subscribe({args.GetException () |>
00:01:08 v #696 > > SpiralSm.format_exception})"
00:01:08 v #697 > >         }
00:01:08 v #698 > >         |> Async.RunSynchronously
00:01:08 v #699 > >     )
00:01:08 v #700 > >     testEvent.AddCall "3"
00:01:08 v #701 > >     testEvent.Event.Trigger (null, ErrorEventArgs (Exception "error"))
00:01:08 v #702 > >     testEvent.AddCall "4"
00:01:08 v #703 > >     do! child
00:01:08 v #704 > >     testEvent.AddCall "5"
00:01:08 v #705 > > }
00:01:08 v #706 > > |> Async.runWithTimeout 300
00:01:08 v #707 > > |> _assertEqual None
00:01:08 v #708 > >
00:01:08 v #709 > > testEvent.Calls
00:01:08 v #710 > > |> _assertEqual [[
00:01:08 v #711 > >     "1"
00:01:08 v #712 > >     "AddHandler"
00:01:08 v #713 > >     "2"
00:01:08 v #714 > >     "IObservable.Subscribe"
00:01:08 v #715 > >     "3"
00:01:08 v #716 > >     "TestEvent.Subscribe(System.Exception: error)"
00:01:08 v #717 > >     "TestEvent.Iter(0: System.Exception: error)"
00:01:08 v #718 > >     "testEvent.EventInterface.Subscribe(System.Exception: error)"
00:01:08 v #719 > >     "4"
00:01:08 v #720 > >     "RemoveHandler"
00:01:08 v #721 > >     "IObservable.Dispose"
00:01:08 v #722 > > ]]
00:01:09 v #723 > >
00:01:09 v #724 > > ╭─[ 557.80ms - stdout ]────────────────────────────────────────────────────────╮
00:01:09 v #725 > > │ 00:00:03 d #3 Async.runWithTimeoutAsync / timeout: 300                  │
00:01:09 v #726 > > │ <null>                                                                       │
00:01:09 v #727 > > │                                                                              │
00:01:09 v #728 > > │ ["1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3";                       │
00:01:09 v #729 > > │ "TestEvent.Subscribe(System.Exception: error)";                              │
00:01:09 v #730 > > │  "TestEvent.Iter(0: System.Exception: error)";                               │
00:01:09 v #731 > > │ "testEvent.EventInterface.Subscribe(System.Exception: error)"; "4";          │
00:01:09 v #732 > > │  "RemoveHandler"; "IObservable.Dispose"]                                     │
00:01:09 v #733 > > │                                                                              │
00:01:09 v #734 > > │                                                                              │
00:01:09 v #735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:09 v #736 > >
00:01:09 v #737 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:09 v #738 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:09 v #739 > > │ ## subscribeToken                                                            │
00:01:09 v #740 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:09 v #741 > >
00:01:09 v #742 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:09 v #743 > > let subscribeToken (token : System.Threading.CancellationToken) =
00:01:09 v #744 > >     let tcs = new System.Threading.Tasks.TaskCompletionSource ()
00:01:09 v #745 > >     System.Action tcs.SetResult |> token.Register |> ignore
00:01:09 v #746 > >     let start = System.DateTime.Now.Ticks
00:01:09 v #747 > >     FSharp.Control.AsyncSeq.unfoldAsync
00:01:09 v #748 > >         (fun () -> async {
00:01:09 v #749 > >             do! tcs.Task |> Async.AwaitTask
00:01:09 v #750 > >             return Some (System.DateTime.Now.Ticks - start, ())
00:01:09 v #751 > >         })
00:01:09 v #752 > >         ()
00:01:09 v #753 > >
00:01:09 v #754 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:09 v #755 > > //// test
00:01:09 v #756 > >
00:01:09 v #757 > > let cts = new System.Threading.CancellationTokenSource ()
00:01:09 v #758 > >
00:01:09 v #759 > > async {
00:01:09 v #760 > >     let! child =
00:01:09 v #761 > >         cts.Token
00:01:09 v #762 > >         |> subscribeToken
00:01:09 v #763 > >         |> FSharp.Control.AsyncSeq.tryFirst
00:01:09 v #764 > >         |> Async.StartChild
00:01:09 v #765 > >
00:01:09 v #766 > >     do! Async.Sleep 100
00:01:09 v #767 > >     cts.Cancel ()
00:01:09 v #768 > >     return! child
00:01:09 v #769 > > }
00:01:09 v #770 > > |> Async.RunSynchronously
00:01:09 v #771 > > |> Option.get
00:01:09 v #772 > > |> fun x -> x > 900000
00:01:09 v #773 > > |> _assertEqual true
00:01:09 v #774 > >
00:01:09 v #775 > > ╭─[ 185.68ms - stdout ]────────────────────────────────────────────────────────╮
00:01:09 v #776 > > │ true                                                                         │
00:01:09 v #777 > > │                                                                              │
00:01:09 v #778 > > │                                                                              │
00:01:09 v #779 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:09 v #780 > 00:00:31 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 9731 }
00:01:09 v #781 > 00:00:31 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:11 v #782 > 00:00:32 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb to html
00:01:11 v #783 > 00:00:32 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:11 v #784 > 00:00:32 v #7 !   validate(nb)
00:01:12 v #785 > 00:00:33 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:01:12 v #786 > 00:00:33 v #9 !   return _pygments_highlight(
00:01:12 v #787 > 00:00:34 v #10 ! [NbConvertApp] Writing 303129 bytes to c:\home\git\polyglot\lib\fsharp\AsyncSeq.dib.html
00:01:12 v #788 > 00:00:34 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 858 }
00:01:12 v #789 > 00:00:34 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 858 }
00:01:12 v #790 > 00:00:34 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:13 v #791 > 00:00:34 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:13 v #792 > 00:00:34 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:13 v #793 > 00:00:34 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 10648 }
00:01:13 d #794 runtime.execute_with_options_async / { exit_code = 0; output_length = 13730 }
00:01:13 d #5 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path AsyncSeq.dib --retries 3
00:01:13 d #795 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path Common.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Common.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:13 v #796 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Common.dib", "--retries", "3"])) }
00:01:13 v #797 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/Common.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Common.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:16 v #798 > >
00:01:16 v #799 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:16 v #800 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:16 v #801 > > │ # Common (Polyglot)                                                          │
00:01:16 v #802 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:40 v #803 > >
00:01:40 v #804 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:40 v #805 > > #if !INTERACTIVE
00:01:40 v #806 > > open Lib
00:01:40 v #807 > > #endif
00:01:40 v #808 > >
00:01:40 v #809 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:40 v #810 > > let nl = System.Environment.NewLine
00:01:40 v #811 > > let q = @""""
00:01:40 v #812 > >
00:01:40 v #813 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:40 v #814 > > let inline cons head tail = head :: tail
00:01:40 v #815 > >
00:01:40 v #816 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:40 v #817 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:40 v #818 > > │ ## memoize                                                                   │
00:01:40 v #819 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:40 v #820 > >
00:01:40 v #821 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:40 v #822 > > let inline memoize fn =
00:01:40 v #823 > >     let result = lazy fn ()
00:01:40 v #824 > >     fun () -> result.Value
00:01:40 v #825 > >
00:01:40 v #826 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:40 v #827 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:40 v #828 > > │ ## TraceLevel                                                                │
00:01:40 v #829 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:40 v #830 > >
00:01:40 v #831 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:40 v #832 > > type TraceLevel =
00:01:40 v #833 > >     | Verbose
00:01:40 v #834 > >     | Debug
00:01:40 v #835 > >     | Info
00:01:40 v #836 > >     | Warning
00:01:40 v #837 > >     | Critical
00:01:40 v #838 > >
00:01:40 v #839 > > let inline _locals () = ""
00:01:40 v #840 > >
00:01:40 v #841 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:40 v #842 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:40 v #843 > > │ ## trace                                                                     │
00:01:40 v #844 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:40 v #845 > >
00:01:40 v #846 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:40 v #847 > > let to_trace_level = function
00:01:40 v #848 > >     | Verbose -> SpiralTrace.TraceLevel.US0_0
00:01:40 v #849 > >     | Debug -> SpiralTrace.TraceLevel.US0_1
00:01:40 v #850 > >     | Info -> SpiralTrace.TraceLevel.US0_2
00:01:40 v #851 > >     | Warning -> SpiralTrace.TraceLevel.US0_3
00:01:40 v #852 > >     | Critical -> SpiralTrace.TraceLevel.US0_4
00:01:40 v #853 > >
00:01:40 v #854 > > let trace level fn locals =
00:01:40 v #855 > >     let level = level |> to_trace_level
00:01:40 v #856 > >     SpiralTrace.trace level fn locals
00:01:40 v #857 > >
00:01:40 v #858 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:40 v #859 > > //// test
00:01:40 v #860 > >
00:01:40 v #861 > > trace Debug (fun () -> "test") _locals
00:01:40 v #862 > >
00:01:40 v #863 > > ╭─[ 35.30ms - stdout ]─────────────────────────────────────────────────────────╮
00:01:40 v #864 > > │ 00:00:00 d #1 test                                                      │
00:01:40 v #865 > > │                                                                              │
00:01:40 v #866 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:40 v #867 > 00:00:27 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2930 }
00:01:40 v #868 > 00:00:27 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:42 v #869 > 00:00:29 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb to html
00:01:42 v #870 > 00:00:29 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:42 v #871 > 00:00:29 v #7 !   validate(nb)
00:01:43 v #872 > 00:00:30 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:01:43 v #873 > 00:00:30 v #9 !   return _pygments_highlight(
00:01:43 v #874 > 00:00:30 v #10 ! [NbConvertApp] Writing 280728 bytes to c:\home\git\polyglot\lib\fsharp\Common.dib.html
00:01:43 v #875 > 00:00:30 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 854 }
00:01:43 v #876 > 00:00:30 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 854 }
00:01:43 v #877 > 00:00:30 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Common.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Common.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:44 v #878 > 00:00:31 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:44 v #879 > 00:00:31 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:44 v #880 > 00:00:31 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 3843 }
00:01:44 d #881 runtime.execute_with_options_async / { exit_code = 0; output_length = 6546 }
00:01:44 d #6 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Common.dib --retries 3
00:01:44 d #882 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path CommonFSharp.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path CommonFSharp.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:44 v #883 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "CommonFSharp.dib", "--retries", "3"])) }
00:01:44 v #884 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib" --output-path "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:47 v #885 > >
00:01:47 v #886 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 v #887 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 v #888 > > │ # CommonFSharp (Polyglot)                                                    │
00:01:47 v #889 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 v #890 > >
00:02:07 v #891 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:07 v #892 > > open Common
00:02:07 v #893 > >
00:02:07 v #894 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:07 v #895 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:07 v #896 > > │ ## getUnionCaseName                                                          │
00:02:07 v #897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 v #898 > >
00:02:07 v #899 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:07 v #900 > > let inline getUnionCaseName<'T> (x: 'T) =
00:02:07 v #901 > >     match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
00:02:07 v #902 > >     | case, _ -> case.Name
00:02:07 v #903 > >
00:02:07 v #904 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:07 v #905 > > //// test
00:02:07 v #906 > >
00:02:07 v #907 > > TraceLevel.Critical
00:02:07 v #908 > > |> getUnionCaseName
00:02:07 v #909 > > |> _assertEqual (nameof TraceLevel.Critical)
00:02:07 v #910 > >
00:02:07 v #911 > > ╭─[ 78.02ms - stdout ]─────────────────────────────────────────────────────────╮
00:02:07 v #912 > > │ "Critical"                                                                   │
00:02:07 v #913 > > │                                                                              │
00:02:07 v #914 > > │                                                                              │
00:02:07 v #915 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 v #916 > 00:00:22 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 1546 }
00:02:07 v #917 > 00:00:22 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:08 v #918 > 00:00:24 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb to html
00:02:08 v #919 > 00:00:24 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:08 v #920 > 00:00:24 v #7 !   validate(nb)
00:02:09 v #921 > 00:00:25 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:02:09 v #922 > 00:00:25 v #9 !   return _pygments_highlight(
00:02:09 v #923 > 00:00:25 v #10 ! [NbConvertApp] Writing 275592 bytes to c:\home\git\polyglot\lib\fsharp\CommonFSharp.dib.html
00:02:09 v #924 > 00:00:25 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 866 }
00:02:09 v #925 > 00:00:25 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 866 }
00:02:09 v #926 > 00:00:25 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:10 v #927 > 00:00:25 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:10 v #928 > 00:00:25 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:10 v #929 > 00:00:25 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 2471 }
00:02:10 d #930 runtime.execute_with_options_async / { exit_code = 0; output_length = 5152 }
00:02:10 d #7 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path CommonFSharp.dib --retries 3
00:02:10 d #931 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path FileSystem.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path FileSystem.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:10 v #932 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "FileSystem.dib", "--retries", "3"])) }
00:02:10 v #933 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/FileSystem.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/FileSystem.dib" --output-path "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:02:12 v #934 > >
00:02:12 v #935 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:12 v #936 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:12 v #937 > > │ # FileSystem (Polyglot)                                                      │
00:02:12 v #938 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 v #939 > >
00:02:16 v #940 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:16 v #941 > > #r
00:02:16 v #942 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:02:16 v #943 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:02:16 v #944 > > #r
00:02:16 v #945 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:02:16 v #946 > > 0/System.Reactive.dll"
00:02:16 v #947 > > #r
00:02:16 v #948 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:02:16 v #949 > > netstandard2.0/System.Reactive.Linq.dll"
00:02:16 v #950 > > #r
00:02:16 v #951 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:02:32 v #952 > >
00:02:32 v #953 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:32 v #954 > > #if !INTERACTIVE
00:02:32 v #955 > > open Lib
00:02:32 v #956 > > #endif
00:02:32 v #957 > >
00:02:32 v #958 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:32 v #959 > > open Common
00:02:32 v #960 > > open SpiralFileSystem.Operators
00:02:32 v #961 > >
00:02:32 v #962 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:32 v #963 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:32 v #964 > > │ ## watchDirectory                                                            │
00:02:32 v #965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:32 v #966 > >
00:02:32 v #967 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:32 v #968 > > [[<RequireQualifiedAccess>]]
00:02:32 v #969 > > type FileSystemChangeType =
00:02:32 v #970 > >     | Failure
00:02:32 v #971 > >     | Changed
00:02:32 v #972 > >     | Created
00:02:32 v #973 > >     | Deleted
00:02:32 v #974 > >     | Renamed
00:02:32 v #975 > >
00:02:32 v #976 > > [[<RequireQualifiedAccess>]]
00:02:32 v #977 > > type FileSystemChange =
00:02:32 v #978 > >     | Failure of exn: exn
00:02:32 v #979 > >     | Changed of path: string * content: string option
00:02:32 v #980 > >     | Created of path: string * content: string option
00:02:32 v #981 > >     | Deleted of path: string
00:02:32 v #982 > >     | Renamed of oldPath: string * (string * string option)
00:02:32 v #983 > >
00:02:32 v #984 > >
00:02:32 v #985 > > let inline watchDirectoryWithFilter filter shouldReadContent path =
00:02:32 v #986 > >     let fullPath = path |> System.IO.Path.GetFullPath
00:02:32 v #987 > >     let _locals () = $"filter: {filter} / {_locals ()}"
00:02:32 v #988 > >
00:02:32 v #989 > >     let watcher =
00:02:32 v #990 > >         new System.IO.FileSystemWatcher (
00:02:32 v #991 > >             Path = fullPath,
00:02:32 v #992 > >             NotifyFilter = filter,
00:02:32 v #993 > >             EnableRaisingEvents = true,
00:02:32 v #994 > >             IncludeSubdirectories = true
00:02:32 v #995 > >         )
00:02:32 v #996 > >
00:02:32 v #997 > >     let inline getEventPath (path : string) =
00:02:32 v #998 > >         path |> SpiralSm.trim |> SpiralSm.replace fullPath "" |>
00:02:32 v #999 > > SpiralSm.trim_start [[| '/'; '\\' |]]
00:02:32 v #1000 > >
00:02:32 v #1001 > >     let inline ticks () =
00:02:32 v #1002 > >         System.DateTime.UtcNow.Ticks
00:02:32 v #1003 > >
00:02:32 v #1004 > >     let changedStream =
00:02:32 v #1005 > >         AsyncSeq.subscribeEvent
00:02:32 v #1006 > >             watcher.Changed
00:02:32 v #1007 > >             (fun event ->
00:02:32 v #1008 > >                 ticks (),
00:02:32 v #1009 > >                 [[ FileSystemChange.Changed (getEventPath event.FullPath, None)
00:02:32 v #1010 > > ]]
00:02:32 v #1011 > >             )
00:02:32 v #1012 > >
00:02:32 v #1013 > >     let deletedStream =
00:02:32 v #1014 > >         AsyncSeq.subscribeEvent
00:02:32 v #1015 > >             watcher.Deleted
00:02:32 v #1016 > >             (fun event ->
00:02:32 v #1017 > >                 ticks (),
00:02:32 v #1018 > >                 [[ FileSystemChange.Deleted (getEventPath event.FullPath) ]]
00:02:32 v #1019 > >             )
00:02:32 v #1020 > >
00:02:32 v #1021 > >     let createdStream =
00:02:32 v #1022 > >         AsyncSeq.subscribeEvent
00:02:32 v #1023 > >             watcher.Created
00:02:32 v #1024 > >             (fun event ->
00:02:32 v #1025 > >                 let path = getEventPath event.FullPath
00:02:32 v #1026 > >                 ticks (), [[
00:02:32 v #1027 > >                     FileSystemChange.Created (path, None)
00:02:32 v #1028 > >                     if SpiralPlatform.is_windows () then
00:02:32 v #1029 > >                         FileSystemChange.Changed (path, None)
00:02:32 v #1030 > >                 ]])
00:02:32 v #1031 > >
00:02:32 v #1032 > >     let renamedStream =
00:02:32 v #1033 > >         AsyncSeq.subscribeEvent
00:02:32 v #1034 > >             watcher.Renamed
00:02:32 v #1035 > >             (fun event ->
00:02:32 v #1036 > >                 ticks (), [[
00:02:32 v #1037 > >                     FileSystemChange.Renamed (
00:02:32 v #1038 > >                         getEventPath event.OldFullPath,
00:02:32 v #1039 > >                         (getEventPath event.FullPath, None)
00:02:32 v #1040 > >                     )
00:02:32 v #1041 > >                 ]]
00:02:32 v #1042 > >             )
00:02:32 v #1043 > >
00:02:32 v #1044 > >     let failureStream =
00:02:32 v #1045 > >         AsyncSeq.subscribeEvent
00:02:32 v #1046 > >             watcher.Error
00:02:32 v #1047 > >             (fun event -> ticks (), [[ FileSystemChange.Failure
00:02:32 v #1048 > > (event.GetException ()) ]])
00:02:32 v #1049 > >
00:02:32 v #1050 > >     let stream =
00:02:32 v #1051 > >         [[
00:02:32 v #1052 > >             changedStream
00:02:32 v #1053 > >             deletedStream
00:02:32 v #1054 > >             createdStream
00:02:32 v #1055 > >             renamedStream
00:02:32 v #1056 > >             failureStream
00:02:32 v #1057 > >         ]]
00:02:32 v #1058 > >         |> FSharp.Control.AsyncSeq.mergeAll
00:02:32 v #1059 > >         |> FSharp.Control.AsyncSeq.map (fun (t, events) ->
00:02:32 v #1060 > >             events
00:02:32 v #1061 > >             |> List.fold
00:02:32 v #1062 > >                 (fun (i, events) event ->
00:02:32 v #1063 > >                     i + 1L,
00:02:32 v #1064 > >                     (t + i, event) :: events)
00:02:32 v #1065 > >                 (0L, [[]])
00:02:32 v #1066 > >             |> snd
00:02:32 v #1067 > >             |> List.rev
00:02:32 v #1068 > >         )
00:02:32 v #1069 > >         |> FSharp.Control.AsyncSeq.concatSeq
00:02:32 v #1070 > >         |> FSharp.Control.AsyncSeq.mapAsyncParallel (fun (t, event) -> async {
00:02:32 v #1071 > >             match shouldReadContent event, event with
00:02:32 v #1072 > >             | true, FileSystemChange.Changed (path, _) ->
00:02:32 v #1073 > >                 do! Async.Sleep 5
00:02:32 v #1074 > >                 let! content = fullPath </> path |>
00:02:32 v #1075 > > SpiralFileSystem.read_all_text_retry_async
00:02:32 v #1076 > >                 return t, FileSystemChange.Changed (path, content)
00:02:32 v #1077 > >             | true, FileSystemChange.Created (path, _) ->
00:02:32 v #1078 > >                 do! Async.Sleep 5
00:02:32 v #1079 > >                 let! content = fullPath </> path |>
00:02:32 v #1080 > > SpiralFileSystem.read_all_text_retry_async
00:02:32 v #1081 > >                 return t, FileSystemChange.Created (path, content)
00:02:32 v #1082 > >             | true, FileSystemChange.Renamed (oldPath, (newPath, _)) ->
00:02:32 v #1083 > >                 let! content = fullPath </> newPath |>
00:02:32 v #1084 > > SpiralFileSystem.read_all_text_retry_async
00:02:32 v #1085 > >                 return t, FileSystemChange.Renamed (oldPath, (newPath, content))
00:02:32 v #1086 > >             | _ -> return t, event
00:02:32 v #1087 > >         })
00:02:32 v #1088 > >
00:02:32 v #1089 > >     let disposable =
00:02:32 v #1090 > >         new_disposable (fun () ->
00:02:32 v #1091 > >             trace Debug (fun () -> "FileSystem.watchWithFilter / Disposing watch
00:02:32 v #1092 > > stream") _locals
00:02:32 v #1093 > >             watcher.EnableRaisingEvents <- false
00:02:32 v #1094 > >             watcher.Dispose ()
00:02:32 v #1095 > >         )
00:02:32 v #1096 > >
00:02:32 v #1097 > >     stream, disposable
00:02:32 v #1098 > >
00:02:32 v #1099 > > let inline watchDirectory path =
00:02:32 v #1100 > >     watchDirectoryWithFilter
00:02:32 v #1101 > >         (System.IO.NotifyFilters.FileName
00:02:32 v #1102 > >         // ||| System.IO.NotifyFilters.DirectoryName
00:02:32 v #1103 > >         // ||| System.IO.NotifyFilters.Attributes
00:02:32 v #1104 > >         //// ||| System.IO.NotifyFilters.Size
00:02:32 v #1105 > >         ||| System.IO.NotifyFilters.LastWrite
00:02:32 v #1106 > >         //// ||| System.IO.NotifyFilters.LastAccess
00:02:32 v #1107 > >         // ||| System.IO.NotifyFilters.CreationTime
00:02:32 v #1108 > >         // ||| System.IO.NotifyFilters.Security
00:02:32 v #1109 > >         )
00:02:32 v #1110 > >         path
00:02:33 v #1111 > >
00:02:33 v #1112 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:33 v #1113 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:33 v #1114 > > │ ### testEventsRaw (test)                                                     │
00:02:33 v #1115 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:33 v #1116 > >
00:02:33 v #1117 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:33 v #1118 > > //// test
00:02:33 v #1119 > >
00:02:33 v #1120 > > let inline testEventsRaw
00:02:33 v #1121 > >     (watchFn : (_ -> bool) -> string -> FSharp.Control.AsyncSeq<int64 *
00:02:33 v #1122 > > FileSystemChange> * IDisposable)
00:02:33 v #1123 > >     write
00:02:33 v #1124 > >     =
00:02:33 v #1125 > >     let struct (tempDir, tempDisposable) =
00:02:33 v #1126 > >         "FileSystem.testEventsRaw"
00:02:33 v #1127 > >         |> SpiralCrypto.hash_text
00:02:33 v #1128 > >         |> SpiralFileSystem.create_temp_dir'
00:02:33 v #1129 > >     let stream, disposable = watchFn (fun _ -> true) tempDir
00:02:33 v #1130 > >
00:02:33 v #1131 > >     let events = System.Collections.Concurrent.ConcurrentBag ()
00:02:33 v #1132 > >
00:02:33 v #1133 > >     let inline iter () =
00:02:33 v #1134 > >         stream
00:02:33 v #1135 > >         |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
00:02:33 v #1136 > > events.Add event })
00:02:33 v #1137 > >
00:02:33 v #1138 > >     let run = async {
00:02:33 v #1139 > >         let! _ = iter () |> Async.StartChild
00:02:33 v #1140 > >         do! Async.Sleep 250
00:02:33 v #1141 > >         return! write tempDir
00:02:33 v #1142 > >     }
00:02:33 v #1143 > >
00:02:33 v #1144 > >     try
00:02:33 v #1145 > >         run
00:02:33 v #1146 > >         |> Async.runWithTimeout 60000
00:02:33 v #1147 > >         |> _assertEqual (Some ())
00:02:33 v #1148 > >     finally
00:02:33 v #1149 > >         disposable.Dispose ()
00:02:33 v #1150 > >         tempDisposable.Dispose ()
00:02:33 v #1151 > >
00:02:33 v #1152 > >     let eventsLog =
00:02:33 v #1153 > >         events
00:02:33 v #1154 > >         |> Seq.toList
00:02:33 v #1155 > >         |> List.sortBy fst
00:02:33 v #1156 > >         |> List.fold
00:02:33 v #1157 > >             (fun (prev, acc) (ticks, event) ->
00:02:33 v #1158 > >                 ticks, (ticks, (if prev = 0L then 0L else ticks - prev), event)
00:02:33 v #1159 > > :: acc
00:02:33 v #1160 > >             )
00:02:33 v #1161 > >             (0L, [[]])
00:02:33 v #1162 > >         |> snd
00:02:33 v #1163 > >         |> List.rev
00:02:33 v #1164 > >         |> List.map (fun (diff, n, event) -> $"{n} / {diff} / {event}" |>
00:02:33 v #1165 > > SpiralSm.ellipsis_end 100L)
00:02:33 v #1166 > >         |> SpiralSm.concat "\n"
00:02:33 v #1167 > >     let _locals () = $"eventsLog: \n{eventsLog} / {_locals ()}"
00:02:33 v #1168 > >     trace Debug (fun () -> "FileSystem.testEventsRaw") _locals
00:02:33 v #1169 > >
00:02:33 v #1170 > >     events
00:02:33 v #1171 > >     |> Seq.toList
00:02:33 v #1172 > >     |> List.sortBy fst
00:02:33 v #1173 > >     |> List.map snd
00:02:33 v #1174 > >     |> List.fold
00:02:33 v #1175 > >         (fun acc event ->
00:02:33 v #1176 > >             match acc, event with
00:02:33 v #1177 > >             | FileSystemChange.Changed (lastPath, Some lastContent) as lastEvent
00:02:33 v #1178 > > :: acc,
00:02:33 v #1179 > >                 FileSystemChange.Changed (path, Some content)
00:02:33 v #1180 > >                 when lastPath = path && content |> SpiralSm.starts_with
00:02:33 v #1181 > > lastContent
00:02:33 v #1182 > >                 ->
00:02:33 v #1183 > >                 event :: acc
00:02:33 v #1184 > >             | _ -> event :: acc
00:02:33 v #1185 > >         )
00:02:33 v #1186 > >         [[]]
00:02:33 v #1187 > >     |> List.rev
00:02:33 v #1188 > >
00:02:33 v #1189 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:33 v #1190 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:33 v #1191 > > │ #### fast (test)                                                             │
00:02:33 v #1192 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:33 v #1193 > >
00:02:33 v #1194 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:33 v #1195 > > //// test
00:02:33 v #1196 > >
00:02:33 v #1197 > > let inline write path = async {
00:02:33 v #1198 > >     let n = 2
00:02:33 v #1199 > >
00:02:33 v #1200 > >     for i = 1 to n do
00:02:33 v #1201 > >         do! $"a{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:33 v #1202 > > $"file{i}.txt")
00:02:33 v #1203 > >
00:02:33 v #1204 > >     do! Async.Sleep 250
00:02:33 v #1205 > >
00:02:33 v #1206 > >     for i = 1 to n do
00:02:33 v #1207 > >         do! $"b{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:33 v #1208 > > $"file{i}.txt")
00:02:33 v #1209 > >
00:02:33 v #1210 > >     do! Async.Sleep 250
00:02:33 v #1211 > >
00:02:33 v #1212 > >     for i = 1 to n do
00:02:33 v #1213 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:33 v #1214 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:33 v #1215 > >
00:02:33 v #1216 > >     do! Async.Sleep 250
00:02:33 v #1217 > >
00:02:33 v #1218 > >     for i = 1 to n do
00:02:33 v #1219 > >         do! $"c{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:33 v #1220 > > $"file_{i}.txt")
00:02:33 v #1221 > >
00:02:33 v #1222 > >     do! Async.Sleep 250
00:02:33 v #1223 > >
00:02:33 v #1224 > >     for i = 1 to n do
00:02:33 v #1225 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:33 v #1226 > > Async.Ignore
00:02:33 v #1227 > >
00:02:33 v #1228 > >     do! Async.Sleep 250
00:02:33 v #1229 > > }
00:02:33 v #1230 > >
00:02:33 v #1231 > > let inline run () =
00:02:33 v #1232 > >     let events = testEventsRaw watchDirectory write
00:02:33 v #1233 > >
00:02:33 v #1234 > >     events
00:02:33 v #1235 > >     |> _sequenceEqual [[
00:02:33 v #1236 > >         FileSystemChange.Created ("file1.txt", Some "a1")
00:02:33 v #1237 > >         FileSystemChange.Changed ("file1.txt", Some "a1")
00:02:33 v #1238 > >         FileSystemChange.Created ("file2.txt", Some "a2")
00:02:33 v #1239 > >         FileSystemChange.Changed ("file2.txt", Some "a2")
00:02:33 v #1240 > >
00:02:33 v #1241 > >         FileSystemChange.Changed ("file1.txt", Some "b1")
00:02:33 v #1242 > >         FileSystemChange.Changed ("file2.txt", Some "b2")
00:02:33 v #1243 > >
00:02:33 v #1244 > >         FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "b1"))
00:02:33 v #1245 > >         FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "b2"))
00:02:33 v #1246 > >
00:02:33 v #1247 > >         FileSystemChange.Changed ("file_1.txt", Some "c1")
00:02:33 v #1248 > >         FileSystemChange.Changed ("file_2.txt", Some "c2")
00:02:33 v #1249 > >
00:02:33 v #1250 > >         FileSystemChange.Deleted "file_1.txt"
00:02:33 v #1251 > >         FileSystemChange.Deleted "file_2.txt"
00:02:33 v #1252 > >     ]]
00:02:33 v #1253 > >
00:02:33 v #1254 > > run
00:02:33 v #1255 > > |> retry_fn 3
00:02:33 v #1256 > > |> _assertEqual (Some ())
00:02:37 v #1257 > >
00:02:37 v #1258 > > ╭─[ 3.87s - stdout ]───────────────────────────────────────────────────────────╮
00:02:37 v #1259 > > │ Some ()                                                                      │
00:02:37 v #1260 > > │                                                                              │
00:02:37 v #1261 > > │ 00:00:06 d #1 FileSystem.watchWithFilter / Disposing watch stream /     │
00:02:37 v #1262 > > │ filter: FileName, LastWrite                                                  │
00:02:37 v #1263 > > │ 00:00:06 d #2 FileSystem.testEventsRaw / eventsLog:                     │
00:02:37 v #1264 > > │ 0 / 638648702470695135 / Created ("file1.txt", Some "a1")                    │
00:02:37 v #1265 > > │ 1 / 638648702470695136 / Changed ("file1.txt", Some "a1")                    │
00:02:37 v #1266 > > │ 15530 / 638648702470710666 / Changed ("file1.txt", Some "a1")                │
00:02:37 v #1267 > > │ 915 / 638648702470711581 / Created ("file2.txt", Some "a2")                  │
00:02:37 v #1268 > > │ 1 / 638648702470711582 / Changed ("file2.txt", Some "a2")                    │
00:02:37 v #1269 > > │ 37 / 638648702470711619 / Changed ("file2.txt", Some "a2")                   │
00:02:37 v #1270 > > │ 2496089 / 638648702473207708 / Changed ("file1.txt", Some "b1")              │
00:02:37 v #1271 > > │ 1380 / 638648702473209088 / Changed ("file1.txt", Some "b1")                 │
00:02:37 v #1272 > > │ 6491 / 638648702473215579 / Changed ("file2.txt", Some "b2")                 │
00:02:37 v #1273 > > │ 1232 / 638648702473216811 / Changed ("file2.txt", Some "b2")                 │
00:02:37 v #1274 > > │ 2720711 / 638648702475937522 / Renamed ("file1.txt", ("file_1.txt", Some     │
00:02:37 v #1275 > > │ "b1"))                                                                       │
00:02:37 v #1276 > > │ 18034 / 638648702475955556 / Renamed ("file2.txt", ("file_2.txt", Some       │
00:02:37 v #1277 > > │ "b2"))                                                                       │
00:02:37 v #1278 > > │ 2503389 / 638648702478458945 / Changed ("file_1.txt", Some "c1")             │
00:02:37 v #1279 > > │ 3726 / 638648702478462671 / Changed ("file_1.txt", Some "c1")                │
00:02:37 v #1280 > > │ 26787 / 638648702478489458 / Changed ("file_2.txt", Some "c2")               │
00:02:37 v #1281 > > │ 3542 / 638648702478493000 / Changed ("file_2.txt", Some "c2")                │
00:02:37 v #1282 > > │ 2488413 / 638648702480981413 / Deleted "file_1.txt"                          │
00:02:37 v #1283 > > │ 2705 / 638648702480984118 / Deleted "file_2.txt"                             │
00:02:37 v #1284 > > │ [Created ("file1.txt", Some "a1"); Changed ("file1.txt", Some "a1"); Created │
00:02:37 v #1285 > > │ ("file2.txt", Some "a2");                                                    │
00:02:37 v #1286 > > │  Changed ("file2.txt", Some "a2"); Changed ("file1.txt", Some "b1"); Changed │
00:02:37 v #1287 > > │ ("file2.txt", Some "b2");                                                    │
00:02:37 v #1288 > > │  Renamed ("file1.txt", ("file_1.txt", Some "b1")); Renamed ("file2.txt",     │
00:02:37 v #1289 > > │ ("file_2.txt", Some "b2"));                                                  │
00:02:37 v #1290 > > │  Changed ("file_1.txt", Some "c1"); Changed ("file_2.txt", Some "c2");       │
00:02:37 v #1291 > > │ Deleted "file_1.txt"; Deleted "file_2.txt"]                                  │
00:02:37 v #1292 > > │                                                                              │
00:02:37 v #1293 > > │ Some ()                                                                      │
00:02:37 v #1294 > > │                                                                              │
00:02:37 v #1295 > > │                                                                              │
00:02:37 v #1296 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:37 v #1297 > >
00:02:37 v #1298 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:37 v #1299 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:37 v #1300 > > │ #### slow (test)                                                             │
00:02:37 v #1301 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:37 v #1302 > >
00:02:37 v #1303 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:37 v #1304 > > //// test
00:02:37 v #1305 > >
00:02:37 v #1306 > > let inline write path = async {
00:02:37 v #1307 > >     let n = 2
00:02:37 v #1308 > >
00:02:37 v #1309 > >     let contents =
00:02:37 v #1310 > >         [[ 1 .. n ]]
00:02:37 v #1311 > >         |> List.map (string >> String.replicate 1_000_000)
00:02:37 v #1312 > >
00:02:37 v #1313 > >     for i = 1 to n do
00:02:37 v #1314 > >         do! $"{contents.[[i - 1]]}a" |> SpiralFileSystem.write_all_text_async
00:02:37 v #1315 > > (path </> $"file{i}.txt")
00:02:37 v #1316 > >
00:02:37 v #1317 > >     do! Async.Sleep 1500
00:02:37 v #1318 > >
00:02:37 v #1319 > >     for i = 1 to n do
00:02:37 v #1320 > >         do! $"{contents.[[i - 1]]}b" |> SpiralFileSystem.write_all_text_async
00:02:37 v #1321 > > (path </> $"file{i}.txt")
00:02:37 v #1322 > >
00:02:37 v #1323 > >     do! Async.Sleep 1500
00:02:37 v #1324 > >
00:02:37 v #1325 > >     for i = 1 to n do
00:02:37 v #1326 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:37 v #1327 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:37 v #1328 > >
00:02:37 v #1329 > >     do! Async.Sleep 1500
00:02:37 v #1330 > >
00:02:37 v #1331 > >     for i = 1 to n do
00:02:37 v #1332 > >         do! $"{contents.[[i - 1]]}c" |> SpiralFileSystem.write_all_text_async
00:02:37 v #1333 > > (path </> $"file_{i}.txt")
00:02:37 v #1334 > >
00:02:37 v #1335 > >     do! Async.Sleep 1500
00:02:37 v #1336 > >
00:02:37 v #1337 > >     for i = 1 to n do
00:02:37 v #1338 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:37 v #1339 > > Async.Ignore
00:02:37 v #1340 > >
00:02:37 v #1341 > >     do! Async.Sleep 1500
00:02:37 v #1342 > > }
00:02:37 v #1343 > >
00:02:37 v #1344 > > let inline run () =
00:02:37 v #1345 > >     let events =
00:02:37 v #1346 > >         testEventsRaw watchDirectory write
00:02:37 v #1347 > >         |> List.map (function
00:02:37 v #1348 > >             | FileSystemChange.Changed (path, Some content) ->
00:02:37 v #1349 > >                 FileSystemChange.Changed (path, content |> Seq.distinct |>
00:02:37 v #1350 > > Seq.map string |> SpiralSm.concat "" |> Some)
00:02:37 v #1351 > >             | FileSystemChange.Created (path, Some content) ->
00:02:37 v #1352 > >                 FileSystemChange.Created (path, content |> Seq.distinct |>
00:02:37 v #1353 > > Seq.map string |> SpiralSm.concat "" |> Some)
00:02:37 v #1354 > >             | FileSystemChange.Renamed (oldPath, (newPath, Some content)) ->
00:02:37 v #1355 > >                 FileSystemChange.Renamed (
00:02:37 v #1356 > >                     oldPath,
00:02:37 v #1357 > >                     (newPath, content |> Seq.distinct |> Seq.map string |>
00:02:37 v #1358 > > SpiralSm.concat "" |> Some)
00:02:37 v #1359 > >                 )
00:02:37 v #1360 > >             | event -> event
00:02:37 v #1361 > >         )
00:02:37 v #1362 > >
00:02:37 v #1363 > >     events
00:02:37 v #1364 > >     |> _sequenceEqual [[
00:02:37 v #1365 > >         FileSystemChange.Created ("file1.txt", Some "1a")
00:02:37 v #1366 > >         FileSystemChange.Changed ("file1.txt", Some "1a")
00:02:37 v #1367 > >         FileSystemChange.Created ("file2.txt", Some "2a")
00:02:37 v #1368 > >         FileSystemChange.Changed ("file2.txt", Some "2a")
00:02:37 v #1369 > >
00:02:37 v #1370 > >         FileSystemChange.Changed ("file1.txt", Some "1b")
00:02:37 v #1371 > >         FileSystemChange.Changed ("file2.txt", Some "2b")
00:02:37 v #1372 > >
00:02:37 v #1373 > >         FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "1b"))
00:02:37 v #1374 > >         FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "2b"))
00:02:37 v #1375 > >
00:02:37 v #1376 > >         FileSystemChange.Changed ("file_1.txt", Some "1c")
00:02:37 v #1377 > >         FileSystemChange.Changed ("file_2.txt", Some "2c")
00:02:37 v #1378 > >
00:02:37 v #1379 > >         FileSystemChange.Deleted "file_1.txt"
00:02:37 v #1380 > >         FileSystemChange.Deleted "file_2.txt"
00:02:37 v #1381 > >     ]]
00:02:37 v #1382 > >
00:02:37 v #1383 > > run
00:02:37 v #1384 > > |> retry_fn 5
00:02:37 v #1385 > > |> _assertEqual (Some ())
00:02:48 v #1386 > >
00:02:48 v #1387 > > ╭─[ 10.71s - stdout ]──────────────────────────────────────────────────────────╮
00:02:48 v #1388 > > │ Some ()                                                                      │
00:02:48 v #1389 > > │                                                                              │
00:02:48 v #1390 > > │ 00:00:16 d #3 FileSystem.watchWithFilter / Disposing watch stream /     │
00:02:48 v #1391 > > │ filter: FileName, LastWrite                                                  │
00:02:48 v #1392 > > │ 00:00:16 d #4 FileSystem.testEventsRaw / eventsLog:                     │
00:02:48 v #1393 > > │ 0 / 638648702511003156 / Created                                             │
00:02:48 v #1394 > > │   ("file1.txt",                                                              │
00:02:48 v #1395 > > │  ...11111111111111111111111111111111111111111111111a")                       │
00:02:48 v #1396 > > │ 1 / 638648702511003157 / Changed                                             │
00:02:48 v #1397 > > │   ("file1.txt",                                                              │
00:02:48 v #1398 > > │  ...11111111111111111111111111111111111111111111111a")                       │
00:02:48 v #1399 > > │ 101903 / 638648702511105060 / Changed                                        │
00:02:48 v #1400 > > │   ("file1.tx...11111111111111111111111111111111111111111111111a")            │
00:02:48 v #1401 > > │ 67126 / 638648702511172186 / Created                                         │
00:02:48 v #1402 > > │   ("file2.txt...22222222222222222222222222222222222222222222222a")           │
00:02:48 v #1403 > > │ 1 / 638648702511172187 / Changed                                             │
00:02:48 v #1404 > > │   ("file2.txt",                                                              │
00:02:48 v #1405 > > │  ...22222222222222222222222222222222222222222222222a")                       │
00:02:48 v #1406 > > │ 145418 / 638648702511317605 / Changed                                        │
00:02:48 v #1407 > > │   ("file2.tx...22222222222222222222222222222222222222222222222a")            │
00:02:48 v #1408 > > │ 15066008 / 638648702526383613 / Changed                                      │
00:02:48 v #1409 > > │   ("file1....11111111111111111111111111111111111111111111111b")              │
00:02:48 v #1410 > > │ 178351 / 638648702526561964 / Changed                                        │
00:02:48 v #1411 > > │   ("file1.tx...11111111111111111111111111111111111111111111111b")            │
00:02:48 v #1412 > > │ 67607 / 638648702526629571 / Changed                                         │
00:02:48 v #1413 > > │   ("file2.txt...22222222222222222222222222222222222222222222222b")           │
00:02:48 v #1414 > > │ 135446 / 638648702526765017 / Changed                                        │
00:02:48 v #1415 > > │   ("file2.tx...22222222222222222222222222222222222222222222222b")            │
00:02:48 v #1416 > > │ 15080958 / 638648702541845975 / Renamed                                      │
00:02:48 v #1417 > > │   ("file1....1111111111111111111111111111111111111111111111b"))              │
00:02:48 v #1418 > > │ 3020 / 638648702541848995 / Renamed                                          │
00:02:48 v #1419 > > │   ("file2.txt"...2222222222222222222222222222222222222222222222b"))          │
00:02:48 v #1420 > > │ 15006031 / 638648702556855026 / Changed                                      │
00:02:48 v #1421 > > │   ("file_1...11111111111111111111111111111111111111111111111c")              │
00:02:48 v #1422 > > │ 198705 / 638648702557053731 / Changed                                        │
00:02:48 v #1423 > > │   ("file_1.t...11111111111111111111111111111111111111111111111c")            │
00:02:48 v #1424 > > │ 50295 / 638648702557104026 / Changed                                         │
00:02:48 v #1425 > > │   ("file_2.tx...22222222222222222222222222222222222222222222222c")           │
00:02:48 v #1426 > > │ 112798 / 638648702557216824 / Changed                                        │
00:02:48 v #1427 > > │   ("file_2.t...22222222222222222222222222222222222222222222222c")            │
00:02:48 v #1428 > > │ 15126211 / 638648702572343035 / Deleted "file_1.txt"                         │
00:02:48 v #1429 > > │ 6403 / 638648702572349438 / Deleted "file_2.txt"                             │
00:02:48 v #1430 > > │ [Created ("file1.txt", Some "1a"); Changed ("file1.txt", Some "1a"); Created │
00:02:48 v #1431 > > │ ("file2.txt", Some "2a");                                                    │
00:02:48 v #1432 > > │  Changed ("file2.txt", Some "2a"); Changed ("file1.txt", Some "1b"); Changed │
00:02:48 v #1433 > > │ ("file2.txt", Some "2b");                                                    │
00:02:48 v #1434 > > │  Renamed ("file1.txt", ("file_1.txt", Some "1b")); Renamed ("file2.txt",     │
00:02:48 v #1435 > > │ ("file_2.txt", Some "2b"));                                                  │
00:02:48 v #1436 > > │  Changed ("file_1.txt", Some "1c"); Changed ("file_2.txt", Some "2c");       │
00:02:48 v #1437 > > │ Deleted "file_1.txt"; Deleted "file_2.txt"]                                  │
00:02:48 v #1438 > > │                                                                              │
00:02:48 v #1439 > > │ Some ()                                                                      │
00:02:48 v #1440 > > │                                                                              │
00:02:48 v #1441 > > │                                                                              │
00:02:48 v #1442 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:48 v #1443 > >
00:02:48 v #1444 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:48 v #1445 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:48 v #1446 > > │ ### testEventsSorted (test)                                                  │
00:02:48 v #1447 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:48 v #1448 > >
00:02:48 v #1449 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:48 v #1450 > > //// test
00:02:48 v #1451 > >
00:02:48 v #1452 > > let inline sortEvent event =
00:02:48 v #1453 > >     match event with
00:02:48 v #1454 > >     | FileSystemChange.Failure _ -> 0
00:02:48 v #1455 > >     | FileSystemChange.Created _ -> 1
00:02:48 v #1456 > >     | FileSystemChange.Changed _ -> 2
00:02:48 v #1457 > >     | FileSystemChange.Renamed (_oldPath, _) -> 3
00:02:48 v #1458 > >     | FileSystemChange.Deleted _ -> 4
00:02:48 v #1459 > >
00:02:48 v #1460 > > let inline formatEvents events =
00:02:48 v #1461 > >     events
00:02:48 v #1462 > >     |> Seq.toList
00:02:48 v #1463 > >     |> List.sortBy (snd >> sortEvent)
00:02:48 v #1464 > >     |> List.choose (fun (ticks, event) ->
00:02:48 v #1465 > >         match event with
00:02:48 v #1466 > >         | FileSystemChange.Failure _ ->
00:02:48 v #1467 > >             None
00:02:48 v #1468 > >         | FileSystemChange.Changed (path, _) ->
00:02:48 v #1469 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:48 v #1470 > > FileSystemChangeType.Changed)
00:02:48 v #1471 > >         | FileSystemChange.Created (path, _) ->
00:02:48 v #1472 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:48 v #1473 > > FileSystemChangeType.Created)
00:02:48 v #1474 > >         | FileSystemChange.Deleted path ->
00:02:48 v #1475 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:48 v #1476 > > FileSystemChangeType.Deleted)
00:02:48 v #1477 > >         | FileSystemChange.Renamed (_oldPath, (path, _)) ->
00:02:48 v #1478 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:48 v #1479 > > FileSystemChangeType.Renamed)
00:02:48 v #1480 > >     )
00:02:48 v #1481 > >     |> List.sortBy (fun (_, path, _) -> path)
00:02:48 v #1482 > >     |> List.distinctBy (fun (_, path, event) -> path, event)
00:02:48 v #1483 > >
00:02:48 v #1484 > > let inline testEventsSorted
00:02:48 v #1485 > >     (watchFn : string -> FSharp.Control.AsyncSeq<int64 * FileSystemChange> *
00:02:48 v #1486 > > IDisposable)
00:02:48 v #1487 > >     write
00:02:48 v #1488 > >     =
00:02:48 v #1489 > >     let struct (tempDir, tempDisposable) =
00:02:48 v #1490 > >         "FileSystem.testEventsSorted"
00:02:48 v #1491 > >         |> SpiralCrypto.hash_text
00:02:48 v #1492 > >         |> SpiralFileSystem.create_temp_dir'
00:02:48 v #1493 > >     let stream, disposable = watchFn tempDir
00:02:48 v #1494 > >
00:02:48 v #1495 > >     let events = System.Collections.Concurrent.ConcurrentBag ()
00:02:48 v #1496 > >
00:02:48 v #1497 > >     let inline iter () =
00:02:48 v #1498 > >         stream
00:02:48 v #1499 > >         |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
00:02:48 v #1500 > > events.Add event })
00:02:48 v #1501 > >
00:02:48 v #1502 > >     let run = async {
00:02:48 v #1503 > >         let! _ = iter () |> Async.StartChild
00:02:48 v #1504 > >         do! Async.Sleep 250
00:02:48 v #1505 > >         return! write tempDir
00:02:48 v #1506 > >     }
00:02:48 v #1507 > >
00:02:48 v #1508 > >     try
00:02:48 v #1509 > >         run
00:02:48 v #1510 > >         |> Async.runWithTimeout 5000
00:02:48 v #1511 > >         |> _assertEqual (Some ())
00:02:48 v #1512 > >     finally
00:02:48 v #1513 > >         disposable.Dispose ()
00:02:48 v #1514 > >         tempDisposable.Dispose ()
00:02:48 v #1515 > >
00:02:48 v #1516 > >     let events = formatEvents events
00:02:48 v #1517 > >
00:02:48 v #1518 > >     let eventMap =
00:02:48 v #1519 > >         events
00:02:48 v #1520 > >         |> List.map (fun (ticks, path, event) -> path, (event, ticks))
00:02:48 v #1521 > >         |> List.groupBy fst
00:02:48 v #1522 > >         |> List.map (fun (path, events) ->
00:02:48 v #1523 > >             let event, _ticks =
00:02:48 v #1524 > >                 events
00:02:48 v #1525 > >                 |> List.map snd
00:02:48 v #1526 > >                 |> List.sortByDescending snd
00:02:48 v #1527 > >                 |> List.head
00:02:48 v #1528 > >
00:02:48 v #1529 > >             path, event
00:02:48 v #1530 > >         )
00:02:48 v #1531 > >         |> Map.ofList
00:02:48 v #1532 > >
00:02:48 v #1533 > >     let eventList =
00:02:48 v #1534 > >         events
00:02:48 v #1535 > >         |> List.map (fun (_ticks, path, event) -> path, event)
00:02:48 v #1536 > >
00:02:48 v #1537 > >     eventMap, eventList
00:02:48 v #1538 > >
00:02:48 v #1539 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:48 v #1540 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:48 v #1541 > > │ #### create and delete (test)                                                │
00:02:48 v #1542 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:48 v #1543 > >
00:02:48 v #1544 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:48 v #1545 > > //// test
00:02:48 v #1546 > >
00:02:48 v #1547 > > let inline write path = async {
00:02:48 v #1548 > >     let n = 3
00:02:48 v #1549 > >
00:02:48 v #1550 > >     for i = 1 to n do
00:02:48 v #1551 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:48 v #1552 > > $"file{i}.txt")
00:02:48 v #1553 > >
00:02:48 v #1554 > >     for i = 1 to n do
00:02:48 v #1555 > >         do! SpiralFileSystem.delete_file_async (path </> $"file{i}.txt") |>
00:02:48 v #1556 > > Async.Ignore
00:02:48 v #1557 > >
00:02:48 v #1558 > >     do! Async.Sleep 150
00:02:48 v #1559 > > }
00:02:48 v #1560 > >
00:02:48 v #1561 > > let inline run () =
00:02:48 v #1562 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:48 v #1563 > > write
00:02:48 v #1564 > >
00:02:48 v #1565 > >     [[
00:02:48 v #1566 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:48 v #1567 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:48 v #1568 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:48 v #1569 > >
00:02:48 v #1570 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:48 v #1571 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:48 v #1572 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:48 v #1573 > >
00:02:48 v #1574 > >         "file3.txt", nameof FileSystemChangeType.Created
00:02:48 v #1575 > >         "file3.txt", nameof FileSystemChangeType.Changed
00:02:48 v #1576 > >         "file3.txt", nameof FileSystemChangeType.Deleted
00:02:48 v #1577 > >     ]]
00:02:48 v #1578 > >     |> _sequenceEqual eventList
00:02:48 v #1579 > >
00:02:48 v #1580 > >     [[
00:02:48 v #1581 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:48 v #1582 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:48 v #1583 > >         "file3.txt", nameof FileSystemChangeType.Deleted
00:02:48 v #1584 > >     ]]
00:02:48 v #1585 > >     |> Map.ofList
00:02:48 v #1586 > >     |> _sequenceEqual eventMap
00:02:48 v #1587 > >
00:02:48 v #1588 > > run
00:02:48 v #1589 > > |> retry_fn 3
00:02:48 v #1590 > > |> _assertEqual (Some ())
00:02:50 v #1591 > >
00:02:50 v #1592 > > ╭─[ 1.94s - stdout ]───────────────────────────────────────────────────────────╮
00:02:50 v #1593 > > │ Some ()                                                                      │
00:02:50 v #1594 > > │                                                                              │
00:02:50 v #1595 > > │ 00:00:19 d #5 FileSystem.watchWithFilter / Disposing watch stream /     │
00:02:50 v #1596 > > │ filter: FileName, LastWrite                                                  │
00:02:50 v #1597 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file1.txt",           │
00:02:50 v #1598 > > │ "Deleted"); ("file2.txt", "Created");                                        │
00:02:50 v #1599 > > │  ("file2.txt", "Changed"); ("file2.txt", "Deleted"); ("file3.txt",           │
00:02:50 v #1600 > > │ "Created"); ("file3.txt", "Changed");                                        │
00:02:50 v #1601 > > │  ("file3.txt", "Deleted")]                                                   │
00:02:50 v #1602 > > │                                                                              │
00:02:50 v #1603 > > │ map [("file1.txt", "Deleted"); ("file2.txt", "Deleted"); ("file3.txt",       │
00:02:50 v #1604 > > │ "Deleted")]                                                                  │
00:02:50 v #1605 > > │                                                                              │
00:02:50 v #1606 > > │ Some ()                                                                      │
00:02:50 v #1607 > > │                                                                              │
00:02:50 v #1608 > > │                                                                              │
00:02:50 v #1609 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 v #1610 > >
00:02:50 v #1611 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:50 v #1612 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:50 v #1613 > > │ #### change (test)                                                           │
00:02:50 v #1614 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 v #1615 > >
00:02:50 v #1616 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 v #1617 > > //// test
00:02:50 v #1618 > >
00:02:50 v #1619 > > let inline write path = async {
00:02:50 v #1620 > >     let n = 2
00:02:50 v #1621 > >
00:02:50 v #1622 > >     for i = 1 to n do
00:02:50 v #1623 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:50 v #1624 > > $"file{i}.txt")
00:02:50 v #1625 > >
00:02:50 v #1626 > >     for i = 1 to n do
00:02:50 v #1627 > >         do! "" |> SpiralFileSystem.write_all_text_async (path </>
00:02:50 v #1628 > > $"file{i}.txt")
00:02:50 v #1629 > >
00:02:50 v #1630 > >     for i = 1 to n do
00:02:50 v #1631 > >         do! SpiralFileSystem.delete_file_async (path </> $"file{i}.txt") |>
00:02:50 v #1632 > > Async.Ignore
00:02:50 v #1633 > >
00:02:50 v #1634 > >     do! Async.Sleep 150
00:02:50 v #1635 > > }
00:02:50 v #1636 > >
00:02:50 v #1637 > > let inline run () =
00:02:50 v #1638 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:50 v #1639 > > write
00:02:50 v #1640 > >
00:02:50 v #1641 > >     [[
00:02:50 v #1642 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:50 v #1643 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:50 v #1644 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:50 v #1645 > >
00:02:50 v #1646 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:50 v #1647 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:50 v #1648 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:50 v #1649 > >     ]]
00:02:50 v #1650 > >     |> _sequenceEqual eventList
00:02:50 v #1651 > >
00:02:50 v #1652 > >     [[
00:02:50 v #1653 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:50 v #1654 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:50 v #1655 > >     ]]
00:02:50 v #1656 > >     |> Map.ofList
00:02:50 v #1657 > >     |> _sequenceEqual eventMap
00:02:50 v #1658 > >
00:02:50 v #1659 > > run
00:02:50 v #1660 > > |> retry_fn 3
00:02:50 v #1661 > > |> _assertEqual (Some ())
00:02:52 v #1662 > >
00:02:52 v #1663 > > ╭─[ 2.28s - stdout ]───────────────────────────────────────────────────────────╮
00:02:52 v #1664 > > │ Some ()                                                                      │
00:02:52 v #1665 > > │                                                                              │
00:02:52 v #1666 > > │ 00:00:21 d #6 FileSystem.watchWithFilter / Disposing watch stream /     │
00:02:52 v #1667 > > │ filter: FileName, LastWrite                                                  │
00:02:52 v #1668 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file1.txt",           │
00:02:52 v #1669 > > │ "Deleted"); ("file2.txt", "Created");                                        │
00:02:52 v #1670 > > │  ("file2.txt", "Changed"); ("file2.txt", "Deleted")]                         │
00:02:52 v #1671 > > │                                                                              │
00:02:52 v #1672 > > │ map [("file1.txt", "Deleted"); ("file2.txt", "Deleted")]                     │
00:02:52 v #1673 > > │                                                                              │
00:02:52 v #1674 > > │ Some ()                                                                      │
00:02:52 v #1675 > > │                                                                              │
00:02:52 v #1676 > > │                                                                              │
00:02:52 v #1677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:52 v #1678 > >
00:02:52 v #1679 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:52 v #1680 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:52 v #1681 > > │ #### rename (test)                                                           │
00:02:52 v #1682 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:52 v #1683 > >
00:02:52 v #1684 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:52 v #1685 > > //// test
00:02:52 v #1686 > >
00:02:52 v #1687 > > let inline write path = async {
00:02:52 v #1688 > >     let n = 2
00:02:52 v #1689 > >
00:02:52 v #1690 > >     for i = 1 to n do
00:02:52 v #1691 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:52 v #1692 > > $"file{i}.txt")
00:02:52 v #1693 > >
00:02:52 v #1694 > >     for i = 1 to n do
00:02:52 v #1695 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:52 v #1696 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:52 v #1697 > >
00:02:52 v #1698 > >     for i = 1 to n do
00:02:52 v #1699 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:52 v #1700 > > Async.Ignore
00:02:52 v #1701 > >
00:02:52 v #1702 > >     do! Async.Sleep 150
00:02:52 v #1703 > > }
00:02:52 v #1704 > >
00:02:52 v #1705 > > let inline run () =
00:02:52 v #1706 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:52 v #1707 > > write
00:02:52 v #1708 > >
00:02:52 v #1709 > >     [[
00:02:52 v #1710 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:52 v #1711 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:52 v #1712 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:52 v #1713 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:52 v #1714 > >
00:02:52 v #1715 > >         "file_1.txt", nameof FileSystemChangeType.Renamed
00:02:52 v #1716 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:52 v #1717 > >
00:02:52 v #1718 > >         "file_2.txt", nameof FileSystemChangeType.Renamed
00:02:52 v #1719 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:52 v #1720 > >     ]]
00:02:52 v #1721 > >     |> _sequenceEqual eventList
00:02:52 v #1722 > >
00:02:52 v #1723 > >     [[
00:02:52 v #1724 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:52 v #1725 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:52 v #1726 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:52 v #1727 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:52 v #1728 > >     ]]
00:02:52 v #1729 > >     |> Map.ofList
00:02:52 v #1730 > >     |> _sequenceEqual eventMap
00:02:52 v #1731 > >
00:02:52 v #1732 > > run
00:02:52 v #1733 > > |> retry_fn 3
00:02:52 v #1734 > > |> _assertEqual (Some ())
00:02:55 v #1735 > >
00:02:55 v #1736 > > ╭─[ 2.34s - stdout ]───────────────────────────────────────────────────────────╮
00:02:55 v #1737 > > │ Some ()                                                                      │
00:02:55 v #1738 > > │                                                                              │
00:02:55 v #1739 > > │ 00:00:24 d #7 FileSystem.watchWithFilter / Disposing watch stream /     │
00:02:55 v #1740 > > │ filter: FileName, LastWrite                                                  │
00:02:55 v #1741 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file2.txt",           │
00:02:55 v #1742 > > │ "Created"); ("file2.txt", "Changed");                                        │
00:02:55 v #1743 > > │  ("file_1.txt", "Renamed"); ("file_1.txt", "Deleted"); ("file_2.txt",        │
00:02:55 v #1744 > > │ "Renamed"); ("file_2.txt", "Deleted")]                                       │
00:02:55 v #1745 > > │                                                                              │
00:02:55 v #1746 > > │ map [("file1.txt", "Changed"); ("file2.txt", "Changed"); ("file_1.txt",      │
00:02:55 v #1747 > > │ "Deleted"); ("file_2.txt", "Deleted")]                                       │
00:02:55 v #1748 > > │                                                                              │
00:02:55 v #1749 > > │ Some ()                                                                      │
00:02:55 v #1750 > > │                                                                              │
00:02:55 v #1751 > > │                                                                              │
00:02:55 v #1752 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:55 v #1753 > >
00:02:55 v #1754 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:55 v #1755 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:55 v #1756 > > │ #### full (test)                                                             │
00:02:55 v #1757 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:55 v #1758 > >
00:02:55 v #1759 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:55 v #1760 > > //// test
00:02:55 v #1761 > >
00:02:55 v #1762 > > let inline write path = async {
00:02:55 v #1763 > >     let n = 2
00:02:55 v #1764 > >
00:02:55 v #1765 > >     for i = 1 to n do
00:02:55 v #1766 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:55 v #1767 > > $"file{i}.txt")
00:02:55 v #1768 > >
00:02:55 v #1769 > >     for i = 1 to n do
00:02:55 v #1770 > >         do! "" |> SpiralFileSystem.write_all_text_async (path </>
00:02:55 v #1771 > > $"file{i}.txt")
00:02:55 v #1772 > >
00:02:55 v #1773 > >     for i = 1 to n do
00:02:55 v #1774 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:55 v #1775 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:55 v #1776 > >
00:02:55 v #1777 > >     for i = 1 to n do
00:02:55 v #1778 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:55 v #1779 > > $"file_{i}.txt")
00:02:55 v #1780 > >
00:02:55 v #1781 > >     for i = 1 to n do
00:02:55 v #1782 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:55 v #1783 > > Async.Ignore
00:02:55 v #1784 > >
00:02:55 v #1785 > >     do! Async.Sleep 150
00:02:55 v #1786 > > }
00:02:55 v #1787 > >
00:02:55 v #1788 > > let inline run () =
00:02:55 v #1789 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:55 v #1790 > > write
00:02:55 v #1791 > >
00:02:55 v #1792 > >     [[
00:02:55 v #1793 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:55 v #1794 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:55 v #1795 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:55 v #1796 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:55 v #1797 > >
00:02:55 v #1798 > >         "file_1.txt", nameof FileSystemChangeType.Changed
00:02:55 v #1799 > >         "file_1.txt", nameof FileSystemChangeType.Renamed
00:02:55 v #1800 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:55 v #1801 > >
00:02:55 v #1802 > >         "file_2.txt", nameof FileSystemChangeType.Changed
00:02:55 v #1803 > >         "file_2.txt", nameof FileSystemChangeType.Renamed
00:02:55 v #1804 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:55 v #1805 > >     ]]
00:02:55 v #1806 > >     |> _sequenceEqual eventList
00:02:55 v #1807 > >
00:02:55 v #1808 > >     [[
00:02:55 v #1809 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:55 v #1810 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:55 v #1811 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:55 v #1812 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:55 v #1813 > >     ]]
00:02:55 v #1814 > >     |> Map.ofList
00:02:55 v #1815 > >     |> _sequenceEqual eventMap
00:02:55 v #1816 > >
00:02:55 v #1817 > > run
00:02:55 v #1818 > > |> retry_fn 3
00:02:55 v #1819 > > |> _assertEqual (Some ())
00:02:58 v #1820 > >
00:02:58 v #1821 > > ╭─[ 2.97s - stdout ]───────────────────────────────────────────────────────────╮
00:02:58 v #1822 > > │ Some ()                                                                      │
00:02:58 v #1823 > > │                                                                              │
00:02:58 v #1824 > > │ 00:00:27 d #8 FileSystem.watchWithFilter / Disposing watch stream /     │
00:02:58 v #1825 > > │ filter: FileName, LastWrite                                                  │
00:02:58 v #1826 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file2.txt",           │
00:02:58 v #1827 > > │ "Created"); ("file2.txt", "Changed");                                        │
00:02:58 v #1828 > > │  ("file_1.txt", "Changed"); ("file_1.txt", "Renamed"); ("file_1.txt",        │
00:02:58 v #1829 > > │ "Deleted"); ("file_2.txt", "Changed");                                       │
00:02:58 v #1830 > > │  ("file_2.txt", "Renamed"); ("file_2.txt", "Deleted")]                       │
00:02:58 v #1831 > > │                                                                              │
00:02:58 v #1832 > > │ map [("file1.txt", "Changed"); ("file2.txt", "Changed"); ("file_1.txt",      │
00:02:58 v #1833 > > │ "Deleted"); ("file_2.txt", "Deleted")]                                       │
00:02:58 v #1834 > > │                                                                              │
00:02:58 v #1835 > > │ Some ()                                                                      │
00:02:58 v #1836 > > │                                                                              │
00:02:58 v #1837 > > │                                                                              │
00:02:58 v #1838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:58 v #1839 > 00:00:47 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 36872 }
00:02:58 v #1840 > 00:00:47 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:59 v #1841 > 00:00:49 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb to html
00:02:59 v #1842 > 00:00:49 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:59 v #1843 > 00:00:49 v #7 !   validate(nb)
00:03:00 v #1844 > 00:00:49 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:03:00 v #1845 > 00:00:49 v #9 !   return _pygments_highlight(
00:03:01 v #1846 > 00:00:50 v #10 ! [NbConvertApp] Writing 383447 bytes to c:\home\git\polyglot\lib\fsharp\FileSystem.dib.html
00:03:01 v #1847 > 00:00:50 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 862 }
00:03:01 v #1848 > 00:00:50 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 862 }
00:03:01 v #1849 > 00:00:50 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/FileSystem.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/FileSystem.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:01 v #1850 > 00:00:51 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:03:01 v #1851 > 00:00:51 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:03:01 v #1852 > 00:00:51 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 37793 }
00:03:01 d #1853 runtime.execute_with_options_async / { exit_code = 0; output_length = 42206 }
00:03:01 d #8 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path FileSystem.dib --retries 3
00:03:01 d #1854 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path Runtime.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Runtime.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:01 v #1855 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Runtime.dib", "--retries", "3"])) }
00:03:01 v #1856 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/Runtime.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Runtime.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:03:03 v #1857 > >
00:03:03 v #1858 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:03 v #1859 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:03 v #1860 > > │ # Runtime (Polyglot)                                                         │
00:03:03 v #1861 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:07 v #1862 > >
00:03:07 v #1863 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:07 v #1864 > > #r
00:03:07 v #1865 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:03:07 v #1866 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:03:07 v #1867 > > #r
00:03:07 v #1868 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:03:07 v #1869 > > 0/System.Reactive.dll"
00:03:07 v #1870 > > #r
00:03:07 v #1871 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:03:07 v #1872 > > netstandard2.0/System.Reactive.Linq.dll"
00:03:07 v #1873 > > #r
00:03:07 v #1874 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:03:24 v #1875 > >
00:03:24 v #1876 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 v #1877 > > #if !INTERACTIVE
00:03:24 v #1878 > > open Lib
00:03:24 v #1879 > > #endif
00:03:24 v #1880 > >
00:03:24 v #1881 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 v #1882 > > open Common
00:03:24 v #1883 > >
00:03:24 v #1884 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 v #1885 > > //// test
00:03:24 v #1886 > >
00:03:24 v #1887 > > open SpiralFileSystem.Operators
00:03:24 v #1888 > >
00:03:24 v #1889 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:24 v #1890 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:24 v #1891 > > │ ## parseArgs                                                                 │
00:03:24 v #1892 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 v #1893 > >
00:03:24 v #1894 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 v #1895 > > let inline parseArgs<'T when 'T :> Argu.IArgParserTemplate> args =
00:03:24 v #1896 > >     let assemblyName =
00:03:24 v #1897 > > System.Reflection.Assembly.GetEntryAssembly().GetName().Name
00:03:24 v #1898 > >     let errorHandler : Argu.IExiter =
00:03:24 v #1899 > >         if [[ "Microsoft.DotNet.Interactive.App"; "dotnet-repl" ]] |>
00:03:24 v #1900 > > List.contains assemblyName
00:03:24 v #1901 > >         then Argu.ExceptionExiter ()
00:03:24 v #1902 > >         else Argu.ProcessExiter (function Argu.ErrorCode.HelpText -> None | _ ->
00:03:24 v #1903 > > Some System.ConsoleColor.Red)
00:03:24 v #1904 > >
00:03:24 v #1905 > >     let parser =
00:03:24 v #1906 > >         Argu.ArgumentParser.Create<'T> (
00:03:24 v #1907 > >             programName = $"{assemblyName}{SpiralPlatform.get_executable_suffix
00:03:24 v #1908 > > ()}",
00:03:24 v #1909 > >             errorHandler = errorHandler
00:03:24 v #1910 > >         )
00:03:24 v #1911 > >
00:03:24 v #1912 > >     parser.ParseCommandLine args
00:03:24 v #1913 > >
00:03:24 v #1914 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 v #1915 > > //// test
00:03:24 v #1916 > >
00:03:24 v #1917 > > [[<RequireQualifiedAccess>]]
00:03:24 v #1918 > > type Arguments =
00:03:24 v #1919 > >     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
00:03:24 v #1920 > > Argu.ArguAttributes.Last>]]
00:03:24 v #1921 > >         Paths of paths : string list
00:03:24 v #1922 > >
00:03:24 v #1923 > >     interface Argu.IArgParserTemplate with
00:03:24 v #1924 > >         member s.Usage =
00:03:24 v #1925 > >             match s with
00:03:24 v #1926 > >             | Paths _ -> nameof Paths
00:03:24 v #1927 > >
00:03:24 v #1928 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 v #1929 > > //// test
00:03:24 v #1930 > >
00:03:24 v #1931 > > Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
00:03:24 v #1932 > >
00:03:24 v #1933 > > ╭─[ 132.07ms - return value ]──────────────────────────────────────────────────╮
00:03:24 v #1934 > > │ "USAGE: dotnet-repl [--help] <paths>...                                      │
00:03:24 v #1935 > > │                                                                              │
00:03:24 v #1936 > > │ PATHS:                                                                       │
00:03:24 v #1937 > > │                                                                              │
00:03:24 v #1938 > > │     <paths>...            Paths                                              │
00:03:24 v #1939 > > │                                                                              │
00:03:24 v #1940 > > │ OPTIONS:                                                                     │
00:03:24 v #1941 > > │                                                                              │
00:03:24 v #1942 > > │     --help                display this list of options.                      │
00:03:24 v #1943 > > │ "                                                                            │
00:03:24 v #1944 > > │                                                                              │
00:03:24 v #1945 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 v #1946 > >
00:03:24 v #1947 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 v #1948 > > //// test
00:03:24 v #1949 > >
00:03:24 v #1950 > > fun () -> parseArgs<Arguments> [[||]] |> ignore
00:03:24 v #1951 > > |> _throwsC (fun ex _ ->
00:03:24 v #1952 > >     SpiralSm.format_exception ex
00:03:24 v #1953 > >     |> _stringContains "Argu.ArguParseException: ERROR: missing parameter
00:03:24 v #1954 > > '<paths>...'."
00:03:24 v #1955 > > )
00:03:24 v #1956 > >
00:03:24 v #1957 > > ╭─[ 70.51ms - stdout ]─────────────────────────────────────────────────────────╮
00:03:24 v #1958 > > │ <fun:it@3-3>                                                                 │
00:03:24 v #1959 > > │                                                                              │
00:03:24 v #1960 > > │ "Argu.ArguParseException: ERROR: missing parameter '<paths>...'.             │
00:03:24 v #1961 > > │ USAGE: dotnet-repl.exe [--help] <paths>...                                   │
00:03:24 v #1962 > > │                                                                              │
00:03:24 v #1963 > > │ PATHS:                                                                       │
00:03:24 v #1964 > > │                                                                              │
00:03:24 v #1965 > > │     <paths>...            Paths                                              │
00:03:24 v #1966 > > │                                                                              │
00:03:24 v #1967 > > │ OPTIONS:                                                                     │
00:03:24 v #1968 > > │                                                                              │
00:03:24 v #1969 > > │     --help                display this list of options.                      │
00:03:24 v #1970 > > │ "                                                                            │
00:03:24 v #1971 > > │                                                                              │
00:03:24 v #1972 > > │                                                                              │
00:03:24 v #1973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 v #1974 > >
00:03:24 v #1975 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 v #1976 > > let inline parseAllArgs<'T when 'T :> Argu.IArgParserTemplate> args =
00:03:24 v #1977 > >     args
00:03:24 v #1978 > >     |> parseArgs<'T>
00:03:24 v #1979 > >     |> fun results -> results.GetAllResults ()
00:03:24 v #1980 > >
00:03:24 v #1981 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 v #1982 > > //// test
00:03:24 v #1983 > >
00:03:24 v #1984 > > [[<RequireQualifiedAccess>]]
00:03:24 v #1985 > > type Arguments =
00:03:24 v #1986 > >     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
00:03:24 v #1987 > > Argu.ArguAttributes.Last>]]
00:03:24 v #1988 > >         Paths of paths : string list
00:03:24 v #1989 > >
00:03:24 v #1990 > >     interface Argu.IArgParserTemplate with
00:03:24 v #1991 > >         member s.Usage =
00:03:24 v #1992 > >             match s with
00:03:24 v #1993 > >             | Paths _ -> nameof Paths
00:03:24 v #1994 > >
00:03:24 v #1995 > > parseAllArgs<Arguments> [[| "a b"; "c" |]]
00:03:24 v #1996 > > |> _assertEqual [[ Arguments.Paths [[ "a b"; "c" ]] ]]
00:03:24 v #1997 > >
00:03:24 v #1998 > > ╭─[ 105.80ms - stdout ]────────────────────────────────────────────────────────╮
00:03:24 v #1999 > > │ [Paths ["a b"; "c"]]                                                         │
00:03:24 v #2000 > > │                                                                              │
00:03:24 v #2001 > > │                                                                              │
00:03:24 v #2002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 v #2003 > >
00:03:24 v #2004 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 v #2005 > > let inline parseArgsMap<'T when 'T :> Argu.IArgParserTemplate> args =
00:03:24 v #2006 > >     args
00:03:24 v #2007 > >     |> parseAllArgs<'T>
00:03:24 v #2008 > >     |> List.groupBy CommonFSharp.getUnionCaseName<'T>
00:03:24 v #2009 > >     |> Map.ofList
00:03:24 v #2010 > >
00:03:24 v #2011 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:24 v #2012 > > //// test
00:03:24 v #2013 > >
00:03:24 v #2014 > > parseArgsMap<Arguments> [[| "a b"; "c" |]]
00:03:24 v #2015 > > |> _assertEqual (
00:03:24 v #2016 > >     [[ nameof Arguments.Paths, [[ Arguments.Paths [[ "a b"; "c" ]] ]] ]]
00:03:24 v #2017 > >     |> Map.ofList
00:03:24 v #2018 > > )
00:03:24 v #2019 > >
00:03:24 v #2020 > > ╭─[ 55.74ms - stdout ]─────────────────────────────────────────────────────────╮
00:03:24 v #2021 > > │ map [("Paths", [Paths ["a b"; "c"]])]                                        │
00:03:24 v #2022 > > │                                                                              │
00:03:24 v #2023 > > │                                                                              │
00:03:24 v #2024 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 v #2025 > 00:00:23 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 7590 }
00:03:24 v #2026 > 00:00:23 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:26 v #2027 > 00:00:24 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb to html
00:03:26 v #2028 > 00:00:24 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:03:26 v #2029 > 00:00:24 v #7 !   validate(nb)
00:03:27 v #2030 > 00:00:25 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:03:27 v #2031 > 00:00:25 v #9 !   return _pygments_highlight(
00:03:27 v #2032 > 00:00:25 v #10 ! [NbConvertApp] Writing 292946 bytes to c:\home\git\polyglot\lib\fsharp\Runtime.dib.html
00:03:27 v #2033 > 00:00:25 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 856 }
00:03:27 v #2034 > 00:00:25 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 856 }
00:03:27 v #2035 > 00:00:25 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:27 v #2036 > 00:00:26 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:03:27 v #2037 > 00:00:26 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:03:27 v #2038 > 00:00:26 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 8505 }
00:03:27 d #2039 runtime.execute_with_options_async / { exit_code = 0; output_length = 11415 }
00:03:27 d #9 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Runtime.dib --retries 3
00:03:27 v #6 async.run_with_timeout_async / { timeout = 100 }
00:00:00 d #1 writeDibCode / output: Fs / path: CommonFSharp.dib
00:00:00 d #1 writeDibCode / output: Fs / path: AsyncSeq.dib
00:00:00 d #1 writeDibCode / output: Fs / path: Async.dib
00:00:00 d #1 writeDibCode / output: Fs / path: Runtime.dib
00:00:00 d #1 writeDibCode / output: Fs / path: FileSystem.dib
00:00:00 d #1 writeDibCode / output: Fs / path: Common.dib
00:00:00 d #2 parseDibCode / output: Fs / file: CommonFSharp.dib
00:00:00 d #3 parseDibCode / output: Fs / file: FileSystem.dib
00:00:00 d #4 parseDibCode / output: Fs / file: Common.dib
00:00:00 d #4 parseDibCode / output: Fs / file: Async.dib
00:00:00 d #5 parseDibCode / output: Fs / file: Runtime.dib
00:00:00 d #5 parseDibCode / output: Fs / file: AsyncSeq.dib
In [ ]:
{ pwsh ../apps/spiral/builder/build.ps1 } | Invoke-Block
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:00 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:00 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:01 v #6 > Server bound to: http://localhost:13805
00:00:01 d #7 runtime.execute_with_options_async / { file_name = ../../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path spiral_builder.dib"; options = { command = ../../../workspace/target/release/spiral_builder.exe dib --path spiral_builder.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 v #8 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "spiral_builder.dib"])) }
00:00:01 v #9 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib" --output-path "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:03 v #10 > >
00:00:03 v #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 v #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 v #13 > > │ # spiral_builder                                                             │
00:00:03 v #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 v #15 > >
00:00:07 v #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 v #17 > > open file_system_operators
00:00:07 v #18 > > open rust.rust_operators
00:00:07 v #19 > > open rust
00:00:07 v #20 > > open sm'_operators
00:00:08 v #21 > 00:00:08 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0a05e723d7750e776c0cda7db05556498a21aca97e686f2fef7bb8434bd6cea5/main.spi
00:00:12 v #22 > >
00:00:12 v #23 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 v #24 > > //// test
00:00:12 v #25 > >
00:00:12 v #26 > > open testing
00:00:12 v #27 > 00:00:11 d #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/58b7d1a35ee32515cfc868cc16e695b799ca185b5aaf17dd5e23d4e8a9ba6d18/main.spi
00:00:12 v #28 > >
00:00:12 v #29 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 v #30 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 v #31 > > │ ## get_args                                                                  │
00:00:12 v #32 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 v #33 > >
00:00:12 v #34 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 v #35 > > inl get_args () =
00:00:12 v #36 > >     {
00:00:12 v #37 > >         fsharp = "fsharp", {
00:00:12 v #38 > >             spi_path = "spi-path", 's'
00:00:12 v #39 > >         }
00:00:12 v #40 > >         cuda = "cuda", {
00:00:12 v #41 > >             py_path = "py-path", 'p'
00:00:12 v #42 > >             env = "env", 'e'
00:00:12 v #43 > >             deps = "deps", 'd'
00:00:12 v #44 > >         }
00:00:12 v #45 > >         fable = "fable", {
00:00:12 v #46 > >             fs_path = "fs-path", 'f'
00:00:12 v #47 > >             command = "command", 'c'
00:00:12 v #48 > >         }
00:00:12 v #49 > >         rust = "rust", {
00:00:12 v #50 > >             fs_path = "fs-path", 'f'
00:00:12 v #51 > >             deps = "deps", 'd'
00:00:12 v #52 > >             wasm = "wasm", 'w'
00:00:12 v #53 > >             contract = "contract", 'c'
00:00:12 v #54 > >             cleanup = "cleanup", 'l'
00:00:12 v #55 > >         }
00:00:12 v #56 > >         typescript = "typescript", {
00:00:12 v #57 > >             fs_path = "fs-path", 'f'
00:00:12 v #58 > >             deps = "deps", 'd'
00:00:12 v #59 > >         }
00:00:12 v #60 > >         python = "python", {
00:00:12 v #61 > >             fs_path = "fs-path", 'f'
00:00:12 v #62 > >             deps = "deps", 'd'
00:00:12 v #63 > >         }
00:00:12 v #64 > >         dib = "dib", {
00:00:12 v #65 > >             path = "path", 'p'
00:00:12 v #66 > >             retries = "retries", 'r'
00:00:12 v #67 > >             working_directory = "working-directory", 'w'
00:00:12 v #68 > >         }
00:00:12 v #69 > >     }
00:00:13 v #70 > 00:00:12 d #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/85789c5484678caab17f53439f2311340d528b1aaa321938c20056f6e65aea65/main.spi
00:00:13 v #71 > >
00:00:13 v #72 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 v #73 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 v #74 > > │ ## cuda_env                                                                  │
00:00:13 v #75 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 v #76 > >
00:00:13 v #77 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 v #78 > > union cuda_env =
00:00:13 v #79 > >     | Pip
00:00:13 v #80 > >     | Poetry
00:00:13 v #81 > 00:00:12 d #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2e1f9ad3de0d25050deac9d18a687a678646ff25eb460017d52abec6b2f84b3c/main.spi
00:00:13 v #82 > >
00:00:13 v #83 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 v #84 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 v #85 > > │ ## get_command                                                               │
00:00:13 v #86 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 v #87 > >
00:00:13 v #88 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 v #89 > > let get_command () =
00:00:13 v #90 > >     ##"command"
00:00:13 v #91 > >     |> runtime.new_command
00:00:13 v #92 > >     |> runtime.command_subcommand_required true
00:00:13 v #93 > >     |> runtime.command_subcommand (
00:00:13 v #94 > >         ##(get_args () .fsharp |> fst)
00:00:13 v #95 > >         |> runtime.new_command
00:00:13 v #96 > >         |> runtime.command_init_arg ((get_args () .fsharp |> snd).spi_path) (
00:00:13 v #97 > >             runtime.arg_required true
00:00:13 v #98 > >         )
00:00:13 v #99 > >     )
00:00:13 v #100 > >     |> runtime.command_subcommand (
00:00:13 v #101 > >         ##(get_args () .cuda |> fst)
00:00:13 v #102 > >         |> runtime.new_command
00:00:13 v #103 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).py_path) (
00:00:13 v #104 > >             runtime.arg_required true
00:00:13 v #105 > >         )
00:00:13 v #106 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).env) (
00:00:13 v #107 > >             real runtime.arg_union `cuda_env ignore
00:00:13 v #108 > >         )
00:00:13 v #109 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).deps) (
00:00:13 v #110 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:13 v #111 > >             >> runtime.arg_num_args_range (
00:00:13 v #112 > >                 runtime.new_value_range
00:00:13 v #113 > >                     false
00:00:13 v #114 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:13 v #115 > >                     (am'.End id)
00:00:13 v #116 > >             )
00:00:13 v #117 > >             >> runtime.arg_action runtime.Append
00:00:13 v #118 > >         )
00:00:13 v #119 > >     )
00:00:13 v #120 > >     |> runtime.command_subcommand (
00:00:13 v #121 > >         ##(get_args () .fable |> fst)
00:00:13 v #122 > >         |> runtime.new_command
00:00:13 v #123 > >         |> runtime.command_init_arg ((get_args () .fable |> snd).fs_path) (
00:00:13 v #124 > >             runtime.arg_required true
00:00:13 v #125 > >         )
00:00:13 v #126 > >         |> runtime.command_init_arg ((get_args () .fable |> snd).command) (
00:00:13 v #127 > >             id
00:00:13 v #128 > >         )
00:00:13 v #129 > >     )
00:00:13 v #130 > >     |> runtime.command_subcommand (
00:00:13 v #131 > >         ##(get_args () .rust |> fst)
00:00:13 v #132 > >         |> runtime.new_command
00:00:13 v #133 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).fs_path) (
00:00:13 v #134 > >             runtime.arg_required true
00:00:13 v #135 > >         )
00:00:13 v #136 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).deps) (
00:00:13 v #137 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:13 v #138 > >             >> runtime.arg_num_args_range (
00:00:13 v #139 > >                 runtime.new_value_range
00:00:13 v #140 > >                     false
00:00:13 v #141 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:13 v #142 > >                     (am'.End id)
00:00:13 v #143 > >             )
00:00:13 v #144 > >             >> runtime.arg_action runtime.Append
00:00:13 v #145 > >         )
00:00:13 v #146 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).wasm) (
00:00:13 v #147 > >             runtime.arg_num_args_range (
00:00:13 v #148 > >                 runtime.new_value_range
00:00:13 v #149 > >                     true
00:00:13 v #150 > >                     (am'.End id)
00:00:13 v #151 > >                     (am'.End fun _ => (1i32 |> convert : unativeint))
00:00:13 v #152 > >             )
00:00:13 v #153 > >             >> runtime.arg_require_equals true
00:00:13 v #154 > >             >> runtime.arg_default_missing_value ""
00:00:13 v #155 > >         )
00:00:13 v #156 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).contract) (
00:00:13 v #157 > >             runtime.arg_num_args_range (
00:00:13 v #158 > >                 runtime.new_value_range
00:00:13 v #159 > >                     true
00:00:13 v #160 > >                     (am'.End id)
00:00:13 v #161 > >                     (am'.End fun _ => (1i32 |> convert : unativeint))
00:00:13 v #162 > >             )
00:00:13 v #163 > >             >> runtime.arg_require_equals true
00:00:13 v #164 > >             >> runtime.arg_default_missing_value ""
00:00:13 v #165 > >         )
00:00:13 v #166 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).cleanup) (
00:00:13 v #167 > >             runtime.arg_default_value "true"
00:00:13 v #168 > >             >> runtime.arg_action runtime.SetFalse
00:00:13 v #169 > >         )
00:00:13 v #170 > >     )
00:00:13 v #171 > >     |> runtime.command_subcommand (
00:00:13 v #172 > >         ##(get_args () .typescript |> fst)
00:00:13 v #173 > >         |> runtime.new_command
00:00:13 v #174 > >         |> runtime.command_init_arg ((get_args () .typescript |> snd).fs_path) (
00:00:13 v #175 > >             runtime.arg_required true
00:00:13 v #176 > >         )
00:00:13 v #177 > >         |> runtime.command_init_arg ((get_args () .typescript |> snd).deps) (
00:00:13 v #178 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:13 v #179 > >             >> runtime.arg_num_args_range (
00:00:13 v #180 > >                 runtime.new_value_range
00:00:13 v #181 > >                     false
00:00:13 v #182 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:13 v #183 > >                     (am'.End id)
00:00:13 v #184 > >             )
00:00:13 v #185 > >             >> runtime.arg_action runtime.Append
00:00:13 v #186 > >         )
00:00:13 v #187 > >     )
00:00:13 v #188 > >     |> runtime.command_subcommand (
00:00:13 v #189 > >         ##(get_args () .python |> fst)
00:00:13 v #190 > >         |> runtime.new_command
00:00:13 v #191 > >         |> runtime.command_init_arg ((get_args () .python |> snd).fs_path) (
00:00:13 v #192 > >             runtime.arg_required true
00:00:13 v #193 > >         )
00:00:13 v #194 > >         |> runtime.command_init_arg ((get_args () .python |> snd).deps) (
00:00:13 v #195 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:13 v #196 > >             >> runtime.arg_num_args_range (
00:00:13 v #197 > >                 runtime.new_value_range
00:00:13 v #198 > >                     false
00:00:13 v #199 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:13 v #200 > >                     (am'.End id)
00:00:13 v #201 > >             )
00:00:13 v #202 > >             >> runtime.arg_action runtime.Append
00:00:13 v #203 > >         )
00:00:13 v #204 > >     )
00:00:13 v #205 > >     |> runtime.command_subcommand (
00:00:13 v #206 > >         ##(get_args () .dib |> fst)
00:00:13 v #207 > >         |> runtime.new_command
00:00:13 v #208 > >         |> runtime.command_init_arg ((get_args () .dib |> snd).path) (
00:00:13 v #209 > >             runtime.arg_required true
00:00:13 v #210 > >             // >> runtime.arg_value_parser (runtime.value_parser_path_buf ())
00:00:13 v #211 > >         )
00:00:13 v #212 > >         |> runtime.command_init_arg ((get_args () .dib |> snd).retries) (
00:00:13 v #213 > >             runtime.arg_value_parser (runtime.value_parser_expr "u8")
00:00:13 v #214 > >         )
00:00:13 v #215 > >         |> runtime.command_init_arg ((get_args () .dib |>
00:00:13 v #216 > > snd).working_directory) (
00:00:13 v #217 > >             id
00:00:13 v #218 > >         )
00:00:13 v #219 > >     )
00:00:14 v #220 > 00:00:13 d #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5bb7279c7f5d829b7dc32be686edca3977fc39da8eaf6b7d4ee5ee6d42e2a1a7/main.spi
00:00:14 v #221 > >
00:00:14 v #222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 v #223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 v #224 > > │ ## fable                                                                     │
00:00:14 v #225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 v #226 > >
00:00:14 v #227 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 v #228 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 v #229 > > │ ### fable_target                                                             │
00:00:14 v #230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 v #231 > >
00:00:14 v #232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 v #233 > > union fable_target =
00:00:14 v #234 > >     | Rust
00:00:14 v #235 > >     | TypeScript
00:00:14 v #236 > >     | Python
00:00:14 v #237 > 00:00:13 d #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9231bb6941b18f17fd4682cb5545b1773956a95961a5862cb06ab3c234bdc1b8/main.spi
00:00:14 v #238 > >
00:00:14 v #239 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 v #240 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 v #241 > > │ ### fable_runtime                                                            │
00:00:14 v #242 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 v #243 > >
00:00:14 v #244 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 v #245 > > union fable_runtime =
00:00:14 v #246 > >     | Wasm : string
00:00:14 v #247 > >     | Contract : string
00:00:15 v #248 > 00:00:14 d #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b6e08c551ee94659ea5968f3c6a477bda0d0b75fe5dd83efe3c4f52bd84ce3b4/main.spi
00:00:15 v #249 > >
00:00:15 v #250 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 v #251 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 v #252 > > │ ### execute_dotnet_fable                                                     │
00:00:15 v #253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 v #254 > >
00:00:15 v #255 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 v #256 > > let execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:15 v #257 > > package_dir runtime } =
00:00:15 v #258 > >     open runtime
00:00:15 v #259 > >     execution_options fun x => { x with
00:00:15 v #260 > >         command =
00:00:15 v #261 > >             inl platform =
00:00:15 v #262 > >                 if platform.is_windows ()
00:00:15 v #263 > >                 then "_WINDOWS"
00:00:15 v #264 > >                 else "_LINUX"
00:00:15 v #265 > >             inl platform : string = $'$" --define {!platform}"'
00:00:15 v #266 > >             inl runtime =
00:00:15 v #267 > >                 match runtime with
00:00:15 v #268 > >                 | Some (runtime : fable_runtime) =>
00:00:15 v #269 > >                     inl runtime = runtime |> reflection.union_to_string |>
00:00:15 v #270 > > sm'.to_upper
00:00:15 v #271 > >                     $'$" --define {!runtime}"'
00:00:15 v #272 > >                 | None => ""
00:00:15 v #273 > >             $'$"dotnet fable \\\"{!fsproj_path}\\\" --optimize --lang
00:00:15 v #274 > > {!extension} --extension .{!extension} --outDir
00:00:15 v #275 > > \\\"{!package_dir}\\\"{!platform}{!runtime}"'
00:00:15 v #276 > >         working_directory = workspace_root_external |> resultm.box |>
00:00:15 v #277 > > resultm.ok'
00:00:15 v #278 > >     }
00:00:15 v #279 > >     |> execute_retry 3u8
00:00:15 v #280 > 00:00:14 d #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d97e93e8caf664f96a6542bc8ebc5f328110f55c0b06ca2ea39c4244fd78ef84/main.spi
00:00:15 v #281 > >
00:00:15 v #282 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 v #283 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 v #284 > > │ ### get_package_dir                                                          │
00:00:15 v #285 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 v #286 > >
00:00:15 v #287 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 v #288 > > let get_package_dir { workspace_root target name hash } =
00:00:15 v #289 > >     inl dir = workspace_root </> "target/spiral_builder" </> name
00:00:15 v #290 > >     match hash, (target : option fable_target) with
00:00:15 v #291 > >     | Some hash, Some target => dir </> "packages" </> (target |>
00:00:15 v #292 > > reflection.union_to_string) </> hash
00:00:15 v #293 > >     | _ => dir
00:00:15 v #294 > 00:00:15 d #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12ed465601ce254dba154e80e28cd607004c862627e6eab04cac2589fad0c310/main.spi
00:00:16 v #295 > >
00:00:16 v #296 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 v #297 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 v #298 > > │ ### persist_code_project                                                     │
00:00:16 v #299 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 v #300 > >
00:00:16 v #301 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 v #302 > > let persist_code_project { workspace_root package_dir packages modules name code
00:00:16 v #303 > > } =
00:00:16 v #304 > >     package_dir |> file_system.create_dir |> ignore
00:00:16 v #305 > >
00:00:16 v #306 > >     inl fs_path = package_dir </> $'$"{!name}.fs"' |> file_system.normalize_path
00:00:16 v #307 > >     code |> file_system.write_all_text_exists fs_path
00:00:16 v #308 > >
00:00:16 v #309 > >     inl modules_code =
00:00:16 v #310 > >         modules
00:00:16 v #311 > >         |> listm.map fun path =>
00:00:16 v #312 > >             inl path = workspace_root </> path
00:00:16 v #313 > >             $'$"<Compile Include=\\\"{!path}\\\" />"' : string
00:00:16 v #314 > >         |> listm'.box
00:00:16 v #315 > >         |> seq.of_list'
00:00:16 v #316 > >         |> sm'.concat "\\n        "
00:00:16 v #317 > >
00:00:16 v #318 > >     inl packages_code =
00:00:16 v #319 > >         packages
00:00:16 v #320 > >         |> listm.map fun (package : string) =>
00:00:16 v #321 > >             $'$"<PackageReference Include=\\\"{!package}\\\" Version=\\\"*\\\"
00:00:16 v #322 > > />"' : string
00:00:16 v #323 > >         |> listm'.box
00:00:16 v #324 > >         |> seq.of_list'
00:00:16 v #325 > >         |> sm'.concat "\\n        "
00:00:16 v #326 > >
00:00:16 v #327 > >     inl fsproj_path = package_dir </> $'$"{!name}.fsproj"' |>
00:00:16 v #328 > > file_system.normalize_path
00:00:16 v #329 > >     inl fsproj_code : string =
00:00:16 v #330 > >         $'$"<Project Sdk=\\\"Microsoft.NET.Sdk\\\">"'
00:00:16 v #331 > >         +#. $'$"<PropertyGroup>"'
00:00:16 v #332 > >         +#. $'$"    <TargetFramework>net9.0</TargetFramework>"'
00:00:16 v #333 > >         +#. $'$"    <LangVersion>preview</LangVersion>"'
00:00:16 v #334 > >         +#. $'$"    <RollForward>Major</RollForward>"'
00:00:16 v #335 > >         +#. $'$"    <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>"'
00:00:16 v #336 > >         +#. $'$"    <PublishAot>false</PublishAot>"'
00:00:16 v #337 > >         +#. $'$"    <PublishTrimmed>false</PublishTrimmed>"'
00:00:16 v #338 > >         +#. $'$"    <PublishSingleFile>true</PublishSingleFile>"'
00:00:16 v #339 > >         +#. $'$"    <SelfContained>true</SelfContained>"'
00:00:16 v #340 > >         +#. $'$"    <Version>0.0.1-alpha.1</Version>"'
00:00:16 v #341 > >         +#. $'$"    <OutputType>Exe</OutputType>"'
00:00:16 v #342 > >         +#. $'$"</PropertyGroup>"'
00:00:16 v #343 > >
00:00:16 v #344 > >         +#. $'$"<PropertyGroup
00:00:16 v #345 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'FreeBSD\'))\\\">"'
00:00:16 v #346 > >         +#. $'$"    <DefineConstants>_FREEBSD</DefineConstants>"'
00:00:16 v #347 > >         +#. $'$"</PropertyGroup>"'
00:00:16 v #348 > >
00:00:16 v #349 > >         +#. $'$"<PropertyGroup
00:00:16 v #350 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'Linux\'))\\\">"'
00:00:16 v #351 > >         +#. $'$"    <DefineConstants>_LINUX</DefineConstants>"'
00:00:16 v #352 > >         +#. $'$"</PropertyGroup>"'
00:00:16 v #353 > >
00:00:16 v #354 > >         +#. $'$"<PropertyGroup
00:00:16 v #355 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'OSX\'))\\\">"'
00:00:16 v #356 > >         +#. $'$"    <DefineConstants>_OSX</DefineConstants>"'
00:00:16 v #357 > >         +#. $'$"</PropertyGroup>"'
00:00:16 v #358 > >
00:00:16 v #359 > >         +#. $'$"<PropertyGroup
00:00:16 v #360 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'Windows\'))\\\">"'
00:00:16 v #361 > >         +#. $'$"    <DefineConstants>_WINDOWS</DefineConstants>"'
00:00:16 v #362 > >         +#. $'$"</PropertyGroup>"'
00:00:16 v #363 > >
00:00:16 v #364 > >         +#. $'$"<ItemGroup>"'
00:00:16 v #365 > >         +#. $'$"    {!modules_code}"'
00:00:16 v #366 > >         +#. $'$"    <Compile Include=\\\"{!fs_path}\\\" />"'
00:00:16 v #367 > >         +#. $'$"</ItemGroup>"'
00:00:16 v #368 > >
00:00:16 v #369 > >         +#. $'$"<ItemGroup>"'
00:00:16 v #370 > >         +#. $'$"    {!packages_code}"'
00:00:16 v #371 > >         +#. $'$"</ItemGroup>"'
00:00:16 v #372 > >
00:00:16 v #373 > >         +#. $'$"</Project>"'
00:00:16 v #374 > >
00:00:16 v #375 > >     fsproj_code |> file_system.write_all_text_exists fsproj_path
00:00:16 v #376 > >
00:00:16 v #377 > >     fsproj_path
00:00:16 v #378 > 00:00:15 d #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/61cacfe51519930f22135456ec775910177864243a4b46670956a912d84683b8/main.spi
00:00:16 v #379 > >
00:00:16 v #380 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 v #381 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 v #382 > > │ ### build_project                                                            │
00:00:16 v #383 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 v #384 > >
00:00:16 v #385 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 v #386 > > inl build_project runtime' output_dir path =
00:00:16 v #387 > >     inl full_path = path |> file_system.get_full_path
00:00:16 v #388 > >     inl file_dir = full_path |> file_system.get_directory_name
00:00:16 v #389 > >     inl extension = full_path |> file_system.get_extension
00:00:16 v #390 > >
00:00:16 v #391 > >     trace Debug
00:00:16 v #392 > >         fun () => "build_project"
00:00:16 v #393 > >         fun () => { full_path }
00:00:16 v #394 > >
00:00:16 v #395 > >     match extension with
00:00:16 v #396 > >     | "fsproj" => ()
00:00:16 v #397 > >     | _ => failwith $'$"spiral_builder.build_project / Invalid project file
00:00:16 v #398 > > extension: {!extension}"'
00:00:16 v #399 > >
00:00:16 v #400 > >     inl runtimes =
00:00:16 v #401 > >         runtime'
00:00:16 v #402 > >         |> optionm.map listm.singleton
00:00:16 v #403 > >         |> optionm'.default_value [[ "linux-x64"; "win-x64" ]]
00:00:16 v #404 > >
00:00:16 v #405 > >     inl output_dir = output_dir |> optionm'.default_value "dist"
00:00:16 v #406 > >
00:00:16 v #407 > >     runtimes
00:00:16 v #408 > >     |> listm.map fun runtime' =>
00:00:16 v #409 > >         runtime.execution_options fun x => { x with
00:00:16 v #410 > >             command = $'$@@"dotnet publish \"\"{!path}\"\" --configuration
00:00:16 v #411 > > Release --output \"\"{!output_dir}\"\" --runtime {!runtime'}"'
00:00:16 v #412 > >             working_directory = file_dir |> Some |> optionm'.box
00:00:16 v #413 > >         }
00:00:16 v #414 > >         |> runtime.execute_with_options
00:00:16 v #415 > >         |> fst
00:00:16 v #416 > >     |> listm'.sum
00:00:17 v #417 > 00:00:16 d #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/45a84a0e05bcd9c5a1afa37c629654cda79bb9013f23a613d26f186eb73b7175/main.spi
00:00:17 v #418 > >
00:00:17 v #419 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 v #420 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 v #421 > > │ ### build_code                                                               │
00:00:17 v #422 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 v #423 > >
00:00:17 v #424 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 v #425 > > inl build_code { workspace_root runtime packages modules output_dir name code }
00:00:17 v #426 > > =
00:00:17 v #427 > >     inl package_dir = get_package_dir { workspace_root name target = None; hash
00:00:17 v #428 > > = None }
00:00:17 v #429 > >     inl fsproj_path = persist_code_project { workspace_root package_dir packages
00:00:17 v #430 > > modules name code }
00:00:17 v #431 > >     inl exit_code = fsproj_path |> build_project runtime output_dir
00:00:17 v #432 > >     if exit_code <>. 0 then
00:00:17 v #433 > >         trace Critical
00:00:17 v #434 > >             fun () => "build_code"
00:00:17 v #435 > >             fun () => {
00:00:17 v #436 > >                 code = code |> sm'.ellipsis_end 400
00:00:17 v #437 > >                 fsproj_text = fsproj_path |> file_system.read_all_text
00:00:17 v #438 > >             }
00:00:17 v #439 > >     exit_code
00:00:17 v #440 > 00:00:16 d #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/970ec28406966ad053981fb679bfd9d02727a8cabd916ca7684dfdd594e39682/main.spi
00:00:17 v #441 > >
00:00:17 v #442 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 v #443 > > //// test
00:00:17 v #444 > > ///! rust -d encoding_rs encoding_rs_io regex
00:00:17 v #445 > >
00:00:17 v #446 > > build_code {
00:00:17 v #447 > >     workspace_root = file_system.get_workspace_root ()
00:00:17 v #448 > >     runtime = None
00:00:17 v #449 > >     packages = [[]]
00:00:17 v #450 > >     modules = [[]]
00:00:17 v #451 > >     output_dir = None
00:00:17 v #452 > >     name = "test1"
00:00:17 v #453 > >     code = "1 + 1 |> ignore"
00:00:17 v #454 > > }
00:00:17 v #455 > > |> _assert_eq 0
00:00:18 v #456 > 00:00:17 d #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f60c47c31f8a4842b90e4d1cd3b58840a5a1eda5437011f53e888eca0a4295c3/main.spi
00:01:05 v #457 > >
00:01:05 v #458 > > ╭─[ 47.40s - return value ]────────────────────────────────────────────────────╮
00:01:05 v #459 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:01:05 v #460 > > │ c:\home\git\polyglot\target/spiral_builder\test1 }                           │
00:01:05 v #461 > > │ 00:00:00 d #2 build_project / { full_path =                            │
00:01:05 v #462 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj }          │
00:01:05 v #463 > > │ 00:00:00 d #3 runtime.execute_with_options / { file_name = dotnet;     │
00:01:05 v #464 > > │ arguments = ["publish",                                                      │
00:01:05 v #465 > > │ "c:/home/git/polyglot/target/spiral_builder/test1/test1.fsproj",             │
00:01:05 v #466 > > │ "--configuration", "Release", "--output", "dist", "--runtime", "win-x64"];   │
00:01:05 v #467 > > │ options = { command = dotnet publish                                         │
00:01:05 v #468 > > │ "c:/home/git/polyglot/target/spiral_builder/test1/test1.fsproj"              │
00:01:05 v #469 > > │ --configuration Release --output "dist" --runtime win-x64;                   │
00:01:05 v #470 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:01:05 v #471 > > │ on_line = None; stdin = None; trace = true; working_directory = Some(        │
00:01:05 v #472 > > │     "\\?\C:\home\git\polyglot\target\spiral_builder\test1",                  │
00:01:05 v #473 > > │ ) } }                                                                        │
00:01:05 v #474 > > │ 00:00:00 v #4 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for │
00:01:05 v #475 > > │ .NET                                                                         │
00:01:05 v #476 > > │ 00:00:00 v #5 >   Determining projects to restore...                   │
00:01:05 v #477 > > │ 00:00:02 v #6 >   Restored                                             │
00:01:05 v #478 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj (in 1.02 sec). │
00:01:05 v #479 > > │ 00:00:02 v #7 >                                                        │
00:01:05 v #480 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:01:05 v #481 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:01:05 v #482 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:01:05 v #483 > > │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
00:01:05 v #484 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj]               │
00:01:05 v #485 > > │ 00:00:04 v #8 > c:\home\...figuration Release --output "dist"          │
00:01:05 v #486 > > │ --runtime linux-x64; cancellation_token = None; environment_variables =      │
00:01:05 v #487 > > │ Array(MutCell([])); on_line = None; stdin = None; trace = true;              │
00:01:05 v #488 > > │ working_directory = Some(                                                    │
00:01:05 v #489 > > │     "\\?\C:\home\git\polyglot\target\spiral_builder\test1",                  │
00:01:05 v #490 > > │ ) } }                                                                        │
00:01:05 v #491 > > │ 00:00:06 v #13 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f    │
00:01:05 v #492 > > │ for .NET                                                                     │
00:01:05 v #493 > > │ 00:00:06 v #14 >   Determining projects to restore...                  │
00:01:05 v #494 > > │ 00:00:07 v #15 >   Restored                                            │
00:01:05 v #495 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj (in 393 ms).   │
00:01:05 v #496 > > │ 00:00:07 v #16 >                                                       │
00:01:05 v #497 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:01:05 v #498 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:01:05 v #499 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:01:05 v #500 > > │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
00:01:05 v #501 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj]               │
00:01:05 v #502 > > │ 00:00:09 v #17 >                                                       │
00:01:05 v #503 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fs(1,16): warning     │
00:01:05 v #504 > > │ FS0988: Main module of program is empty: nothing will happen when it is run  │
00:01:05 v #505 > > │ [c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj]              │
00:01:05 v #506 > > │ 00:00:09 v #18 >   test1 ->                                            │
00:01:05 v #507 > > │ c:\home\git\polyglot\target\spiral_builder\test1\bin\Release\net9.0\linux-x6 │
00:01:05 v #508 > > │ 4\test1.dll                                                                  │
00:01:05 v #509 > > │ 00:00:10 v #19 >   test1 ->                                            │
00:01:05 v #510 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test1\dist\                   │
00:01:05 v #511 > > │ 00:00:11 v #20 runtime.execute_with_options / result / { exit_code =   │
00:01:05 v #512 > > │ 0; std_trace_length = 902 }                                                  │
00:01:05 v #513 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:01:05 v #514 > > │                                                                              │
00:01:05 v #515 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:05 v #516 > >
00:01:05 v #517 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:05 v #518 > > //// test
00:01:05 v #519 > > ///! rust -d encoding_rs encoding_rs_io regex
00:01:05 v #520 > >
00:01:05 v #521 > > build_code {
00:01:05 v #522 > >     workspace_root = file_system.get_workspace_root ()
00:01:05 v #523 > >     runtime = None
00:01:05 v #524 > >     packages = [[]]
00:01:05 v #525 > >     modules = [[]]
00:01:05 v #526 > >     output_dir = None
00:01:05 v #527 > >     name = "test2"
00:01:05 v #528 > >     code = "1 + a |> ignore"
00:01:05 v #529 > > }
00:01:05 v #530 > > |> _assert_eq 2
00:01:05 v #531 > 00:01:04 d #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b29aa64d4bfb8ad6a46e63510561208ac93be75ed0202dc74d10a724da9db9a0/main.spi
00:01:42 v #532 > >
00:01:42 v #533 > > ╭─[ 37.86s - return value ]────────────────────────────────────────────────────╮
00:01:42 v #534 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:01:42 v #535 > > │ c:\home\git\polyglot\target/spiral_builder\test2 }                           │
00:01:42 v #536 > > │ 00:00:00 d #2 build_project / { full_path =                            │
00:01:42 v #537 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj }          │
00:01:42 v #538 > > │ 00:00:00 d #3 runtime.execute_with_options / { file_name = dotnet;     │
00:01:42 v #539 > > │ arguments = ["publish",                                                      │
00:01:42 v #540 > > │ "c:/home/git/polyglot/target/spiral_builder/test2/test2.fsproj",             │
00:01:42 v #541 > > │ "--configuration", "Release", "--output", "dist", "--runtime", "win-x64"];   │
00:01:42 v #542 > > │ options = { command = dotnet publish                                         │
00:01:42 v #543 > > │ "c:/home/git/polyglot/target/spiral_builder/test2/test2.fsproj"              │
00:01:42 v #544 > > │ --configuration Release --output "dist" --runtime win-x64;                   │
00:01:42 v #545 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:01:42 v #546 > > │ on_line = None; stdin = None; trace = true; working_directory = Some(        │
00:01:42 v #547 > > │     "\\?\C:\home\git\polyglot\target\spiral_builder\test2",                  │
00:01:42 v #548 > > │ ) } }                                                                        │
00:01:42 v #549 > > │ 00:00:00 v #4 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for │
00:01:42 v #550 > > │ .NET                                                                         │
00:01:42 v #551 > > │ 00:00:00 v #5 >   Determining projects to restore...                   │
00:01:42 v #552 > > │ 00:00:01 v #6 >   Restored                                             │
00:01:42 v #553 > > │ c:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj (in 370 ms).   │
00:01:42 v #554 > > │ 00:00:01 v #7 >                                                        │
00:01:42 v #555 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:01:42 v #556 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:01:42 v #557 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:01:42 v #558 > > │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
00:01:42 v #559 > > │ c:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj]               │
00:01:42 v #560 > > │ 00:00:02 v #8 > c:\home\gi...ror FS0039: The value or constructor 'a'  │
00:01:42 v #561 > > │ is not defined. [                                                            │
00:01:42 v #562 > > │ c:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj]               │
00:01:42 v #563 > > │ 00:00:07 v #16 runtime.execute_with_options / result / { exit_code =   │
00:01:42 v #564 > > │ 1; std_trace_length = 707 }                                                  │
00:01:42 v #565 > > │ 00:00:07 c #17 build_code / { code = 1 + a |> ignore; fsproj_text =    │
00:01:42 v #566 > > │ <Project Sdk="Microsoft.NET.Sdk">                                            │
00:01:42 v #567 > > │ <PropertyGroup>                                                              │
00:01:42 v #568 > > │     <TargetFramework>net9.0</TargetFramework>                                │
00:01:42 v #569 > > │     <LangVersion>preview</LangVersion>                                       │
00:01:42 v #570 > > │     <RollForward>Major</RollForward>                                         │
00:01:42 v #571 > > │     <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>                │
00:01:42 v #572 > > │     <PublishAot>false</PublishAot>                                           │
00:01:42 v #573 > > │     <PublishTrimmed>false</PublishTrimmed>                                   │
00:01:42 v #574 > > │     <PublishSingleFile>true</PublishSingleFile>                              │
00:01:42 v #575 > > │     <SelfContained>true</SelfContained>                                      │
00:01:42 v #576 > > │     <Version>0.0.1-alpha.1</Version>                                         │
00:01:42 v #577 > > │     <OutputType>Exe</OutputType>                                             │
00:01:42 v #578 > > │ </PropertyGroup>                                                             │
00:01:42 v #579 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('FreeBSD'))">            │
00:01:42 v #580 > > │     <DefineConstants>_FREEBSD</DefineConstants>                              │
00:01:42 v #581 > > │ </PropertyGroup>                                                             │
00:01:42 v #582 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">              │
00:01:42 v #583 > > │     <DefineConstants>_LINUX</DefineConstants>                                │
00:01:42 v #584 > > │ </PropertyGroup>                                                             │
00:01:42 v #585 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">                │
00:01:42 v #586 > > │     <DefineConstants>_OSX</DefineConstants>                                  │
00:01:42 v #587 > > │ </PropertyGroup>                                                             │
00:01:42 v #588 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">            │
00:01:42 v #589 > > │     <DefineConstants>_WINDOWS</DefineConstants>                              │
00:01:42 v #590 > > │ </PropertyGroup>                                                             │
00:01:42 v #591 > > │ <ItemGroup>                                                                  │
00:01:42 v #592 > > │                                                                              │
00:01:42 v #593 > > │     <Compile                                                                 │
00:01:42 v #594 > > │ Include="c:/home/git/polyglot/target/spiral_builder/test2/test2.fs" />       │
00:01:42 v #595 > > │ </ItemGroup>                                                                 │
00:01:42 v #596 > > │ <ItemGroup>                                                                  │
00:01:42 v #597 > > │                                                                              │
00:01:42 v #598 > > │ </ItemGroup>                                                                 │
00:01:42 v #599 > > │ </Project> }                                                                 │
00:01:42 v #600 > > │ __assert_eq / actual: 2 / expected: 2                                        │
00:01:42 v #601 > > │                                                                              │
00:01:42 v #602 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:42 v #603 > >
00:01:42 v #604 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:42 v #605 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:42 v #606 > > │ ### read_file                                                                │
00:01:42 v #607 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:42 v #608 > >
00:01:42 v #609 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:42 v #610 > > inl read_file path =
00:01:42 v #611 > >     inl code =
00:01:42 v #612 > >         path
00:01:42 v #613 > >         |> file_system.read_all_text
00:01:42 v #614 > >         |> sm'.replace_regex $'@@"(?P<a> *)(?P<b>let\\s+main\\s+.*?\\s*=)"'
00:01:42 v #615 > > "$a[[<EntryPoint>]]\n$a$b"
00:01:42 v #616 > >     inl code_trim = code |> sm'.trim_end [[]]
00:01:42 v #617 > >     if code_trim |> sm'.ends_with "\\n()"
00:01:42 v #618 > >     then code_trim |> sm'.slice 0i64 ((code_trim |> sm'.length) - 3)
00:01:42 v #619 > >     else code
00:01:43 v #620 > 00:01:42 d #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e80adaae0d839d013daf5c2f5a9abaa68f3fc775a03f674a89e5f604767c633e/main.spi
00:01:43 v #621 > >
00:01:43 v #622 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:43 v #623 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 v #624 > > │ ### persist_file                                                             │
00:01:43 v #625 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 v #626 > >
00:01:43 v #627 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:43 v #628 > > inl persist_file { workspace_root package_dir packages modules path } =
00:01:43 v #629 > >     inl full_path = path |> file_system.get_full_path
00:01:43 v #630 > >     inl name = full_path |> file_system.get_file_name_without_extension
00:01:43 v #631 > >     inl code = full_path |> read_file
00:01:43 v #632 > >     persist_code_project { workspace_root package_dir packages modules name code
00:01:43 v #633 > > }
00:01:43 v #634 > 00:01:42 d #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d26265925cd7bdcde93a6de2eb861de82a669fdc0c1ba9fccaa3b295a69c1888/main.spi
00:01:43 v #635 > >
00:01:43 v #636 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:43 v #637 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 v #638 > > │ ### build_file                                                               │
00:01:43 v #639 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 v #640 > >
00:01:43 v #641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:43 v #642 > > inl build_file { workspace_root runtime packages modules path } =
00:01:43 v #643 > >     inl full_path = path |> file_system.get_full_path
00:01:43 v #644 > >     inl dir = full_path |> file_system.get_directory_name
00:01:43 v #645 > >     build_code {
00:01:43 v #646 > >         workspace_root
00:01:43 v #647 > >         runtime
00:01:43 v #648 > >         packages
00:01:43 v #649 > >         modules
00:01:43 v #650 > >         output_dir = dir </> "dist" |> Some
00:01:43 v #651 > >         name = full_path |> file_system.get_file_name_without_extension
00:01:43 v #652 > >         code = full_path |> read_file
00:01:43 v #653 > >     }
00:01:44 v #654 > 00:01:43 d #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a38a79e120f3c9a9ab1175e4ee788dfc14ae858f85b34fac265b7081b1498173/main.spi
00:01:44 v #655 > >
00:01:44 v #656 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:44 v #657 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:44 v #658 > > │ ## rust                                                                      │
00:01:44 v #659 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:44 v #660 > >
00:01:44 v #661 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:44 v #662 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:44 v #663 > > │ ### get_workspace_cargo_toml_content                                         │
00:01:44 v #664 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:44 v #665 > >
00:01:44 v #666 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:44 v #667 > > inl get_workspace_cargo_toml_content { workspace_root } : string =
00:01:44 v #668 > >     inl workspace_root = workspace_root |> file_system.normalize_path
00:01:44 v #669 > >     $'$"cargo-features = [[\\\"profile-rustflags\\\"]]"'
00:01:44 v #670 > >     +#. $'$""'
00:01:44 v #671 > >     +#. $'$"[[workspace]]"'
00:01:44 v #672 > >     +#. $'$"resolver = \\\"2\\\""'
00:01:44 v #673 > >     +#. $'$"members = [[\\\"packages/Rust/*\\\"]]"'
00:01:44 v #674 > >     +#. $'$""'
00:01:44 v #675 > >     +#. $'$"[[workspace.dependencies.fable_library_rust]]"'
00:01:44 v #676 > >     +#. $'$"path =
00:01:44 v #677 > > \\\"{!workspace_root}/lib/rust/fable/fable_modules/fable-library-rust\\\""'
00:01:44 v #678 > >     +#. $'$"default-features = false"'
00:01:44 v #679 > >     +#. $'$"features = [[]]"'
00:01:44 v #680 > >     +#. $'$""'
00:01:44 v #681 > >     +#. $'$"[[workspace.dependencies]]"'
00:01:44 v #682 > >     +#. $'$"inline_colorization = \\\"~0.1\\\""'
00:01:44 v #683 > >     +#. $'$""'
00:01:44 v #684 > >     +#. $'$"[[profile.release]]"'
00:01:44 v #685 > >     +#. $'$"codegen-units = 1"'
00:01:44 v #686 > >     +#. $'$"opt-level = \\\"z\\\""'
00:01:44 v #687 > >     +#. $'$"lto = true"'
00:01:44 v #688 > >     +#. $'$"debug = false"'
00:01:44 v #689 > >     +#. $'$"panic = \\\"abort\\\""'
00:01:44 v #690 > >     +#. $'$"overflow-checks = true"'
00:01:44 v #691 > >     +#. $'$"rustflags = [[\\\"-C\\\", \\\"link-arg=-s\\\"]]"'
00:01:44 v #692 > 00:01:43 d #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/61c39727b3280bd35f0d24221c24f5c50065c74bbe96a656bc2369dc037dea65/main.spi
00:01:44 v #693 > >
00:01:44 v #694 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:44 v #695 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:44 v #696 > > │ ### get_cargo_toml_content                                                   │
00:01:44 v #697 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:44 v #698 > >
00:01:44 v #699 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:44 v #700 > > inl get_cargo_toml_content { hash_hex runtime deps static_do_bindings } : string
00:01:44 v #701 > > =
00:01:44 v #702 > >     $'$"[[package]]"'
00:01:44 v #703 > >     +#. $'$"name = \\\"spiral_builder_{!hash_hex}\\\""'
00:01:44 v #704 > >     +#. $'$"version = \\\"0.0.1\\\""'
00:01:44 v #705 > >     +#. $'$"edition = \\\"2021\\\""'
00:01:44 v #706 > >     +#. $'$""'
00:01:44 v #707 > >     +#. $'$"[[dependencies]]"'
00:01:44 v #708 > >     +#. (
00:01:44 v #709 > >         if runtime <>. None
00:01:44 v #710 > >         then $'$"fable_library_rust = {{ workspace = true }}"'
00:01:44 v #711 > >         else
00:01:44 v #712 > >             $'$"fable_library_rust = {{"'
00:01:44 v #713 > >             +. $'$" workspace = true,"'
00:01:44 v #714 > >             +. $'$" features = [["'
00:01:44 v #715 > >             +. (
00:01:44 v #716 > >                 if static_do_bindings
00:01:44 v #717 > >                 then $'$"\\\"static_do_bindings\\\", \\\"datetime\\\",
00:01:44 v #718 > > \\\"guid\\\", \\\"threaded\\\""'
00:01:44 v #719 > >                 else $'$"\\\"datetime\\\", \\\"guid\\\", \\\"threaded\\\""'
00:01:44 v #720 > >             )
00:01:44 v #721 > >             +. $'$"]]"'
00:01:44 v #722 > >             +. $'$"}}"'
00:01:44 v #723 > >     )
00:01:44 v #724 > >     +#. $'$"inline_colorization = {{ workspace = true }}"'
00:01:44 v #725 > >     +#. $'$"{!deps}"'
00:01:44 v #726 > >     +#. $'$""'
00:01:44 v #727 > >     +#. (
00:01:44 v #728 > >         if runtime = None then
00:01:44 v #729 > >             $'$"[[[[bin]]]]"'
00:01:44 v #730 > >             +#. $'$"name = \\\"spiral_builder_{!hash_hex}\\\""'
00:01:44 v #731 > >         else
00:01:44 v #732 > >             $'$"[[lib]]"'
00:01:44 v #733 > >             +#. $'$"crate-type = [[\\\"cdylib\\\"]]"'
00:01:44 v #734 > >     )
00:01:44 v #735 > >     +#. $'$"path = \\\"spiral_builder.rs\\\""'
00:01:44 v #736 > 00:01:44 d #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40eb4640664ae047d2aac5e61eca72764454988a2576cc3644b6bd223960e006/main.spi
00:01:45 v #737 > >
00:01:45 v #738 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:45 v #739 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:45 v #740 > > │ ### get_empty_cargo_toml_content                                             │
00:01:45 v #741 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:45 v #742 > >
00:01:45 v #743 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:45 v #744 > > inl get_empty_cargo_toml_content () =
00:01:45 v #745 > >     inl guid = date_time.now () |> date_time.new_guid_from_date_time |>
00:01:45 v #746 > > sm'.obj_to_string
00:01:45 v #747 > >     $'$"[[package]]"'
00:01:45 v #748 > >     +#. $'$"name = \\\"spiral_builder_{!guid}\\\""'
00:01:45 v #749 > >     +#. $'$"version = \\\"0.0.1\\\""'
00:01:45 v #750 > >     +#. $'$"edition = \\\"2021\\\""'
00:01:45 v #751 > >     +#. $'$""'
00:01:45 v #752 > >     +#. $'$"[[[[bin]]]]"'
00:01:45 v #753 > >     +#. $'$"name = \\\"spiral_builder_{!guid}\\\""'
00:01:45 v #754 > >     +#. $'$"path = \\\"spiral_builder.rs\\\""'
00:01:45 v #755 > 00:01:44 d #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f61ea1c29b949eb868c101b41fb6181c5632a7d1d2eb703ec4026a88a2ec8c7/main.spi
00:01:45 v #756 > >
00:01:45 v #757 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:45 v #758 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:45 v #759 > > │ ### process_rust                                                             │
00:01:45 v #760 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:45 v #761 > >
00:01:45 v #762 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:45 v #763 > > inl process_rust { fs_path deps trace_level runtime cleanup } =
00:01:45 v #764 > >     open runtime
00:01:45 v #765 > >
00:01:45 v #766 > >     inl extension = "rs"
00:01:45 v #767 > >     inl code = fs_path |> file_system.read_all_text
00:01:45 v #768 > >
00:01:45 v #769 > >     inl hash_hex = { extension code runtime } |> sm'.format |> crypto.hash_text
00:01:45 v #770 > >
00:01:45 v #771 > >     inl workspace_name = "spiral_builder"
00:01:45 v #772 > >
00:01:45 v #773 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:01:45 v #774 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:01:45 v #775 > > resultm.unwrap_or_else id
00:01:45 v #776 > >
00:01:45 v #777 > >     inl package_dir =
00:01:45 v #778 > >         get_package_dir { workspace_root name = workspace_name; target = Some
00:01:45 v #779 > > Rust; hash = Some hash_hex }
00:01:45 v #780 > >
00:01:45 v #781 > >     inl fsproj_path =
00:01:45 v #782 > >         persist_code_project {
00:01:45 v #783 > >             workspace_root
00:01:45 v #784 > >             package_dir
00:01:45 v #785 > >             packages = [[ "Fable.Core" ]]
00:01:45 v #786 > >             modules = [[]]
00:01:45 v #787 > >             name = workspace_name
00:01:45 v #788 > >             code
00:01:45 v #789 > >         }
00:01:45 v #790 > >
00:01:45 v #791 > >     inl workspace_dir = package_dir </> "../../.."
00:01:45 v #792 > >     inl workspace_cargo_toml_path = workspace_dir </> "Cargo.toml"
00:01:45 v #793 > >
00:01:45 v #794 > >     if workspace_cargo_toml_path |> file_system.file_exists |> not
00:01:45 v #795 > >     then get_empty_cargo_toml_content () |> file_system.write_all_text
00:01:45 v #796 > > workspace_cargo_toml_path
00:01:45 v #797 > >
00:01:45 v #798 > >     inl cargo_toml_path = package_dir </> "Cargo.toml"
00:01:45 v #799 > >
00:01:45 v #800 > >     if cargo_toml_path |> file_system.file_exists |> not
00:01:45 v #801 > >     then get_empty_cargo_toml_content () |> file_system.write_all_text
00:01:45 v #802 > > cargo_toml_path
00:01:45 v #803 > >
00:01:45 v #804 > >     inl lib_link_target_path = workspace_root </>
00:01:45 v #805 > > "lib/rust/fable/fable_modules/fable-library-rust"
00:01:45 v #806 > >     inl lib_link_path = package_dir </> "fable_modules/fable-library-rust"
00:01:45 v #807 > >
00:01:45 v #808 > >     lib_link_path |> file_system.link_directory lib_link_target_path
00:01:45 v #809 > >
00:01:45 v #810 > >     inl exit_code, dotnet_fable_result =
00:01:45 v #811 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:01:45 v #812 > > package_dir runtime }
00:01:45 v #813 > >
00:01:45 v #814 > >     inl result' = {
00:01:45 v #815 > >         extension = Some extension
00:01:45 v #816 > >         code = None
00:01:45 v #817 > >         code_path = None
00:01:45 v #818 > >         output = None
00:01:45 v #819 > >     }
00:01:45 v #820 > >
00:01:45 v #821 > >     if exit_code <>. 0 then
00:01:45 v #822 > >         trace Critical
00:01:45 v #823 > >             fun () => "spiral_builder.process_rust / dotnet fable error"
00:01:45 v #824 > >             fun () => { exit_code dotnet_fable_result }
00:01:45 v #825 > >         { result' with
00:01:45 v #826 > >             output = Some dotnet_fable_result
00:01:45 v #827 > >         }
00:01:45 v #828 > >     else
00:01:45 v #829 > >         inl deps =
00:01:45 v #830 > >             inl deps =
00:01:45 v #831 > >                 if runtime = None
00:01:45 v #832 > >                 then deps
00:01:45 v #833 > >                 else
00:01:45 v #834 > >                     // TODO: simplify
00:01:45 v #835 > >                     inl has_near_sdk =
00:01:45 v #836 > >                         deps
00:01:45 v #837 > >                         |> am'.vec_filter (sm'.from_std_string >> sm'.contains
00:01:45 v #838 > > "near-sdk")
00:01:45 v #839 > >                         |> am'.vec_len
00:01:45 v #840 > >                         |> i32
00:01:45 v #841 > >                         |> fun n => n > 0
00:01:45 v #842 > >                     // TODO: simplify with ++
00:01:45 v #843 > >                     if has_near_sdk
00:01:45 v #844 > >                     then deps
00:01:45 v #845 > >                     else deps |> am'.vec_extend (;[[ "near-sdk" |>
00:01:45 v #846 > > sm'.to_std_string ]] |> am'.to_vec)
00:01:45 v #847 > >             deps
00:01:45 v #848 > >             |> am'.vec_map fun dep =>
00:01:45 v #849 > >                 inl dep = dep |> sm'.from_std_string
00:01:45 v #850 > >                 if dep |> sm'.contains "="
00:01:45 v #851 > >                 then dep
00:01:45 v #852 > >                 elif dep |> sm'.ends_with "]]"
00:01:45 v #853 > >                 then dep |> sm'.replace "[[" $'$"={{version=\'*\',features=[["'
00:01:45 v #854 > > |> fun x => $'$"{!x}}}"'
00:01:45 v #855 > >                 else $'$"{!dep}=\'*\'"'
00:01:45 v #856 > >             |> am'.from_vec
00:01:45 v #857 > >             |> fun x => x : _ i32 _
00:01:45 v #858 > >             |> seq.of_array'
00:01:45 v #859 > >             |> sm'.concat "\n"
00:01:45 v #860 > >
00:01:45 v #861 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:01:45 v #862 > >         inl new_code = new_code_path |> file_system.read_all_text
00:01:45 v #863 > >
00:01:45 v #864 > >         inl on_startup_text = "on_startup!" +. (join "(")
00:01:45 v #865 > >         inl method0_fn_text = " method0" +. (join "(")
00:01:45 v #866 > >         inl static_do_bindings =
00:01:45 v #867 > >             (new_code |> sm'.contains on_startup_text)
00:01:45 v #868 > >             && (new_code |> sm'.contains method0_fn_text |> not)
00:01:45 v #869 > >         inl cargo_toml_content =
00:01:45 v #870 > >             get_cargo_toml_content { hash_hex runtime deps static_do_bindings }
00:01:45 v #871 > >         inl workspace_cargo_toml_content = get_workspace_cargo_toml_content {
00:01:45 v #872 > > workspace_root }
00:01:45 v #873 > >
00:01:45 v #874 > >         cargo_toml_content |> file_system.write_all_text_exists cargo_toml_path
00:01:45 v #875 > >         workspace_cargo_toml_content |> file_system.write_all_text_exists
00:01:45 v #876 > > workspace_cargo_toml_path
00:01:45 v #877 > >
00:01:45 v #878 > >         inl range_rs_path = lib_link_path </> "src/Range.rs"
00:01:45 v #879 > >         if range_rs_path |> file_system.file_exists then
00:01:45 v #880 > >             inl text = range_rs_path |> file_system.read_all_text
00:01:45 v #881 > >             text
00:01:45 v #882 > >             |> sm'.replace "use crate::String_::fromCharCode;" "use
00:01:45 v #883 > > crate::String_::fromChar;"
00:01:45 v #884 > >             |> sm'.replace "fromCharCode(c)" "std::char::from_u32(c).unwrap()"
00:01:45 v #885 > >             |> file_system.write_all_text_exists range_rs_path
00:01:45 v #886 > >
00:01:45 v #887 > >         inl exit_code, cargo_fmt_result =
00:01:45 v #888 > >             fun () =>
00:01:45 v #889 > >                 inl exit_code, result =
00:01:45 v #890 > >                     execution_options fun x => { x with
00:01:45 v #891 > >                         command = $'$"cargo fmt --manifest-path
00:01:45 v #892 > > \\\"{!cargo_toml_path}\\\" --"'
00:01:45 v #893 > >                         working_directory = workspace_root_external |>
00:01:45 v #894 > > resultm.box |> resultm.ok'
00:01:45 v #895 > >                     }
00:01:45 v #896 > >                     |> execute_with_options
00:01:45 v #897 > >
00:01:45 v #898 > >                 inl return () =
00:01:45 v #899 > >                     if exit_code = 0
00:01:45 v #900 > >                     then Ok (exit_code, result)
00:01:45 v #901 > >                     else Error (exit_code, result)
00:01:45 v #902 > >
00:01:45 v #903 > >                 if result |> sm'.contains "failed to load manifest for workspace
00:01:45 v #904 > > member" |> not
00:01:45 v #905 > >                 then return ()
00:01:45 v #906 > >                 else
00:01:45 v #907 > >                     inl missing_toml_path =
00:01:45 v #908 > >                         "failed to read `(?<a>.*?Cargo.toml)`"
00:01:45 v #909 > >                         |> sm'.new_regex
00:01:45 v #910 > >                         |> resultm.unwrap'
00:01:45 v #911 > >                         |> sm'.regex_captures result
00:01:45 v #912 > >                         |> am'.from_vec
00:01:45 v #913 > >                         |> fun x => x : _ i32 _
00:01:45 v #914 > >                         |> am'.try_item 0
00:01:45 v #915 > >                         |> optionm.map (mapm.get "a" >> optionm'.unbox)
00:01:45 v #916 > >                         |> optionm'.flatten
00:01:45 v #917 > >
00:01:45 v #918 > >                     match missing_toml_path with
00:01:45 v #919 > >                     | None => Error (exit_code, result)
00:01:45 v #920 > >                     | Some missing_toml_path =>
00:01:45 v #921 > >                         if missing_toml_path |> file_system.file_exists |> not
00:01:45 v #922 > > then
00:01:45 v #923 > >                             missing_toml_path
00:01:45 v #924 > >                             |> file_system.get_directory_name
00:01:45 v #925 > >                             |> file_system.create_dir
00:01:45 v #926 > >                             |> ignore
00:01:45 v #927 > >
00:01:45 v #928 > >                             get_empty_cargo_toml_content ()
00:01:45 v #929 > >                             |> file_system.write_all_text missing_toml_path
00:01:45 v #930 > >                         return ()
00:01:45 v #931 > >             |> retry_fn' 3u8
00:01:45 v #932 > >
00:01:45 v #933 > >         if exit_code <>. 0 then
00:01:45 v #934 > >             trace Critical
00:01:45 v #935 > >                 fun () => "spiral_builder.process_rust / cargo fmt error"
00:01:45 v #936 > >                 fun () => { exit_code cargo_fmt_result }
00:01:45 v #937 > >
00:01:45 v #938 > >         inl new_code = new_code_path |> file_system.read_all_text
00:01:45 v #939 > >
00:01:45 v #940 > >         inl main_code_header =
00:01:45 v #941 > >             "pub fn main() -> Result<(), String> " +. (join "{")
00:01:45 v #942 > >
00:01:45 v #943 > >         inl main_code : string =
00:01:45 v #944 > >             if runtime = None
00:01:45 v #945 > >             then ""
00:01:45 v #946 > >             else
00:01:45 v #947 > >                 $'$"#[[near_sdk::near_bindgen]]"'
00:01:45 v #948 > >                 +#. $'$"#[[derive(near_sdk::PanicOnDefault)]]"'
00:01:45 v #949 > >                 +#. $'$"pub struct MainState {{"'
00:01:45 v #950 > >                 +#. $'$"}}"'
00:01:45 v #951 > >                 +#. $'$""'
00:01:45 v #952 > >                 +#. $'$"#[[near_sdk::near_bindgen]]"'
00:01:45 v #953 > >                 +#. $'$"impl MainState {{"'
00:01:45 v #954 > >                 +#. $'$"    pub fn state_main() {{"'
00:01:45 v #955 > >                 +#. $'$"        Spiral_builder::method0();"'
00:01:45 v #956 > >                 +#. $'$"    }}"'
00:01:45 v #957 > >                 +#. $'$"}}"'
00:01:45 v #958 > >             +#. (
00:01:45 v #959 > >                 if runtime = None && (new_code |> sm'.contains (on_startup_text
00:01:45 v #960 > > +. "Spiral_builder::method0()"))
00:01:45 v #961 > >                 then $'$"{!main_code_header} Ok(Spiral_builder::method0()) }}"'
00:01:45 v #962 > >                 else $'$"{!main_code_header} Ok(()) }}"'
00:01:45 v #963 > >             )
00:01:45 v #964 > >
00:01:45 v #965 > >         inl cached = new_code |> sm'.contains main_code_header
00:01:45 v #966 > >
00:01:45 v #967 > >         inl new_code' = $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:01:45 v #968 > >         inl new_code =
00:01:45 v #969 > >             if cached
00:01:45 v #970 > >             then new_code
00:01:45 v #971 > >             else
00:01:45 v #972 > >                 new_code'
00:01:45 v #973 > >                 |> sm'.replace
00:01:45 v #974 > >                     ("),)" +. !\($'"\\\";\\\".into()"'))
00:01:45 v #975 > >                     "));"
00:01:45 v #976 > >                 |> sm'.replace
00:01:45 v #977 > >                     ("},)" +. !\($'"\\\";\\\".into()"'))
00:01:45 v #978 > >                     "});"
00:01:45 v #979 > >                 |> sm'.replace_regex
00:01:45 v #980 > >                     "\\s\\sdefaultOf\\(\\);"
00:01:45 v #981 > >                     " defaultOf::<()>();"
00:01:45 v #982 > >                 |> sm'.replace
00:01:45 v #983 > >                     "::Slice'_"
00:01:45 v #984 > >                     "::Slice__"
00:01:45 v #985 > >                 |> sm'.replace
00:01:45 v #986 > >                     " Slice'_"
00:01:45 v #987 > >                     " Slice__"
00:01:45 v #988 > >                 |> sm'.replace
00:01:45 v #989 > >                     ("defaultOf()" +. !\($'"\\\",\\\".into()"'))
00:01:45 v #990 > >                     "defaultOf::<std::sync::Arc<dyn IDisposable>>(),"
00:01:45 v #991 > >                 |> sm'.replace
00:01:45 v #992 > >                     ("_self" +. !\($'"\\\"_.\\\".into()"'))
00:01:45 v #993 > >                     "self."
00:01:45 v #994 > >                 |> sm'.replace
00:01:45 v #995 > >                     ("get_or_insert_wit" +. !\($'"\\\"h\\\".into()"'))
00:01:45 v #996 > >                     "get_or_init"
00:01:45 v #997 > >                 |> sm'.replace
00:01:45 v #998 > >                     ("use
00:01:45 v #999 > > fable_library_rust::System::Collections::Concurrent::ConcurrentStack_1" +.
00:01:45 v #1000 > > !\($'"\\\";\\\".into()"'))
00:01:45 v #1001 > >                     "type ConcurrentStack_1<T> = T;"
00:01:45 v #1002 > >                 |> sm'.replace
00:01:45 v #1003 > >                     ("use fable_library_rust::System::Collections::Generic" +.
00:01:45 v #1004 > > !\($'"\\\"::\\\".into()"'))
00:01:45 v #1005 > >                     "use
00:01:45 v #1006 > > fable_library_rust::Interfaces_::System::Collections::Generic::"
00:01:45 v #1007 > >                 |> sm'.replace
00:01:45 v #1008 > >                     ("use fable_library_rust::System::IDisposable" +.
00:01:45 v #1009 > > !\($'"\\\";\\\".into()"'))
00:01:45 v #1010 > >                     "use fable_library_rust::Interfaces_::System::IDisposable;"
00:01:45 v #1011 > >                 |> sm'.replace
00:01:45 v #1012 > >                     ("use
00:01:45 v #1013 > > fable_library_rust::System::Threading::CancellationToken" +.
00:01:45 v #1014 > > !\($'"\\\";\\\".into()"'))
00:01:45 v #1015 > >                     "type CancellationToken = ();"
00:01:45 v #1016 > >                 |> sm'.replace
00:01:45 v #1017 > >                     ("use fable_library_rust::System::TimeZoneInfo" +.
00:01:45 v #1018 > > !\($'"\\\";\\\".into()"'))
00:01:45 v #1019 > >                     "type TimeZoneInfo = i64;"
00:01:45 v #1020 > >                 |> sm'.replace
00:01:45 v #1021 > >                     ("use
00:01:45 v #1022 > > fable_library_rust::System::Threading::Tasks::TaskCanceledException" +.
00:01:45 v #1023 > > !\($'"\\\";\\\".into()"'))
00:01:45 v #1024 > >                     "type TaskCanceledException = ();"
00:01:45 v #1025 > >                 |> if static_do_bindings
00:01:45 v #1026 > >                     then id
00:01:45 v #1027 > >                     else sm'.replace
00:01:45 v #1028 > >                             on_startup_text
00:01:45 v #1029 > >                             ("// " +. on_startup_text)
00:01:45 v #1030 > >
00:01:45 v #1031 > >         if not cached then
00:01:45 v #1032 > >             new_code
00:01:45 v #1033 > >             |> file_system.write_all_text_exists new_code_path
00:01:45 v #1034 > >
00:01:45 v #1035 > >         inl command =
00:01:45 v #1036 > >             if runtime <> None
00:01:45 v #1037 > >             then $'$"cargo +nightly-2024-07-14 build --release --target
00:01:45 v #1038 > > wasm32-unknown-unknown --manifest-path \\\"{!cargo_toml_path}\\\""'
00:01:45 v #1039 > >             else $'$"cargo run --manifest-path \\\"{!cargo_toml_path}\\\""'
00:01:45 v #1040 > >         inl environment_variables =
00:01:45 v #1041 > >             if runtime <> None
00:01:45 v #1042 > >             then ;[[]]
00:01:45 v #1043 > >             else
00:01:45 v #1044 > >                 inl fast = false
00:01:45 v #1045 > >                 ;[[
00:01:45 v #1046 > >                     "TRACE_LEVEL", "Verbose"
00:01:45 v #1047 > >                     "RUSTC_WRAPPER", "sccache"
00:01:45 v #1048 > >                     "RUST_BACKTRACE", "full"
00:01:45 v #1049 > >                     "RUSTFLAGS",
00:01:45 v #1050 > >                     if fast
00:01:45 v #1051 > >                     then "-C prefer-dynamic -C strip=symbols -C link-arg=-s -C
00:01:45 v #1052 > > debuginfo=0"
00:01:45 v #1053 > >                     else "-C prefer-dynamic"
00:01:45 v #1054 > >                 ]]
00:01:45 v #1055 > >         inl exit_code, cargo_result =
00:01:45 v #1056 > >             execution_options fun x => { x with
00:01:45 v #1057 > >                 command
00:01:45 v #1058 > >                 environment_variables
00:01:45 v #1059 > >                 working_directory = workspace_root_external |> resultm.box |>
00:01:45 v #1060 > > resultm.ok'
00:01:45 v #1061 > >             }
00:01:45 v #1062 > >             |> execute_with_options
00:01:45 v #1063 > >
00:01:45 v #1064 > >         inl result =
00:01:45 v #1065 > >             if runtime = None then
00:01:45 v #1066 > >                 inl external_command =
00:01:45 v #1067 > >                     inl vars =
00:01:45 v #1068 > >                         a environment_variables
00:01:45 v #1069 > >                         |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' :
00:01:45 v #1070 > > string
00:01:45 v #1071 > >                         |> fun x => x : _ i32 _
00:01:45 v #1072 > >                         |> seq.of_array
00:01:45 v #1073 > >                         |> sm'.concat ";"
00:01:45 v #1074 > >                     inl command =
00:01:45 v #1075 > >                         a ;[[
00:01:45 v #1076 > >                             vars
00:01:45 v #1077 > >                             command
00:01:45 v #1078 > >                         ]]
00:01:45 v #1079 > >                         |> fun x => x : _ i32 _
00:01:45 v #1080 > >                         |> seq.of_array
00:01:45 v #1081 > >                         |> sm'.concat ";"
00:01:45 v #1082 > >                     $'$"pwsh -c \'{!command}\'"' : string
00:01:45 v #1083 > >                 if exit_code <>. 0 then
00:01:45 v #1084 > >                     trace Critical
00:01:45 v #1085 > >                         fun () => "spiral_builder.process_rust / error"
00:01:45 v #1086 > >                         fun () => { exit_code new_code_path external_command
00:01:45 v #1087 > > cleanup cargo_result }
00:01:45 v #1088 > >                     result'
00:01:45 v #1089 > >                 else
00:01:45 v #1090 > >                     inl output =
00:01:45 v #1091 > >                         try
00:01:45 v #1092 > >                             fun () =>
00:01:45 v #1093 > >                                 cargo_result
00:01:45 v #1094 > >                                 |> sm'.split "\n"
00:01:45 v #1095 > >                                 |> fun x => a x : _ i32 _
00:01:45 v #1096 > >                                 |> am'.skip_while fun line =>
00:01:45 v #1097 > >                                     (line |> sm'.contains "profile [[optimized]]
00:01:45 v #1098 > > target" |> not)
00:01:45 v #1099 > >                                         && (line |> sm'.contains "profile
00:01:45 v #1100 > > [[unoptimized]] target" |> not)
00:01:45 v #1101 > >                                         && (line |> sm'.contains "profile
00:01:45 v #1102 > > [[unoptimized + debuginfo]] target" |> not)
00:01:45 v #1103 > >                                 |> am'.skip 2
00:01:45 v #1104 > >                                 |> seq.of_array
00:01:45 v #1105 > >                                 |> sm'.concat "\n"
00:01:45 v #1106 > >                             fun ex =>
00:01:45 v #1107 > >                                 trace Critical
00:01:45 v #1108 > >                                     fun () => "spiral_builder.process_rust
00:01:45 v #1109 > > Exception"
00:01:45 v #1110 > >                                     fun () => { ex new_code_path
00:01:45 v #1111 > > external_command cargo_result }
00:01:45 v #1112 > >                                 None
00:01:45 v #1113 > >                         |> optionm'.box
00:01:45 v #1114 > >                         |> optionm'.unwrap
00:01:45 v #1115 > >                     { result' with
00:01:45 v #1116 > >                         code = Some new_code
00:01:45 v #1117 > >                         code_path = Some new_code_path
00:01:45 v #1118 > >                         output = Some output
00:01:45 v #1119 > >                     }
00:01:45 v #1120 > >             else
00:01:45 v #1121 > >                 inl wasm_path : string =
00:01:45 v #1122 > >
00:01:45 v #1123 > > $'$"target/spiral_builder/{!workspace_name}/target/wasm32-unknown-unknown/releas
00:01:45 v #1124 > > e/spiral_builder_{!hash_hex}.wasm"'
00:01:45 v #1125 > >
00:01:45 v #1126 > >                 inl command =
00:01:45 v #1127 > >                     inl invoke_block_path = "scripts/invoke-block.ps1"
00:01:45 v #1128 > >                     inl spiral_wasm_command : string =
00:01:45 v #1129 > >                         inl runtime_cmd =
00:01:45 v #1130 > >                             match runtime with
00:01:45 v #1131 > >                             | Some (Wasm cmd) => cmd
00:01:45 v #1132 > >                             | Some (Contract cmd) => cmd
00:01:45 v #1133 > >                             | _ => ""
00:01:45 v #1134 > >                         $'$"\'workspace/target/release/spiral_wasm -w
00:01:45 v #1135 > > {!wasm_path} -t Debug {!runtime_cmd}\'"'
00:01:45 v #1136 > >                     inl automation = "AUTOMATION" |>
00:01:45 v #1137 > > env.get_environment_variable
00:01:45 v #1138 > >                     $'$"pwsh -c \\\"pwsh {!invoke_block_path}
00:01:45 v #1139 > > {!spiral_wasm_command} -Linux -EnvironmentVariables
00:01:45 v #1140 > > AUTOMATION={!automation}\`nNEAR_RPC_TIMEOUT_SECS=100\\\""'
00:01:45 v #1141 > >
00:01:45 v #1142 > >                 if exit_code = 0 then
00:01:45 v #1143 > >                     inl exit_code, spiral_wasm_result =
00:01:45 v #1144 > >                         execution_options fun x => { x with
00:01:45 v #1145 > >                             command
00:01:45 v #1146 > >                             working_directory = workspace_root |> optionm'.some'
00:01:45 v #1147 > >                         }
00:01:45 v #1148 > >                         |> execute_with_options
00:01:45 v #1149 > >
00:01:45 v #1150 > >                     if exit_code = 0 then
00:01:45 v #1151 > >                         { result' with
00:01:45 v #1152 > >                             code = Some new_code
00:01:45 v #1153 > >                             code_path = Some new_code_path
00:01:45 v #1154 > >                             output = Some spiral_wasm_result
00:01:45 v #1155 > >                         }
00:01:45 v #1156 > >                     else
00:01:45 v #1157 > >                         trace Critical
00:01:45 v #1158 > >                             fun () => "spiral_builder.process_rust / wasm error"
00:01:45 v #1159 > >                             fun () => {
00:01:45 v #1160 > >                                 exit_code new_code_path cargo_result cleanup
00:01:45 v #1161 > >                                 spiral_wasm_result =
00:01:45 v #1162 > > $'$"\\n{!spiral_wasm_result}"' : string
00:01:45 v #1163 > >                             }
00:01:45 v #1164 > >                         result'
00:01:45 v #1165 > >                 else
00:01:45 v #1166 > >                     trace Critical
00:01:45 v #1167 > >                         fun () => "spiral_builder.process_rust / cargo error"
00:01:45 v #1168 > >                         fun () => {
00:01:45 v #1169 > >                             exit_code new_code_path wasm_path command cleanup
00:01:45 v #1170 > >                             cargo_result = $'$"\\n{!cargo_result}"' : string
00:01:45 v #1171 > >                         }
00:01:45 v #1172 > >                     result'
00:01:45 v #1173 > >
00:01:45 v #1174 > >         if cleanup then
00:01:45 v #1175 > >             inl cleanup =
00:01:45 v #1176 > >                 inl build_target =
00:01:45 v #1177 > >                     if runtime <> None
00:01:45 v #1178 > >                     then "wasm32-unknown-unknown/release"
00:01:45 v #1179 > >                     else "debug"
00:01:45 v #1180 > >
00:01:45 v #1181 > >                 [[ ".d"; ".exe"; ".pdb"; ".wasm"; "" ]]
00:01:45 v #1182 > >                 |> listm.map fun ext =>
00:01:45 v #1183 > >                     workspace_dir </>
00:01:45 v #1184 > > $'$"target/{!build_target}/spiral_builder_{!hash_hex}{!ext}"'
00:01:45 v #1185 > >                 |> listm.map fun path => path, path |> file_system.file_exists
00:01:45 v #1186 > >
00:01:45 v #1187 > >             trace Verbose
00:01:45 v #1188 > >                 fun () => "spiral_builder.process_rust / cleanup"
00:01:45 v #1189 > >                 fun () => { new_code_path cleanup }
00:01:45 v #1190 > >
00:01:45 v #1191 > >             cleanup
00:01:45 v #1192 > >             |> listm'.filter snd
00:01:45 v #1193 > >             |> listm.iter (fst >> file_system.file_delete)
00:01:45 v #1194 > >
00:01:45 v #1195 > >         result
00:01:45 v #1196 > 00:01:44 d #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b56314c510926cfc5a40e583e86b0769cddf14bf43ee8b94c3e8ed600cfb0481/main.spi
00:01:46 v #1197 > >
00:01:46 v #1198 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:46 v #1199 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:46 v #1200 > > │ ## dib                                                                       │
00:01:46 v #1201 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:46 v #1202 > >
00:01:46 v #1203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:46 v #1204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:46 v #1205 > > │ ### process_dib                                                              │
00:01:46 v #1206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:46 v #1207 > >
00:01:46 v #1208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:46 v #1209 > > inl process_dib { path retries working_directory } =
00:01:46 v #1210 > >     inl exit_code, repl_result =
00:01:46 v #1211 > >         let rec loop retry =
00:01:46 v #1212 > >             inl exit_code, repl_result =
00:01:46 v #1213 > >                 runtime.execution_options fun x => { x with
00:01:46 v #1214 > >                     command = $'$"dotnet repl --exit-after-run --run
00:01:46 v #1215 > > \\\"{!path}\\\" --output-path \\\"{!path}.ipynb\\\""'
00:01:46 v #1216 > >                     environment_variables = ;[[
00:01:46 v #1217 > >                         "TRACE_LEVEL", "Verbose"
00:01:46 v #1218 > >                         "AUTOMATION", "True"
00:01:46 v #1219 > >                     ]]
00:01:46 v #1220 > >                     trace = false
00:01:46 v #1221 > >                     working_directory = working_directory |> optionm'.box
00:01:46 v #1222 > >                 }
00:01:46 v #1223 > >                 |> runtime.execute_with_options
00:01:46 v #1224 > >
00:01:46 v #1225 > >             if exit_code = 0 || retry >= retries
00:01:46 v #1226 > >             then exit_code, repl_result
00:01:46 v #1227 > >             else
00:01:46 v #1228 > >                 trace Debug
00:01:46 v #1229 > >                     fun () => "spiral_builder.run / repl error"
00:01:46 v #1230 > >                     fun () => { exit_code repl_result retry =
00:01:46 v #1231 > > $'$"{!retry}/{!retries}"' : string }
00:01:46 v #1232 > >                 loop (retry + 1)
00:01:46 v #1233 > >         loop 1
00:01:46 v #1234 > >
00:01:46 v #1235 > >     inl exit_code, result =
00:01:46 v #1236 > >         if exit_code <>. 0
00:01:46 v #1237 > >         then exit_code, repl_result
00:01:46 v #1238 > >         else
00:01:46 v #1239 > >             inl exit_code, jupyter_result =
00:01:46 v #1240 > >                 runtime.execution_options fun x => { x with
00:01:46 v #1241 > >                     command = $'$"jupyter nbconvert \\\"{!path}.ipynb\\\" --to
00:01:46 v #1242 > > html --HTMLExporter.theme=dark"'
00:01:46 v #1243 > >                 }
00:01:46 v #1244 > >                 |> runtime.execute_with_options
00:01:46 v #1245 > >
00:01:46 v #1246 > >             trace Debug
00:01:46 v #1247 > >                 fun () => "spiral_builder.run / dib / jupyter nbconvert"
00:01:46 v #1248 > >                 fun () => { exit_code jupyter_result_length = jupyter_result |>
00:01:46 v #1249 > > sm'.length : i32 }
00:01:46 v #1250 > >
00:01:46 v #1251 > >             if exit_code <>. 0
00:01:46 v #1252 > >             then exit_code, $'$"repl_result: {!repl_result}\n\njupyter_result:
00:01:46 v #1253 > > {!jupyter_result}"'
00:01:46 v #1254 > >             else
00:01:46 v #1255 > >                 inl exit_code, pwsh_replace_html_result =
00:01:46 v #1256 > >                     inl path = path |> sm'.replace "'" "''"
00:01:46 v #1257 > >                     runtime.execution_options fun x => { x with
00:01:46 v #1258 > >                         command = $'$"pwsh -c \\\"$counter = 1; $path =
00:01:46 v #1259 > > \'{!path}.html\'; (Get-Content $path -Raw) -replace
00:01:46 v #1260 > > \'(id=\\\\\\"cell-id=)[[a-fA-F0-9]]{{8}}\', {{ $_.Groups[[1]].Value + $counter++
00:01:46 v #1261 > > }} | Set-Content $path\\\""'
00:01:46 v #1262 > >                     }
00:01:46 v #1263 > >                     |> runtime.execute_with_options
00:01:46 v #1264 > >
00:01:46 v #1265 > >                 trace Debug
00:01:46 v #1266 > >                     fun () => "spiral_builder.run / dib / html cell ids"
00:01:46 v #1267 > >                     fun () => { exit_code pwsh_replace_html_result_length =
00:01:46 v #1268 > > pwsh_replace_html_result |> sm'.length : i32 }
00:01:46 v #1269 > >
00:01:46 v #1270 > >                 $'$"{!path}.html"'
00:01:46 v #1271 > >                 |> file_system.read_all_text
00:01:46 v #1272 > >                 |> sm'.replace "\r\n" "\n"
00:01:46 v #1273 > >                 |> file_system.write_all_text $'$"{!path}.html"'
00:01:46 v #1274 > >
00:01:46 v #1275 > >                 $'$"{!path}.ipynb"'
00:01:46 v #1276 > >                 |> file_system.read_all_text
00:01:46 v #1277 > >                 |> sm'.replace "\r\n" "\n"
00:01:46 v #1278 > >                 |> sm'.replace "\\r\\n" "\\n"
00:01:46 v #1279 > >                 |> file_system.write_all_text $'$"{!path}.ipynb"'
00:01:46 v #1280 > >
00:01:46 v #1281 > >                 exit_code, $'$"repl_result: {!repl_result}\n\njupyter_result:
00:01:46 v #1282 > > {!jupyter_result}\n\npwsh_replace_html_result: {!pwsh_replace_html_result}"'
00:01:46 v #1283 > >
00:01:46 v #1284 > >     trace Debug
00:01:46 v #1285 > >         fun () => "spiral_builder.run / dib"
00:01:46 v #1286 > >         fun () => { exit_code result_length = result |> sm'.length : i32 }
00:01:46 v #1287 > >
00:01:46 v #1288 > >     if exit_code <>. 0
00:01:46 v #1289 > >     then failwith $'$"spiral_builder.run / dib / exit_code: {!exit_code}
00:01:46 v #1290 > > result: {!result}"'
00:01:46 v #1291 > >     ;[[
00:01:46 v #1292 > >         "stdio",
00:01:46 v #1293 > >         result
00:01:46 v #1294 > >     ]]
00:01:46 v #1295 > 00:01:45 d #25 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2c63a32dbc3c24f1bfa229586d3183f3604ebee9063e9621dc262ef5dc78cf97/main.spi
00:01:46 v #1296 > >
00:01:46 v #1297 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:46 v #1298 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:46 v #1299 > > │ ## typescript                                                                │
00:01:46 v #1300 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:46 v #1301 > >
00:01:46 v #1302 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:46 v #1303 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:46 v #1304 > > │ ### process_typescript                                                       │
00:01:46 v #1305 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:46 v #1306 > >
00:01:46 v #1307 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:46 v #1308 > > inl process_typescript { fs_path deps trace_level } =
00:01:46 v #1309 > >     inl extension = "ts"
00:01:46 v #1310 > >
00:01:46 v #1311 > >     inl code = fs_path |> file_system.read_all_text
00:01:46 v #1312 > >
00:01:46 v #1313 > >     inl hash_hex = (extension, code) |> sm'.format_debug |> crypto.hash_text
00:01:46 v #1314 > >
00:01:46 v #1315 > >     inl workspace_name = "spiral_builder"
00:01:46 v #1316 > >
00:01:46 v #1317 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:01:46 v #1318 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:01:46 v #1319 > > resultm.unwrap_or_else id
00:01:46 v #1320 > >
00:01:46 v #1321 > >     inl package_dir =
00:01:46 v #1322 > >         get_package_dir
00:01:46 v #1323 > >             { workspace_root name = workspace_name; target = Some TypeScript;
00:01:46 v #1324 > > hash = Some hash_hex }
00:01:46 v #1325 > >
00:01:46 v #1326 > >     inl fsproj_path =
00:01:46 v #1327 > >         persist_code_project {
00:01:46 v #1328 > >             workspace_root
00:01:46 v #1329 > >             package_dir
00:01:46 v #1330 > >             packages = [[ "Fable.Core" ]]
00:01:46 v #1331 > >             modules = [[]]
00:01:46 v #1332 > >             name = workspace_name
00:01:46 v #1333 > >             code
00:01:46 v #1334 > >         }
00:01:46 v #1335 > >
00:01:46 v #1336 > >     inl lib_path = workspace_root </> "lib/typescript/fable/fable_modules"
00:01:46 v #1337 > >
00:01:46 v #1338 > >     inl versions : _ (string * string) =
00:01:46 v #1339 > >         lib_path
00:01:46 v #1340 > >         |> file_system.new_walk_dir
00:01:46 v #1341 > >         |> file_system.walk_dir_filter fun entry => async.new_future_move_send
00:01:46 v #1342 > > fun () =>
00:01:46 v #1343 > >             entry
00:01:46 v #1344 > >             |> file_system.dir_entry_file_type
00:01:46 v #1345 > >             |> async.await_send
00:01:46 v #1346 > >             |> resultm.map_error' sm'.format'
00:01:46 v #1347 > >             |> resultm.unbox
00:01:46 v #1348 > >             |> function
00:01:46 v #1349 > >                 | Ok file_type when file_type |> file_system.file_type_is_dir |>
00:01:46 v #1350 > > not => file_system.Ignore
00:01:46 v #1351 > >                 | _ =>
00:01:46 v #1352 > >                     inl path =
00:01:46 v #1353 > >                         entry
00:01:46 v #1354 > >                         |> file_system.dir_entry_path
00:01:46 v #1355 > >                         |> file_system.path_buf_display
00:01:46 v #1356 > >                         |> sm'.format'
00:01:46 v #1357 > >                         |> sm'.from_std_string
00:01:46 v #1358 > >                     if path |> file_system.get_directory_name |> sm'.starts_with
00:01:46 v #1359 > > "fable-library-ts."
00:01:46 v #1360 > >                     then file_system.Continue
00:01:46 v #1361 > >                     else file_system.IgnoreDir
00:01:46 v #1362 > >         |> async.stream_filter_map_futures fun (entry : _ _
00:01:46 v #1363 > > file_system.async_walkdir_error) =>
00:01:46 v #1364 > >             inl entry = entry |> resultm.map_error' sm'.format' |> resultm.unbox
00:01:46 v #1365 > >             match entry with
00:01:46 v #1366 > >             | Ok entry =>
00:01:46 v #1367 > >                 inl path =
00:01:46 v #1368 > >                     entry
00:01:46 v #1369 > >                     |> file_system.dir_entry_path
00:01:46 v #1370 > >                     |> file_system.path_buf_display
00:01:46 v #1371 > >                     |> sm'.format'
00:01:46 v #1372 > >                     |> sm'.from_std_string
00:01:46 v #1373 > >                 inl version =
00:01:46 v #1374 > >                     $'$"fable-library-{!extension}\\.(?<a>[[\\d.]]+)$"'
00:01:46 v #1375 > >                     |> sm'.new_regex
00:01:46 v #1376 > >                     |> resultm.unwrap'
00:01:46 v #1377 > >                     |> sm'.regex_captures path
00:01:46 v #1378 > >                     |> am'.from_vec
00:01:46 v #1379 > >                     |> fun x => x : _ i32 _
00:01:46 v #1380 > >                     |> am'.try_item 0
00:01:46 v #1381 > >                     |> optionm.map (mapm.get "a" >> optionm'.unbox)
00:01:46 v #1382 > >                     |> optionm'.flatten
00:01:46 v #1383 > >                 match version with
00:01:46 v #1384 > >                 | None => None
00:01:46 v #1385 > >                 | Some version => Some (path, version)
00:01:46 v #1386 > >             | Error error =>
00:01:46 v #1387 > >                 trace Critical
00:01:46 v #1388 > >                     fun () => "spiral_builder.process_typescript
00:01:46 v #1389 > > stream_filter_map"
00:01:46 v #1390 > >                     fun () => { error }
00:01:46 v #1391 > >                 None
00:01:46 v #1392 > >             |> optionm'.box
00:01:46 v #1393 > >         |> async.stream_collect_futures
00:01:46 v #1394 > >         |> async.await
00:01:46 v #1395 > >         |> async.into_par_iter
00:01:46 v #1396 > >         |> async.par_map id
00:01:46 v #1397 > >         |> async.par_collect
00:01:46 v #1398 > >
00:01:46 v #1399 > >     inl version =
00:01:46 v #1400 > >         versions
00:01:46 v #1401 > >         |> am'.from_vec
00:01:46 v #1402 > >         |> fun x => x : _ i32 _
00:01:46 v #1403 > >         |> am'.try_item 0
00:01:46 v #1404 > >
00:01:46 v #1405 > >     trace Debug
00:01:46 v #1406 > >         fun () => "spiral_builder.process_typescript"
00:01:46 v #1407 > >         fun () => { version }
00:01:46 v #1408 > >
00:01:46 v #1409 > >     match version with
00:01:46 v #1410 > >     | None => ()
00:01:46 v #1411 > >     | Some (_path, version) =>
00:01:46 v #1412 > >         inl lib_link_target_path = lib_path </>
00:01:46 v #1413 > > $'$"fable-library-{!extension}.{!version}"'
00:01:46 v #1414 > >         inl lib_link_path = package_dir </>
00:01:46 v #1415 > > $'$"fable_modules/fable-library-{!extension}.{!version}"'
00:01:46 v #1416 > >
00:01:46 v #1417 > >         lib_link_path |> file_system.link_directory lib_link_target_path
00:01:46 v #1418 > >
00:01:46 v #1419 > >     inl exit_code, dotnet_fable_result =
00:01:46 v #1420 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:01:46 v #1421 > > package_dir runtime = None }
00:01:46 v #1422 > >
00:01:46 v #1423 > >     if exit_code <>. 0 then
00:01:46 v #1424 > >         trace Critical
00:01:46 v #1425 > >             fun () => "spiral_builder.process_typescript"
00:01:46 v #1426 > >             fun () => { exit_code dotnet_fable_result }
00:01:46 v #1427 > >         { extension = Some extension; code = None; code_path = None; output =
00:01:46 v #1428 > > Some dotnet_fable_result }
00:01:46 v #1429 > >     else
00:01:46 v #1430 > >         inl deps =
00:01:46 v #1431 > >             deps
00:01:46 v #1432 > >             |> am'.vec_map fun dep =>
00:01:46 v #1433 > >                 inl dep = dep |> sm'.from_std_string
00:01:46 v #1434 > >                 if dep |> sm'.contains "="
00:01:46 v #1435 > >                 then dep
00:01:46 v #1436 > >                 else $'$"\\"{!dep}\\":\\"*\\""'
00:01:46 v #1437 > >             |> am'.from_vec
00:01:46 v #1438 > >             |> fun x => x : _ i32 _
00:01:46 v #1439 > >             |> seq.of_array'
00:01:46 v #1440 > >             |> sm'.concat ",\n"
00:01:46 v #1441 > >
00:01:46 v #1442 > >         inl package_json_content =
00:01:46 v #1443 > >             $'$"{{"'
00:01:46 v #1444 > >             +. $'$"  \\\"name\\\": \\\"spiral_builder_{!hash_hex}\\\","'
00:01:46 v #1445 > >             +. $'$"  \\\"dependencies\\\": {{"'
00:01:46 v #1446 > >             +. deps
00:01:46 v #1447 > >             +. $'$"  }},"'
00:01:46 v #1448 > >             +. $'$"    \\\"devDependencies\\\": {{"'
00:01:46 v #1449 > >             +. $'$"  }},"'
00:01:46 v #1450 > >             +. $'$"}}"'
00:01:46 v #1451 > >
00:01:46 v #1452 > >         inl workspace_package_json_content =
00:01:46 v #1453 > >             ""
00:01:46 v #1454 > >
00:01:46 v #1455 > >         inl package_json_path = package_dir </> "package.json"
00:01:46 v #1456 > >
00:01:46 v #1457 > >         inl workspace_dir = package_dir </> "../.."
00:01:46 v #1458 > >         inl workspace_package_json_path = workspace_dir </> "package.json"
00:01:46 v #1459 > >
00:01:46 v #1460 > >         package_json_content |> file_system.write_all_text_exists
00:01:46 v #1461 > > package_json_path
00:01:46 v #1462 > >
00:01:46 v #1463 > >         workspace_package_json_content |> file_system.write_all_text_exists
00:01:46 v #1464 > > workspace_package_json_path
00:01:46 v #1465 > >
00:01:46 v #1466 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:01:46 v #1467 > >         trace Debug
00:01:46 v #1468 > >             fun () => "spiral_builder.process_typescript"
00:01:46 v #1469 > >             fun () => { new_code_path }
00:01:46 v #1470 > >         inl new_code = new_code_path |> file_system.read_all_text
00:01:46 v #1471 > >
00:01:46 v #1472 > >         inl main_code_header =
00:01:46 v #1473 > >             "// spiral_builder.process_typescript"
00:01:46 v #1474 > >         inl main_code = "// spiral_builder.process_typescript"
00:01:46 v #1475 > >
00:01:46 v #1476 > >         inl cached = new_code |> sm'.contains main_code_header
00:01:46 v #1477 > >
00:01:46 v #1478 > >         inl new_code =
00:01:46 v #1479 > >             if cached
00:01:46 v #1480 > >             then new_code
00:01:46 v #1481 > >             else
00:01:46 v #1482 > >                 new_code
00:01:46 v #1483 > >                 |> sm'.replace
00:01:46 v #1484 > >                     $'$"\\\"./fable_modules/fable-library-ts.{!version}/"'
00:01:46 v #1485 > >
00:01:46 v #1486 > > $'$"\\\"{!workspace_root}/lib/typescript/fable/fable_modules/fable-library-ts.{!
00:01:46 v #1487 > > version}/"'
00:01:46 v #1488 > >                 |> sm'.replace_regex
00:01:46 v #1489 > >                     "\\s\\sdefaultOf\\(\\);"
00:01:46 v #1490 > >                     " defaultOf::<()>();"
00:01:46 v #1491 > >
00:01:46 v #1492 > >         if not cached then
00:01:46 v #1493 > >             $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:01:46 v #1494 > >             |> file_system.write_all_text_exists new_code_path
00:01:46 v #1495 > >
00:01:46 v #1496 > >         inl command = $'$"bun run \\\"{!new_code_path}\\\""'
00:01:46 v #1497 > >         inl environment_variables =
00:01:46 v #1498 > >             match "~/.bun/bin" |> env.append_path with
00:01:46 v #1499 > >             | Some path => [[ "PATH", path ]]
00:01:46 v #1500 > >             | None => [[]]
00:01:46 v #1501 > >             ++ [[
00:01:46 v #1502 > >                 "TRACE_LEVEL", "Verbose"
00:01:46 v #1503 > >             ]]
00:01:46 v #1504 > >             |> listm'.box
00:01:46 v #1505 > >             |> listm'.to_array'
00:01:46 v #1506 > >         inl exit_code, run_result =
00:01:46 v #1507 > >             runtime.execution_options fun x => { x with
00:01:46 v #1508 > >                 command
00:01:46 v #1509 > >                 environment_variables
00:01:46 v #1510 > >                 working_directory = workspace_root_external |> resultm.box |>
00:01:46 v #1511 > > resultm.ok'
00:01:46 v #1512 > >             }
00:01:46 v #1513 > >             |> runtime.execute_with_options
00:01:46 v #1514 > >
00:01:46 v #1515 > >         inl external_command =
00:01:46 v #1516 > >             inl vars =
00:01:46 v #1517 > >                 a environment_variables
00:01:46 v #1518 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:01:46 v #1519 > >                 |> fun x => x : _ i32 _
00:01:46 v #1520 > >                 |> seq.of_array
00:01:46 v #1521 > >                 |> sm'.concat ";"
00:01:46 v #1522 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:01:46 v #1523 > >         if exit_code = 0 then
00:01:46 v #1524 > >             inl output =
00:01:46 v #1525 > >                 try
00:01:46 v #1526 > >                     fun () =>
00:01:46 v #1527 > >                         run_result
00:01:46 v #1528 > >                         |> sm'.split "\n"
00:01:46 v #1529 > >                         |> fun x => a x : _ i32 _
00:01:46 v #1530 > >                         |> seq.of_array
00:01:46 v #1531 > >                         |> sm'.concat "\n"
00:01:46 v #1532 > >                     fun ex =>
00:01:46 v #1533 > >                         trace Critical
00:01:46 v #1534 > >                             fun () => "spiral_builder.process_typescript
00:01:46 v #1535 > > Exception"
00:01:46 v #1536 > >                             fun () => { ex new_code_path external_command
00:01:46 v #1537 > > run_result }
00:01:46 v #1538 > >                         None
00:01:46 v #1539 > >                 |> optionm'.box
00:01:46 v #1540 > >                 |> optionm'.unwrap
00:01:46 v #1541 > >
00:01:46 v #1542 > >             {
00:01:46 v #1543 > >                 extension = Some extension
00:01:46 v #1544 > >                 code = Some new_code
00:01:46 v #1545 > >                 code_path = Some new_code_path
00:01:46 v #1546 > >                 output = Some output
00:01:46 v #1547 > >             }
00:01:46 v #1548 > >         else
00:01:46 v #1549 > >             trace Critical
00:01:46 v #1550 > >                 fun () => "spiral_builder.process_typescript / error"
00:01:46 v #1551 > >                 fun () => { exit_code run_result new_code_path external_command
00:01:46 v #1552 > > }
00:01:46 v #1553 > >             { extension = Some extension; code = None; code_path = None; output
00:01:46 v #1554 > > = None }
00:01:46 v #1555 > 00:01:46 d #26 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5ec5ed88ede4e4ba8c58eea7beb64570b11cd6b0cd4c1acff740dab80ddff63/main.spi
00:01:47 v #1556 > >
00:01:47 v #1557 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 v #1558 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 v #1559 > > │ ## python                                                                    │
00:01:47 v #1560 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 v #1561 > >
00:01:47 v #1562 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 v #1563 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 v #1564 > > │ ### process_python                                                           │
00:01:47 v #1565 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 v #1566 > >
00:01:47 v #1567 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 v #1568 > > inl process_python { fs_path deps trace_level } =
00:01:47 v #1569 > >     inl extension = "py"
00:01:47 v #1570 > >     inl is_trace = trace_level = Verbose
00:01:47 v #1571 > >     inl _trace (fn : () -> string) =
00:01:47 v #1572 > >         if is_trace
00:01:47 v #1573 > >         then trace Info (fun () => $'$"spiral_builder.process_python / {!fn
00:01:47 v #1574 > > ()}"') id
00:01:47 v #1575 > >         else fn () |> console.write_line
00:01:47 v #1576 > >
00:01:47 v #1577 > >     inl code = fs_path |> file_system.read_all_text
00:01:47 v #1578 > >
00:01:47 v #1579 > >     inl hash_hex = (extension, code) |> sm'.format_debug |> crypto.hash_text
00:01:47 v #1580 > >
00:01:47 v #1581 > >     inl workspace_name = "spiral_builder"
00:01:47 v #1582 > >
00:01:47 v #1583 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:01:47 v #1584 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:01:47 v #1585 > > resultm.unwrap_or_else id
00:01:47 v #1586 > >
00:01:47 v #1587 > >     inl package_dir =
00:01:47 v #1588 > >         get_package_dir { workspace_root name = workspace_name; target = Some
00:01:47 v #1589 > > Python; hash = Some hash_hex }
00:01:47 v #1590 > >
00:01:47 v #1591 > >     inl fsproj_path =
00:01:47 v #1592 > >         persist_code_project {
00:01:47 v #1593 > >             workspace_root
00:01:47 v #1594 > >             package_dir
00:01:47 v #1595 > >             packages = [[ "Fable.Core" ]]
00:01:47 v #1596 > >             modules = [[]]
00:01:47 v #1597 > >             name = workspace_name
00:01:47 v #1598 > >             code
00:01:47 v #1599 > >         }
00:01:47 v #1600 > >
00:01:47 v #1601 > >     inl lib_path = workspace_root </> "lib/python/fable/fable_modules"
00:01:47 v #1602 > >
00:01:47 v #1603 > >     inl lib_link_target_path = lib_path </> $'$"fable_library"'
00:01:47 v #1604 > >     inl lib_link_path = package_dir </> $'$"fable_modules/fable_library"'
00:01:47 v #1605 > >
00:01:47 v #1606 > >     lib_link_path |> file_system.link_directory lib_link_target_path
00:01:47 v #1607 > >
00:01:47 v #1608 > >     inl exit_code, dotnet_fable_result =
00:01:47 v #1609 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:01:47 v #1610 > > package_dir runtime = None }
00:01:47 v #1611 > >
00:01:47 v #1612 > >     if exit_code <>. 0 then
00:01:47 v #1613 > >         trace Critical
00:01:47 v #1614 > >             fun () => "spiral_builder.process_python"
00:01:47 v #1615 > >             fun () => { exit_code dotnet_fable_result }
00:01:47 v #1616 > >         { extension = Some extension; code = None; code_path = None; output =
00:01:47 v #1617 > > Some dotnet_fable_result }
00:01:47 v #1618 > >     else
00:01:47 v #1619 > >         inl deps =
00:01:47 v #1620 > >             deps
00:01:47 v #1621 > >             |> am'.vec_map fun dep =>
00:01:47 v #1622 > >                 inl dep = dep |> sm'.from_std_string
00:01:47 v #1623 > >                 if dep |> sm'.contains "="
00:01:47 v #1624 > >                 then dep
00:01:47 v #1625 > >                 else $'$"\\"{!dep}\\":\\"*\\""'
00:01:47 v #1626 > >             |> am'.from_vec
00:01:47 v #1627 > >             |> fun x => x : _ i32 _
00:01:47 v #1628 > >             |> seq.of_array'
00:01:47 v #1629 > >             |> sm'.concat ",\n"
00:01:47 v #1630 > >
00:01:47 v #1631 > >         inl package_json_content =
00:01:47 v #1632 > >             $'$"{{"'
00:01:47 v #1633 > >             +. $'$"  \\\"name\\\": \\\"spiral_builder_{!hash_hex}\\\","'
00:01:47 v #1634 > >             +. $'$"  \\\"dependencies\\\": {{"'
00:01:47 v #1635 > >             +. deps
00:01:47 v #1636 > >             +. $'$"  }},"'
00:01:47 v #1637 > >             +. $'$"    \\\"devDependencies\\\": {{"'
00:01:47 v #1638 > >             +. $'$"  }},"'
00:01:47 v #1639 > >             +. $'$"}}"'
00:01:47 v #1640 > >
00:01:47 v #1641 > >         inl workspace_package_json_content =
00:01:47 v #1642 > >             ""
00:01:47 v #1643 > >
00:01:47 v #1644 > >         inl package_json_path = package_dir </> "package.json"
00:01:47 v #1645 > >
00:01:47 v #1646 > >         inl workspace_dir = package_dir </> "../.."
00:01:47 v #1647 > >         inl workspace_package_json_path = workspace_dir </> "package.json"
00:01:47 v #1648 > >
00:01:47 v #1649 > >         package_json_content |> file_system.write_all_text_exists
00:01:47 v #1650 > > package_json_path
00:01:47 v #1651 > >
00:01:47 v #1652 > >         workspace_package_json_content |> file_system.write_all_text_exists
00:01:47 v #1653 > > workspace_package_json_path
00:01:47 v #1654 > >
00:01:47 v #1655 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:01:47 v #1656 > >         trace Debug
00:01:47 v #1657 > >             fun () => "spiral_builder.process_python"
00:01:47 v #1658 > >             fun () => { new_code_path }
00:01:47 v #1659 > >         inl new_code = new_code_path |> file_system.read_all_text
00:01:47 v #1660 > >
00:01:47 v #1661 > >         inl main_code_header =
00:01:47 v #1662 > >             "# spiral_builder.process_python"
00:01:47 v #1663 > >         inl main_code = "# spiral_builder.process_python"
00:01:47 v #1664 > >
00:01:47 v #1665 > >         inl cached = new_code |> sm'.contains main_code_header
00:01:47 v #1666 > >
00:01:47 v #1667 > >         inl new_code =
00:01:47 v #1668 > >             if cached
00:01:47 v #1669 > >             then new_code
00:01:47 v #1670 > >             else
00:01:47 v #1671 > >                 new_code
00:01:47 v #1672 > >                 |> sm'.replace
00:01:47 v #1673 > >                     ("),)" +. !\($'"\\\";\\\".into()"'))
00:01:47 v #1674 > >                     "));"
00:01:47 v #1675 > >                 |> sm'.replace_regex
00:01:47 v #1676 > >                     "\\s\\sdefaultOf\\(\\);"
00:01:47 v #1677 > >                     " defaultOf::<()>();"
00:01:47 v #1678 > >
00:01:47 v #1679 > >         if not cached
00:01:47 v #1680 > >         then
00:01:47 v #1681 > >             $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:01:47 v #1682 > >             |> file_system.write_all_text_exists new_code_path
00:01:47 v #1683 > >
00:01:47 v #1684 > >         inl command = $'$"python \\\"{!new_code_path}\\\""'
00:01:47 v #1685 > >         inl environment_variables =
00:01:47 v #1686 > >             ;[[
00:01:47 v #1687 > >                 "TRACE_LEVEL", "Verbose"
00:01:47 v #1688 > >             ]]
00:01:47 v #1689 > >         inl exit_code, run_result =
00:01:47 v #1690 > >             runtime.execution_options fun x => { x with
00:01:47 v #1691 > >                 command
00:01:47 v #1692 > >                 environment_variables
00:01:47 v #1693 > >                 working_directory = workspace_root_external |> resultm.box |>
00:01:47 v #1694 > > resultm.ok'
00:01:47 v #1695 > >             }
00:01:47 v #1696 > >             |> runtime.execute_with_options
00:01:47 v #1697 > >
00:01:47 v #1698 > >         inl external_command =
00:01:47 v #1699 > >             inl vars =
00:01:47 v #1700 > >                 a environment_variables
00:01:47 v #1701 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:01:47 v #1702 > >                 |> fun x => x : _ i32 _
00:01:47 v #1703 > >                 |> seq.of_array
00:01:47 v #1704 > >                 |> sm'.concat ";"
00:01:47 v #1705 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:01:47 v #1706 > >         if exit_code = 0 then
00:01:47 v #1707 > >             inl output =
00:01:47 v #1708 > >                 try
00:01:47 v #1709 > >                     fun () =>
00:01:47 v #1710 > >                         run_result
00:01:47 v #1711 > >                         |> sm'.split "\n"
00:01:47 v #1712 > >                         |> fun x => a x : _ i32 _
00:01:47 v #1713 > >                         |> seq.of_array
00:01:47 v #1714 > >                         |> sm'.concat "\n"
00:01:47 v #1715 > >                     fun ex =>
00:01:47 v #1716 > >                         trace Critical
00:01:47 v #1717 > >                             fun () => "spiral_builder.process_python
00:01:47 v #1718 > > Exception"
00:01:47 v #1719 > >                             fun () => { ex new_code_path external_command
00:01:47 v #1720 > > run_result }
00:01:47 v #1721 > >                         None
00:01:47 v #1722 > >                 |> optionm'.box
00:01:47 v #1723 > >                 |> optionm'.unwrap
00:01:47 v #1724 > >
00:01:47 v #1725 > >             {
00:01:47 v #1726 > >                 extension = Some extension
00:01:47 v #1727 > >                 code = Some new_code
00:01:47 v #1728 > >                 code_path = Some new_code_path
00:01:47 v #1729 > >                 output = Some output
00:01:47 v #1730 > >             }
00:01:47 v #1731 > >         else
00:01:47 v #1732 > >             trace Critical
00:01:47 v #1733 > >                 fun () => "spiral_builder.process_python / error"
00:01:47 v #1734 > >                 fun () => { exit_code run_result new_code_path external_command
00:01:47 v #1735 > > }
00:01:47 v #1736 > >             { extension = Some extension; code = None; code_path = None; output
00:01:47 v #1737 > > = None }
00:01:47 v #1738 > 00:01:46 d #27 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e11cbd66322903054fa2c95010f780c43ece09ad1888f7e7c760243a2b5a130/main.spi
00:01:47 v #1739 > >
00:01:47 v #1740 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 v #1741 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 v #1742 > > │ ## cuda                                                                      │
00:01:47 v #1743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 v #1744 > >
00:01:47 v #1745 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 v #1746 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 v #1747 > > │ ### process_cuda                                                             │
00:01:47 v #1748 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 v #1749 > >
00:01:47 v #1750 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 v #1751 > > inl process_cuda { py_path env deps } =
00:01:47 v #1752 > >     inl extension = "py"
00:01:47 v #1753 > >
00:01:47 v #1754 > >     inl new_code_path = py_path
00:01:47 v #1755 > >     inl new_code = new_code_path |> file_system.read_all_text
00:01:47 v #1756 > >
00:01:47 v #1757 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:01:47 v #1758 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:01:47 v #1759 > > resultm.unwrap_or_else id
00:01:47 v #1760 > >
00:01:47 v #1761 > >     inl package_dir = new_code_path |> file_system.get_directory_name
00:01:47 v #1762 > >
00:01:47 v #1763 > >     inl manifest_path =
00:01:47 v #1764 > >         match env with
00:01:47 v #1765 > >         | Pip => package_dir </> "requirements.txt"
00:01:47 v #1766 > >         | Poetry => package_dir </> "pyproject.toml"
00:01:47 v #1767 > >
00:01:47 v #1768 > >     inl deps =
00:01:47 v #1769 > >         deps
00:01:47 v #1770 > >         |> am'.vec_map fun dep =>
00:01:47 v #1771 > >             inl dep = dep |> sm'.from_std_string
00:01:47 v #1772 > >             if dep |> sm'.contains "="
00:01:47 v #1773 > >             then dep
00:01:47 v #1774 > >             elif dep |> sm'.ends_with "]]"
00:01:47 v #1775 > >             then dep |> sm'.replace "[[" $'$"={{version=\'*\',features=[["' |>
00:01:47 v #1776 > > fun x => $'$"{!x}}}"'
00:01:47 v #1777 > >             else $'$"{!dep}=\'*\'"'
00:01:47 v #1778 > >         |> am'.from_vec
00:01:47 v #1779 > >         |> fun x => x : _ i32 _
00:01:47 v #1780 > >         |> seq.of_array'
00:01:47 v #1781 > >         |> sm'.concat "\n"
00:01:47 v #1782 > >
00:01:47 v #1783 > >     inl exit_code, run_result =
00:01:47 v #1784 > >         if deps = ""
00:01:47 v #1785 > >         then 0, ""
00:01:47 v #1786 > >         else
00:01:47 v #1787 > >             inl manifest =
00:01:47 v #1788 > >                 match env with
00:01:47 v #1789 > >                 | Pip =>
00:01:47 v #1790 > >                     deps
00:01:47 v #1791 > >                 | Poetry =>
00:01:47 v #1792 > >                     $'$"[[tool.poetry]]"'
00:01:47 v #1793 > >                     +#. $'$"name = \\\"test\\\""'
00:01:47 v #1794 > >                     +#. $'$"version = \\\"0.0.1\\\""'
00:01:47 v #1795 > >                     +#. $'$"description = \\\"\\\""'
00:01:47 v #1796 > >                     +#. $'$"authors = [[]]"'
00:01:47 v #1797 > >                     +#. $'$""'
00:01:47 v #1798 > >                     +#. $'$"[[tool.poetry.dependencies]]"'
00:01:47 v #1799 > >                     +#. $'$"python=\\\"~3.12\\\""'
00:01:47 v #1800 > >                     +#. $'$"{!deps}"'
00:01:47 v #1801 > >                     +#. $'$""'
00:01:47 v #1802 > >                     +#. $'$"[[build-system]]"'
00:01:47 v #1803 > >                     +#. $'$"requires = [[\\\"poetry-core\\\"]]"'
00:01:47 v #1804 > >                     +#. $'$"build-backend = \\\"poetry.core.masonry.api\\\""'
00:01:47 v #1805 > >
00:01:47 v #1806 > >             manifest |> file_system.write_all_text_exists manifest_path
00:01:47 v #1807 > >
00:01:47 v #1808 > >             runtime.execution_options fun x => { x with
00:01:47 v #1809 > >                 command =
00:01:47 v #1810 > >                     match env with
00:01:47 v #1811 > >                     | Pip => $'$"pip install -r requirements.txt"'
00:01:47 v #1812 > >                     | Poetry => $'$"poetry install"'
00:01:47 v #1813 > >                 working_directory = package_dir |> optionm'.some'
00:01:47 v #1814 > >             }
00:01:47 v #1815 > >             |> runtime.execute_with_options
00:01:47 v #1816 > >
00:01:47 v #1817 > >     if exit_code <>. 0 then
00:01:47 v #1818 > >         trace Critical
00:01:47 v #1819 > >             fun () => "spiral_builder.process_cuda / env install error"
00:01:47 v #1820 > >             fun () => { env exit_code run_result new_code_path }
00:01:47 v #1821 > >         { extension = Some extension; code = None; code_path = None; output =
00:01:47 v #1822 > > None }
00:01:47 v #1823 > >     else
00:01:47 v #1824 > >         inl command =
00:01:47 v #1825 > >             match env with
00:01:47 v #1826 > >             | Pip => $'$"python \\\"{!new_code_path}\\\""'
00:01:47 v #1827 > >             | Poetry => $'$"poetry run python \\\"{!new_code_path}\\\""'
00:01:47 v #1828 > >         inl environment_variables =
00:01:47 v #1829 > >             ;[[
00:01:47 v #1830 > >                 "TRACE_LEVEL", "Verbose"
00:01:47 v #1831 > >             ]]
00:01:47 v #1832 > >         inl exit_code, run_result =
00:01:47 v #1833 > >             runtime.execution_options fun x => { x with
00:01:47 v #1834 > >                 command
00:01:47 v #1835 > >                 environment_variables
00:01:47 v #1836 > >                 working_directory = package_dir |> optionm'.some'
00:01:47 v #1837 > >             }
00:01:47 v #1838 > >             |> runtime.execute_with_options
00:01:47 v #1839 > >
00:01:47 v #1840 > >         inl external_command =
00:01:47 v #1841 > >             inl vars =
00:01:47 v #1842 > >                 a environment_variables
00:01:47 v #1843 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:01:47 v #1844 > >                 |> fun x => x : _ i32 _
00:01:47 v #1845 > >                 |> seq.of_array
00:01:47 v #1846 > >                 |> sm'.concat ";"
00:01:47 v #1847 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:01:47 v #1848 > >         if exit_code = 0
00:01:47 v #1849 > >             || (run_result |> sm'.contains
00:01:47 v #1850 > > "cupy_backends.cuda.api.runtime.CUDARuntimeError: cudaErrorInsufficientDriver")
00:01:47 v #1851 > > then
00:01:47 v #1852 > >             inl output =
00:01:47 v #1853 > >                 try
00:01:47 v #1854 > >                     fun () =>
00:01:47 v #1855 > >                         run_result
00:01:47 v #1856 > >                         |> sm'.split "\n"
00:01:47 v #1857 > >                         |> fun x => a x : _ i32 _
00:01:47 v #1858 > >                         |> seq.of_array
00:01:47 v #1859 > >                         |> sm'.concat "\n"
00:01:47 v #1860 > >                     fun ex =>
00:01:47 v #1861 > >                         trace Critical
00:01:47 v #1862 > >                             fun () => "spiral_builder.process_cuda / Exception"
00:01:47 v #1863 > >                             fun () => { ex run_result new_code_path
00:01:47 v #1864 > > external_command }
00:01:47 v #1865 > >                         None
00:01:47 v #1866 > >                 |> optionm'.box
00:01:47 v #1867 > >                 |> optionm'.unwrap
00:01:47 v #1868 > >
00:01:47 v #1869 > >             {
00:01:47 v #1870 > >                 extension = Some extension
00:01:47 v #1871 > >                 code = Some new_code
00:01:47 v #1872 > >                 code_path = Some new_code_path
00:01:47 v #1873 > >                 output = Some output
00:01:47 v #1874 > >             }
00:01:47 v #1875 > >         else
00:01:47 v #1876 > >             trace Critical
00:01:47 v #1877 > >                 fun () => "spiral_builder.process_cuda / error"
00:01:47 v #1878 > >                 fun () => { exit_code run_result new_code_path external_command
00:01:47 v #1879 > > }
00:01:47 v #1880 > >             { extension = Some extension; code = None; code_path = None; output
00:01:47 v #1881 > > = None }
00:01:47 v #1882 > 00:01:47 d #28 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d0169388671669d0d00521fb6616d64ef3a8a09c39560980d1e59bc98dd69fc/main.spi
00:01:48 v #1883 > >
00:01:48 v #1884 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 v #1885 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 v #1886 > > │ ## fsharp                                                                    │
00:01:48 v #1887 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 v #1888 > >
00:01:48 v #1889 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 v #1890 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 v #1891 > > │ ### process_fsharp                                                           │
00:01:48 v #1892 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 v #1893 > >
00:01:48 v #1894 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 v #1895 > > inl process_fsharp { spi_path } =
00:01:48 v #1896 > >     inl extension = "fsx"
00:01:48 v #1897 > >
00:01:48 v #1898 > >     inl new_code_path = spi_path
00:01:48 v #1899 > >     inl new_code = new_code_path |> file_system.read_all_text
00:01:48 v #1900 > >
00:01:48 v #1901 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:01:48 v #1902 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:01:48 v #1903 > > resultm.unwrap_or_else id
00:01:48 v #1904 > >
00:01:48 v #1905 > >     inl supervisor_path = workspace_root </>
00:01:48 v #1906 > > $"apps/spiral/dist/Supervisor!(platform.get_executable_suffix ())"
00:01:48 v #1907 > >     inl code_dir = new_code_path |> file_system.get_directory_name
00:01:48 v #1908 > >     inl file_name = new_code_path |> file_system.get_file_name_without_extension
00:01:48 v #1909 > >     inl output_path = code_dir </> $'$"{!file_name}.{!extension}"'
00:01:48 v #1910 > >     inl command = $'$"{!supervisor_path} --build-file \\\"{!new_code_path}\\\"
00:01:48 v #1911 > > \\\"{!output_path}\\\""'
00:01:48 v #1912 > >     inl environment_variables =
00:01:48 v #1913 > >         ;[[
00:01:48 v #1914 > >             "TRACE_LEVEL", "Verbose"
00:01:48 v #1915 > >         ]]
00:01:48 v #1916 > >     inl exit_code, run_result =
00:01:48 v #1917 > >         runtime.execution_options fun x => { x with
00:01:48 v #1918 > >             command
00:01:48 v #1919 > >             environment_variables
00:01:48 v #1920 > >             working_directory = workspace_root_external |> resultm.box |>
00:01:48 v #1921 > > resultm.ok'
00:01:48 v #1922 > >         }
00:01:48 v #1923 > >         |> runtime.execute_with_options
00:01:48 v #1924 > >
00:01:48 v #1925 > >     inl external_command =
00:01:48 v #1926 > >         inl vars =
00:01:48 v #1927 > >             a environment_variables
00:01:48 v #1928 > >             |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:01:48 v #1929 > >             |> fun x => x : _ i32 _
00:01:48 v #1930 > >             |> seq.of_array
00:01:48 v #1931 > >             |> sm'.concat ";"
00:01:48 v #1932 > >         $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:01:48 v #1933 > >     if exit_code = 0 then
00:01:48 v #1934 > >         inl output =
00:01:48 v #1935 > >             try
00:01:48 v #1936 > >                 fun () =>
00:01:48 v #1937 > >                     run_result
00:01:48 v #1938 > >                     |> sm'.split "\n"
00:01:48 v #1939 > >                     |> fun x => a x : _ i32 _
00:01:48 v #1940 > >                     |> seq.of_array
00:01:48 v #1941 > >                     |> sm'.concat "\n"
00:01:48 v #1942 > >                 fun ex =>
00:01:48 v #1943 > >                     trace Critical
00:01:48 v #1944 > >                         fun () => "spiral_builder.process_fsharp / Exception"
00:01:48 v #1945 > >                         fun () => { ex run_result new_code_path external_command
00:01:48 v #1946 > > }
00:01:48 v #1947 > >                     None
00:01:48 v #1948 > >             |> optionm'.box
00:01:48 v #1949 > >             |> optionm'.unwrap
00:01:48 v #1950 > >
00:01:48 v #1951 > >         {
00:01:48 v #1952 > >             extension = Some extension
00:01:48 v #1953 > >             code = Some new_code
00:01:48 v #1954 > >             code_path = Some new_code_path
00:01:48 v #1955 > >             output = Some output
00:01:48 v #1956 > >         }
00:01:48 v #1957 > >     else
00:01:48 v #1958 > >         trace Critical
00:01:48 v #1959 > >             fun () => "spiral_builder.process_fsharp / error"
00:01:48 v #1960 > >             fun () => { exit_code run_result new_code_path external_command }
00:01:48 v #1961 > >         { extension = Some extension; code = None; code_path = None; output =
00:01:48 v #1962 > > None }
00:01:48 v #1963 > 00:01:47 d #29 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b91de7d270ab99bd65218cb753f35c4f0b4eb5969b529dee7f13acab43c311c1/main.spi
00:01:48 v #1964 > >
00:01:48 v #1965 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 v #1966 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 v #1967 > > │ ## run                                                                       │
00:01:48 v #1968 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 v #1969 > >
00:01:48 v #1970 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 v #1971 > > let rec run trace_level (matches : runtime.arg_matches) : async.future_pin
00:01:48 v #1972 > > (resultm.result' string string) =
00:01:48 v #1973 > >     fun () =>
00:01:48 v #1974 > >         match matches |> runtime.matches_subcommand |> optionm'.unbox with
00:01:48 v #1975 > >         | Some (subcommand, arg_matches)
00:01:48 v #1976 > >                 when (subcommand |> sm'.from_std_string) = (get_args () .cuda |>
00:01:48 v #1977 > > fst) =>
00:01:48 v #1978 > >
00:01:48 v #1979 > >             inl py_path =
00:01:48 v #1980 > >                 arg_matches
00:01:48 v #1981 > >                 |> runtime.matches_get_one ((get_args () .cuda |> snd).py_path
00:01:48 v #1982 > > |> fst)
00:01:48 v #1983 > >                 |> optionm'.unbox
00:01:48 v #1984 > >                 |> optionm.value
00:01:48 v #1985 > >                 |> sm'.from_std_string
00:01:48 v #1986 > >
00:01:48 v #1987 > >             inl env =
00:01:48 v #1988 > >                 arg_matches
00:01:48 v #1989 > >                 |> runtime.matches_get_one ((get_args () .cuda |> snd).env |>
00:01:48 v #1990 > > fst)
00:01:48 v #1991 > >                 |> optionm'.unbox
00:01:48 v #1992 > >                 |> optionm.map (
00:01:48 v #1993 > >                     sm'.from_std_string
00:01:48 v #1994 > >                     >> reflection.union_try_pick
00:01:48 v #1995 > >                 )
00:01:48 v #1996 > >                 |> optionm'.flatten
00:01:48 v #1997 > >                 |> optionm'.default_value Pip
00:01:48 v #1998 > >
00:01:48 v #1999 > >             inl deps : am'.vec sm'.std_string =
00:01:48 v #2000 > >                 arg_matches
00:01:48 v #2001 > >                 |> runtime.matches_get_many ((get_args () .cuda |> snd).deps |>
00:01:48 v #2002 > > fst)
00:01:48 v #2003 > >                 |> optionm'.unbox
00:01:48 v #2004 > >                 |> optionm'.default_value (;[[]] |> am'.to_vec)
00:01:48 v #2005 > >
00:01:48 v #2006 > >             inl command_result =
00:01:48 v #2007 > >                 process_cuda { py_path env deps }
00:01:48 v #2008 > >                 |> fun { extension code output } =>
00:01:48 v #2009 > >                     ;[[
00:01:48 v #2010 > >                         "extension", extension |> optionm'.default_value ""
00:01:48 v #2011 > >                         "code", code |> optionm'.default_value ""
00:01:48 v #2012 > >                         "output", output |> optionm'.default_value ""
00:01:48 v #2013 > >                     ]]
00:01:48 v #2014 > >
00:01:48 v #2015 > >             ;[[
00:01:48 v #2016 > >                 "command_result",
00:01:48 v #2017 > >                 command_result
00:01:48 v #2018 > >                 |> am'.to_vec
00:01:48 v #2019 > >                 |> am'.vec_map' fun k, v =>
00:01:48 v #2020 > >                     new_pair (sm'.to_std_string k) (sm'.to_std_string v)
00:01:48 v #2021 > >                 |> mapm.b_tree_map_from_vec_pairs
00:01:48 v #2022 > >                 |> sm'.serialize
00:01:48 v #2023 > >                 |> resultm.unwrap'
00:01:48 v #2024 > >                 |> sm'.from_std_string
00:01:48 v #2025 > >             ]]
00:01:48 v #2026 > >
00:01:48 v #2027 > >         | Some (subcommand, arg_matches)
00:01:48 v #2028 > >                 when (subcommand |> sm'.from_std_string) = (get_args () .fable
00:01:48 v #2029 > > |> fst) =>
00:01:48 v #2030 > >
00:01:48 v #2031 > >             inl fs_path =
00:01:48 v #2032 > >                 arg_matches
00:01:48 v #2033 > >                 |> runtime.matches_get_one ((get_args () .fable |> snd).fs_path
00:01:48 v #2034 > > |> fst)
00:01:48 v #2035 > >                 |> optionm'.unbox
00:01:48 v #2036 > >                 |> optionm.value
00:01:48 v #2037 > >                 |> sm'.from_std_string
00:01:48 v #2038 > >
00:01:48 v #2039 > >             inl command =
00:01:48 v #2040 > >                 arg_matches
00:01:48 v #2041 > >                 |> runtime.matches_get_one ((get_args () .fable |> snd).command
00:01:48 v #2042 > > |> fst)
00:01:48 v #2043 > >                 |> optionm'.unbox
00:01:48 v #2044 > >                 |> optionm.map sm'.from_std_string
00:01:48 v #2045 > >
00:01:48 v #2046 > >             inl command_result =
00:01:48 v #2047 > >                 match command with
00:01:48 v #2048 > >                 | Some command =>
00:01:48 v #2049 > >                     get_command ()
00:01:48 v #2050 > >                     |> runtime.command_get_matches_from (
00:01:48 v #2051 > >                         $'$"_ {!command} --fs-path \\\"{!fs_path}\\\""' |>
00:01:48 v #2052 > > runtime.split_args |> resultm.get
00:01:48 v #2053 > >                     )
00:01:48 v #2054 > >                     |> run trace_level
00:01:48 v #2055 > >                     |> async.await
00:01:48 v #2056 > >                     |> resultm.unwrap'
00:01:48 v #2057 > >                 | None => "{}"
00:01:48 v #2058 > >
00:01:48 v #2059 > >             ;[[
00:01:48 v #2060 > >                 "command_result",
00:01:48 v #2061 > >                 command_result
00:01:48 v #2062 > >             ]]
00:01:48 v #2063 > >
00:01:48 v #2064 > >         | Some (subcommand, arg_matches)
00:01:48 v #2065 > >             when (subcommand |> sm'.from_std_string) = (get_args () .dib |> fst)
00:01:48 v #2066 > > =>
00:01:48 v #2067 > >
00:01:48 v #2068 > >             inl path =
00:01:48 v #2069 > >                 arg_matches
00:01:48 v #2070 > >                 |> runtime.matches_get_one ((get_args () .dib |> snd).path |>
00:01:48 v #2071 > > fst)
00:01:48 v #2072 > >                 |> optionm'.map'' (
00:01:48 v #2073 > >                     sm'.from_std_string
00:01:48 v #2074 > >                     >> file_system.absolute_path
00:01:48 v #2075 > >                 )
00:01:48 v #2076 > >                 |> optionm'.unwrap
00:01:48 v #2077 > >
00:01:48 v #2078 > >             inl retries =
00:01:48 v #2079 > >                 arg_matches
00:01:48 v #2080 > >                 |> runtime.matches_get_one ((get_args () .dib |> snd).retries |>
00:01:48 v #2081 > > fst)
00:01:48 v #2082 > >                 |> optionm'.default_value' 1u8
00:01:48 v #2083 > >
00:01:48 v #2084 > >             inl working_directory =
00:01:48 v #2085 > >                 arg_matches
00:01:48 v #2086 > >                 |> runtime.matches_get_one ((get_args () .dib |>
00:01:48 v #2087 > > snd).working_directory |> fst)
00:01:48 v #2088 > >                 |> optionm'.unbox
00:01:48 v #2089 > >
00:01:48 v #2090 > >             process_dib { path retries working_directory }
00:01:48 v #2091 > >
00:01:48 v #2092 > >         | matches =>
00:01:48 v #2093 > >             match matches with
00:01:48 v #2094 > >             | Some (subcommand, arg_matches)
00:01:48 v #2095 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:01:48 v #2096 > > .rust |> fst) =>
00:01:48 v #2097 > >
00:01:48 v #2098 > >                 inl fs_path =
00:01:48 v #2099 > >                     arg_matches
00:01:48 v #2100 > >                     |> runtime.matches_get_one ((get_args () .rust |>
00:01:48 v #2101 > > snd).fs_path |> fst)
00:01:48 v #2102 > >                     |> optionm'.unbox
00:01:48 v #2103 > >                     |> optionm.value
00:01:48 v #2104 > >                     |> sm'.from_std_string
00:01:48 v #2105 > >
00:01:48 v #2106 > >                 inl deps : am'.vec sm'.std_string =
00:01:48 v #2107 > >                     arg_matches
00:01:48 v #2108 > >                     |> runtime.matches_get_many ((get_args () .rust |> snd).deps
00:01:48 v #2109 > > |> fst)
00:01:48 v #2110 > >                     |> optionm'.unbox
00:01:48 v #2111 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:01:48 v #2112 > >
00:01:48 v #2113 > >                 inl cleanup =
00:01:48 v #2114 > >                     arg_matches
00:01:48 v #2115 > >                     |> runtime.matches_get_flag ((get_args () .rust |>
00:01:48 v #2116 > > snd).cleanup |> fst)
00:01:48 v #2117 > >
00:01:48 v #2118 > >                 inl wasm =
00:01:48 v #2119 > >                     arg_matches
00:01:48 v #2120 > >                     |> runtime.matches_get_one ((get_args () .rust |> snd).wasm
00:01:48 v #2121 > > |> fst)
00:01:48 v #2122 > >                     |> optionm'.unbox
00:01:48 v #2123 > >                     |> optionm.map sm'.from_std_string
00:01:48 v #2124 > >
00:01:48 v #2125 > >                 inl contract =
00:01:48 v #2126 > >                     arg_matches
00:01:48 v #2127 > >                     |> runtime.matches_get_one ((get_args () .rust |>
00:01:48 v #2128 > > snd).contract |> fst)
00:01:48 v #2129 > >                     |> optionm'.unbox
00:01:48 v #2130 > >                     |> optionm.map sm'.from_std_string
00:01:48 v #2131 > >
00:01:48 v #2132 > >                 inl runtime =
00:01:48 v #2133 > >                     match wasm, contract with
00:01:48 v #2134 > >                     | Some wasm, _ => Wasm wasm |> Some
00:01:48 v #2135 > >                     | _, Some contract => Contract contract |> Some
00:01:48 v #2136 > >                     | _ => None
00:01:48 v #2137 > >
00:01:48 v #2138 > >                 process_rust { fs_path deps trace_level runtime cleanup }
00:01:48 v #2139 > >
00:01:48 v #2140 > >             | Some (subcommand, arg_matches)
00:01:48 v #2141 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:01:48 v #2142 > > .typescript |> fst) =>
00:01:48 v #2143 > >
00:01:48 v #2144 > >                 inl fs_path =
00:01:48 v #2145 > >                     arg_matches
00:01:48 v #2146 > >                     |> runtime.matches_get_one ((get_args () .typescript |>
00:01:48 v #2147 > > snd).fs_path |> fst)
00:01:48 v #2148 > >                     |> optionm'.unbox
00:01:48 v #2149 > >                     |> optionm.value
00:01:48 v #2150 > >                     |> sm'.from_std_string
00:01:48 v #2151 > >
00:01:48 v #2152 > >                 inl deps : am'.vec sm'.std_string =
00:01:48 v #2153 > >                     arg_matches
00:01:48 v #2154 > >                     |> runtime.matches_get_many ((get_args () .typescript |>
00:01:48 v #2155 > > snd).deps |> fst)
00:01:48 v #2156 > >                     |> optionm'.unbox
00:01:48 v #2157 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:01:48 v #2158 > >
00:01:48 v #2159 > >                 process_typescript { fs_path deps trace_level }
00:01:48 v #2160 > >
00:01:48 v #2161 > >             | Some (subcommand, arg_matches)
00:01:48 v #2162 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:01:48 v #2163 > > .python |> fst) =>
00:01:48 v #2164 > >                 inl fs_path =
00:01:48 v #2165 > >                     arg_matches
00:01:48 v #2166 > >                     |> runtime.matches_get_one ((get_args () .python |>
00:01:48 v #2167 > > snd).fs_path |> fst)
00:01:48 v #2168 > >                     |> optionm'.unbox
00:01:48 v #2169 > >                     |> optionm.value
00:01:48 v #2170 > >                     |> sm'.from_std_string
00:01:48 v #2171 > >
00:01:48 v #2172 > >                 inl deps : am'.vec sm'.std_string =
00:01:48 v #2173 > >                     arg_matches
00:01:48 v #2174 > >                     |> runtime.matches_get_many ((get_args () .python |>
00:01:48 v #2175 > > snd).deps |> fst)
00:01:48 v #2176 > >                     |> optionm'.unbox
00:01:48 v #2177 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:01:48 v #2178 > >
00:01:48 v #2179 > >                 process_python { fs_path deps trace_level }
00:01:48 v #2180 > >
00:01:48 v #2181 > >             | Some (subcommand, arg_matches) =>
00:01:48 v #2182 > >                 trace Debug
00:01:48 v #2183 > >                     fun () => "spiral_builder.run / invalid subcommand"
00:01:48 v #2184 > >                     fun () => { subcommand arg_matches }
00:01:48 v #2185 > >
00:01:48 v #2186 > >                 { extension = None; code = None; code_path = None; output = None
00:01:48 v #2187 > > }
00:01:48 v #2188 > >             | _ =>
00:01:48 v #2189 > >                 { extension = None; code = None; code_path = None; output = None
00:01:48 v #2190 > > }
00:01:48 v #2191 > >             |> fun { extension code code_path output } =>
00:01:48 v #2192 > >                 ;[[
00:01:48 v #2193 > >                     "extension", extension |> optionm'.default_value ""
00:01:48 v #2194 > >                     "code", code |> optionm'.default_value ""
00:01:48 v #2195 > >                     "code_path", code_path |> optionm'.default_value ""
00:01:48 v #2196 > >                     "output", output |> optionm'.default_value ""
00:01:48 v #2197 > >                 ]]
00:01:48 v #2198 > >         |> am'.to_vec
00:01:48 v #2199 > >         |> am'.vec_map' fun k, v =>
00:01:48 v #2200 > >             new_pair (sm'.to_std_string k) (sm'.to_std_string v)
00:01:48 v #2201 > >         |> mapm.b_tree_map_from_vec_pairs
00:01:48 v #2202 > >         |> sm'.serialize
00:01:48 v #2203 > >         |> resultm.map_error' (sm'.format' >> sm'.from_std_string)
00:01:48 v #2204 > >         |> resultm.map' sm'.from_std_string
00:01:48 v #2205 > >     |> async.new_future_move
00:01:49 v #2206 > 00:01:48 d #30 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f6dea5f2f1d5a2d627175418d5d74b85985c5755e60e44852e9dde9403a57cdb/main.spi
00:01:49 v #2207 > >
00:01:49 v #2208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:49 v #2209 > > //// test
00:01:49 v #2210 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:01:49 v #2211 > > rayon regex serde_json sha2
00:01:49 v #2212 > >
00:01:49 v #2213 > > inl file_name = "main.fs"
00:01:49 v #2214 > > inl code = "let method0 () =\n    3 - 6 |> System.Console.WriteLine\nmethod0
00:01:49 v #2215 > > ()\n"
00:01:49 v #2216 > >
00:01:49 v #2217 > > inl temp_dir, disposable =
00:01:49 v #2218 > >     (file_name, code)
00:01:49 v #2219 > >     |> sm'.format_debug
00:01:49 v #2220 > >     |> crypto.hash_text
00:01:49 v #2221 > >     |> file_system.create_temp_dir'
00:01:49 v #2222 > > inl fs_path = temp_dir </> file_name
00:01:49 v #2223 > >
00:01:49 v #2224 > > code |> file_system.write_all_text fs_path
00:01:49 v #2225 > >
00:01:49 v #2226 > > get_command ()
00:01:49 v #2227 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:01:49 v #2228 > > \\\"rust -d regex=\'*\'\\\""' |> runtime.split_args |> resultm.get)
00:01:49 v #2229 > > |> run Verbose
00:01:49 v #2230 > > |> async.block_on_futures
00:01:49 v #2231 > > |> resultm.unwrap'
00:01:49 v #2232 > > |> sm'.deserialize
00:01:49 v #2233 > > |> resultm.unwrap'
00:01:49 v #2234 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:01:49 v #2235 > > |> optionm'.unwrap
00:01:49 v #2236 > > |> sm'.from_std_string
00:01:49 v #2237 > > |> sm'.deserialize
00:01:49 v #2238 > > |> resultm.unwrap'
00:01:49 v #2239 > > |> fun result =>
00:01:49 v #2240 > >     result
00:01:49 v #2241 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:01:49 v #2242 > >     |> optionm'.unwrap
00:01:49 v #2243 > >     |> sm'.from_std_string
00:01:49 v #2244 > >     |> _assert_eq "rs"
00:01:49 v #2245 > >     result
00:01:49 v #2246 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:01:49 v #2247 > >     |> optionm'.unwrap
00:01:49 v #2248 > >     |> sm'.from_std_string
00:01:49 v #2249 > >     |> _assert_eq "-3"
00:01:49 v #2250 > >
00:01:49 v #2251 > > disposable |> use |> ignore
00:01:49 v #2252 > 00:01:48 d #31 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/846661931c881adc7d0927b45f0f6ce126d5b454964220885901e9261f21de92/main.spi
00:02:45 v #2253 > >
00:02:45 v #2254 > > ╭─[ 55.78s - return value ]────────────────────────────────────────────────────╮
00:02:45 v #2255 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:02:45 v #2256 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_ff0f270b │
00:02:45 v #2257 > > │ a966d444244081ee48b86c0c2545905fe906f185c63f359b6a198e7c\84b99b0b-d6d4-d4b8- │
00:02:45 v #2258 > > │ 7f79-3c480ce421da }                                                          │
00:02:45 v #2259 > > │ 00:00:00 v #2 file_system.create_dir / { dir =                         │
00:02:45 v #2260 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Rust\34ab │
00:02:45 v #2261 > > │ 53ebc795bc28e69c93f16f6227b083afc493df0b85441a97d0332fae0026 }               │
00:02:45 v #2262 > > │ 00:00:00 d #3 runtime.execute_with_options / { file_name = dotnet;     │
00:02:45 v #2263 > > │ arguments = ["fable",                                                        │
00:02:45 v #2264 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Rust/34a │
00:02:45 v #2265 > > │ b53ebc795bc28e69c93f16f6227b083afc493df0b85441a97d0332fae0026/spiral_builder │
00:02:45 v #2266 > > │ .fsproj", "--optimize", "--lang", "rs", "--extension", ".rs", "--outDir",    │
00:02:45 v #2267 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\R │
00:02:45 v #2268 > > │ ust\\34ab53ebc795bc28e69c93f16f6227b083afc493df0b85441a97d0332fae0026",      │
00:02:45 v #2269 > > │ "--define", "_WINDOWS"]; options = { command = dotnet fable                  │
00:02:45 v #2270 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Rust/34a │
00:02:45 v #2271 > > │ b53ebc795bc28e69c93f16f6227b083afc493df0b85441a97d0332fae0026/spiral_builder │
00:02:45 v #2272 > > │ .fsproj" --optimize --lang rs --extension .rs --outDir                       │
00:02:45 v #2273 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Rust\34a │
00:02:45 v #2274 > > │ b53ebc795bc28e69c93f16f6227b083afc493df0b85441a97d0332fae0026" --define      │
00:02:45 v #2275 > > │ _WINDOWS; cancellation_token = None; environment_variables = Array(MutCell([ │
00:02:45 v #2276 > > │ ])); on_line = None; stdin = None; trace = true; working_directory = None }  │
00:02:45 v #2277 > > │ }                                                                            │
00:02:45 v #2278 > > │ 00:00:00 v #4 > Fable                                                  │
00:02:45 v #2279 > > │ ...der\packages\Rust\34ab53ebc795bc28e69c93f16f6227b083afc493df0b85441a97d03 │
00:02:45 v #2280 > > │ 32fae0026\spiral_builder.rs; cleanup =                                       │
00:02:45 v #2281 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:02:45 v #2282 > > │ st\34ab53ebc795bc28e69c93f16f6227b083afc493df0b85441a97d0332fae0026\../../.. │
00:02:45 v #2283 > > │ \target/debug/spiral_builder_34ab53ebc795bc28e69c93f16f6227b083afc493df0b854 │
00:02:45 v #2284 > > │ 41a97d0332fae0026.d", true,                                                  │
00:02:45 v #2285 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:02:45 v #2286 > > │ st\34ab53ebc795bc28e69c93f16f6227b083afc493df0b85441a97d0332fae0026\../../.. │
00:02:45 v #2287 > > │ \target/debug/spiral_builder_34ab53ebc795bc28e69c93f16f6227b083afc493df0b854 │
00:02:45 v #2288 > > │ 41a97d0332fae0026.exe", true,                                                │
00:02:45 v #2289 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:02:45 v #2290 > > │ st\34ab53ebc795bc28e69c93f16f6227b083afc493df0b85441a97d0332fae0026\../../.. │
00:02:45 v #2291 > > │ \target/debug/spiral_builder_34ab53ebc795bc28e69c93f16f6227b083afc493df0b854 │
00:02:45 v #2292 > > │ 41a97d0332fae0026.pdb", true,                                                │
00:02:45 v #2293 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:02:45 v #2294 > > │ st\34ab53ebc795bc28e69c93f16f6227b083afc493df0b85441a97d0332fae0026\../../.. │
00:02:45 v #2295 > > │ \target/debug/spiral_builder_34ab53ebc795bc28e69c93f16f6227b083afc493df0b854 │
00:02:45 v #2296 > > │ 41a97d0332fae0026.wasm", false,                                              │
00:02:45 v #2297 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:02:45 v #2298 > > │ st\34ab53ebc795bc28e69c93f16f6227b083afc493df0b85441a97d0332fae0026\../../.. │
00:02:45 v #2299 > > │ \target/debug/spiral_builder_34ab53ebc795bc28e69c93f16f6227b083afc493df0b854 │
00:02:45 v #2300 > > │ 41a97d0332fae0026", false, UH4_0))))) }                                      │
00:02:45 v #2301 > > │ __assert_eq / actual: "rs" / expected: "rs"                                  │
00:02:45 v #2302 > > │ __assert_eq / actual: "-3" / expected: "-3"                                  │
00:02:45 v #2303 > > │                                                                              │
00:02:45 v #2304 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:45 v #2305 > >
00:02:45 v #2306 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:45 v #2307 > > //// test
00:02:45 v #2308 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:02:45 v #2309 > > rayon regex serde_json sha2
00:02:45 v #2310 > >
00:02:45 v #2311 > > inl file_name = "main.fs"
00:02:45 v #2312 > > inl code = "3 - 6 |> System.Console.WriteLine\n"
00:02:45 v #2313 > >
00:02:45 v #2314 > > inl temp_dir, disposable =
00:02:45 v #2315 > >     (file_name, code)
00:02:45 v #2316 > >     |> sm'.format_debug
00:02:45 v #2317 > >     |> crypto.hash_text
00:02:45 v #2318 > >     |> file_system.create_temp_dir'
00:02:45 v #2319 > > inl fs_path = temp_dir </> file_name
00:02:45 v #2320 > >
00:02:45 v #2321 > > code |> file_system.write_all_text fs_path
00:02:45 v #2322 > >
00:02:45 v #2323 > > get_command ()
00:02:45 v #2324 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:02:45 v #2325 > > \\\"typescript\\\""' |> runtime.split_args |> resultm.get)
00:02:45 v #2326 > > |> run Verbose
00:02:45 v #2327 > > |> async.block_on_futures
00:02:45 v #2328 > > |> resultm.unwrap'
00:02:45 v #2329 > > |> sm'.deserialize
00:02:45 v #2330 > > |> resultm.unwrap'
00:02:45 v #2331 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:02:45 v #2332 > > |> optionm'.unwrap
00:02:45 v #2333 > > |> sm'.from_std_string
00:02:45 v #2334 > > |> sm'.deserialize
00:02:45 v #2335 > > |> resultm.unwrap'
00:02:45 v #2336 > > |> fun result =>
00:02:45 v #2337 > >     result
00:02:45 v #2338 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:02:45 v #2339 > >     |> optionm'.unwrap
00:02:45 v #2340 > >     |> sm'.from_std_string
00:02:45 v #2341 > >     |> _assert_eq "ts"
00:02:45 v #2342 > >     result
00:02:45 v #2343 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:02:45 v #2344 > >     |> optionm'.unwrap
00:02:45 v #2345 > >     |> sm'.from_std_string
00:02:45 v #2346 > >     |> _assert_eq "-3"
00:02:45 v #2347 > >
00:02:45 v #2348 > > disposable |> use |> ignore
00:02:45 v #2349 > 00:02:44 d #32 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c23b4c8cfb7f13fa49121a80cfe57f81e8ca4fc4d797bb70f320a0693997c732/main.spi
00:03:35 v #2350 > >
00:03:35 v #2351 > > ╭─[ 49.88s - return value ]────────────────────────────────────────────────────╮
00:03:35 v #2352 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:03:35 v #2353 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_cc270307 │
00:03:35 v #2354 > > │ 15fe1a52b2dc1e1c82afdfa85dacbf9d59085122bc07b82763028a10\c6422374-71e4-07d4- │
00:03:35 v #2355 > > │ 0ba4-c3084b24fbba }                                                          │
00:03:35 v #2356 > > │ 00:00:00 v #2 file_system.create_dir / { dir =                         │
00:03:35 v #2357 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\TypeScrip │
00:03:35 v #2358 > > │ t\702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8 }         │
00:03:35 v #2359 > > │ 00:00:00 d #3 spiral_builder.process_typescript / { version = US46_1 } │
00:03:35 v #2360 > > │ 00:00:00 d #4 runtime.execute_with_options / { file_name = dotnet;     │
00:03:35 v #2361 > > │ arguments = ["fable",                                                        │
00:03:35 v #2362 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/TypeScri │
00:03:35 v #2363 > > │ pt/702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8/spiral_b │
00:03:35 v #2364 > > │ uilder.fsproj", "--optimize", "--lang", "ts", "--extension", ".ts",          │
00:03:35 v #2365 > > │ "--outDir",                                                                  │
00:03:35 v #2366 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\T │
00:03:35 v #2367 > > │ ypeScript\\702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8" │
00:03:35 v #2368 > > │ , "--define", "_WINDOWS"]; options = { command = dotnet fable                │
00:03:35 v #2369 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/TypeScri │
00:03:35 v #2370 > > │ pt/702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8/spiral_b │
00:03:35 v #2371 > > │ uilder.fsproj" --optimize --lang ts --extension .ts --outDir                 │
00:03:35 v #2372 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\TypeScri │
00:03:35 v #2373 > > │ pt\702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8"         │
00:03:35 v #2374 > > │ --define _WINDOWS; cancellation_token = None; environment_variables =        │
00:03:35 v #2375 > > │ Array(MutCell(...p\apps\vscode-insiders\current\bin;C:\Users\i574n\scoop\app │
00:03:35 v #2376 > > │ s\perl\current\perl\site\bin;C:\Users\i574n\scoop\apps\perl\current\perl\bin │
00:03:35 v #2377 > > │ ;C:\Users\i574n\scoop\apps\elixir\current\bin;C:\Users\i574n\scoop\apps\rust │
00:03:35 v #2378 > > │ up\current\.cargo\bin;C:\Users\i574n\scoop\apps\latex\current\texmfs\install │
00:03:35 v #2379 > > │ \miktex\bin\x64;C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current;C:\User │
00:03:35 v #2380 > > │ s\i574n\scoop\apps\dotnet-sdk\current;C:\Users\i574n\scoop\apps\gsudo\curren │
00:03:35 v #2381 > > │ t;C:\Users\i574n\scoop\apps\python\current;C:\Users\i574n\scoop\apps\nircmd\ │
00:03:35 v #2382 > > │ current;C:\Users\i574n\AppData\Local\Microsoft\WindowsApps;C:\Users\i574n/sc │
00:03:35 v #2383 > > │ oop/buckets/mold/home/windows/path;C:\Users\i574n/scoop/persist/rustup/.carg │
00:03:35 v #2384 > > │ o/bin;C:\Users\i574n/scoop/apps/nvm/current/nodejs/nodejs;C:\Users\i574n/sco │
00:03:35 v #2385 > > │ op/apps/cygwin/current/root/bin;C:\Users\i574n\AppData\Local\Programs\Micros │
00:03:35 v #2386 > > │ oft VS                                                                       │
00:03:35 v #2387 > > │ Code\bin;C:\Users\i574n\AppData\Local\Microsoft\WindowsApps;C:\Users\i574n\. │
00:03:35 v #2388 > > │ bun\bin;C:\Users\i574n\.dotnet\tools;C:\Users\i574n\scoop\shims;C:\Users\i57 │
00:03:35 v #2389 > > │ 4n\.fly\bin;C:\Program                                                       │
00:03:35 v #2390 > > │ Files\Wasmtime\bin;C:\Users\i574n/.cargo/bin;C:\Users\i574n/.bun/bin;C:\User │
00:03:35 v #2391 > > │ s\i574n/.cargo/bin;C:\Users\i574n/.bun/bin;C:\Users\i574n/.cargo/bin;C:\User │
00:03:35 v #2392 > > │ s\i574n/.bun/bin"), ("TRACE_LEVEL", "Verbose")])); on_line = None; stdin =   │
00:03:35 v #2393 > > │ None; trace = true; working_directory = None } }                             │
00:03:35 v #2394 > > │ 00:00:01 v #19 > -3                                                    │
00:03:35 v #2395 > > │ 00:00:01 v #20 runtime.execute_with_options / result / { exit_code =   │
00:03:35 v #2396 > > │ 0; std_trace_length = 2 }                                                    │
00:03:35 v #2397 > > │ __assert_eq / actual: "ts" / expected: "ts"                                  │
00:03:35 v #2398 > > │ __assert_eq / actual: "-3" / expected: "-3"                                  │
00:03:35 v #2399 > > │                                                                              │
00:03:35 v #2400 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:35 v #2401 > >
00:03:35 v #2402 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:35 v #2403 > > //// test
00:03:35 v #2404 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:03:35 v #2405 > > rayon regex serde_json sha2
00:03:35 v #2406 > >
00:03:35 v #2407 > > inl file_name = "main.fs"
00:03:35 v #2408 > > inl code = "3 - 6 |> System.Console.WriteLine\n"
00:03:35 v #2409 > >
00:03:35 v #2410 > > inl temp_dir, disposable =
00:03:35 v #2411 > >     (file_name, code)
00:03:35 v #2412 > >     |> sm'.format_debug
00:03:35 v #2413 > >     |> crypto.hash_text
00:03:35 v #2414 > >     |> file_system.create_temp_dir'
00:03:35 v #2415 > > inl fs_path = temp_dir </> file_name
00:03:35 v #2416 > >
00:03:35 v #2417 > > code |> file_system.write_all_text fs_path
00:03:35 v #2418 > >
00:03:35 v #2419 > > get_command ()
00:03:35 v #2420 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:03:35 v #2421 > > \\\"python\\\""' |> runtime.split_args |> resultm.get)
00:03:35 v #2422 > > |> run Verbose
00:03:35 v #2423 > > |> async.block_on_futures
00:03:35 v #2424 > > |> resultm.unwrap'
00:03:35 v #2425 > > |> sm'.deserialize
00:03:35 v #2426 > > |> resultm.unwrap'
00:03:35 v #2427 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:03:35 v #2428 > > |> optionm'.unwrap
00:03:35 v #2429 > > |> sm'.from_std_string
00:03:35 v #2430 > > |> sm'.deserialize
00:03:35 v #2431 > > |> resultm.unwrap'
00:03:35 v #2432 > > |> fun result =>
00:03:35 v #2433 > >     result
00:03:35 v #2434 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:03:35 v #2435 > >     |> optionm'.unwrap
00:03:35 v #2436 > >     |> sm'.from_std_string
00:03:35 v #2437 > >     |> _assert_eq "py"
00:03:35 v #2438 > >     result
00:03:35 v #2439 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:03:35 v #2440 > >     |> optionm'.unwrap
00:03:35 v #2441 > >     |> sm'.from_std_string
00:03:35 v #2442 > >     |> _assert_eq "-3"
00:03:35 v #2443 > >
00:03:35 v #2444 > > disposable |> use |> ignore
00:03:35 v #2445 > 00:03:34 d #33 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54a8cf86ce03f6751cc3b10ea1c537ee3404e1de92e5a5fa726e62c13d7b9e08/main.spi
00:04:27 v #2446 > >
00:04:27 v #2447 > > ╭─[ 52.07s - return value ]────────────────────────────────────────────────────╮
00:04:27 v #2448 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:04:27 v #2449 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_bf920211 │
00:04:27 v #2450 > > │ c8489de5b7c8291e933e9755e013ca2d7b5a09d1e357291f381cd37c\c6422374-71e4-07d4- │
00:04:27 v #2451 > > │ 0ba4-c3084b24fbba }                                                          │
00:04:27 v #2452 > > │ 00:00:00 v #2 file_system.create_dir / { dir =                         │
00:04:27 v #2453 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\cb │
00:04:27 v #2454 > > │ 8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce }             │
00:04:27 v #2455 > > │ 00:00:00 d #3 runtime.execute_with_options / { file_name = dotnet;     │
00:04:27 v #2456 > > │ arguments = ["fable",                                                        │
00:04:27 v #2457 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Python/c │
00:04:27 v #2458 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce/spiral_build │
00:04:27 v #2459 > > │ er.fsproj", "--optimize", "--lang", "py", "--extension", ".py", "--outDir",  │
00:04:27 v #2460 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\P │
00:04:27 v #2461 > > │ ython\\cb8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce",    │
00:04:27 v #2462 > > │ "--define", "_WINDOWS"]; options = { command = dotnet fable                  │
00:04:27 v #2463 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Python/c │
00:04:27 v #2464 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce/spiral_build │
00:04:27 v #2465 > > │ er.fsproj" --optimize --lang py --extension .py --outDir                     │
00:04:27 v #2466 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\c │
00:04:27 v #2467 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce" --define    │
00:04:27 v #2468 > > │ _WINDOWS; cancellation_token = None; environment_variables = Array(MutCell([ │
00:04:27 v #2469 > > │ ])); on_line = None; stdin = None; trace = true; working_directory = None }  │
00:04:27 v #2470 > > │ }                                                                            │
00:04:27 v #2471 > > │ 00:00:00 v #...#10 > Retrieving project options from cache, in case of │
00:04:27 v #2472 > > │ issues run `dotnet fable clean` or try `--noCache` option.                   │
00:04:27 v #2473 > > │ 00:00:00 v #11 > Project and references (1 source files) parsed in     │
00:04:27 v #2474 > > │ 186ms                                                                        │
00:04:27 v #2475 > > │ 00:00:00 v #12 >                                                       │
00:04:27 v #2476 > > │ 00:00:00 v #13 > Skipped compilation because all generated files are   │
00:04:27 v #2477 > > │ up-to-date!                                                                  │
00:04:27 v #2478 > > │ 00:00:00 v #14 runtime.execute_with_options / result / { exit_code =   │
00:04:27 v #2479 > > │ 0; std_trace_length = 528 }                                                  │
00:04:27 v #2480 > > │ 00:00:00 d #15 spiral_builder.process_python / { new_code_path =       │
00:04:27 v #2481 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\cb │
00:04:27 v #2482 > > │ 8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\spiral_builde │
00:04:27 v #2483 > > │ r.py }                                                                       │
00:04:27 v #2484 > > │ 00:00:00 d #16 runtime.execute_with_options / { file_name = python;    │
00:04:27 v #2485 > > │ arguments = [                                                                │
00:04:27 v #2486 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\P │
00:04:27 v #2487 > > │ ython\\cb8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\\spi │
00:04:27 v #2488 > > │ ral_builder.py"]; options = { command = python                               │
00:04:27 v #2489 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\c │
00:04:27 v #2490 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\spiral_build │
00:04:27 v #2491 > > │ er.py"; cancellation_token = None; environment_variables = Array(MutCell([   │
00:04:27 v #2492 > > │ ("TRACE_LEVEL", "Verbose")])); on_line = None; stdin = None; trace = true;   │
00:04:27 v #2493 > > │ working_directory = None } }                                                 │
00:04:27 v #2494 > > │ 00:00:00 v #17 > -3                                                    │
00:04:27 v #2495 > > │ 00:00:00 v #18 runtime.execute_with_options / result / { exit_code =   │
00:04:27 v #2496 > > │ 0; std_trace_length = 2 }                                                    │
00:04:27 v #2497 > > │ __assert_eq / actual: "py" / expected: "py"                                  │
00:04:27 v #2498 > > │ __assert_eq / actual: "-3" / expected: "-3"                                  │
00:04:27 v #2499 > > │                                                                              │
00:04:27 v #2500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:27 v #2501 > >
00:04:27 v #2502 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:27 v #2503 > > //// test
00:04:27 v #2504 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:04:27 v #2505 > > rayon regex serde_json sha2
00:04:27 v #2506 > >
00:04:27 v #2507 > > inl file_name = "test.dib"
00:04:27 v #2508 > > inl code =
00:04:27 v #2509 > >
00:04:27 v #2510 > > "#!meta\n\n{\"kernelInfo\":{\"defaultKernelName\":\"fsharp\",\"items\":[[]]}}\n\
00:04:27 v #2511 > > n#!fsharp\n\n3 - 6\n"
00:04:27 v #2512 > >
00:04:27 v #2513 > > inl temp_dir, disposable =
00:04:27 v #2514 > >     (file_name, code)
00:04:27 v #2515 > >     |> sm'.format_debug
00:04:27 v #2516 > >     |> crypto.hash_text
00:04:27 v #2517 > >     |> file_system.create_temp_dir'
00:04:27 v #2518 > > inl path = temp_dir </> file_name |> file_system.normalize_path
00:04:27 v #2519 > >
00:04:27 v #2520 > > code
00:04:27 v #2521 > > |> file_system.write_all_text path
00:04:27 v #2522 > >
00:04:27 v #2523 > > get_command ()
00:04:27 v #2524 > > |> runtime.command_get_matches_from ($'$"_ dib -p {!path}"' |>
00:04:27 v #2525 > > runtime.split_args |> resultm.get)
00:04:27 v #2526 > > |> run Verbose
00:04:27 v #2527 > > |> async.block_on_futures
00:04:27 v #2528 > > |> resultm.unwrap'
00:04:27 v #2529 > > |> __assert sm'.contains Silent "<pre>-3 "
00:04:27 v #2530 > >
00:04:27 v #2531 > > $'$"{!path}.html"'
00:04:27 v #2532 > > |> file_system.read_all_text
00:04:27 v #2533 > > |> __assert sm'.contains Silent "\"cell-id=1\""
00:04:27 v #2534 > >
00:04:27 v #2535 > > disposable |> use |> ignore
00:04:27 v #2536 > 00:04:26 d #34 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9900a5b944d8855eb1dafe5593038c5ae38ad684c49f4bd1d63226ed4905ff69/main.spi
00:05:25 v #2537 > >
00:05:25 v #2538 > > ╭─[ 57.86s - return value ]────────────────────────────────────────────────────╮
00:05:25 v #2539 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:05:25 v #2540 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_6cdcf51f │
00:05:25 v #2541 > > │ 36302c149a20b2d8c4190062586d4518f55f2dfec784903bd6d05f43\af524e22-8e9a-5d18- │
00:05:25 v #2542 > > │ 99ed-bd86e1b74623 }                                                          │
00:05:25 v #2543 > > │ 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet;     │
00:05:25 v #2544 > > │ arguments = ["repl", "--exit-after-run", "--run",                            │
00:05:25 v #2545 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_6cdcf51 │
00:05:25 v #2546 > > │ f36302c149a20b2d8c4190062586d4518f55f2dfec784903bd6d05f43/af524e22-8e9a-5d18 │
00:05:25 v #2547 > > │ -99ed-bd86e1b74623/test.dib", "--output-path",                               │
00:05:25 v #2548 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_6cdcf51 │
00:05:25 v #2549 > > │ f36302c149a20b2d8c4190062586d4518f55f2dfec784903bd6d05f43/af524e22-8e9a-5d18 │
00:05:25 v #2550 > > │ -99ed-bd86e1b74623/test.dib.ipynb"]; options = { command = dotnet repl       │
00:05:25 v #2551 > > │ --exit-after-run --run                                                       │
00:05:25 v #2552 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_6cdcf51 │
00:05:25 v #2553 > > │ f36302c149a20b2d8c4190062586d4518f55f2dfec784903bd6d05f43/af524e22-8e9a-5d18 │
00:05:25 v #2554 > > │ -99ed-bd86e1b74623/test.dib" --output-path                                   │
00:05:25 v #2555 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_6cdcf51 │
00:05:25 v #2556 > > │ f36302c149a20b2d8c4190062586d4518f55f2dfec784903bd6d05f43/af524e22-8e9a-5d18 │
00:05:25 v #2557 > > │ -99ed-bd86e1b74623/test.dib.ipynb"; cancellation_token = None;               │
00:05:25 v #2558 > > │ environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"),           │
00:05:25 v #2559 > > │ ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false;      │
00:05:25 v #2560 > > │ working_directory = None } }                                                 │
00:05:25 v #2561 > > │ >                                                                            │
00:05:25 v #2562 > > │ > ── fsharp                                                                  │
00:05:25 v #2563 > > │ ──────────────────────────────────────────────────────────────────────       │
00:05:25 v #2564 > > │ > 3 - 6                                                                      │
00:05:25 v #2565 > > │ >                                                                            │
00:05:25 v #2566 > > │ > ╭─[ 4.49s - return va....dib.html                                          │
00:05:25 v #2567 > > │ 00:00:08 v #11 runtime.execute_with_options / result / { exit_code =   │
00:05:25 v #2568 > > │ 0; std_trace_length = 1126 }                                                 │
00:05:25 v #2569 > > │ 00:00:08 d #12 spiral_builder.run / dib / jupyter nbconvert / {        │
00:05:25 v #2570 > > │ exit_code = 0; jupyter_result_length = 1126 }                                │
00:05:25 v #2571 > > │ 00:00:08 d #13 runtime.execute_with_options / { file_name = pwsh;      │
00:05:25 v #2572 > > │ arguments = ["-c", "$counter = 1; $path =                                    │
00:05:25 v #2573 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_6cdcf51 │
00:05:25 v #2574 > > │ f36302c149a20b2d8c4190062586d4518f55f2dfec784903bd6d05f43/af524e22-8e9a-5d18 │
00:05:25 v #2575 > > │ -99ed-bd86e1b74623/test.dib.html'; (Get-Content $path -Raw) -replace         │
00:05:25 v #2576 > > │ '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } |     │
00:05:25 v #2577 > > │ Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path =    │
00:05:25 v #2578 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_6cdcf51 │
00:05:25 v #2579 > > │ f36302c149a20b2d8c4190062586d4518f55f2dfec784903bd6d05f43/af524e22-8e9a-5d18 │
00:05:25 v #2580 > > │ -99ed-bd86e1b74623/test.dib.html'; (Get-Content $path -Raw) -replace         │
00:05:25 v #2581 > > │ '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } |       │
00:05:25 v #2582 > > │ Set-Content $path"; cancellation_token = None; environment_variables =       │
00:05:25 v #2583 > > │ Array(MutCell([])); on_line = None; stdin = None; trace = true;              │
00:05:25 v #2584 > > │ working_directory = None } }                                                 │
00:05:25 v #2585 > > │ 00:00:09 v #14 runtime.execute_with_options / result / { exit_code =   │
00:05:25 v #2586 > > │ 0; std_trace_length = 0 }                                                    │
00:05:25 v #2587 > > │ 00:00:09 d #15 spiral_builder.run / dib / html cell ids / { exit_code  │
00:05:25 v #2588 > > │ = 0; pwsh_replace_html_result_length = 0 }                                   │
00:05:25 v #2589 > > │ 00:00:09 d #16 spiral_builder.run / dib / { exit_code = 0;             │
00:05:25 v #2590 > > │ result_length = 4108 }                                                       │
00:05:25 v #2591 > > │                                                                              │
00:05:25 v #2592 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:25 v #2593 > >
00:05:25 v #2594 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:25 v #2595 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:25 v #2596 > > │ ## tests                                                                     │
00:05:25 v #2597 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:25 v #2598 > >
00:05:25 v #2599 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:25 v #2600 > > inl tests () =
00:05:25 v #2601 > >     testing.run_tests {
00:05:25 v #2602 > >         verify_app = get_command >> runtime.command_debug_assert
00:05:25 v #2603 > >     }
00:05:25 v #2604 > 00:05:24 d #35 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/034a25a030105fef5e6d994accb01d8bfc1abcf4a38959ca9c2b6d4adf034e51/main.spi
00:05:25 v #2605 > >
00:05:25 v #2606 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:25 v #2607 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:25 v #2608 > > │ ## main                                                                      │
00:05:25 v #2609 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:25 v #2610 > >
00:05:25 v #2611 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:25 v #2612 > > ///! _
00:05:25 v #2613 > >
00:05:25 v #2614 > > inl main (args : array_base string) =
00:05:25 v #2615 > >     inl trace_state = get_trace_state_or_init None
00:05:25 v #2616 > >
00:05:25 v #2617 > >     trace Debug
00:05:25 v #2618 > >         fun () => "spiral_builder.main"
00:05:25 v #2619 > >         fun () => { args }
00:05:25 v #2620 > >
00:05:25 v #2621 > >     inl command = get_command ()
00:05:25 v #2622 > >     inl arg_matches = command |> runtime.command_get_matches
00:05:25 v #2623 > >
00:05:25 v #2624 > >     inl trace_state_level = trace_state.level
00:05:25 v #2625 > >
00:05:25 v #2626 > >     inl result =
00:05:25 v #2627 > >         arg_matches
00:05:25 v #2628 > >         |> run *trace_state_level
00:05:25 v #2629 > >         |> async.block_on_futures
00:05:25 v #2630 > >         |> resultm.unwrap'
00:05:25 v #2631 > >
00:05:25 v #2632 > >     if *trace_state_level = Info
00:05:25 v #2633 > >     then result |> console.write_line
00:05:25 v #2634 > >
00:05:25 v #2635 > >     0i32
00:05:25 v #2636 > >
00:05:25 v #2637 > > inl main () =
00:05:25 v #2638 > >     $'let tests () = !tests ()' : ()
00:05:25 v #2639 > >     $'let main args = !main args' : ()
00:05:26 v #2640 > 00:05:25 d #36 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3dcdd648ebe7dc1168645bb9d0292cebbc9649327ff118f74e9df5fdec85dc9/main.spi
00:05:34 v #2641 > 00:05:32 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 112420 }
00:05:34 v #2642 > 00:05:32 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:35 v #2643 > 00:05:34 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb to html
00:05:35 v #2644 > 00:05:34 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:05:35 v #2645 > 00:05:34 v #7 !   validate(nb)
00:05:36 v #2646 > 00:05:34 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:05:36 v #2647 > 00:05:34 v #9 !   return _pygments_highlight(
00:05:38 v #2648 > 00:05:37 v #10 ! [NbConvertApp] Writing 598684 bytes to c:\home\git\polyglot\apps\spiral\builder\spiral_builder.dib.html
00:05:39 v #2649 > 00:05:37 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 888 }
00:05:39 v #2650 > 00:05:37 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 888 }
00:05:39 v #2651 > 00:05:37 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:39 v #2652 > 00:05:37 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:05:39 v #2653 > 00:05:37 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:05:39 v #2654 > 00:05:37 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 113367 }
00:05:39 d #2655 runtime.execute_with_options_async / { exit_code = 0; output_length = 121258 }
00:05:39 d #3 main / executeCommand / exitCode: 0 / command: ../../../workspace/target/release/spiral_builder.exe dib --path spiral_builder.dib
00:05:39 v #5 async.run_with_timeout_async / { timeout = 100 }
00:00:00 d #1 writeDibCode / output: Spi / path: spiral_builder.dib
00:00:00 d #2 parseDibCode / output: Spi / file: spiral_builder.dib
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:01 v #6 > Server bound to: http://localhost:13805
00:00:02 v #5 async.run_with_timeout_async / { timeout = 180 }
00:00:02 d #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:02 d #4 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:02 d #5 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:02 v #6 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # spiral_builder\nopen file_system_operators\nopen rust.rust_operators\n...ain args\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/apps/spiral/builder/spiral_builder.spi"}} / result:
00:00:02 v #7 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/spiral/builder/spiral_builder.spi"}} / result:
00:00:02 d #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:02 d #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:02 v #7 > 00:00:02 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/apps/spiral/builder/spiral_builder.spi
00:00:03 d #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:03 d #11 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:03 d #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:03 d #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:04 d #14 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:04 d #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:04 d #16 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:04 d #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:05 d #18 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:05 d #19 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:05 d #20 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:05 d #21 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:06 d #22 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:06 d #23 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:06 d #24 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:06 d #25 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:07 d #26 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:07 d #27 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:07 d #28 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:07 d #29 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:08 d #30 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:08 d #31 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:08 d #32 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:08 d #33 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:09 d #34 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:09 d #35 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:09 d #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:09 d #37 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:10 d #38 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:10 d #39 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:10 d #40 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:10 d #41 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:11 d #42 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:11 d #43 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:11 d #44 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:11 d #45 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:12 d #46 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:12 d #47 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:12 d #48 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:12 d #49 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:13 d #50 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:13 d #51 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:13 d #52 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:13 d #53 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:14 d #54 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:14 d #55 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:14 d #56 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:14 d #57 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:15 d #58 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:15 d #59 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:15 d #60 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:15 d #61 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:15 d #62 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
type Ref<'T> = class end
#else
type Ref<'T> = 'T
#endif

#if FABLE_COMPILER
[<Fable.Co...()
        ()
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure1()
let main args = v1 args
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:15 d #63 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
type Ref<'T> = class end
#else
type Ref<'T> = 'T
#endif

#if FABLE_COMPILER
[<Fable.Co...()
        ()
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure1()
let main args = v1 args
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:16 d #64 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:16 v #6 async.run_with_timeout_async / { timeout = 100 }
00:00:03 d #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: spiral_builder / hash:  / code.Length: 6665621
targetDir: C:\home\git\polyglot\target\Builder\spiral_builder
Fable 4.21.0: F# to Rust compiler (status: alpha)

Thanks to the contributor! @IanManske
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\spiral_builder\spiral_builder.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 207ms

Started Fable compilation...

Fable compilation finished in 16682ms

.\lib\spiral\common.fsx(1475,0): (1475,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\sm.fsx(452,0): (452,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1629,0): (1629,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(997,0): (997,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\async_.fsx(76,0): (76,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(127,0): (127,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(3673,0): (3673,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(104,0): (104,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(4709,0): (4709,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(55639,0): (55639,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1505,0): (1505,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!

    Directory: C:\home\git\polyglot\target\Builder\spiral_builder\target

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2024-09-29  5:34 PM                rs
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
    Finished `release` profile [optimized] target(s) in 23.76s
     Running unittests spiral_builder.rs (C:\home\git\polyglot\workspace\target\release\deps\spiral_builder-1946bf53ea519377.exe)

running 1 test
test module_7e2cd9e0::Spiral_builder::verify_app ... ok

successes:

successes:
    module_7e2cd9e0::Spiral_builder::verify_app

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
error: failed to remove file `C:\home\git\polyglot\workspace\target\release\spiral_builder.exe`

Caused by:
  Access is denied. (os error 5)

# Invoke-Block / $retry: 1/1 / $Location:  / Get-Location: C:\home\git\polyglot\apps\spiral\builder / $OnError: Continue / $exitcode: 101 / $EnvVars: {
  "PATH": "C:\\Users\\i574n\\scoop\\apps\\pwsh\\current;C:\\Users\\i574n\\scoop\\apps\\python312\\current\\Scripts;C:\\Users\\i574n\\scoop\\apps\\python312\\current\\.;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\ProgramData\\scoop\\shims;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\Perforce;C:\\Program Files\\Wasmtime\\bin;C:\\Program Files\\Perforce\\;C:\\Users\\i574n\\scoop\\apps\\vscode-insiders\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\perl\\current\\perl\\site\\bin;C:\\Users\\i574n\\scoop\\apps\\perl\\current\\perl\\bin;C:\\Users\\i574n\\scoop\\apps\\elixir\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\rustup\\current\\.cargo\\bin;C:\\Users\\i574n\\scoop\\apps\\latex\\current\\texmfs\\install\\miktex\\bin\\x64;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk-preview\\current;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk\\current;C:\\Users\\i574n\\scoop\\apps\\gsudo\\current;C:\\Users\\i574n\\scoop\\apps\\python\\current;C:\\Users\\i574n\\scoop\\apps\\nircmd\\current;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n/scoop/buckets/mold/home/windows/path;C:\\Users\\i574n/scoop/persist/rustup/.cargo/bin;C:\\Users\\i574n/scoop/apps/nvm/current/nodejs/nodejs;C:\\Users\\i574n/scoop/apps/cygwin/current/root/bin;C:\\Users\\i574n\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n\\.bun\\bin;C:\\Users\\i574n\\.dotnet\\tools;C:\\Users\\i574n\\scoop\\shims;C:\\Users\\i574n\\.fly\\bin;C:\\Program Files\\Wasmtime\\bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin"
} / $Error: '' / $ScriptBlock:
'cargo build --release'


In [ ]:
{ pwsh ../apps/spiral/wasm/build.ps1 } | Invoke-Block
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:01 v #6 > Server bound to: http://localhost:13805
00:00:01 d #7 runtime.execute_with_options_async / { file_name = ../../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path spiral_wasm.dib"; options = { command = ../../../workspace/target/release/spiral_builder.exe dib --path spiral_wasm.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 v #8 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "spiral_wasm.dib"])) }
00:00:01 v #9 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib" --output-path "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:03 v #10 > >
00:00:03 v #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 v #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 v #13 > > │ # spiral_wasm                                                                │
00:00:03 v #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 v #15 > >
00:00:07 v #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 v #17 > > open rust.rust_operators
00:00:07 v #18 > > open rust
00:00:07 v #19 > > open sm'_operators
00:00:08 v #20 > 00:00:08 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97c3b504fa1f560fdc0258569742b97a5f05d5b6377297ae83d67ca590b45d34/main.spi
00:00:12 v #21 > >
00:00:12 v #22 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 v #23 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 v #24 > > │ ## spiral_wasm                                                               │
00:00:12 v #25 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 v #26 > >
00:00:12 v #27 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 v #28 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 v #29 > > │ ### get_args                                                                 │
00:00:12 v #30 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 v #31 > >
00:00:12 v #32 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 v #33 > > inl get_args () =
00:00:12 v #34 > >     {
00:00:12 v #35 > >         exception = "exception", 'e'
00:00:12 v #36 > >         trace_level = "trace_level", 't'
00:00:12 v #37 > >         wasm = "wasm", 'w'
00:00:12 v #38 > >     }
00:00:12 v #39 > 00:00:11 d #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/69734c5f4489ca7e942ef4727dafb1ba9a85504a5b96198e2d790368bbf91813/main.spi
00:00:12 v #40 > >
00:00:12 v #41 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 v #42 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 v #43 > > │ ### get_command                                                              │
00:00:12 v #44 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 v #45 > >
00:00:12 v #46 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 v #47 > > let get_command () =
00:00:12 v #48 > >     ##"command"
00:00:12 v #49 > >     |> runtime.new_command
00:00:12 v #50 > >     |> runtime.command_args_override_self true
00:00:12 v #51 > >     |> runtime.command_init_arg (get_args () .exception) (
00:00:12 v #52 > >         runtime.arg_num_args_range (
00:00:12 v #53 > >             runtime.new_value_range
00:00:12 v #54 > >                 true
00:00:12 v #55 > >                 (am'.End id)
00:00:12 v #56 > >                 (am'.End fun _ => (1i32 |> convert : unativeint))
00:00:12 v #57 > >         )
00:00:12 v #58 > >         >> runtime.arg_require_equals true
00:00:12 v #59 > >         >> runtime.arg_default_missing_value ""
00:00:12 v #60 > >     )
00:00:12 v #61 > >     |> runtime.command_init_arg (get_args () .trace_level) (
00:00:12 v #62 > >         real runtime.arg_union `trace_level ignore
00:00:12 v #63 > >     )
00:00:12 v #64 > >     |> runtime.command_init_arg (get_args () .wasm) (
00:00:12 v #65 > >         runtime.arg_required true
00:00:12 v #66 > >     )
00:00:13 v #67 > 00:00:12 d #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/034813d2b0c4bd99c0757ce4a1f096d5a6a89813169c3b25eb6f4183c84de367/main.spi
00:00:13 v #68 > >
00:00:13 v #69 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 v #70 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 v #71 > > │ ### run                                                                      │
00:00:13 v #72 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 v #73 > >
00:00:13 v #74 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 v #75 > > let rec run
00:00:13 v #76 > >     (matches : runtime.arg_matches)
00:00:13 v #77 > >     : async.future_pin (
00:00:13 v #78 > >         resultm.result'
00:00:13 v #79 > >             u8
00:00:13 v #80 > >             resultm.anyhow_error
00:00:13 v #81 > >     )
00:00:13 v #82 > >     =
00:00:13 v #83 > >     fun () =>
00:00:13 v #84 > >         inl wasm_path =
00:00:13 v #85 > >             matches
00:00:13 v #86 > >             |> runtime.matches_get_one (get_args () .wasm |> fst)
00:00:13 v #87 > >             |> optionm'.unbox
00:00:13 v #88 > >             |> optionm.value
00:00:13 v #89 > >             |> sm'.from_std_string
00:00:13 v #90 > >
00:00:13 v #91 > >         trace Verbose (fun () => "spiral_wasm.run") fun () => { wasm_path }
00:00:13 v #92 > >
00:00:13 v #93 > >         inl wasm = wasm_path |> file_system.read |> resultm.try'
00:00:13 v #94 > >
00:00:13 v #95 > >         let fn (retry : u8) =
00:00:13 v #96 > >             fun () =>
00:00:13 v #97 > >                 inl worker = near_workspaces.sandbox_worker () |> resultm.try'
00:00:13 v #98 > >                 inl contract = worker |> near_workspaces.dev_deploy wasm |>
00:00:13 v #99 > > async.await |> resultm.try'
00:00:13 v #100 > >
00:00:13 v #101 > >                 trace Verbose (fun () => "spiral_wasm.run") fun () => { retry
00:00:13 v #102 > > worker contract }
00:00:13 v #103 > >
00:00:13 v #104 > >                 inl result =
00:00:13 v #105 > >                     contract
00:00:13 v #106 > >                     |> near_workspaces.call "state_main"
00:00:13 v #107 > >                     |> near_workspaces.gas (near_workspaces.from_tgas 300)
00:00:13 v #108 > >                     |> near_workspaces.transact
00:00:13 v #109 > >                     |> async.await
00:00:13 v #110 > >                     |> resultm.try'
00:00:13 v #111 > >
00:00:13 v #112 > >                 trace Verbose (fun () => "spiral_wasm.run") fun () => { retry
00:00:13 v #113 > > result }
00:00:13 v #114 > >
00:00:13 v #115 > >                 result
00:00:13 v #116 > >                 |> near_workspaces.logs
00:00:13 v #117 > >                 |> am'.vec_map sm'.ref_to_std_string
00:00:13 v #118 > >                 |> am'.vec_for_each console.write_line
00:00:13 v #119 > >
00:00:13 v #120 > >                 trace_raw Info (fun () => " ")
00:00:13 v #121 > >                 result |> near_workspaces.print_usd retry
00:00:13 v #122 > >
00:00:13 v #123 > >                 inl result2 = result |> near_workspaces.into_result
00:00:13 v #124 > >
00:00:13 v #125 > >                 trace Verbose (fun () => "spiral_wasm.run") fun () => { result2
00:00:13 v #126 > > }
00:00:13 v #127 > >
00:00:13 v #128 > >                 inl receipt_failures = result |>
00:00:13 v #129 > > near_workspaces.receipt_failures
00:00:13 v #130 > >                 inl receipt_failures_len = receipt_failures |> am'.vec_len |>
00:00:13 v #131 > > i32
00:00:13 v #132 > >
00:00:13 v #133 > >                 trace Verbose
00:00:13 v #134 > >                     fun () => "spiral_wasm.run"
00:00:13 v #135 > >                     fun () => { receipt_failures_len receipt_failures }
00:00:13 v #136 > >
00:00:13 v #137 > >                 inl receipt_outcomes = result |>
00:00:13 v #138 > > near_workspaces.receipt_outcomes
00:00:13 v #139 > >                 inl receipt_outcomes_len = receipt_outcomes |> am'.vec_len |>
00:00:13 v #140 > > i32
00:00:13 v #141 > >
00:00:13 v #142 > >                 trace Verbose
00:00:13 v #143 > >                     fun () => "spiral_wasm.run"
00:00:13 v #144 > >                     fun () => { receipt_outcomes_len receipt_outcomes }
00:00:13 v #145 > >
00:00:13 v #146 > >                 inl json = result |> near_workspaces.json
00:00:13 v #147 > >
00:00:13 v #148 > >                 trace Verbose (fun () => "spiral_wasm.run") fun () => { json }
00:00:13 v #149 > >
00:00:13 v #150 > >                 inl borsh = result |> near_workspaces.borsh
00:00:13 v #151 > >
00:00:13 v #152 > >                 trace Verbose (fun () => "spiral_wasm.run") fun () => { borsh }
00:00:13 v #153 > >
00:00:13 v #154 > >                 inl error = { receipt_outcomes_len retry receipt_failures } |>
00:00:13 v #155 > > sm'.format
00:00:13 v #156 > >                 if receipt_failures_len > 0
00:00:13 v #157 > >                 then (Ok (Some error) : _ _ resultm.anyhow_error) |> resultm.box
00:00:13 v #158 > >                 elif receipt_outcomes_len > 1
00:00:13 v #159 > >                 then (Ok None : _ _ resultm.anyhow_error) |> resultm.box
00:00:13 v #160 > >                 else error |> resultm.anyhow_error |> resultm.err
00:00:13 v #161 > >             |> async.new_future_move
00:00:13 v #162 > >
00:00:13 v #163 > >         let rec loop (retry : u8) =
00:00:13 v #164 > >             inl max = 15
00:00:13 v #165 > >             inl init (error : _ string) =
00:00:13 v #166 > >                 fun () =>
00:00:13 v #167 > >                     { retry error }
00:00:13 v #168 > >                 |> async.new_future_move
00:00:13 v #169 > >             fun () =>
00:00:13 v #170 > >                 inl result =
00:00:13 v #171 > >                     fn retry
00:00:13 v #172 > >                     |> async.await
00:00:13 v #173 > >                     |> resultm.map_error' sm'.format'
00:00:13 v #174 > >                     |> resultm.unbox
00:00:13 v #175 > >                 match result with
00:00:13 v #176 > >                 | Ok (None) =>
00:00:13 v #177 > >                     init None
00:00:13 v #178 > >                     |> async.await
00:00:13 v #179 > >                     |> Ok
00:00:13 v #180 > >                 | Ok (Some error) =>
00:00:13 v #181 > >                     trace Critical (fun () => "spiral_wasm.run / Ok (Some
00:00:13 v #182 > > error)") fun () => { retry error }
00:00:13 v #183 > >                     init (Some error)
00:00:13 v #184 > >                     |> async.await
00:00:13 v #185 > >                     |> Error
00:00:13 v #186 > >                 | Error error when retry >= max =>
00:00:13 v #187 > >                     trace Warning (fun () => "spiral_wasm.run / Error error")
00:00:13 v #188 > > fun () => { retry error }
00:00:13 v #189 > >                     trace_raw Warning (fun () => "\n")
00:00:13 v #190 > >                     init None
00:00:13 v #191 > >                     |> async.await
00:00:13 v #192 > >                     |> Ok
00:00:13 v #193 > >                 | Error error =>
00:00:13 v #194 > >                     trace Warning (fun () => "spiral_wasm.run / Error error")
00:00:13 v #195 > > fun () => { retry error }
00:00:13 v #196 > >                     trace_raw Warning (fun () => "\n")
00:00:13 v #197 > >                     loop (retry + 1) |> async.await
00:00:13 v #198 > >             |> async.new_future_move
00:00:13 v #199 > >         inl retries = loop 1 |> async.await
00:00:13 v #200 > >
00:00:13 v #201 > >         trace Verbose (fun () => "spiral_wasm.run") fun () => { retries }
00:00:13 v #202 > >
00:00:13 v #203 > >         match retries with
00:00:13 v #204 > >         | Ok { retry } => Ok retry |> resultm.box
00:00:13 v #205 > >         | Error { retry error } => { retries error } |> sm'.format |>
00:00:13 v #206 > > resultm.anyhow_error |> resultm.err
00:00:13 v #207 > >
00:00:13 v #208 > >     |> async.new_future_move
00:00:13 v #209 > 00:00:12 d #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a129df55115b44b48d80875c36f3903ea093e3b99905dc213606fbea935c561/main.spi
00:00:13 v #210 > >
00:00:13 v #211 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 v #212 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 v #213 > > │ ### main                                                                     │
00:00:13 v #214 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 v #215 > >
00:00:13 v #216 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 v #217 > > ///! _
00:00:13 v #218 > >
00:00:13 v #219 > > inl main (args : array_base string) =
00:00:13 v #220 > >     inl command = get_command ()
00:00:13 v #221 > >     inl arg_matches = command |> runtime.command_get_matches
00:00:13 v #222 > >
00:00:13 v #223 > >     inl trace_level =
00:00:13 v #224 > >         arg_matches
00:00:13 v #225 > >         |> runtime.matches_get_one (get_args () .trace_level |> fst)
00:00:13 v #226 > >         |> optionm'.unbox
00:00:13 v #227 > >         |> optionm.map (
00:00:13 v #228 > >             sm'.from_std_string
00:00:13 v #229 > >             >> reflection.union_try_pick
00:00:13 v #230 > >         )
00:00:13 v #231 > >         |> optionm'.flatten
00:00:13 v #232 > >         |> optionm'.default_value Verbose
00:00:13 v #233 > >
00:00:13 v #234 > >     inl trace_state = get_trace_state_or_init (Some trace_level)
00:00:13 v #235 > >
00:00:13 v #236 > >     trace Verbose
00:00:13 v #237 > >         fun () => "spiral_wasm.main"
00:00:13 v #238 > >         fun () => { args }
00:00:13 v #239 > >
00:00:13 v #240 > >     inl exception =
00:00:13 v #241 > >         arg_matches
00:00:13 v #242 > >         |> runtime.matches_get_one (get_args () .exception |> fst)
00:00:13 v #243 > >         |> optionm'.map (sm'.from_std_string >> sm'.trim_start [[ '\\' ]] >>
00:00:13 v #244 > > sm'.trim_end [[ '\\' ]])
00:00:13 v #245 > >         |> optionm'.unbox
00:00:13 v #246 > >
00:00:13 v #247 > >     inl result =
00:00:13 v #248 > >         arg_matches
00:00:13 v #249 > >         |> run
00:00:13 v #250 > >         |> async.block_on_tokio
00:00:13 v #251 > >         |> resultm.map_error' sm'.format'
00:00:13 v #252 > >
00:00:13 v #253 > >     match result |> resultm.unbox, exception with
00:00:13 v #254 > >     | Ok retries, Some exception =>
00:00:13 v #255 > >         ($'$"spiral_wasm.main / retries: {!retries} / exception:
00:00:13 v #256 > > \'{!exception}\'"' : string)
00:00:13 v #257 > >         |> resultm.err |> resultm.unwrap'
00:00:13 v #258 > >     | Error _error, Some ("") =>
00:00:13 v #259 > >         ()
00:00:13 v #260 > >     | Error error, Some exception when error |> sm'.from_std_string |>
00:00:13 v #261 > > sm'.contains exception =>
00:00:13 v #262 > >         ()
00:00:13 v #263 > >     | Error error, Some exception =>
00:00:13 v #264 > >         ($'$"spiral_wasm.main / exception: \'{!exception}\' / error: {!error}"'
00:00:13 v #265 > > : string)
00:00:13 v #266 > >         |> resultm.err |> resultm.unwrap'
00:00:13 v #267 > >     | Ok _retries, _ =>
00:00:13 v #268 > >         ()
00:00:13 v #269 > >     | Error _error, _ =>
00:00:13 v #270 > >         result |> resultm.unwrap' |> ignore
00:00:13 v #271 > >
00:00:13 v #272 > >     0i32
00:00:13 v #273 > >
00:00:13 v #274 > > inl main () =
00:00:13 v #275 > >     $'let main args = !main args' : ()
00:00:14 v #276 > 00:00:13 d #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/02335f7f058162068f18475763251d0f7c0c242364adb9077cb8c5f4e7d3a98b/main.spi
00:00:15 v #277 > 00:00:13 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 9685 }
00:00:15 v #278 > 00:00:13 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:17 v #279 > 00:00:15 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.ipynb to html
00:00:17 v #280 > 00:00:15 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:17 v #281 > 00:00:15 v #7 !   validate(nb)
00:00:17 v #282 > 00:00:15 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:17 v #283 > 00:00:15 v #9 !   return _pygments_highlight(
00:00:18 v #284 > 00:00:16 v #10 ! [NbConvertApp] Writing 306844 bytes to c:\home\git\polyglot\apps\spiral\wasm\spiral_wasm.dib.html
00:00:18 v #285 > 00:00:16 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 876 }
00:00:18 v #286 > 00:00:16 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 876 }
00:00:18 v #287 > 00:00:16 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:18 v #288 > 00:00:16 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:18 v #289 > 00:00:16 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:18 v #290 > 00:00:16 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 10620 }
00:00:18 d #291 runtime.execute_with_options_async / { exit_code = 0; output_length = 13785 }
00:00:18 d #3 main / executeCommand / exitCode: 0 / command: ../../../workspace/target/release/spiral_builder.exe dib --path spiral_wasm.dib
00:00:18 v #5 async.run_with_timeout_async / { timeout = 100 }
00:00:00 d #1 writeDibCode / output: Spi / path: spiral_wasm.dib
00:00:00 d #2 parseDibCode / output: Spi / file: spiral_wasm.dib
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:01 v #6 > Server bound to: http://localhost:13805
00:00:02 v #5 async.run_with_timeout_async / { timeout = 180 }
00:00:02 d #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:02 d #4 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:02 d #5 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:02 v #6 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # spiral_wasm\nopen rust.rust_operators\nopen rust\nopen sm\u0027_operat...s = !main args\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.spi"}} / result:
00:00:02 v #7 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.spi"}} / result:
00:00:02 d #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:02 d #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:02 v #7 > 00:00:02 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.spi
00:00:03 d #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:03 d #11 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:03 d #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:03 d #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:04 d #14 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:04 d #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:04 d #16 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:04 d #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:05 d #18 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:05 d #19 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:05 d #20 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:05 d #21 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:06 d #22 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:06 d #23 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:06 d #24 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:06 d #25 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:07 d #26 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
type Ref<'T> = class end
#else
type Ref<'T> = 'T
#endif

#if FABLE_COMPILER
[<Fable.Co... #endif
            _v327 
            ()
        | _ ->
            ()
    0
let v0 : ((string []) -> int32) = closure0()
let main args = v0 args
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:07 d #27 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
type Ref<'T> = class end
#else
type Ref<'T> = 'T
#endif

#if FABLE_COMPILER
[<Fable.Co... #endif
            _v327 
            ()
        | _ ->
            ()
    0
let v0 : ((string []) -> int32) = closure0()
let main args = v0 args
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:07 d #28 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07 v #6 async.run_with_timeout_async / { timeout = 100 }
00:00:00 d #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: spiral_wasm / hash:  / code.Length: 189321
targetDir: C:\home\git\polyglot\target\Builder\spiral_wasm
Fable 4.21.0: F# to Rust compiler (status: alpha)

Thanks to the contributor! @ncave
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\spiral_wasm\spiral_wasm.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 200ms

Started Fable compilation...

Fable compilation finished in 11367ms

.\lib\spiral\common.fsx(1475,0): (1475,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\sm.fsx(452,0): (452,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1629,0): (1629,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(997,0): (997,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\async_.fsx(76,0): (76,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(127,0): (127,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(3673,0): (3673,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(104,0): (104,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(4709,0): (4709,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(55639,0): (55639,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1505,0): (1505,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!

    Directory: C:\home\git\polyglot\target\Builder\spiral_wasm\target

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2024-09-21 11:02 PM                rs
    Updating crates.io index
 Downloading crates ...
  Downloaded anyhow v1.0.90
   Compiling proc-macro2 v1.0.88
   Compiling libc v0.2.161
   Compiling typenum v1.17.0
   Compiling anyhow v1.0.90
   Compiling rustversion v1.0.18
   Compiling serde_json v1.0.129
   Compiling rustls v0.23.15
   Compiling generic-array v0.14.7
   Compiling rustls-pki-types v1.10.0
   Compiling quote v1.0.37
   Compiling crypto-common v0.1.6
   Compiling jobserver v0.1.32
   Compiling syn v2.0.79
   Compiling syn v1.0.109
   Compiling block-buffer v0.10.4
   Compiling cc v1.1.30
   Compiling proc-macro-error-attr v1.0.4
   Compiling axum-core v0.3.4
   Compiling digest v0.10.7
   Compiling axum v0.6.20
   Compiling parking_lot_core v0.9.10
   Compiling getrandom v0.2.15
   Compiling signal-hook-registry v1.4.2
   Compiling socket2 v0.5.7
   Compiling parking_lot v0.12.3
   Compiling mio v1.0.2
   Compiling rand_core v0.6.4
   Compiling sha2 v0.10.8
   Compiling openssl-src v300.3.2+3.3.2
   Compiling num_cpus v1.16.0
   Compiling block-padding v0.3.3
   Compiling ordered-float v4.4.0
   Compiling openssl v0.10.68
   Compiling inout v0.1.3
   Compiling cipher v0.4.4
   Compiling zstd-sys v2.0.13+zstd.1.5.6
   Compiling ring v0.17.8
   Compiling openssl-sys v0.9.104
   Compiling bzip2-sys v0.1.11+1.0.8
   Compiling secp256k1-sys v0.8.1
   Compiling blake2 v0.10.6
   Compiling darling_core v0.20.10
   Compiling serde_derive_internals v0.29.1
   Compiling proc-macro-error v1.0.4
   Compiling hmac v0.12.1
   Compiling zvariant_utils v1.0.1
   Compiling serde_derive v1.0.210
   Compiling tracing-attributes v0.1.27
   Compiling tokio-macros v2.4.0
   Compiling futures-macro v0.3.31
   Compiling tokio v1.40.0
   Compiling tracing v0.1.40
   Compiling zerocopy-derive v0.7.35
   Compiling futures-util v0.3.31
   Compiling zerocopy v0.7.35
   Compiling serde v1.0.210
   Compiling syn_derive v0.1.8
   Compiling ppv-lite86 v0.2.20
   Compiling thiserror-impl v1.0.64
   Compiling rand_chacha v0.3.1
   Compiling borsh-derive v1.5.1
   Compiling indexmap v2.6.0
   Compiling rand v0.8.5
   Compiling thiserror v1.0.64
   Compiling tokio-util v0.7.12
   Compiling hex v0.4.3
   Compiling async-trait v0.1.83
   Compiling deranged v0.3.11
   Compiling futures-executor v0.3.31
   Compiling time v0.3.36
   Compiling borsh v1.5.1
   Compiling serde_repr v0.1.19
   Compiling pin-project-internal v1.1.6
   Compiling near-account-id v1.0.0
   Compiling h2 v0.3.26
   Compiling tracing-subscriber v0.3.18
   Compiling tokio-stream v0.1.16
   Compiling derive_arbitrary v1.3.2
   Compiling pin-project v1.1.6
   Compiling curve25519-dalek-derive v0.1.1
   Compiling derive_more v0.99.18
   Compiling enum-map-derive v0.17.0
   Compiling arbitrary v1.3.2
   Compiling curve25519-dalek v4.1.3
   Compiling enum-map v2.7.3
   Compiling tower v0.4.13
   Compiling hyper v0.14.31
   Compiling opentelemetry v0.22.0
   Compiling num-rational v0.3.2
   Compiling tokio-io-timeout v1.2.0
   Compiling strum_macros v0.24.3
   Compiling darling_macro v0.20.10
   Compiling prost-derive v0.12.6
   Compiling async-stream-impl v0.3.6
   Compiling opentelemetry_sdk v0.22.1
   Compiling async-stream v0.3.6
   Compiling darling v0.20.10
   Compiling near-primitives-core v0.23.0
   Compiling hyper-timeout v0.4.1
   Compiling strum v0.24.1
   Compiling ed25519-dalek v2.1.1
   Compiling prost v0.12.6
   Compiling uint v0.9.5
   Compiling schemars_derive v0.8.21
   Compiling openssl-macros v0.1.1
   Compiling secp256k1 v0.27.0
   Compiling primitive-types v0.10.1
   Compiling near-config-utils v0.23.0
   Compiling actix-rt v2.10.0
   Compiling actix_derive v0.6.2
   Compiling actix-macros v0.2.4
   Compiling near-crypto v0.23.0
   Compiling zstd-safe v7.2.1
   Compiling actix v0.13.5
   Compiling futures v0.3.31
   Compiling url v2.5.2
   Compiling clap_derive v4.5.18
   Compiling sha1 v0.10.6
   Compiling chrono v0.4.38
   Compiling tonic v0.11.0
   Compiling serde_yaml v0.9.34+deprecated
   Compiling prometheus v0.13.4
   Compiling tracing-opentelemetry v0.23.0
   Compiling serde_with_macros v3.11.0
   Compiling tracing-appender v0.2.3
   Compiling clap v4.5.20
   Compiling near-time v0.23.0
   Compiling near-rpc-error-core v0.23.0
   Compiling h2 v0.4.6
   Compiling semver v1.0.23
   Compiling enumflags2_derive v0.7.10
   Compiling aes v0.8.4
   Compiling dirs-sys-next v0.1.2
   Compiling sha3 v0.10.8
   Compiling serde_with v3.11.0
   Compiling opentelemetry-proto v0.5.0
   Compiling enumflags2 v0.7.10
   Compiling dirs-next v2.0.0
   Compiling near-rpc-error-macro v0.23.0
   Compiling opentelemetry-otlp v0.15.0
   Compiling hyper v1.5.0
   Compiling near-parameters v0.23.0
   Compiling zstd v0.13.2
   Compiling io-lifetimes v1.0.11
   Compiling near-performance-metrics v0.23.0
   Compiling zvariant_derive v3.15.2
   Compiling near-o11y v0.23.0
   Compiling near-fmt v0.23.0
   Compiling zstd-safe v5.0.2+zstd.1.5.2
   Compiling bytesize v1.3.0
   Compiling smart-default v0.6.0
   Compiling near-async-derive v0.23.0
   Compiling filetime v0.2.25
   Compiling rustix v0.37.27
   Compiling near-primitives v0.23.0
   Compiling schemars v0.8.21
   Compiling zvariant v3.15.2
   Compiling hyper-util v0.1.9
   Compiling rustls-webpki v0.102.8
   Compiling near-async v0.23.0
   Compiling polling v2.8.0
   Compiling http-body-util v0.1.2
   Compiling interactive-clap-derive v0.2.10
   Compiling backtrace v0.3.71
   Compiling socket2 v0.4.10
   Compiling vte_generate_state_changes v0.1.2
   Compiling bitcoin-internals v0.2.0
   Compiling password-hash v0.4.2
   Compiling vte v0.11.1
   Compiling async-io v1.13.0
   Compiling nix v0.26.4
   Compiling interactive-clap v0.2.10
   Compiling zbus_names v2.6.1
   Compiling zstd v0.11.2+zstd.1.5.2
   Compiling bzip2 v0.4.4
   Compiling signal-hook v0.3.17
   Compiling webpki-roots v0.26.6
   Compiling async-executor v1.13.1
   Compiling zbus_macros v3.15.2
   Compiling tracing-error v0.2.0
   Compiling serde_urlencoded v0.7.1
   Compiling derivative v2.2.0
   Compiling async-recursion v1.1.1
   Compiling xdg-home v1.3.0
   Compiling mio v0.8.11
   Compiling digest v0.9.0
   Compiling rustls-pemfile v2.2.0
   Compiling color-spantrace v0.2.1
   Compiling ureq v2.10.1
   Compiling eyre v0.6.12
   Compiling zip v0.6.6
   Compiling dirs-sys v0.4.1
   Compiling near-chain-configs v0.23.0
   Compiling tar v0.4.42
   Compiling signal-hook-mio v0.2.4
   Compiling zbus v3.15.2
   Compiling vt100 v0.15.2
   Compiling ahash v0.8.11
   Compiling pbkdf2 v0.11.0
   Compiling near-abi v0.4.3
   Compiling near_schemafy_core v0.7.0
   Compiling console v0.15.8
   Compiling toml_datetime v0.6.8
   Compiling serde_spanned v0.6.8
   Compiling near-jsonrpc-primitives v0.23.0
   Compiling scroll_derive v0.11.1
   Compiling hkdf v0.12.4
   Compiling cbc v0.1.2
   Compiling fs2 v0.4.3
   Compiling crypto-mac v0.9.1
   Compiling block-buffer v0.9.0
   Compiling string_cache v0.8.7
   Compiling sha2 v0.9.9
   Compiling indicatif v0.17.8
   Compiling binary-install v0.2.0
   Compiling bitcoin_hashes v0.13.0
   Compiling toml_edit v0.22.22
   Compiling secret-service v3.1.0
   Compiling csv v1.3.0
   Compiling scroll v0.11.0
   Compiling hmac v0.9.0
   Compiling near_schemafy_lib v0.7.0
   Compiling hashbrown v0.14.5
   Compiling crossterm v0.25.0
   Compiling color-eyre v0.6.3
   Compiling dirs v5.0.1
   Compiling near-token v0.2.1
   Compiling term v0.7.0
   Compiling is-terminal v0.4.13
   Compiling memmap2 v0.5.10
   Compiling linux-keyutils v0.2.4
   Compiling hybrid-array v0.2.0-rc.11
   Compiling pathdiff v0.2.2
   Compiling elementtree v0.7.0
   Compiling goblin v0.5.4
   Compiling near-sandbox-utils v0.8.0
   Compiling open v5.3.0
   Compiling prettytable v0.10.0
   Compiling inquire v0.7.5
   Compiling keyring v2.3.3
   Compiling symbolic-common v8.8.0
   Compiling shellexpand v3.1.0
   Compiling wasmparser v0.211.1
   Compiling near-abi-client-impl v0.1.1
   Compiling toml v0.8.19
   Compiling slipped10 v0.4.6
   Compiling bip39 v2.1.0
   Compiling tracing-indicatif v0.3.6
   Compiling camino v1.1.9
   Compiling rust_decimal v1.36.0
   Compiling near-gas v0.2.5
   Compiling zip v0.5.13
   Compiling linked-hash-map v0.5.6
   Compiling cargo-platform v0.1.8
   Compiling smart-default v0.7.1
   Compiling symbolic-debuginfo v8.8.0
   Compiling cargo_metadata v0.18.1
   Compiling near-abi-client-macros v0.1.1
   Compiling near-workspaces v0.11.1
   Compiling prettyplease v0.1.25
   Compiling names v0.14.0
   Compiling crypto-common v0.2.0-rc.1
   Compiling block-buffer v0.11.0-rc.2
   Compiling rustc_version v0.4.1
   Compiling jsonptr v0.4.7
   Compiling strum_macros v0.26.4
   Compiling atty v0.2.14
   Compiling digest v0.11.0-pre.9
   Compiling json-patch v2.0.0
   Compiling near-sandbox-utils v0.9.0
   Compiling tokio-retry v0.3.0
   Compiling near-abi-client v0.1.1
   Compiling near-token v0.3.0
   Compiling near-gas v0.3.0
   Compiling uuid v1.11.0
   Compiling near-sdk-macros v5.5.0
   Compiling sha2 v0.11.0-pre.4
   Compiling fable_library_rust v0.1.0 (/mnt/c/home/git/polyglot/lib/rust/fable/fable_modules/fable-library-rust)
   Compiling near-sandbox-utils v0.11.0
   Compiling near-sdk v5.5.0
   Compiling native-tls v0.2.12
   Compiling crypto-hash v0.3.4
   Compiling cargo-util v0.1.2
   Compiling tokio-native-tls v0.3.1
   Compiling hyper-tls v0.6.0
   Compiling reqwest v0.12.8
   Compiling near-jsonrpc-client v0.10.1
   Compiling near-socialdb-client v0.3.2
   Compiling near-cli-rs v0.11.1
   Compiling cargo-near v0.6.4
   Compiling spiral_wasm v0.0.1 (/mnt/c/home/git/polyglot/apps/spiral/wasm)
    Finished `release` profile [optimized] target(s) in 17m 44s

In [ ]:
{ pwsh ../lib/math/build.ps1 } | Invoke-Block
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:02 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:02 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:02 v #6 > Server bound to: http://localhost:13805
00:00:02 d #7 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path math.dib --retries 1"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 1; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:02 v #8 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "math.dib", "--retries", "1"])) }
00:00:02 v #9 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/math/math.dib", "--output-path", "c:/home/git/polyglot/lib/math/math.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/math/math.dib" --output-path "c:/home/git/polyglot/lib/math/math.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 v #10 > >
00:00:04 v #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #13 > > │ # math                                                                       │
00:00:04 v #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 v #15 > >
00:00:09 v #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 v #17 > > open testing
00:00:09 v #18 > > open rust.rust_operators
00:00:09 v #19 > > open rust
00:00:10 v #20 > 00:00:09 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75192e2bd8a105a977baa446a488b2c386f635a602336316ab60fff71bf46d9c/main.spi
00:00:14 v #21 > >
00:00:14 v #22 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 v #23 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 v #24 > > │ ## complex                                                                   │
00:00:14 v #25 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 v #26 > >
00:00:14 v #27 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 v #28 > > nominal complex t =
00:00:14 v #29 > >     `(
00:00:14 v #30 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:14 v #31 > > Fable.Core.Emit(\"num_complex::Complex<$0>\")>]]\n#endif\ntype
00:00:14 v #32 > > num_complex_Complex<'T> = class end"
00:00:14 v #33 > >         $'' : $'num_complex_Complex<`t>'
00:00:14 v #34 > >     )
00:00:14 v #35 > >
00:00:14 v #36 > > inl complex forall t. ((re : t), (im : t)) : complex t =
00:00:14 v #37 > >     !\\((re, im), $'"num_complex::Complex::new($0, $1)"')
00:00:15 v #38 > 00:00:14 d #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e51fd2598ab4009e07c692c0376fc887241c677686a5908afa7955bea19997a8/main.spi
00:00:15 v #39 > >
00:00:15 v #40 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 v #41 > > //// test
00:00:15 v #42 > > ///! rust -d num-complex
00:00:15 v #43 > >
00:00:15 v #44 > > complex (0f64, 0f64)
00:00:15 v #45 > > |> sm'.format'
00:00:15 v #46 > > |> sm'.from_std_string
00:00:15 v #47 > > |> _assert_eq "0+0i"
00:00:15 v #48 > 00:00:15 d #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5d334cbd4293641e471987ecb6548bc70790fb39219634e85a02871d97e62c4/main.spi
00:00:45 v #49 > >
00:00:45 v #50 > > ╭─[ 29.59s - return value ]────────────────────────────────────────────────────╮
00:00:45 v #51 > > │ __assert_eq / actual: "0+0i" / expected: "0+0i"                              │
00:00:45 v #52 > > │                                                                              │
00:00:45 v #53 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 v #54 > >
00:00:45 v #55 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 v #56 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 v #57 > > │ ## re                                                                        │
00:00:45 v #58 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 v #59 > >
00:00:45 v #60 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 v #61 > > inl re forall t. (c : complex t) : t =
00:00:45 v #62 > >     !\\(c, $'"$0.re"')
00:00:45 v #63 > 00:00:44 d #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/98a6c290584dd4b1c5a62de3f24f97e15b8ead9edf2c5118562140b096adbf9c/main.spi
00:00:45 v #64 > >
00:00:45 v #65 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 v #66 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 v #67 > > │ ## im                                                                        │
00:00:45 v #68 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 v #69 > >
00:00:45 v #70 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 v #71 > > inl im forall t. (c : complex t) : t =
00:00:45 v #72 > >     !\\(c, $'"$0.im"')
00:00:46 v #73 > 00:00:45 d #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/382a3434375cedd01646c4dbd2961bb2b62cb7ac348111e9aee3fc4b8c237c2e/main.spi
00:00:46 v #74 > >
00:00:46 v #75 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 v #76 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 v #77 > > │ ## complex_unbox                                                             │
00:00:46 v #78 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 v #79 > >
00:00:46 v #80 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 v #81 > > inl complex_unbox forall t. (c : complex t) =
00:00:46 v #82 > >     re c, im c
00:00:46 v #83 > 00:00:45 d #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/891da2e415cc31d3593e1ed0f295464e0e178f1c4f854dd7d4a6c863572c2621/main.spi
00:00:46 v #84 > >
00:00:46 v #85 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 v #86 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 v #87 > > │ ## (~.^)                                                                     │
00:00:46 v #88 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 v #89 > >
00:00:46 v #90 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 v #91 > > inl (~.^) c = complex c
00:00:46 v #92 > 00:00:45 d #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/96f239f14d98537ecec8d8daf0f6cc814424e55a2b2fb4dc6c1fe9680f9a0670/main.spi
00:00:47 v #93 > >
00:00:47 v #94 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 v #95 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 v #96 > > │ ## complex_eq                                                                │
00:00:47 v #97 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 v #98 > >
00:00:47 v #99 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 v #100 > > inl complex_eq forall t. (a : complex t) (b : complex t) : bool =
00:00:47 v #101 > >     !\\((a, b), $'"$0 == $1"')
00:00:47 v #102 > 00:00:46 d #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b2946ed6c76ccb917bf52ff05e1e174cca1b9421e029ac3da7f4b2bc3a664043/main.spi
00:00:47 v #103 > >
00:00:47 v #104 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 v #105 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 v #106 > > │ ## (.=)                                                                      │
00:00:47 v #107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 v #108 > >
00:00:47 v #109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 v #110 > > inl (.=) a b = complex_eq a b
00:00:47 v #111 > 00:00:46 d #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b71950173ecf8b08727203f04e095e76efffaca355f7a3ef1754c3181196aefa/main.spi
00:00:48 v #112 > >
00:00:48 v #113 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 v #114 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 v #115 > > │ ## equable complex                                                           │
00:00:48 v #116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 v #117 > >
00:00:48 v #118 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 v #119 > > instance equable complex t = complex_eq
00:00:48 v #120 > 00:00:47 d #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd1bab313f138113a8f07a5efea674c696d84f297fda44a7e2fc417dc9a09303/main.spi
00:00:48 v #121 > >
00:00:48 v #122 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 v #123 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 v #124 > > │ ## complex_add                                                               │
00:00:48 v #125 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 v #126 > >
00:00:48 v #127 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 v #128 > > inl complex_add forall t. (a : complex t) (b : complex t) : complex t =
00:00:48 v #129 > >     !\\((a, b), $'"$0 + $1"')
00:00:48 v #130 > 00:00:47 d #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2e6b8a36262e366b9d6dbd6f2ec4d288fdb75c716343624d8ff203100bfab2e3/main.spi
00:00:48 v #131 > >
00:00:48 v #132 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 v #133 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 v #134 > > │ ## (.+)                                                                      │
00:00:48 v #135 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 v #136 > >
00:00:48 v #137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 v #138 > > inl (.+) a b = complex_add a b
00:00:49 v #139 > 00:00:48 d #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1115358c2b4f15964141886290b7cc3b595c0a1e2cbce632ee0b49f86fe3921c/main.spi
00:00:49 v #140 > >
00:00:49 v #141 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 v #142 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 v #143 > > │ ## complex_sub                                                               │
00:00:49 v #144 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 v #145 > >
00:00:49 v #146 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 v #147 > > inl complex_sub forall t. (a : complex t) (b : complex t) : complex t =
00:00:49 v #148 > >     !\\((a, b), $'"$0 - $1"')
00:00:49 v #149 > 00:00:48 d #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6661821b089c77d6a3296e40c1bc8438532a039cfc05c36d46b8832fb5450597/main.spi
00:00:49 v #150 > >
00:00:49 v #151 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 v #152 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 v #153 > > │ ## (.-)                                                                      │
00:00:49 v #154 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 v #155 > >
00:00:49 v #156 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 v #157 > > inl (.-) a b = complex_sub a b
00:00:49 v #158 > 00:00:49 d #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a6e57d0bec3cd5388bc1af53ccb7f8b1e34cb04ca0198f4b80f265a0997470c2/main.spi
00:00:50 v #159 > >
00:00:50 v #160 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 v #161 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 v #162 > > │ ## complex_mult                                                              │
00:00:50 v #163 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 v #164 > >
00:00:50 v #165 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 v #166 > > inl complex_mult forall t. (a : complex t) (b : complex t) : complex t =
00:00:50 v #167 > >     !\\((a, b), $'"$0 * $1"')
00:00:50 v #168 > 00:00:49 d #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0cfb2a4766af34f9e1a5ba9319c701c9c33d5705c88878431935c5647b79c100/main.spi
00:00:50 v #169 > >
00:00:50 v #170 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 v #171 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 v #172 > > │ ## (.*)                                                                      │
00:00:50 v #173 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 v #174 > >
00:00:50 v #175 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 v #176 > > inl (.*) a b = complex_mult a b
00:00:50 v #177 > 00:00:49 d #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25b5dd6f327c93025289fd45bcf818ec1bdae48f4a8facea194f74d36d5d6e36/main.spi
00:00:50 v #178 > >
00:00:50 v #179 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 v #180 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 v #181 > > │ ## complex_div                                                               │
00:00:50 v #182 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 v #183 > >
00:00:50 v #184 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 v #185 > > inl complex_div forall t. (a : complex t) (b : complex t) : complex t =
00:00:50 v #186 > >     !\\((a, b), $'"$0 / $1"')
00:00:51 v #187 > 00:00:50 d #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6e10de6c0dc45fcbcd48aaccf16fbfa47b4e404f45aa8afc608de1a4edab43a6/main.spi
00:00:51 v #188 > >
00:00:51 v #189 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 v #190 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 v #191 > > │ ## (./)                                                                      │
00:00:51 v #192 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 v #193 > >
00:00:51 v #194 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 v #195 > > inl (./) a b = complex_div a b
00:00:51 v #196 > 00:00:50 d #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e3eba7ec898a133d35a80e106011809c9bba1f35ac9e31131cf38ba920175497/main.spi
00:00:51 v #197 > >
00:00:51 v #198 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 v #199 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 v #200 > > │ ## powc                                                                      │
00:00:51 v #201 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 v #202 > >
00:00:51 v #203 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 v #204 > > inl powc forall t. (s : complex t) (c : complex t) : complex t =
00:00:51 v #205 > >     !\\((c, s), $'"num_complex::Complex::powc($0, $1)"')
00:00:52 v #206 > 00:00:51 d #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/30eb17f3efb9da1663bc0af6ef04335bfb83cc1a2d8467be851d604715b948ed/main.spi
00:00:52 v #207 > >
00:00:52 v #208 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 v #209 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 v #210 > > │ ## (.**)                                                                     │
00:00:52 v #211 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 v #212 > >
00:00:52 v #213 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 v #214 > > inl (.**) a b = powc b a
00:00:52 v #215 > 00:00:51 d #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/abcede37b0138f53e5194a4179056b96f96edac2772a041c49f88b300dfe4504/main.spi
00:00:52 v #216 > >
00:00:52 v #217 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 v #218 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 v #219 > > │ ## complex_sin                                                               │
00:00:52 v #220 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 v #221 > >
00:00:52 v #222 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 v #223 > > inl complex_sin forall t. (c : complex t) : complex t =
00:00:52 v #224 > >     !\\(c, $'"$0.sin()"')
00:00:53 v #225 > 00:00:52 d #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a09a5967e152a6e75955ae7d6a10442636328351056ae1939155be0c32b6acf/main.spi
00:00:53 v #226 > >
00:00:53 v #227 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 v #228 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 v #229 > > │ ## conj                                                                      │
00:00:53 v #230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 v #231 > >
00:00:53 v #232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 v #233 > > inl conj forall t. (c : complex t) : complex t =
00:00:53 v #234 > >     !\\(c, $'"$0.conj()"')
00:00:53 v #235 > 00:00:52 d #25 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/929cf36ac4c3177cf4b17d212861b0e97d0120deabbaa605ef77fa9474511020/main.spi
00:00:53 v #236 > >
00:00:53 v #237 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 v #238 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 v #239 > > │ ## zeta                                                                      │
00:00:53 v #240 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 v #241 > >
00:00:53 v #242 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 v #243 > > inl zeta log (gamma : complex f64 -> complex f64) (s : complex f64) : complex
00:00:53 v #244 > > f64 =
00:00:53 v #245 > >     inl rec zeta count gamma s =
00:00:53 v #246 > >         if log then
00:00:53 v #247 > >             !\\((count, s), $'"println\!(\\\"zeta / count: {:?} / s: {:?}\\\",
00:00:53 v #248 > > $0, $1)"')
00:00:53 v #249 > >         if re s > 1 then
00:00:53 v #250 > >             (.^(0, 0), (am.init 10000i32 id : a i32 _))
00:00:53 v #251 > >             ||> am.fold fun acc n =>
00:00:53 v #252 > >                 acc .+ (.^(1, 0) ./ (.^(f64 n, 0) .** s))
00:00:53 v #253 > >         else
00:00:53 v #254 > >             inl gamma_term = gamma (.^(1, 0) .- s)
00:00:53 v #255 > >             inl sin_term = .^(pi, 0) .* s ./ .^(2, 0) |> complex_sin
00:00:53 v #256 > >             inl one_minus_s = .^(1 - re s, -(im s))
00:00:53 v #257 > >             inl mirror_term =
00:00:53 v #258 > >                 if re one_minus_s <= 1
00:00:53 v #259 > >                 then .^(0, 0)
00:00:53 v #260 > >                 else
00:00:53 v #261 > >                     if count <= 3
00:00:53 v #262 > >                     then zeta (count + 1) gamma one_minus_s
00:00:53 v #263 > >                     else one_minus_s
00:00:53 v #264 > >             inl reflection_formula =
00:00:53 v #265 > >                 .^(2, 0) .* (.^(pi, 0) .** s) .* sin_term .* gamma_term .*
00:00:53 v #266 > > mirror_term
00:00:53 v #267 > >             reflection_formula
00:00:53 v #268 > >     join zeta 0i32 gamma s
00:00:53 v #269 > 00:00:53 d #26 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/065417638ea857282df8947b4cd609f5b8bea2f6545198a2d98091429762e7cf/main.spi
00:00:54 v #270 > >
00:00:54 v #271 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 v #272 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 v #273 > > │ ## bound                                                                     │
00:00:54 v #274 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 v #275 > >
00:00:54 v #276 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 v #277 > > nominal bound t =
00:00:54 v #278 > >     `(
00:00:54 v #279 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:54 v #280 > > Fable.Core.Emit(\"pyo3::Bound<$0>\")>]]\n#endif\ntype pyo3_Bound<'T> = class
00:00:54 v #281 > > end"
00:00:54 v #282 > >         $'' : $'pyo3_Bound<`t>'
00:00:54 v #283 > >     )
00:00:54 v #284 > 00:00:53 d #27 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/359e203ed7a3d8f50e76865b4d9aea7194fd6b3cb964c881609a7cd69841d40f/main.spi
00:00:54 v #285 > >
00:00:54 v #286 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 v #287 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 v #288 > > │ ## python                                                                    │
00:00:54 v #289 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 v #290 > >
00:00:54 v #291 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 v #292 > > nominal python =
00:00:54 v #293 > >     `(
00:00:54 v #294 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:54 v #295 > > Fable.Core.Emit(\"pyo3::Python\")>]]\n#endif\ntype pyo3_Python = class end"
00:00:54 v #296 > >         $'' : $'pyo3_Python'
00:00:54 v #297 > >     )
00:00:54 v #298 > 00:00:53 d #28 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6dd48c550ea721df4e110a239f7cd72aa1e3aae17bcae2a9c7a3538b152775f7/main.spi
00:00:54 v #299 > >
00:00:54 v #300 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 v #301 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 v #302 > > │ ## pymodule                                                                  │
00:00:54 v #303 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 v #304 > >
00:00:54 v #305 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 v #306 > > nominal pymodule =
00:00:54 v #307 > >     `(
00:00:54 v #308 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:54 v #309 > > Fable.Core.Emit(\"pyo3::types::PyModule\")>]]\n#endif\ntype pyo3_types_PyModule
00:00:54 v #310 > > = class end"
00:00:54 v #311 > >         $'' : $'pyo3_types_PyModule'
00:00:54 v #312 > >     )
00:00:55 v #313 > 00:00:54 d #29 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51010d52554f4737175d2bcdff33875a21d87b878fa65befdb12924831d3f2d8/main.spi
00:00:55 v #314 > >
00:00:55 v #315 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 v #316 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 v #317 > > │ ## pyany                                                                     │
00:00:55 v #318 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 v #319 > >
00:00:55 v #320 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 v #321 > > nominal pyany =
00:00:55 v #322 > >     `(
00:00:55 v #323 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:55 v #324 > > Fable.Core.Emit(\"pyo3::PyAny\")>]]\n#endif\ntype pyo3_PyAny = class end"
00:00:55 v #325 > >         $'' : $'pyo3_PyAny'
00:00:55 v #326 > >     )
00:00:55 v #327 > 00:00:54 d #30 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12a522f2740b4d80d3ddc564f1ddb22fa776a8b3d535dd117764eb69231ce2e8/main.spi
00:00:55 v #328 > >
00:00:55 v #329 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 v #330 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 v #331 > > │ ## pyerr                                                                     │
00:00:55 v #332 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 v #333 > >
00:00:55 v #334 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 v #335 > > nominal pyerr =
00:00:55 v #336 > >     `(
00:00:55 v #337 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:55 v #338 > > Fable.Core.Emit(\"pyo3::PyErr\")>]]\n#endif\ntype pyo3_PyErr = class end"
00:00:55 v #339 > >         $'' : $'pyo3_PyErr'
00:00:55 v #340 > >     )
00:00:56 v #341 > 00:00:55 d #31 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f92c274d2acf035c378d82a88304cb119a7ba7a37fcc537ce5da8b22037005a/main.spi
00:00:56 v #342 > >
00:00:56 v #343 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 v #344 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 v #345 > > │ ## eval                                                                      │
00:00:56 v #346 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 v #347 > >
00:00:56 v #348 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 v #349 > > inl module_from_code (py : python) (code : string) : _ (bound pymodule) _ =
00:00:56 v #350 > >     inl py = join py
00:00:56 v #351 > >     inl code = code |> sm'.as_str
00:00:56 v #352 > >     !\\(code, $'"pyo3::types::PyModule::from_code_bound(!py, $0, \\"\\",
00:00:56 v #353 > > \\"\\")"')
00:00:56 v #354 > >     |> resultm.map_error'' fun (x : pyerr) => x |> sm'.format'
00:00:56 v #355 > >
00:00:56 v #356 > > inl use_pyanymethods () =
00:00:56 v #357 > >     global "Fable.Core.RustInterop.emitRustExpr () \");\nuse
00:00:56 v #358 > > pyo3::prelude::PyAnyMethods;\n//\""
00:00:56 v #359 > >
00:00:56 v #360 > > inl getattr (attr : string) (module : bound pymodule) : _ (bound pyany) _ =
00:00:56 v #361 > >     inl attr = join attr
00:00:56 v #362 > >     inl attr = attr |> sm'.as_str
00:00:56 v #363 > >     inl module = join module
00:00:56 v #364 > >     use_pyanymethods ()
00:00:56 v #365 > >     !\\(attr, $'"!module.getattr($0)"')
00:00:56 v #366 > >     |> resultm.map_error'' fun (x : pyerr) => x |> sm'.format'
00:00:56 v #367 > >
00:00:56 v #368 > > inl call forall t. (args : t) (module : bound pyany) : _ (bound pyany) _ =
00:00:56 v #369 > >     inl args = join args
00:00:56 v #370 > >     inl module = join module
00:00:56 v #371 > >     !\($'"pyo3::prelude::PyAnyMethods::call(&!module, ((*!args).0, *(*!args).1),
00:00:56 v #372 > > None)"')
00:00:56 v #373 > >     |> resultm.map_error'' fun (x : pyerr) => x |> sm'.format'
00:00:56 v #374 > >
00:00:56 v #375 > > inl extract forall t. (result : bound pyany) : _ t _ =
00:00:56 v #376 > >     inl result = join result
00:00:56 v #377 > >     use_pyanymethods ()
00:00:56 v #378 > >     !\($'"!result.extract()"')
00:00:56 v #379 > >     |> resultm.map_error'' fun (x : pyerr) => x |> sm'.format'
00:00:56 v #380 > >
00:00:56 v #381 > > inl eval py code (args : pair bool (pair f64 f64)) : _ (_ f64) sm'.std_string =
00:00:56 v #382 > >     inl code =
00:00:56 v #383 > >         code
00:00:56 v #384 > >         |> module_from_code py
00:00:56 v #385 > >         |> resultm.unwrap'
00:00:56 v #386 > >     inl fn =
00:00:56 v #387 > >         code
00:00:56 v #388 > >         |> getattr "fn"
00:00:56 v #389 > >         |> resultm.unwrap'
00:00:56 v #390 > >
00:00:56 v #391 > >     fn
00:00:56 v #392 > >     |> call args
00:00:56 v #393 > >     |> resultm.try'
00:00:56 v #394 > >     |> extract
00:00:56 v #395 > >     |> resultm.try'
00:00:56 v #396 > >     |> complex
00:00:56 v #397 > >     |> Ok
00:00:56 v #398 > >     |> resultm.box
00:00:56 v #399 > >
00:00:56 v #400 > > inl call1_ log py s code =
00:00:56 v #401 > >     inl code = join (a code : _ i32 _) |> sm'.concat_array_trailing "\n"
00:00:56 v #402 > >
00:00:56 v #403 > >     inl s = new_pair (re s) (im s)
00:00:56 v #404 > >     inl args = new_pair log s
00:00:56 v #405 > >
00:00:56 v #406 > >     eval py code args
00:00:56 v #407 > >
00:00:56 v #408 > > inl call1_ log name py s line =
00:00:56 v #409 > >     inl s = join s
00:00:56 v #410 > >     join
00:00:56 v #411 > >         ;[[
00:00:56 v #412 > >             $'$"import sys"'
00:00:56 v #413 > >             $'$"import traceback"'
00:00:56 v #414 > >             $'$"import re"'
00:00:56 v #415 > >             $'$"count = 0"'
00:00:56 v #416 > >             $'$"memory_address_pattern = re.compile(r\' at 0x[[0-9a-fA-F]]+\')"'
00:00:56 v #417 > >             $'$"def trace_calls(frame, event, arg):"'
00:00:56 v #418 > >             $'$"    global count"'
00:00:56 v #419 > >             $'$"    count += 1"'
00:00:56 v #420 > >             $'$"    if count < 200:"'
00:00:56 v #421 > >             $'$"        try:"'
00:00:56 v #422 > >             $'$"            args = {{ k: v for k, v in frame.f_locals.items() if
00:00:56 v #423 > > frame.f_code.co_name \!= \'make_mpc\' and k not in [[\'ctx\']] and not
00:00:56 v #424 > > callable(v) }}"'
00:00:56 v #425 > >             $'$"            args_str = \', \'.join([[
00:00:56 v #426 > > f\\\"{{k}}={{re.sub(memory_address_pattern, \' at 0x<?>\', repr(v))}}\\\" for k,
00:00:56 v #427 > > v in args.items() ]])"'
00:00:56 v #428 > >             $'$"            print(f\\\"{{event}}({!name}) / f_code.co_name:
00:00:56 v #429 > > {{frame.f_code.co_name}} / f_locals: {{args_str}} / f_lineno: {{frame.f_lineno}}
00:00:56 v #430 > > / f_code.co_filename:
00:00:56 v #431 > > {{frame.f_code.co_filename.split(\'site-packages\')[[-1]]}} / f_back.f_lineno:
00:00:56 v #432 > > {{ \'\' if frame.f_back is None else frame.f_back.f_lineno }}
00:00:56 v #433 > > f_back.f_code.co_filename: {{ \'\' if frame.f_back is None else
00:00:56 v #434 > > frame.f_back.f_code.co_filename.split(\'site-packages\')[[-1]] }} / arg:
00:00:56 v #435 > > {{re.sub(memory_address_pattern, \' at 0x<?>\', repr(arg))}}\\\", flush=True)"'
00:00:56 v #436 > >             $'$"        except ValueError as e:"'
00:00:56 v #437 > >             $'$"            print(f\'{!name} / e: {{e}}\', flush=True)"'
00:00:56 v #438 > >             $'$"        return trace_calls"'
00:00:56 v #439 > >             $'$"import mpmath"'
00:00:56 v #440 > >             $'$"def fn(log, s):"'
00:00:56 v #441 > >             $'$"    global count"'
00:00:56 v #442 > >             $'$"    if log:"'
00:00:56 v #443 > >             $'$"        print(f\'{!name} / s: {{s}} / count: {{count}}\',
00:00:56 v #444 > > flush=True)"'
00:00:56 v #445 > >             $'$"    s = complex(*s)"'
00:00:56 v #446 > >             $'$"    try:"'
00:00:56 v #447 > >             $'$"        if log: sys.settrace(trace_calls)"'
00:00:56 v #448 > >             line
00:00:56 v #449 > >             $'$"        if log:"'
00:00:56 v #450 > >             $'$"            sys.settrace(None)"'
00:00:56 v #451 > >             $'$"            print(f\'{!name} / result: {{s}} / count:
00:00:56 v #452 > > {{count}}\', flush=True)"'
00:00:56 v #453 > >             $'$"    except ValueError as e:"'
00:00:56 v #454 > >             $'$"        if s.real == 1:"'
00:00:56 v #455 > >             $'$"            s = complex(float(\'inf\'), 0)"'
00:00:56 v #456 > >             $'$"    return (s.real, s.imag)"'
00:00:56 v #457 > >         ]]
00:00:56 v #458 > >         |> call1_ log py s
00:00:56 v #459 > >
00:00:56 v #460 > > inl gamma_ log py s =
00:00:56 v #461 > >     call1_ log "gamma_" py s $'$"        s = mpmath.gamma(s)"'
00:00:56 v #462 > >
00:00:56 v #463 > > inl zeta_ log py s =
00:00:56 v #464 > >     call1_ log "zeta_" py s $'$"        s = mpmath.zeta(s)"'
00:00:56 v #465 > 00:00:55 d #32 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df89e5de09c172db46b4e404082a06ce53915942076fce7c995ec8100483c96a/main.spi
00:00:56 v #466 > >
00:00:56 v #467 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 v #468 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 v #469 > > │ ## run_test                                                                  │
00:00:56 v #470 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 v #471 > >
00:00:56 v #472 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 v #473 > > inl run_test log (fn : (complex f64 -> complex f64) * (complex f64 -> complex
00:00:56 v #474 > > f64) -> ()) =
00:00:56 v #475 > >     inl fn_ (py : python) : resultm.result' () pyerr =
00:00:56 v #476 > >         inl nan () =
00:00:56 v #477 > >             !\($'"f64::NAN"')
00:00:56 v #478 > >         inl gamma__ = fun (s : complex f64) =>
00:00:56 v #479 > >             inl result = gamma_ log py s
00:00:56 v #480 > >             if log then
00:00:56 v #481 > >                 inl s = join s
00:00:56 v #482 > >                 !\($'"println\!(\\\"gamma__ / s: {:?} / result: {:?}\\\", !s,
00:00:56 v #483 > > !result)"')
00:00:56 v #484 > >             result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:56 v #485 > > .^(nan (), nan ())
00:00:56 v #486 > >         inl zeta__ = fun (s : complex f64) =>
00:00:56 v #487 > >             inl result = zeta_ log py s
00:00:56 v #488 > >
00:00:56 v #489 > >             inl z = zeta true gamma__ s
00:00:56 v #490 > >
00:00:56 v #491 > >             if log then
00:00:56 v #492 > >                 inl s = join s
00:00:56 v #493 > >                 !\($'"println\!(\\\"zeta__ / s: {:?} / result: {:?} / z:
00:00:56 v #494 > > {:?}\\\", !s, !result, !z)"')
00:00:56 v #495 > >
00:00:56 v #496 > >     //             re result - re x |> abs
00:00:56 v #497 > >     //             |> _assert_lt 0.001
00:00:56 v #498 > >
00:00:56 v #499 > >     //             im result - im x |> abs
00:00:56 v #500 > >     //             |> _assert_lt 0.001
00:00:56 v #501 > >
00:00:56 v #502 > >             result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:56 v #503 > > .^(nan (), nan ())
00:00:56 v #504 > >         join fn (zeta__, gamma__)
00:00:56 v #505 > >
00:00:56 v #506 > >         Ok ()
00:00:56 v #507 > >         |> resultm.box
00:00:56 v #508 > >
00:00:56 v #509 > >     join
00:00:56 v #510 > >         !\($'"pyo3::prepare_freethreaded_python()"') : ()
00:00:56 v #511 > >
00:00:56 v #512 > >         !\($'"let __run_test = pyo3::Python::with_gil(|py| -> pyo3::PyResult<()>
00:00:56 v #513 > > { //"')
00:00:56 v #514 > >
00:00:56 v #515 > >         let x' = fn_ (!\($'"py"') : python)
00:00:56 v #516 > >         inl x' = join x'
00:00:56 v #517 > >
00:00:56 v #518 > >         inl closure_fix = 2u8, 1u8
00:00:56 v #519 > >         x' |> rust.fix_closure closure_fix
00:00:56 v #520 > >
00:00:56 v #521 > >         (!\($'"__run_test"') : _ () pyerr)
00:00:56 v #522 > >         |> resultm.unwrap'
00:00:56 v #523 > 00:00:56 d #33 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5f087d84db92a7db13429acf709376500bc580146aae96ba7b11d9641506f870/main.spi
00:00:57 v #524 > >
00:00:57 v #525 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 v #526 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 v #527 > > │ ## test_zeta_at_known_values_                                                │
00:00:57 v #528 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 v #529 > >
00:00:57 v #530 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 v #531 > > inl test_zeta_at_known_values_ log = run_test log fun zeta, gamma =>
00:00:57 v #532 > >     ;[[
00:00:57 v #533 > >         .^(2, 0), pi ** 2 / 6
00:00:57 v #534 > >         .^(-1, 0), -1 / 12
00:00:57 v #535 > >     ]]
00:00:57 v #536 > >     |> fun x => a x : _ i32 _
00:00:57 v #537 > >     |> am.iter fun s, e =>
00:00:57 v #538 > >         inl result = zeta s
00:00:57 v #539 > >
00:00:57 v #540 > >         result |> im |> _assert_eq 0
00:00:57 v #541 > >         re result - e |> abs |> _assert_lt 0.0001
00:00:57 v #542 > 00:00:56 d #34 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0afcc375dc3a300065d7b899d3e558727ab5216fce80e67ac5c3d85c2b493441/main.spi
00:00:57 v #543 > >
00:00:57 v #544 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 v #545 > > //// test
00:00:57 v #546 > > ///! rust -d num-complex pyo3
00:00:57 v #547 > >
00:00:57 v #548 > > test_zeta_at_known_values_ true
00:00:57 v #549 > 00:00:56 d #35 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1fadd5d3d338f54c03790780f4732a8224aa79d84faeb19816efbe85eeeb7e09/main.spi
00:01:36 v #550 > >
00:01:36 v #551 > > ╭─[ 38.72s - return value ]────────────────────────────────────────────────────╮
00:01:36 v #552 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:01:36 v #553 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:36 v #554 > > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:                 │
00:01:36 v #555 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:36 v #556 > > │ / arg: None                                                                  │
00:01:36 v #557 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:36 v #558 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:36 v #559 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:36 v #560 > > │ / arg: None                                                                  │
00:01:36 v #561 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:36 v #562 > > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename:            │
00:01:36 v #563 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:36 v #564 > > │ / arg: None                                                                  │
00:01:36 v #565 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:36 v #566 > > │ method=None, kwargs={}, d=0 / f_lineno: 532 / f_code.co_filename:            │
00:01:36 v #567 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:36 v #568 > > │ / arg: None                                                                  │
00:01:36 v #569 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:36 v #570 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:36 v #571 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:36 v #572 > > │ / arg: None                                                                  │
00:01:36 v #573 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:01:36 v #574 > > │ / f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py /             │
00:01:36 v #575 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:01:36 v #576 > > │ / arg: None                                                                  │
00:01:36 v #577 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:01:36 v #578 > > │ / f_linen...me: make_mpc / f_locals:  / f_lineno: 603 / f_code.co_filename:  │
00:01:36 v #579 > > │ \mpmath\ctx_mp_python.py / f_back.f_lineno: 1007 /                           │
00:01:36 v #580 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:01:36 v #581 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 604 /       │
00:01:36 v #582 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1007 /       │
00:01:36 v #583 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:01:36 v #584 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 605 /       │
00:01:36 v #585 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1007 /       │
00:01:36 v #586 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:01:36 v #587 > > │ return(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 605 /     │
00:01:36 v #588 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1007 /       │
00:01:36 v #589 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: mpc(real='1.0',   │
00:01:36 v #590 > > │ imag='0.0')                                                                  │
00:01:36 v #591 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='2.0',             │
00:01:36 v #592 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1007 │
00:01:36 v #593 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:01:36 v #594 > > │ f_back.f_code.co_filename:  / arg: mpc(real='1.0', imag='0.0')               │
00:01:36 v #595 > > │ gamma_ / result: (1.0 + 0.0j) / count: 140                                   │
00:01:36 v #596 > > │ gamma__ / s: Complex { re: 2.0, im: 0.0 } / result: Ok(Complex { re: 1.0,    │
00:01:36 v #597 > > │ im: 0.0 })                                                                   │
00:01:36 v #598 > > │ zeta / count: 1 / s: Complex { re: 2.0, im: -0.0 }                           │
00:01:36 v #599 > > │ zeta__ / s: Complex { re: -1.0, im: 0.0 } / result: Ok(Complex { re:         │
00:01:36 v #600 > > │ -0.08333333333333333, im: 0.0 }) / z: Complex { re: NaN, im: NaN }           │
00:01:36 v #601 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:01:36 v #602 > > │ __assert_lt / actual: 0.0 / expected: 0.0001                                 │
00:01:36 v #603 > > │                                                                              │
00:01:36 v #604 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 v #605 > >
00:01:36 v #606 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:36 v #607 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:36 v #608 > > │ ## test_zeta_at_2_minus2                                                     │
00:01:36 v #609 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 v #610 > >
00:01:36 v #611 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:36 v #612 > > inl test_zeta_at_2_minus2 log = run_test log fun zeta, gamma =>
00:01:36 v #613 > >     inl s = .^(2, -2)
00:01:36 v #614 > >     inl result = zeta s
00:01:36 v #615 > >
00:01:36 v #616 > >     (re result - 0.8673) |> abs |> _assert_lt 0.001
00:01:36 v #617 > >     (im result - 0.2750) |> abs |> _assert_lt 0.001
00:01:36 v #618 > 00:01:35 d #36 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47f08087b8e3e63ccb7736bc449f2632f66755845ca482e004e318c094d66899/main.spi
00:01:36 v #619 > >
00:01:36 v #620 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:36 v #621 > > //// test
00:01:36 v #622 > > ///! rust -d num-complex pyo3
00:01:36 v #623 > >
00:01:36 v #624 > > test_zeta_at_2_minus2 true
00:01:36 v #625 > 00:01:36 d #37 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94ea45eef9818e8f2c406c17945dd9894a1d6c7ac6646f210aeb67a0f90391f2/main.spi
00:01:53 v #626 > >
00:01:53 v #627 > > ╭─[ 17.06s - return value ]────────────────────────────────────────────────────╮
00:01:53 v #628 > > │ zeta_ / s: (2.0, -2.0) / count: 0                                            │
00:01:53 v #629 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:01:53 v #630 > > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:                 │
00:01:53 v #631 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:53 v #632 > > │ / arg: None                                                                  │
00:01:53 v #633 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:01:53 v #634 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:53 v #635 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:53 v #636 > > │ / arg: None                                                                  │
00:01:53 v #637 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:01:53 v #638 > > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename:            │
00:01:53 v #639 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:53 v #640 > > │ / arg: None                                                                  │
00:01:53 v #641 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:01:53 v #642 > > │ method=None, kwargs={}, d=0 / f_lineno: 532 / f_code.co_filename:            │
00:01:53 v #643 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:53 v #644 > > │ / arg: None                                                                  │
00:01:53 v #645 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:01:53 v #646 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:53 v #647 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:53 v #648 > > │ / arg: None                                                                  │
00:01:53 v #649 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2-2j), kwargs={}, name='zeta' │
00:01:53 v #650 > > │ / f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py /             │
00:01:53 v #651 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:01:53 v #652 > > │ / arg: None                                                                  │
00:01:53 v #653 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2-2j), kwargs={}, name='zeta' │
00:01:53 v #654 > > │ / f_line.../ arg: None                                                       │
00:01:53 v #655 > > │ call(zeta_) / f_code.co_name: python_bitcount / f_locals: n=2 / f_lineno: 91 │
00:01:53 v #656 > > │ / f_code.co_filename: \mpmath\libmp\libintmath.py / f_back.f_lineno: 778 /   │
00:01:53 v #657 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:01:53 v #658 > > │ line(zeta_) / f_code.co_name: python_bitcount / f_locals: n=2 / f_lineno: 93 │
00:01:53 v #659 > > │ / f_code.co_filename: \mpmath\libmp\libintmath.py / f_back.f_lineno: 778 /   │
00:01:53 v #660 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:01:53 v #661 > > │ line(zeta_) / f_code.co_name: python_bitcount / f_locals: n=2, bc=2 /        │
00:01:53 v #662 > > │ f_lineno: 94 / f_code.co_filename: \mpmath\libmp\libintmath.py /             │
00:01:53 v #663 > > │ f_back.f_lineno: 778 / f_back.f_code.co_filename: \mpmath\libmp\libmpf.py /  │
00:01:53 v #664 > > │ arg: None                                                                    │
00:01:53 v #665 > > │ line(zeta_) / f_code.co_name: python_bitcount / f_locals: n=2, bc=2 /        │
00:01:53 v #666 > > │ f_lineno: 95 / f_code.co_filename: \mpmath\libmp\libintmath.py /             │
00:01:53 v #667 > > │ f_back.f_lineno: 778 / f_back.f_code.co_filename: \mpmath\libmp\libmpf.py /  │
00:01:53 v #668 > > │ arg: None                                                                    │
00:01:53 v #669 > > │ return(zeta_) / f_code.co_name: python_bitcount / f_locals: n=2, bc=2 /      │
00:01:53 v #670 > > │ f_lineno: 95 / f_code.co_filename: \mpmath\libmp\libintmath.py /             │
00:01:53 v #671 > > │ f_back.f_lineno: 778 / f_back.f_code.co_filename: \mpmath\libmp\libmpf.py /  │
00:01:53 v #672 > > │ arg: 2                                                                       │
00:01:53 v #673 > > │ zeta_ / result: (0.867351829635993 + 0.275127238807858j) / count: 1812       │
00:01:53 v #674 > > │ zeta / count: 0 / s: Complex { re: 2.0, im: -2.0 }                           │
00:01:53 v #675 > > │ zeta__ / s: Complex { re: 2.0, im: -2.0 } / result: Ok(Complex { re:         │
00:01:53 v #676 > > │ 0.8673518296359931, im: 0.27512723880785767 }) / z: Complex { re: NaN, im:   │
00:01:53 v #677 > > │ NaN }                                                                        │
00:01:53 v #678 > > │ __assert_lt / actual: 5.182963599315027e-5 / expected: 0.001                 │
00:01:53 v #679 > > │ __assert_lt / actual: 0.00012723880785764363 / expected: 0.001               │
00:01:53 v #680 > > │                                                                              │
00:01:53 v #681 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 v #682 > >
00:01:53 v #683 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:53 v #684 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:53 v #685 > > │ ## test_trivial_zero_at_negative_even___                                     │
00:01:53 v #686 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 v #687 > >
00:01:53 v #688 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:53 v #689 > > inl test_trivial_zero_at_negative_even___ log = run_test log fun zeta, gamma =>
00:01:53 v #690 > >     (join listm'.init_series -2f64 -40 -2)
00:01:53 v #691 > >     |> listm.iter fun n =>
00:01:53 v #692 > >         inl s = .^(n, 0)
00:01:53 v #693 > >         inl result = zeta s
00:01:53 v #694 > >
00:01:53 v #695 > >         result |> re |> _assert_eq 0
00:01:53 v #696 > >         result |> im |> _assert_eq 0
00:01:53 v #697 > 00:01:53 d #38 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13a5edbdddc664abb1a599e239e290d84406d25d293199d3b53d925e618392a6/main.spi
00:01:54 v #698 > >
00:01:54 v #699 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:54 v #700 > > //// test
00:01:54 v #701 > > ///! rust -d num-complex pyo3
00:01:54 v #702 > >
00:01:54 v #703 > > test_trivial_zero_at_negative_even___ true
00:01:54 v #704 > 00:01:53 d #39 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c2b85259d47ae7015deb60c11e222d2f249201e2ffb8cf09e508e6b00cdd717/main.spi
00:02:11 v #705 > >
00:02:11 v #706 > > ╭─[ 17.54s - return value ]────────────────────────────────────────────────────╮
00:02:11 v #707 > > │ zeta_ / s: (-2.0, 0.0) / count: 0                                            │
00:02:11 v #708 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:02:11 v #709 > > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:                 │
00:02:11 v #710 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:11 v #711 > > │ / arg: None                                                                  │
00:02:11 v #712 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:02:11 v #713 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:02:11 v #714 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:11 v #715 > > │ / arg: None                                                                  │
00:02:11 v #716 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:02:11 v #717 > > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename:            │
00:02:11 v #718 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:11 v #719 > > │ / arg: None                                                                  │
00:02:11 v #720 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:02:11 v #721 > > │ method=None, kwargs={}, d=0 / f_lineno: 532 / f_code.co_filename:            │
00:02:11 v #722 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:11 v #723 > > │ / arg: None                                                                  │
00:02:11 v #724 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:02:11 v #725 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:02:11 v #726 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:11 v #727 > > │ / arg: None                                                                  │
00:02:11 v #728 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(-2+0j), kwargs={},            │
00:02:11 v #729 > > │ name='zeta' / f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py / │
00:02:11 v #730 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:02:11 v #731 > > │ / arg: None                                                                  │
00:02:11 v #732 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(-2+0j), kwargs={},            │
00:02:11 v #733 > > │ name='zeta' /...lename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1007 /   │
00:02:11 v #734 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:02:11 v #735 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 604 /       │
00:02:11 v #736 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1007 /       │
00:02:11 v #737 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:02:11 v #738 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 605 /       │
00:02:11 v #739 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1007 /       │
00:02:11 v #740 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:02:11 v #741 > > │ return(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 605 /     │
00:02:11 v #742 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1007 /       │
00:02:11 v #743 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg:                   │
00:02:11 v #744 > > │ mpc(real='8.1591528324789768e+47', imag='0.0')                               │
00:02:11 v #745 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='41.0',            │
00:02:11 v #746 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1007 │
00:02:11 v #747 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:02:11 v #748 > > │ f_back.f_code.co_filename:  / arg: mpc(real='8.1591528324789768e+47',        │
00:02:11 v #749 > > │ imag='0.0')                                                                  │
00:02:11 v #750 > > │ gamma_ / result: (8.15915283247898e+47 + 0.0j) / count: 149                  │
00:02:11 v #751 > > │ gamma__ / s: Complex { re: 41.0, im: 0.0 } / result: Ok(Complex { re:        │
00:02:11 v #752 > > │ 8.159152832478977e47, im: 0.0 })                                             │
00:02:11 v #753 > > │ zeta / count: 1 / s: Complex { re: 41.0, im: -0.0 }                          │
00:02:11 v #754 > > │ zeta__ / s: Complex { re: -40.0, im: 0.0 } / result: Ok(Complex { re: 0.0,   │
00:02:11 v #755 > > │ im: 0.0 }) / z: Complex { re: NaN, im: NaN }                                 │
00:02:11 v #756 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:02:11 v #757 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:02:11 v #758 > > │                                                                              │
00:02:11 v #759 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 v #760 > >
00:02:11 v #761 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 v #762 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 v #763 > > │ ## test_non_trivial_zero___                                                  │
00:02:11 v #764 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 v #765 > >
00:02:11 v #766 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:11 v #767 > > inl test_non_trivial_zero___ log = run_test log fun zeta, gamma =>
00:02:11 v #768 > >     ;[[
00:02:11 v #769 > >         .^(0.5, 14.134725)
00:02:11 v #770 > >         .^(0.5, 21.022040)
00:02:11 v #771 > >         .^(0.5, 25.010857)
00:02:11 v #772 > >         .^(0.5, 30.424876)
00:02:11 v #773 > >         .^(0.5, 32.935062)
00:02:11 v #774 > >         .^(0.5, 37.586178)
00:02:11 v #775 > >     ]]
00:02:11 v #776 > >     |> fun x => a x : _ i32 _
00:02:11 v #777 > >     |> am.iter fun x =>
00:02:11 v #778 > >             inl result = zeta x
00:02:11 v #779 > >             result |> re |> abs |> _assert_lt 0.0001
00:02:11 v #780 > >             result |> im |> abs |> _assert_lt 0.0001
00:02:11 v #781 > 00:02:11 d #40 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e384cef2d25e80b6e35d974702827a67606135f6bbc33f89f12406a910473314/main.spi
00:02:12 v #782 > >
00:02:12 v #783 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:12 v #784 > > //// test
00:02:12 v #785 > > ///! rust -d num-complex pyo3
00:02:12 v #786 > >
00:02:12 v #787 > > test_non_trivial_zero___ true
00:02:12 v #788 > 00:02:11 d #41 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54de1d4f93a97bc9a2dcf6895b4c00dc127497ed6ad5c1fc48c8b37d18cf0336/main.spi
00:02:29 v #789 > >
00:02:29 v #790 > > ╭─[ 17.16s - return value ]────────────────────────────────────────────────────╮
00:02:29 v #791 > > │ zeta_ / s: (0.5, 14.134725) / count: 0                                       │
00:02:29 v #792 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:02:29 v #793 > > │ derivative=0, method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:   │
00:02:29 v #794 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:29 v #795 > > │ / arg: None                                                                  │
00:02:29 v #796 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:02:29 v #797 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:02:29 v #798 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:29 v #799 > > │ / arg: None                                                                  │
00:02:29 v #800 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:02:29 v #801 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 531 /                  │
00:02:29 v #802 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:02:29 v #803 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:02:29 v #804 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:02:29 v #805 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 532 /                  │
00:02:29 v #806 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:02:29 v #807 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:02:29 v #808 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:02:29 v #809 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:02:29 v #810 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:02:29 v #811 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:02:29 v #812 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.5+14.134725j), kwargs={},   │
00:02:29 v #813 > > │ name='zeta' / f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py / │
00:02:29 v #814 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:02:29 v #815 > > │ / arg: None                                                                  │
00:02:29 v #816 > > │ line(zeta_) / f_code... arg: None                                            │
00:02:29 v #817 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals:           │
00:02:29 v #818 > > │ x=1208925819614629174706176, y=-90877802089662679288381440, prec=81,         │
00:02:29 v #819 > > │ _m=3416353708500640443578529333, tre=855591523614410863719,                  │
00:02:29 v #820 > > │ tim=64316830603724894628746, ure=-1710577520534459139249,                    │
00:02:29 v #821 > > │ uim=45518868236127668552, sre=1013002518538853602038572,                     │
00:02:29 v #822 > > │ sim=90883161825546323029600502 / f_lineno: 1637 / f_code.co_filename:        │
00:02:29 v #823 > > │ \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2050 /                         │
00:02:29 v #824 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:02:29 v #825 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals:           │
00:02:29 v #826 > > │ x=1208925819614629174706176, y=-90877802089662679288381440, prec=81,         │
00:02:29 v #827 > > │ _m=3416353708500640443578529333, tre=-1816151534455075068,                   │
00:02:29 v #828 > > │ tim=-45486653225747820096, ure=-1710577520534459139249,                      │
00:02:29 v #829 > > │ uim=45518868236127668552, sre=1013002518538853602038572,                     │
00:02:29 v #830 > > │ sim=90883161825546323029600502 / f_lineno: 1638 / f_code.co_filename:        │
00:02:29 v #831 > > │ \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2050 /                         │
00:02:29 v #832 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:02:29 v #833 > > │ gamma_ / result: (-1.32798420042152e-26 + 5.5751975252688e-26j) / count: 309 │
00:02:29 v #834 > > │ gamma__ / s: Complex { re: 0.5, im: -37.586178 } / result: Ok(Complex { re:  │
00:02:29 v #835 > > │ -1.3279842004215153e-26, im: 5.575197525268802e-26 })                        │
00:02:29 v #836 > > │ zeta__ / s: Complex { re: 0.5, im: 37.586178 } / result: Ok(Complex { re:    │
00:02:29 v #837 > > │ -8.910186507947958e-8, im: -2.943780446402868e-7 }) / z: Complex { re: -0.0, │
00:02:29 v #838 > > │ im: 0.0 }                                                                    │
00:02:29 v #839 > > │ __assert_lt / actual: 8.910186507947958e-8 / expected: 0.0001                │
00:02:29 v #840 > > │ __assert_lt / actual: 2.943780446402868e-7 / expected: 0.0001                │
00:02:29 v #841 > > │                                                                              │
00:02:29 v #842 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:29 v #843 > >
00:02:29 v #844 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:29 v #845 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:29 v #846 > > │ ## test_real_part_greater_than_one___                                        │
00:02:29 v #847 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:29 v #848 > >
00:02:29 v #849 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:29 v #850 > > inl test_real_part_greater_than_one___ log = run_test log fun zeta, gamma =>
00:02:29 v #851 > >     inl points = ;[[ 2; 3; 4; 5; 10; 20; 50 ]]
00:02:29 v #852 > >     (a points : _ i32 _)
00:02:29 v #853 > >     |> am.iter fun point =>
00:02:29 v #854 > >         inl s = .^(point, 0)
00:02:29 v #855 > >         inl result = zeta s
00:02:29 v #856 > >         result |> re |> _assert_gt 0
00:02:29 v #857 > >         result |> im |> _assert_eq 0
00:02:29 v #858 > 00:02:28 d #42 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d1a129cdaf5b7697d81fb3a2780573684ad4a9a7d64c20f8da5ee9b8324808f/main.spi
00:02:29 v #859 > >
00:02:29 v #860 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:29 v #861 > > //// test
00:02:29 v #862 > > ///! rust -d num-complex pyo3
00:02:29 v #863 > >
00:02:29 v #864 > > test_real_part_greater_than_one___ true
00:02:29 v #865 > 00:02:29 d #43 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8bf3b8bf42b34f5482469c6394c0f1312f6b76321d67b497c72dd2637e490c08/main.spi
00:02:46 v #866 > >
00:02:46 v #867 > > ╭─[ 16.92s - return value ]────────────────────────────────────────────────────╮
00:02:46 v #868 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:02:46 v #869 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:02:46 v #870 > > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:                 │
00:02:46 v #871 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:46 v #872 > > │ / arg: None                                                                  │
00:02:46 v #873 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:02:46 v #874 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:02:46 v #875 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:46 v #876 > > │ / arg: None                                                                  │
00:02:46 v #877 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:02:46 v #878 > > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename:            │
00:02:46 v #879 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:46 v #880 > > │ / arg: None                                                                  │
00:02:46 v #881 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:02:46 v #882 > > │ method=None, kwargs={}, d=0 / f_lineno: 532 / f_code.co_filename:            │
00:02:46 v #883 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:46 v #884 > > │ / arg: None                                                                  │
00:02:46 v #885 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:02:46 v #886 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:02:46 v #887 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:46 v #888 > > │ / arg: None                                                                  │
00:02:46 v #889 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:02:46 v #890 > > │ / f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py /             │
00:02:46 v #891 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:02:46 v #892 > > │ / arg: None                                                                  │
00:02:46 v #893 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:02:46 v #894 > > │ / f_linen...f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno:  │
00:02:46 v #895 > > │ 1007 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None       │
00:02:46 v #896 > > │ line(zeta_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 605 /        │
00:02:46 v #897 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1007 /       │
00:02:46 v #898 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:02:46 v #899 > > │ return(zeta_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 605 /      │
00:02:46 v #900 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1007 /       │
00:02:46 v #901 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg:                   │
00:02:46 v #902 > > │ mpc(real='1.0000000000000009', imag='0.0')                                   │
00:02:46 v #903 > > │ return(zeta_) / f_code.co_name: f / f_locals: x=mpc(real='50.0',             │
00:02:46 v #904 > > │ imag='0.0'), kwargs={}, name='zeta', prec=53, rounding='n' / f_lineno: 1007  │
00:02:46 v #905 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 533 /      │
00:02:46 v #906 > > │ f_back.f_code.co_filename: \mpmath\functions\zeta.py / arg:                  │
00:02:46 v #907 > > │ mpc(real='1.0000000000000009', imag='0.0')                                   │
00:02:46 v #908 > > │ return(zeta_) / f_code.co_name: zeta / f_locals: s=(50+0j), a=1,             │
00:02:46 v #909 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:02:46 v #910 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:02:46 v #911 > > │ f_back.f_code.co_filename:  / arg: mpc(real='1.0000000000000009',            │
00:02:46 v #912 > > │ imag='0.0')                                                                  │
00:02:46 v #913 > > │ zeta_ / result: (1.0 + 0.0j) / count: 181                                    │
00:02:46 v #914 > > │ zeta / count: 0 / s: Complex { re: 50.0, im: 0.0 }                           │
00:02:46 v #915 > > │ zeta__ / s: Complex { re: 50.0, im: 0.0 } / result: Ok(Complex { re:         │
00:02:46 v #916 > > │ 1.0000000000000009, im: 0.0 }) / z: Complex { re: NaN, im: NaN }             │
00:02:46 v #917 > > │ __assert_gt / actual: 1.0000000000000009 / expected: 0.0                     │
00:02:46 v #918 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:02:46 v #919 > > │                                                                              │
00:02:46 v #920 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:46 v #921 > >
00:02:46 v #922 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:46 v #923 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:46 v #924 > > │ ## test_zeta_at_1___                                                         │
00:02:46 v #925 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:46 v #926 > >
00:02:46 v #927 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:46 v #928 > > inl test_zeta_at_1___ log = run_test log fun zeta, gamma =>
00:02:46 v #929 > >     inl s = .^(1, 0)
00:02:46 v #930 > >     inl result = zeta s
00:02:46 v #931 > >     result |> re |> _assert_eq limit.max
00:02:46 v #932 > >     result |> im |> _assert_eq 0
00:02:46 v #933 > 00:02:46 d #44 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/49d05f61ecb5a01d36f14e93791b07103f55214db01e5f5324b1a1859ffc24a4/main.spi
00:02:47 v #934 > >
00:02:47 v #935 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:47 v #936 > > //// test
00:02:47 v #937 > > ///! rust -d num-complex pyo3
00:02:47 v #938 > >
00:02:47 v #939 > > test_zeta_at_1___ true
00:02:47 v #940 > 00:02:46 d #45 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1042ab8af3fd13d4ce23f2d5f73c14e41643a2fc276752543871fa8200473b6/main.spi
00:03:03 v #941 > >
00:03:03 v #942 > > ╭─[ 16.62s - return value ]────────────────────────────────────────────────────╮
00:03:03 v #943 > > │ zeta_ / s: (1.0, 0.0) / count: 0                                             │
00:03:03 v #944 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:03:03 v #945 > > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:                 │
00:03:03 v #946 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:03 v #947 > > │ / arg: None                                                                  │
00:03:03 v #948 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:03:03 v #949 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:03:03 v #950 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:03 v #951 > > │ / arg: None                                                                  │
00:03:03 v #952 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:03:03 v #953 > > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename:            │
00:03:03 v #954 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:03 v #955 > > │ / arg: None                                                                  │
00:03:03 v #956 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:03:03 v #957 > > │ method=None, kwargs={}, d=0 / f_lineno: 532 / f_code.co_filename:            │
00:03:03 v #958 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:03 v #959 > > │ / arg: None                                                                  │
00:03:03 v #960 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:03:03 v #961 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:03:03 v #962 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:03 v #963 > > │ / arg: None                                                                  │
00:03:03 v #964 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(1+0j), kwargs={}, name='zeta' │
00:03:03 v #965 > > │ / f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py /             │
00:03:03 v #966 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:03:03 v #967 > > │ / arg: None                                                                  │
00:03:03 v #968 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(1+0j), kwargs={}, name='zeta' │
00:03:03 v #969 > > │ / f_linen...back object at 0x<?>>)                                           │
00:03:03 v #970 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='0.0',             │
00:03:03 v #971 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1007 │
00:03:03 v #972 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:03:03 v #973 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:03:03 v #974 > > │ exception(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j /          │
00:03:03 v #975 > > │ f_lineno: 25 / f_code.co_filename:  / f_back.f_lineno:  /                    │
00:03:03 v #976 > > │ f_back.f_code.co_filename:  / arg: (<class 'ValueError'>, ValueError('gamma  │
00:03:03 v #977 > > │ function pole'), <traceback object at 0x<?>>)                                │
00:03:03 v #978 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno: 29  │
00:03:03 v #979 > > │ / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:  /   │
00:03:03 v #980 > > │ arg: None                                                                    │
00:03:03 v #981 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j,                │
00:03:03 v #982 > > │ e=ValueError('gamma function pole') / f_lineno: 30 / f_code.co_filename:  /  │
00:03:03 v #983 > > │ f_back.f_lineno:  / f_back.f_code.co_filename:  / arg: None                  │
00:03:03 v #984 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno: 32  │
00:03:03 v #985 > > │ / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:  /   │
00:03:03 v #986 > > │ arg: None                                                                    │
00:03:03 v #987 > > │ return(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno:   │
00:03:03 v #988 > > │ 32 / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:   │
00:03:03 v #989 > > │ / arg: (0.0, 0.0)                                                            │
00:03:03 v #990 > > │ gamma__ / s: Complex { re: 0.0, im: 0.0 } / result: Ok(Complex { re: 0.0,    │
00:03:03 v #991 > > │ im: 0.0 })                                                                   │
00:03:03 v #992 > > │ zeta__ / s: Complex { re: 1.0, im: 0.0 } / result: Ok(Complex { re: inf, im: │
00:03:03 v #993 > > │ 0.0 }) / z: Complex { re: 0.0, im: 0.0 }                                     │
00:03:03 v #994 > > │ __assert_eq / actual: inf / expected: inf                                    │
00:03:03 v #995 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:03:03 v #996 > > │                                                                              │
00:03:03 v #997 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:03 v #998 > >
00:03:03 v #999 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:03 v #1000 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:03 v #1001 > > │ ## test_symmetry_across_real_axis___                                         │
00:03:03 v #1002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:03 v #1003 > >
00:03:03 v #1004 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:03 v #1005 > > inl test_symmetry_across_real_axis___ log = run_test log fun zeta, gamma =>
00:03:03 v #1006 > >     inl s = .^(2, 10)
00:03:03 v #1007 > >     inl result_positive_im = zeta s
00:03:03 v #1008 > >     inl result_negative_im = zeta .^(re s, -(im s))
00:03:03 v #1009 > >     inl conj = result_negative_im |> conj
00:03:03 v #1010 > >     result_positive_im |> re |> _assert_eq (conj |> re)
00:03:03 v #1011 > >     result_positive_im |> im |> _assert_eq (conj |> im)
00:03:03 v #1012 > 00:03:03 d #46 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/591cc2a46f42a7d2e160de488e53169a46b2b874eb513336a0b23b2d7d55badd/main.spi
00:03:04 v #1013 > >
00:03:04 v #1014 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:04 v #1015 > > //// test
00:03:04 v #1016 > > ///! rust -d num-complex pyo3
00:03:04 v #1017 > >
00:03:04 v #1018 > > test_symmetry_across_real_axis___ true
00:03:04 v #1019 > 00:03:03 d #47 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36271f53f2867baf8e87a068a0637a1f88487847ffa096b9d708fa022bce95cb/main.spi
00:03:20 v #1020 > >
00:03:20 v #1021 > > ╭─[ 16.83s - return value ]────────────────────────────────────────────────────╮
00:03:20 v #1022 > > │ zeta_ / s: (2.0, 10.0) / count: 0                                            │
00:03:20 v #1023 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:03:20 v #1024 > > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:                 │
00:03:20 v #1025 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:20 v #1026 > > │ / arg: None                                                                  │
00:03:20 v #1027 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:03:20 v #1028 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:03:20 v #1029 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:20 v #1030 > > │ / arg: None                                                                  │
00:03:20 v #1031 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:03:20 v #1032 > > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename:            │
00:03:20 v #1033 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:20 v #1034 > > │ / arg: None                                                                  │
00:03:20 v #1035 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:03:20 v #1036 > > │ method=None, kwargs={}, d=0 / f_lineno: 532 / f_code.co_filename:            │
00:03:20 v #1037 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:20 v #1038 > > │ / arg: None                                                                  │
00:03:20 v #1039 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:03:20 v #1040 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:03:20 v #1041 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:20 v #1042 > > │ / arg: None                                                                  │
00:03:20 v #1043 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+10j), kwargs={},            │
00:03:20 v #1044 > > │ name='zeta' / f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py / │
00:03:20 v #1045 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:03:20 v #1046 > > │ / arg: None                                                                  │
00:03:20 v #1047 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+10j), kwargs={},            │
00:03:20 v #1048 > > │ name='zeta' /.../ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg:  │
00:03:20 v #1049 > > │ None                                                                         │
00:03:20 v #1050 > > │ line(zeta_) / f_code.co_name: python_bitcount / f_locals: n=26, bc=5 /       │
00:03:20 v #1051 > > │ f_lineno: 94 / f_code.co_filename: \mpmath\libmp\libintmath.py /             │
00:03:20 v #1052 > > │ f_back.f_lineno: 778 / f_back.f_code.co_filename: \mpmath\libmp\libmpf.py /  │
00:03:20 v #1053 > > │ arg: None                                                                    │
00:03:20 v #1054 > > │ line(zeta_) / f_code.co_name: python_bitcount / f_locals: n=26, bc=5 /       │
00:03:20 v #1055 > > │ f_lineno: 95 / f_code.co_filename: \mpmath\libmp\libintmath.py /             │
00:03:20 v #1056 > > │ f_back.f_lineno: 778 / f_back.f_code.co_filename: \mpmath\libmp\libmpf.py /  │
00:03:20 v #1057 > > │ arg: None                                                                    │
00:03:20 v #1058 > > │ return(zeta_) / f_code.co_name: python_bitcount / f_locals: n=26, bc=5 /     │
00:03:20 v #1059 > > │ f_lineno: 95 / f_code.co_filename: \mpmath\libmp\libintmath.py /             │
00:03:20 v #1060 > > │ f_back.f_lineno: 778 / f_back.f_code.co_filename: \mpmath\libmp\libmpf.py /  │
00:03:20 v #1061 > > │ arg: 5                                                                       │
00:03:20 v #1062 > > │ line(zeta_) / f_code.co_name: mpf_add / f_locals: s=(0, 1, 2, 1), t=(0, 25,  │
00:03:20 v #1063 > > │ 2, 5), prec=14, rnd='d', _sub=0, ssign=0, sman=1, sexp=2, sbc=1, tsign=0,    │
00:03:20 v #1064 > > │ tman=25, texp=2, tbc=5, offset=0, man=26, bc=5 / f_lineno: 779 /             │
00:03:20 v #1065 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 1401 /        │
00:03:20 v #1066 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:03:20 v #1067 > > │ zeta_ / result: (1.19798250067418 + 0.0791704917205257j) / count: 1174       │
00:03:20 v #1068 > > │ zeta / count: 0 / s: Complex { re: 2.0, im: -10.0 }                          │
00:03:20 v #1069 > > │ zeta__ / s: Complex { re: 2.0, im: -10.0 } / result: Ok(Complex { re:        │
00:03:20 v #1070 > > │ 1.1979825006741847, im: 0.07917049172052575 }) / z: Complex { re: NaN, im:   │
00:03:20 v #1071 > > │ NaN }                                                                        │
00:03:20 v #1072 > > │ __assert_eq / actual: 1.1979825006741847 / expected: 1.1979825006741847      │
00:03:20 v #1073 > > │ __assert_eq / actual: -0.07917049172052575 / expected: -0.07917049172052575  │
00:03:20 v #1074 > > │                                                                              │
00:03:20 v #1075 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 v #1076 > >
00:03:20 v #1077 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:20 v #1078 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:20 v #1079 > > │ ## test_behavior_near_origin___                                              │
00:03:20 v #1080 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 v #1081 > >
00:03:20 v #1082 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:20 v #1083 > > inl test_behavior_near_origin___ log = run_test log fun zeta, gamma =>
00:03:20 v #1084 > >     inl s = .^(0.01, 0.01)
00:03:20 v #1085 > >     inl result = zeta s
00:03:20 v #1086 > >     result |> re |> _assert_lt limit.max
00:03:20 v #1087 > >     result |> im |> _assert_lt limit.max
00:03:21 v #1088 > 00:03:20 d #48 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/326a0b8a17f20d5ace8102f3789c7c6995a96a8fd428e40921ab67c0104fa3b1/main.spi
00:03:21 v #1089 > >
00:03:21 v #1090 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:21 v #1091 > > //// test
00:03:21 v #1092 > > ///! rust -d num-complex pyo3
00:03:21 v #1093 > >
00:03:21 v #1094 > > test_behavior_near_origin___ true
00:03:21 v #1095 > 00:03:20 d #49 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2fef8d641a9461229f78a2a3fdb08935dc7c5f17d2acfb8e2b281a240dd736b/main.spi
00:03:37 v #1096 > >
00:03:37 v #1097 > > ╭─[ 16.21s - return value ]────────────────────────────────────────────────────╮
00:03:37 v #1098 > > │ zeta_ / s: (0.01, 0.01) / count: 0                                           │
00:03:37 v #1099 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:03:37 v #1100 > > │ derivative=0, method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:   │
00:03:37 v #1101 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:37 v #1102 > > │ / arg: None                                                                  │
00:03:37 v #1103 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:03:37 v #1104 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:03:37 v #1105 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:37 v #1106 > > │ / arg: None                                                                  │
00:03:37 v #1107 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:03:37 v #1108 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 531 /                  │
00:03:37 v #1109 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:03:37 v #1110 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:03:37 v #1111 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:03:37 v #1112 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 532 /                  │
00:03:37 v #1113 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:03:37 v #1114 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:03:37 v #1115 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:03:37 v #1116 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:03:37 v #1117 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:03:37 v #1118 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:03:37 v #1119 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.01+0.01j), kwargs={},       │
00:03:37 v #1120 > > │ name='zeta' / f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py / │
00:03:37 v #1121 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:03:37 v #1122 > > │ / arg: None                                                                  │
00:03:37 v #1123 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(0...py / f_back.f_lineno:     │
00:03:37 v #1124 > > │ 1007 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None       │
00:03:37 v #1125 > > │ line(gamma_) / f_code.co_name: mpc_gamma / f_locals: z=((0,                  │
00:03:37 v #1126 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), prec=53,        │
00:03:37 v #1127 > > │ rnd='n', type=0, a=(0, 4458563631096791, -52, 52), b=(1, 5764607523034235,   │
00:03:37 v #1128 > > │ -59, 53), asign=0, aman=4458563631096791, aexp=-52, abc=52, bsign=1,         │
00:03:37 v #1129 > > │ bman=5764607523034235, bexp=-59, bbc=53, wp=73, amag=0, bmag=-6, mag=0,      │
00:03:37 v #1130 > > │ an=0, bn=0, absn=0j, gamma_size=0, need_reflection=0, zorig=((0,             │
00:03:37 v #1131 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), yfinal=0,       │
00:03:37 v #1132 > > │ balance_prec=0, n_for_stirling=14, need_reduction=True,                      │
00:03:37 v #1133 > > │ afix=132131814190692672995328, bfix=-94447329657392906240, r=0, zprered=((0, │
00:03:37 v #1134 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), d=14,           │
00:03:37 v #1135 > > │ rre=56942610883563778729574216337150, one=9444732965739290427392,            │
00:03:37 v #1136 > > │ rim=-1820461636508155576115177658065, k=12 / f_lineno: 2043 /                │
00:03:37 v #1137 > > │ f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 1007 /     │
00:03:37 v #1138 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:03:37 v #1139 > > │ gamma_ / result: (1.00577030202902 + 0.0059717824054102j) / count: 383       │
00:03:37 v #1140 > > │ gamma__ / s: Complex { re: 0.99, im: -0.01 } / result: Ok(Complex { re:      │
00:03:37 v #1141 > > │ 1.005770302029023, im: 0.005971782405410201 })                               │
00:03:37 v #1142 > > │ zeta__ / s: Complex { re: 0.01, im: 0.01 } / result: Ok(Complex { re:        │
00:03:37 v #1143 > > │ -0.5091873433665667, im: -0.00939202213994577 }) / z: Complex { re: 0.0, im: │
00:03:37 v #1144 > > │ 0.0 }                                                                        │
00:03:37 v #1145 > > │ __assert_lt / actual: -0.5091873433665667 / expected: inf                    │
00:03:37 v #1146 > > │ __assert_lt / actual: -0.00939202213994577 / expected: inf                   │
00:03:37 v #1147 > > │                                                                              │
00:03:37 v #1148 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:37 v #1149 > >
00:03:37 v #1150 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:37 v #1151 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:37 v #1152 > > │ ## test_imaginary_axis                                                       │
00:03:37 v #1153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:37 v #1154 > >
00:03:37 v #1155 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:37 v #1156 > > inl test_imaginary_axis log = run_test log fun zeta, gamma =>
00:03:37 v #1157 > >     (join [[ 10; 20; 30; 40; 50; 60; 70; 80; 90; 100 ]])
00:03:37 v #1158 > >     |> listm.iter fun s =>
00:03:37 v #1159 > >         inl s = .^(0, s)
00:03:37 v #1160 > >         inl result = zeta s
00:03:37 v #1161 > >         result |> re |> _assert_ne 0
00:03:37 v #1162 > >         result |> im |> _assert_ne 0
00:03:37 v #1163 > 00:03:36 d #50 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3fb1c56a8ef23a6200760b3b412cca17c334231121e58e3c63cec0adf4fa241/main.spi
00:03:38 v #1164 > >
00:03:38 v #1165 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:38 v #1166 > > //// test
00:03:38 v #1167 > > ///! rust -d num-complex pyo3
00:03:38 v #1168 > >
00:03:38 v #1169 > > test_imaginary_axis true
00:03:38 v #1170 > 00:03:37 d #51 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b1df07257efc392f011ff90c782d57e2b333b04a3834121c5802d857e2ef42df/main.spi
00:03:55 v #1171 > >
00:03:55 v #1172 > > ╭─[ 17.02s - return value ]────────────────────────────────────────────────────╮
00:03:55 v #1173 > > │ zeta_ / s: (0.0, 10.0) / count: 0                                            │
00:03:55 v #1174 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:03:55 v #1175 > > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:                 │
00:03:55 v #1176 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:55 v #1177 > > │ / arg: None                                                                  │
00:03:55 v #1178 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:03:55 v #1179 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:03:55 v #1180 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:55 v #1181 > > │ / arg: None                                                                  │
00:03:55 v #1182 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:03:55 v #1183 > > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename:            │
00:03:55 v #1184 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:55 v #1185 > > │ / arg: None                                                                  │
00:03:55 v #1186 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:03:55 v #1187 > > │ method=None, kwargs={}, d=0 / f_lineno: 532 / f_code.co_filename:            │
00:03:55 v #1188 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:55 v #1189 > > │ / arg: None                                                                  │
00:03:55 v #1190 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:03:55 v #1191 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:03:55 v #1192 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:55 v #1193 > > │ / arg: None                                                                  │
00:03:55 v #1194 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=10j, kwargs={}, name='zeta' /  │
00:03:55 v #1195 > > │ f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py /               │
00:03:55 v #1196 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:03:55 v #1197 > > │ / arg: None                                                                  │
00:03:55 v #1198 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=10j, kwargs={}, name='zeta' /  │
00:03:55 v #1199 > > │ f_lineno: 990 / f_code.co_f...g: None                                        │
00:03:55 v #1200 > > │ line(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1), prec=83  │
00:03:55 v #1201 > > │ / f_lineno: 511 / f_code.co_filename: \mpmath\libmp\libmpf.py /              │
00:03:55 v #1202 > > │ f_back.f_lineno: 2031 / f_back.f_code.co_filename:                           │
00:03:55 v #1203 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:03:55 v #1204 > > │ line(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1), prec=83, │
00:03:55 v #1205 > > │ sign=0, man=1, exp=0, bc=1 / f_lineno: 512 / f_code.co_filename:             │
00:03:55 v #1206 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 2031 / f_back.f_code.co_filename: │
00:03:55 v #1207 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:03:55 v #1208 > > │ line(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1), prec=83, │
00:03:55 v #1209 > > │ sign=0, man=1, exp=0, bc=1, offset=83 / f_lineno: 513 / f_code.co_filename:  │
00:03:55 v #1210 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 2031 / f_back.f_code.co_filename: │
00:03:55 v #1211 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:03:55 v #1212 > > │ line(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1), prec=83, │
00:03:55 v #1213 > > │ sign=0, man=1, exp=0, bc=1, offset=83 / f_lineno: 517 / f_code.co_filename:  │
00:03:55 v #1214 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 2031 / f_back.f_code.co_filename: │
00:03:55 v #1215 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:03:55 v #1216 > > │ gamma_ / result: (-1.51425318049776e-67 + 2.79082155561748e-69j) / count:    │
00:03:55 v #1217 > > │ 289                                                                          │
00:03:55 v #1218 > > │ gamma__ / s: Complex { re: 1.0, im: -100.0 } / result: Ok(Complex { re:      │
00:03:55 v #1219 > > │ -1.514253180497756e-67, im: 2.7908215556174775e-69 })                        │
00:03:55 v #1220 > > │ zeta__ / s: Complex { re: 0.0, im: 100.0 } / result: Ok(Complex { re:        │
00:03:55 v #1221 > > │ 6.51721042625301, im: 0.18128842533791736 }) / z: Complex { re: 0.0, im: 0.0 │
00:03:55 v #1222 > > │ }                                                                            │
00:03:55 v #1223 > > │ __assert_ne / actual: 6.51721042625301 / expected: 0.0                       │
00:03:55 v #1224 > > │ __assert_ne / actual: 0.18128842533791736 / expected: 0.0                    │
00:03:55 v #1225 > > │                                                                              │
00:03:55 v #1226 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:55 v #1227 > >
00:03:55 v #1228 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:55 v #1229 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:55 v #1230 > > │ ## test_critical_strip                                                       │
00:03:55 v #1231 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:55 v #1232 > >
00:03:55 v #1233 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:55 v #1234 > > inl test_critical_strip log = run_test log fun zeta, gamma =>
00:03:55 v #1235 > >     (join [[
00:03:55 v #1236 > >         .^(0.5, 14.134725)
00:03:55 v #1237 > >         .^(0.75, 20.5)
00:03:55 v #1238 > >         .^(1.25, 30.1)
00:03:55 v #1239 > >         .^(0.25, 40.0)
00:03:55 v #1240 > >         .^(1.0, 50.0)
00:03:55 v #1241 > >     ]])
00:03:55 v #1242 > >     |> listm.iter fun s =>
00:03:55 v #1243 > >         inl result = zeta s
00:03:55 v #1244 > >         result |> re |> _assert_ne 0
00:03:55 v #1245 > >         result |> im |> _assert_ne 0
00:03:55 v #1246 > 00:03:54 d #52 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b5c4353afe2bf344f4df72fbef2b3901d7c417b02bfc2c2ffba15fc88d4540a/main.spi
00:03:55 v #1247 > >
00:03:55 v #1248 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:55 v #1249 > > //// test
00:03:55 v #1250 > > ///! rust -d num-complex pyo3
00:03:55 v #1251 > >
00:03:55 v #1252 > > test_critical_strip true
00:03:55 v #1253 > 00:03:54 d #53 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c1295c2becc9f87cd68b106a2128c6577c6028e3cef58ec99352b073fcc82807/main.spi
00:04:12 v #1254 > >
00:04:12 v #1255 > > ╭─[ 17.39s - return value ]────────────────────────────────────────────────────╮
00:04:12 v #1256 > > │ zeta_ / s: (0.5, 14.134725) / count: 0                                       │
00:04:12 v #1257 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:04:12 v #1258 > > │ derivative=0, method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:   │
00:04:12 v #1259 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:12 v #1260 > > │ / arg: None                                                                  │
00:04:12 v #1261 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:04:12 v #1262 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:04:12 v #1263 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:12 v #1264 > > │ / arg: None                                                                  │
00:04:12 v #1265 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:04:12 v #1266 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 531 /                  │
00:04:12 v #1267 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:04:12 v #1268 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:04:12 v #1269 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:04:12 v #1270 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 532 /                  │
00:04:12 v #1271 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:04:12 v #1272 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:04:12 v #1273 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:04:12 v #1274 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:04:12 v #1275 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:04:12 v #1276 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:04:12 v #1277 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.5+14.134725j), kwargs={},   │
00:04:12 v #1278 > > │ name='zeta' / f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py / │
00:04:12 v #1279 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:04:12 v #1280 > > │ / arg: None                                                                  │
00:04:12 v #1281 > > │ line(zeta_) / f_code...210, sim=241793223535862290161314995 / f_lineno: 1648 │
00:04:12 v #1282 > > │ / f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2050 /   │
00:04:12 v #1283 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:04:12 v #1284 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals: x=0,      │
00:04:12 v #1285 > > │ y=-241785163922925834941235200, prec=82, _m=12089258196146291747061760000,   │
00:04:12 v #1286 > > │ tre=0, tim=396, ure=-1934281311383406679530, uim=0,                          │
00:04:12 v #1287 > > │ sre=4443714077719696485012210, sim=241793223535862290161314995 / f_lineno:   │
00:04:12 v #1288 > > │ 1649 / f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno:     │
00:04:12 v #1289 > > │ 2050 / f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None     │
00:04:12 v #1290 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals: x=0,      │
00:04:12 v #1291 > > │ y=-241785163922925834941235200, prec=82, _m=12089258196146291747061760000,   │
00:04:12 v #1292 > > │ tre=0, tim=396, ure=-1934281311383406679530, uim=0,                          │
00:04:12 v #1293 > > │ sre=4443714077719696485012210, sim=241793223535862290161314997 / f_lineno:   │
00:04:12 v #1294 > > │ 1650 / f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno:     │
00:04:12 v #1295 > > │ 2050 / f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None     │
00:04:12 v #1296 > > │ gamma_ / result: (2.63173210619768e-35 - 8.16464935465334e-36j) / count: 262 │
00:04:12 v #1297 > > │ gamma__ / s: Complex { re: 0.0, im: -50.0 } / result: Ok(Complex { re:       │
00:04:12 v #1298 > > │ 2.6317321061976804e-35, im: -8.164649354653339e-36 })                        │
00:04:12 v #1299 > > │ zeta__ / s: Complex { re: 1.0, im: 50.0 } / result: Ok(Complex { re:         │
00:04:12 v #1300 > > │ 0.44103873082309397, im: 0.281582455029683 }) / z: Complex { re: 0.0, im:    │
00:04:12 v #1301 > > │ 0.0 }                                                                        │
00:04:12 v #1302 > > │ __assert_ne / actual: 0.44103873082309397 / expected: 0.0                    │
00:04:12 v #1303 > > │ __assert_ne / actual: 0.281582455029683 / expected: 0.0                      │
00:04:12 v #1304 > > │                                                                              │
00:04:12 v #1305 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:12 v #1306 > >
00:04:12 v #1307 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:12 v #1308 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:12 v #1309 > > │ ## test_reflection_formula_for_specific_value                                │
00:04:12 v #1310 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:12 v #1311 > >
00:04:12 v #1312 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:12 v #1313 > > inl test_reflection_formula_for_specific_value log = run_test log fun zeta,
00:04:12 v #1314 > > gamma =>
00:04:12 v #1315 > >     (join [[
00:04:12 v #1316 > >         .^(3, 4)
00:04:12 v #1317 > >         .^(2.5, -3.5)
00:04:12 v #1318 > >         .^(1.5, 2.5)
00:04:12 v #1319 > >         .^(0.5, 14.134725)
00:04:12 v #1320 > >     ]])
00:04:12 v #1321 > >     |> listm.iter fun s =>
00:04:12 v #1322 > >         inl lhs = zeta s
00:04:12 v #1323 > >         inl reflection_coefficient =
00:04:12 v #1324 > >             (.^(2, 0) .** s)
00:04:12 v #1325 > >             .* (.^(pi, 0) .** (s .- .^(1, 0)))
00:04:12 v #1326 > >             .* (.^(pi, 0) .* s ./ .^(2, 0) |> complex_sin)
00:04:12 v #1327 > >             .* gamma (.^(1, 0) .- s)
00:04:12 v #1328 > >
00:04:12 v #1329 > >         inl one_minus_s = .^(1 - re s, -(im s))
00:04:12 v #1330 > >         inl rhs = reflection_coefficient .* zeta one_minus_s
00:04:12 v #1331 > >
00:04:12 v #1332 > >         re lhs - re rhs |> abs |> _assert_lt 0.0001
00:04:12 v #1333 > >         im lhs - im rhs |> abs |> _assert_lt 0.0001
00:04:13 v #1334 > 00:04:12 d #54 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f9e4a3aec1c4171ac9f03292fdb0035e6caa4d0295e00b09fdcec2dfe9398a1f/main.spi
00:04:13 v #1335 > >
00:04:13 v #1336 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:13 v #1337 > > //// test
00:04:13 v #1338 > > ///! rust -d num-complex pyo3
00:04:13 v #1339 > >
00:04:13 v #1340 > > test_reflection_formula_for_specific_value true
00:04:13 v #1341 > 00:04:12 d #55 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0b4880d5b3db05b4e91052ada88c0b0c65251af775614f3621dbd7f91df82fa0/main.spi
00:04:30 v #1342 > >
00:04:30 v #1343 > > ╭─[ 17.36s - return value ]────────────────────────────────────────────────────╮
00:04:30 v #1344 > > │ zeta_ / s: (3.0, 4.0) / count: 0                                             │
00:04:30 v #1345 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:04:30 v #1346 > > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:                 │
00:04:30 v #1347 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:30 v #1348 > > │ / arg: None                                                                  │
00:04:30 v #1349 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:04:30 v #1350 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:04:30 v #1351 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:30 v #1352 > > │ / arg: None                                                                  │
00:04:30 v #1353 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:04:30 v #1354 > > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename:            │
00:04:30 v #1355 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:30 v #1356 > > │ / arg: None                                                                  │
00:04:30 v #1357 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:04:30 v #1358 > > │ method=None, kwargs={}, d=0 / f_lineno: 532 / f_code.co_filename:            │
00:04:30 v #1359 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:30 v #1360 > > │ / arg: None                                                                  │
00:04:30 v #1361 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:04:30 v #1362 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:04:30 v #1363 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:30 v #1364 > > │ / arg: None                                                                  │
00:04:30 v #1365 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(3+4j), kwargs={}, name='zeta' │
00:04:30 v #1366 > > │ / f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py /             │
00:04:30 v #1367 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:04:30 v #1368 > > │ / arg: None                                                                  │
00:04:30 v #1369 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(3+4j), kwargs={}, name='zeta' │
00:04:30 v #1370 > > │ / f_linen...045 / f_code.co_filename: \mpmath\libmp\gammazeta.py /           │
00:04:30 v #1371 > > │ f_back.f_lineno: 1007 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:04:30 v #1372 > > │ / arg: None                                                                  │
00:04:30 v #1373 > > │ line(gamma_) / f_code.co_name: mpc_gamma / f_locals: z=((0, 1, -1, 1), (0,   │
00:04:30 v #1374 > > │ 3978571390186527, -48, 52)), prec=53, rnd='n', type=0, a=(0, 1, -1, 1),      │
00:04:30 v #1375 > > │ b=(0, 3978571390186527, -48, 52), asign=0, aman=1, aexp=-1, abc=1, bsign=0,  │
00:04:30 v #1376 > > │ bman=3978571390186527, bexp=-48, bbc=52, wp=79, amag=0, bmag=4, mag=4, an=0, │
00:04:30 v #1377 > > │ bn=14, absn=14j, gamma_size=56, need_reflection=0, zorig=((0, 1, -1, 1), (0, │
00:04:30 v #1378 > > │ 3978571390186527, -48, 52)), yfinal=0, balance_prec=0, n_for_stirling=15,    │
00:04:30 v #1379 > > │ need_reduction=True, afix=2115620184325601055735808,                         │
00:04:30 v #1380 > > │ bfix=8543917002826194402410496, r=0, zprered=((0, 1, -1, 1), (0,             │
00:04:30 v #1381 > > │ 3978571390186527, -48, 52)), d=5, rre=-542313259704087430481959845,          │
00:04:30 v #1382 > > │ one=604462909807314587353088, rim=-1657865507045117397880679064, k=2 /       │
00:04:30 v #1383 > > │ f_lineno: 2043 / f_code.co_filename: \mpmath\libmp\gammazeta.py /            │
00:04:30 v #1384 > > │ f_back.f_lineno: 1007 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:04:30 v #1385 > > │ / arg: None                                                                  │
00:04:30 v #1386 > > │ gamma_ / result: (-1.4455538437607e-10 - 5.52278876877407e-10j) / count: 318 │
00:04:30 v #1387 > > │ gamma__ / s: Complex { re: 0.5, im: 14.134725 } / result: Ok(Complex { re:   │
00:04:30 v #1388 > > │ -1.4455538437606964e-10, im: -5.522788768774066e-10 })                       │
00:04:30 v #1389 > > │ zeta__ / s: Complex { re: 0.5, im: -14.134725 } / result: Ok(Complex { re:   │
00:04:30 v #1390 > > │ 1.7674298413849186e-8, im: 1.1102028930923156e-7 }) / z: Complex { re: 0.0,  │
00:04:30 v #1391 > > │ im: 0.0 }                                                                    │
00:04:30 v #1392 > > │ __assert_lt / actual: 4.499862532288471e-22 / expected: 0.0001               │
00:04:30 v #1393 > > │ __assert_lt / actual: 1.4558378780933287e-22 / expected: 0.0001              │
00:04:30 v #1394 > > │                                                                              │
00:04:30 v #1395 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:30 v #1396 > >
00:04:30 v #1397 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:30 v #1398 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:30 v #1399 > > │ ## test_euler_product_formula                                                │
00:04:30 v #1400 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:30 v #1401 > >
00:04:30 v #1402 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:30 v #1403 > > inl test_euler_product_formula log = run_test log fun zeta, gamma =>
00:04:30 v #1404 > >     inl s_values = join [[ 2; 2.5; 3; 3.5; 4; 4.5; 5 ]]
00:04:30 v #1405 > >     inl primes = join [[ 2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47;
00:04:30 v #1406 > > 53; 59; 61; 67; 71 ]]
00:04:30 v #1407 > >     s_values
00:04:30 v #1408 > >     |> listm.iter fun s_re =>
00:04:30 v #1409 > >         inl s = .^(s_re, 0)
00:04:30 v #1410 > >         inl product =
00:04:30 v #1411 > >             (1, primes)
00:04:30 v #1412 > >             ||> listm.fold fun acc x =>
00:04:30 v #1413 > >                 acc * 1 / (1 - x ** -s_re)
00:04:30 v #1414 > >
00:04:30 v #1415 > >         inl result = zeta s
00:04:30 v #1416 > >         re result - product |> abs |> _assert_lt 0.01
00:04:30 v #1417 > >         result |> im |> _assert_lt 0.01
00:04:30 v #1418 > 00:04:29 d #56 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6a87ec70a55e60a3e077ad5c852c4c1f660bb41347b96bd6fd85bb58afe54e11/main.spi
00:04:30 v #1419 > >
00:04:30 v #1420 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:30 v #1421 > > //// test
00:04:30 v #1422 > > ///! rust -d num-complex pyo3
00:04:30 v #1423 > >
00:04:30 v #1424 > > test_euler_product_formula true
00:04:31 v #1425 > 00:04:30 d #57 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/989f45a5a667fb24098710f6b2b4f75ae8147f3a4655c19719d68464016cab7c/main.spi
00:04:47 v #1426 > >
00:04:47 v #1427 > > ╭─[ 16.57s - return value ]────────────────────────────────────────────────────╮
00:04:47 v #1428 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:04:47 v #1429 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:04:47 v #1430 > > │ method=None, kwargs={} / f_lineno: 528 / f_code.co_filename:                 │
00:04:47 v #1431 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:47 v #1432 > > │ / arg: None                                                                  │
00:04:47 v #1433 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:04:47 v #1434 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:04:47 v #1435 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:47 v #1436 > > │ / arg: None                                                                  │
00:04:47 v #1437 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:04:47 v #1438 > > │ method=None, kwargs={}, d=0 / f_lineno: 531 / f_code.co_filename:            │
00:04:47 v #1439 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:47 v #1440 > > │ / arg: None                                                                  │
00:04:47 v #1441 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:04:47 v #1442 > > │ method=None, kwargs={}, d=0 / f_lineno: 532 / f_code.co_filename:            │
00:04:47 v #1443 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:47 v #1444 > > │ / arg: None                                                                  │
00:04:47 v #1445 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:04:47 v #1446 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:04:47 v #1447 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:47 v #1448 > > │ / arg: None                                                                  │
00:04:47 v #1449 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:04:47 v #1450 > > │ / f_lineno: 989 / f_code.co_filename: \mpmath\ctx_mp_python.py /             │
00:04:47 v #1451 > > │ f_back.f_lineno: 533 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:04:47 v #1452 > > │ / arg: None                                                                  │
00:04:47 v #1453 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:04:47 v #1454 > > │ / f_linen...k.f_lineno: 985 / f_back.f_code.co_filename:                     │
00:04:47 v #1455 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:04:47 v #1456 > > │ line(zeta_) / f_code.co_name: mpf_zeta_int / f_locals: s=5, prec=53,         │
00:04:47 v #1457 > > │ rnd='n', wp=73, m=19.25, needed_terms=623488, n=33, d=[1, 2179, 792067,      │
00:04:47 v #1458 > > │ 115062531, 8930212611, 429314925315, 13983537177347, 327666966438659,        │
00:04:47 v #1459 > > │ 5764846406968067, 78615943485956867, 851604426176701187,                     │
00:04:47 v #1460 > > │ 7470527451121689347, 53898915046387983107, 323897845985013506819,            │
00:04:47 v #1461 > > │ 1638178356374090130179, 7034281785235908174595, 25833609859980306522883,     │
00:04:47 v #1462 > > │ 81661917475887913739011, 223448095548034217779971, 532029677981012660429571, │
00:04:47 v #1463 > > │ 1108048631855905753375491, 2029946562680066824315651,                        │
00:04:47 v #1464 > > │ 3292927237466655352791811, 4769455369342763680768771,                        │
00:04:47 v #1465 > > │ 6235511670496346417767171, 7463408621503347142796035,                        │
00:04:47 v #1466 > > │ 8322751284048216428487427, 8818779962777819524211459,                        │
00:04:47 v #1467 > > │ 9050689474911140452082435, 9136270117622166323831555,                        │
00:04:47 v #1468 > > │ 9160252037839493347779331, 9165045885455648617505539,                        │
00:04:47 v #1469 > > │ 9165654628010081032708867, 9165691521498228451812099],                       │
00:04:47 v #1470 > > │ t=-84153986440240940095109733900764881301998910956, k=26 / f_lineno: 954 /   │
00:04:47 v #1471 > > │ f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 985 /      │
00:04:47 v #1472 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:04:47 v #1473 > > │ zeta_ / result: (1.03692775514337 + 0.0j) / count: 228                       │
00:04:47 v #1474 > > │ zeta / count: 0 / s: Complex { re: 5.0, im: 0.0 }                            │
00:04:47 v #1475 > > │ zeta__ / s: Complex { re: 5.0, im: 0.0 } / result: Ok(Complex { re:          │
00:04:47 v #1476 > > │ 1.03692775514337, im: 0.0 }) / z: Complex { re: NaN, im: NaN }               │
00:04:47 v #1477 > > │ __assert_lt / actual: 2.0033654735129858e-9 / expected: 0.01                 │
00:04:47 v #1478 > > │ __assert_lt / actual: 0.0 / expected: 0.01                                   │
00:04:47 v #1479 > > │                                                                              │
00:04:47 v #1480 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:47 v #1481 > >
00:04:47 v #1482 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:47 v #1483 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:47 v #1484 > > │ ## graph                                                                     │
00:04:47 v #1485 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:47 v #1486 > >
00:04:47 v #1487 > > ── mermaid ─────────────────────────────────────────────────────────────────────
00:04:47 v #1488 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:47 v #1489 > > │ <div class="mermaidMarkdownContainer" style="background-color:white">        │
00:04:47 v #1490 > > │ <link rel="stylesheet"                                                       │
00:04:47 v #1491 > > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:04:47 v #1492 > > │ css">                                                                        │
00:04:47 v #1493 > > │ <div id="8bcce550181c4d1ebde36815caeea348"></div>                            │
00:04:47 v #1494 > > │ <script type="module">                                                       │
00:04:47 v #1495 > > │                                                                              │
00:04:47 v #1496 > > │             import mermaid from                                              │
00:04:47 v #1497 > > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs';      │
00:04:47 v #1498 > > │             let renderTarget =                                               │
00:04:47 v #1499 > > │ document.getElementById('8bcce550181c4d1ebde36815caeea348');                 │
00:04:47 v #1500 > > │             try {                                                            │
00:04:47 v #1501 > > │                 const {svg, bindFunctions} = await                           │
00:04:47 v #1502 > > │ mermaid.mermaidAPI.render(                                                   │
00:04:47 v #1503 > > │                     'mermaid_8bcce550181c4d1ebde36815caeea348',              │
00:04:47 v #1504 > > │                     `graph TD                                                │
00:04:47 v #1505 > > │     zeta("zeta()") --> convert                                               │
00:04:47 v #1506 > > │     zeta --> f["f()"]                                                        │
00:04:47 v #1507 > > │     f --> mpc_f["mpc_zeta()"]                                                │
00:04:47 v #1508 > > │     f --> mpf_f["mpf_zeta()"]                                                │
00:04:47 v #1509 > > │     convert --> from_float                                                   │
00:04:47 v #1510 > > │     from_float --> from_man_exp                                              │
00:04:47 v #1511 > > │     from_man_exp --> python_bitcount                                         │
00:04:47 v #1512 > > │     python_bitcount --> _normalize                                           │
00:04:47 v #1513 > > │     _normalize --> make_mpc                                                  │
00:04:47 v #1514 > > │     make_mpc --> mpc_zeta["mpc_zeta()"]                                      │
00:04:47 v #1515 > > │     mpc_zeta --> mpf_zeta["mpf_zeta()"]                                      │
00:04:47 v #1516 > > │     mpf_zeta --> to_int                                                      │
00:04:47 v #1517 > > │     to_int --> mpf_zeta_int["mpf_zeta_int()"]                                │
00:04:47 v #1518 > > │     mpf_zeta_int --> borwein_coefficients                                    │
00:04:47 v #1519 > > │     borwein_coefficients --> from_man_exp_2("from_man_exp()")                │
00:04:47 v #1520 > > │     from_man_exp_2 --> python_bitcount_2("python_bitcount()")                │
00:04:47 v #1521 > > │     python_bitcount_2 --> _normalize_2("_normalize()")                       │
00:04:47 v #1522 > > │     _normalize_2 --> make_mpc_2("make_mpc()")                                │
00:04:47 v #1523 > > │     make_mpc_2 --> stop_trace                                                │
00:04:47 v #1524 > > │     mpf_zeta_int --> mpf_bernoulli                                           │
00:04:47 v #1525 > > │     mpf_bernoulli --> bernoulli_size                                         │
00:04:47 v #1526 > > │     bernoulli_size --> mpf_rdiv_int                                          │
00:04:47 v #1527 > > │     mpf_rdiv_int --> python_bitcount_3("python_bitcount()")                  │
00:04:47 v #1528 > > │     python_bitcount_3 --> _normalize1                                        │
00:04:47 v #1529 > > │     _normalize1 --> from_man_exp_3("from_man_exp()")                         │
00:04:47 v #1530 > > │     from_man_exp_3 --> _normalize_3("_normalize()")                          │
00:04:47 v #1531 > > │     _normalize_3 --> mpf_sub                                                 │
00:04:47 v #1532 > > │     mpf_sub --> mpf_add                                                      │
00:04:47 v #1533 > > │     mpf_add --> mpf_neg                                                      │
00:04:47 v #1534 > > │     mpf_neg --> _normalize1_2("_normalize1()")                               │
00:04:47 v #1535 > > │     _normalize1_2 --> from_int                                               │
00:04:47 v #1536 > > │     from_int --> mpf_div                                                     │
00:04:47 v #1537 > > │     mpf_div --> python_bitcount_4("python_bitcount()")                       │
00:04:47 v #1538 > > │     python_bitcount_4 --> _normalize1_3("_normalize1()")                     │
00:04:47 v #1539 > > │     _normalize1_3 --> make_mpc_3("make_mpc()")                               │
00:04:47 v #1540 > > │     make_mpc_3 --> final_stop["stop_trace()"]`);                             │
00:04:47 v #1541 > > │                 renderTarget.innerHTML = svg;                                │
00:04:47 v #1542 > > │                 bindFunctions?.(renderTarget);                               │
00:04:47 v #1543 > > │             }                                                                │
00:04:47 v #1544 > > │             catch (error) {                                                  │
00:04:47 v #1545 > > │                 console.log(error);                                          │
00:04:47 v #1546 > > │             }                                                                │
00:04:47 v #1547 > > │ </script>                                                                    │
00:04:47 v #1548 > > │ </div>                                                                       │
00:04:47 v #1549 > > │                                                                              │
00:04:47 v #1550 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:47 v #1551 > >
00:04:47 v #1552 > > ── mermaid ─────────────────────────────────────────────────────────────────────
00:04:47 v #1553 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:47 v #1554 > > │ <div class="mermaidMarkdownContainer" style="background-color:white">        │
00:04:47 v #1555 > > │ <link rel="stylesheet"                                                       │
00:04:47 v #1556 > > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:04:47 v #1557 > > │ css">                                                                        │
00:04:47 v #1558 > > │ <div id="00157daa4c8844738bff9281e8e73125"></div>                            │
00:04:47 v #1559 > > │ <script type="module">                                                       │
00:04:47 v #1560 > > │                                                                              │
00:04:47 v #1561 > > │             import mermaid from                                              │
00:04:47 v #1562 > > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs';      │
00:04:47 v #1563 > > │             let renderTarget =                                               │
00:04:47 v #1564 > > │ document.getElementById('00157daa4c8844738bff9281e8e73125');                 │
00:04:47 v #1565 > > │             try {                                                            │
00:04:47 v #1566 > > │                 const {svg, bindFunctions} = await                           │
00:04:47 v #1567 > > │ mermaid.mermaidAPI.render(                                                   │
00:04:47 v #1568 > > │                     'mermaid_00157daa4c8844738bff9281e8e73125',              │
00:04:47 v #1569 > > │                     `graph TD                                                │
00:04:47 v #1570 > > │     zeta_rust("zeta() - Rust") --> num_traits("num-traits")                  │
00:04:47 v #1571 > > │     zeta_rust --> num_bigint("num-bigint")                                   │
00:04:47 v #1572 > > │     zeta_rust --> rust_decimal("rust_decimal for precision")                 │
00:04:47 v #1573 > > │     zeta_rust --> error_handling("Rust Error Handling")                      │
00:04:47 v #1574 > > │                                                                              │
00:04:47 v #1575 > > │     num_traits --> num_traits_usage("Use for common traits")                 │
00:04:47 v #1576 > > │     num_bigint --> bigint_operations("Arbitrary-precision arithmetic         │
00:04:47 v #1577 > > │ operations")                                                                 │
00:04:47 v #1578 > > │     rust_decimal --> decimal_operations("High-precision decimal operations") │
00:04:47 v #1579 > > │     error_handling --> result_type("Use Result<T, E> for error handling")    │
00:04:47 v #1580 > > │                                                                              │
00:04:47 v #1581 > > │     bigint_operations --> convert_rust("convert() - Rust")                   │
00:04:47 v #1582 > > │     bigint_operations --> normalize_rust("_normalize() - Rust")              │
00:04:47 v #1583 > > │                                                                              │
00:04:47 v #1584 > > │     convert_rust --> from_float_rust("from_float() - Rust")                  │
00:04:47 v #1585 > > │     from_float_rust --> from_man_exp_rust("from_man_exp() - Rust")           │
00:04:47 v #1586 > > │     from_man_exp_rust --> bitcount_rust("bitcount() - Rust")                 │
00:04:47 v #1587 > > │     bitcount_rust --> normalize_rust                                         │
00:04:47 v #1588 > > │     normalize_rust --> mpc_zeta_rust("mpc_zeta() - Rust")                    │
00:04:47 v #1589 > > │     mpc_zeta_rust --> mpf_zeta_rust("mpf_zeta() - Rust")                     │
00:04:47 v #1590 > > │     mpf_zeta_rust --> to_int_rust("to_int() - Rust")                         │
00:04:47 v #1591 > > │     to_int_rust --> mpf_zeta_int_rust("mpf_zeta_int() - Rust")               │
00:04:47 v #1592 > > │                                                                              │
00:04:47 v #1593 > > │     mpf_zeta_int_rust --> borwein_coefficients_rust("borwein_coefficients()  │
00:04:47 v #1594 > > │ - Rust")                                                                     │
00:04:47 v #1595 > > │     borwein_coefficients_rust --> from_man_exp_rust_2("from_man_exp() -      │
00:04:47 v #1596 > > │ Rust")                                                                       │
00:04:47 v #1597 > > │     from_man_exp_rust_2 --> bitcount_rust_2("bitcount() - Rust")             │
00:04:47 v #1598 > > │     bitcount_rust_2 --> normalize_rust_2("_normalize() - Rust")              │
00:04:47 v #1599 > > │     normalize_rust_2 --> make_mpc_rust("make_mpc() - Rust")                  │
00:04:47 v #1600 > > │                                                                              │
00:04:47 v #1601 > > │     mpf_zeta_int_rust --> mpf_bernoulli_rust("mpf_bernoulli() - Rust")       │
00:04:47 v #1602 > > │     mpf_bernoulli_rust --> bernoulli_size_rust("bernoulli_size() - Rust")    │
00:04:47 v #1603 > > │     bernoulli_size_rust --> mpf_rdiv_int_rust("mpf_rdiv_int() - Rust")       │
00:04:47 v #1604 > > │     mpf_rdiv_int_rust --> bitcount_rust_3("bitcount() - Rust")               │
00:04:47 v #1605 > > │     bitcount_rust_3 --> normalize1_rust("_normalize1() - Rust")              │
00:04:47 v #1606 > > │     normalize1_rust --> from_man_exp_rust_3("from_man_exp() - Rust")         │
00:04:47 v #1607 > > │     from_man_exp_rust_3 --> normalize_rust_3("_normalize() - Rust")          │
00:04:47 v #1608 > > │     normalize_rust_3 --> mpf_sub_rust("mpf_sub() - Rust")                    │
00:04:47 v #1609 > > │     mpf_sub_rust --> mpf_add_rust("mpf_add() - Rust")                        │
00:04:47 v #1610 > > │     mpf_add_rust --> mpf_neg_rust("mpf_neg() - Rust")                        │
00:04:47 v #1611 > > │     mpf_neg_rust --> normalize1_rust_2("_normalize1() - Rust")               │
00:04:47 v #1612 > > │     normalize1_rust_2 --> from_int_rust("from_int() - Rust")                 │
00:04:47 v #1613 > > │     from_int_rust --> mpf_div_rust("mpf_div() - Rust")                       │
00:04:47 v #1614 > > │     mpf_div_rust --> bitcount_rust_4("bitcount() - Rust")                    │
00:04:47 v #1615 > > │     bitcount_rust_4 --> normalize1_rust_3("_normalize1() - Rust")            │
00:04:47 v #1616 > > │                                                                              │
00:04:47 v #1617 > > │     style zeta_rust fill:#f9f,stroke:#333,stroke-width:4px                   │
00:04:47 v #1618 > > │     style num_traits fill:#bbf,stroke:#333,stroke-width:2px                  │
00:04:47 v #1619 > > │     style num_bigint fill:#bbf,stroke:#333,stroke-width:2px                  │
00:04:47 v #1620 > > │     style rust_decimal fill:#bbf,stroke:#333,stroke-width:2px                │
00:04:47 v #1621 > > │     style error_handling fill:#bbf,stroke:#333,stroke-width:2px              │
00:04:47 v #1622 > > │     style bigint_operations fill:#bfb,stroke:#333,stroke-width:2px           │
00:04:47 v #1623 > > │     style decimal_operations fill:#bfb,stroke:#333,stroke-width:2px          │
00:04:47 v #1624 > > │     style result_type fill:#bfb,stroke:#333,stroke-width:2px`);              │
00:04:47 v #1625 > > │                 renderTarget.innerHTML = svg;                                │
00:04:47 v #1626 > > │                 bindFunctions?.(renderTarget);                               │
00:04:47 v #1627 > > │             }                                                                │
00:04:47 v #1628 > > │             catch (error) {                                                  │
00:04:47 v #1629 > > │                 console.log(error);                                          │
00:04:47 v #1630 > > │             }                                                                │
00:04:47 v #1631 > > │ </script>                                                                    │
00:04:47 v #1632 > > │ </div>                                                                       │
00:04:47 v #1633 > > │                                                                              │
00:04:47 v #1634 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:47 v #1635 > >
00:04:47 v #1636 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:47 v #1637 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:47 v #1638 > > │ ## tests                                                                     │
00:04:47 v #1639 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:47 v #1640 > >
00:04:47 v #1641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:47 v #1642 > > inl tests () =
00:04:47 v #1643 > >     testing.run_tests_log {
00:04:47 v #1644 > >         test_zeta_at_known_values_
00:04:47 v #1645 > >         test_zeta_at_2_minus2
00:04:47 v #1646 > >         test_trivial_zero_at_negative_even___
00:04:47 v #1647 > >         test_non_trivial_zero___
00:04:47 v #1648 > >         test_real_part_greater_than_one___
00:04:47 v #1649 > >         test_zeta_at_1___
00:04:47 v #1650 > >         test_symmetry_across_real_axis___
00:04:47 v #1651 > >         test_behavior_near_origin___
00:04:47 v #1652 > >         test_imaginary_axis
00:04:47 v #1653 > >         test_critical_strip
00:04:47 v #1654 > >         test_reflection_formula_for_specific_value
00:04:47 v #1655 > >         test_euler_product_formula
00:04:47 v #1656 > >     }
00:04:47 v #1657 > 00:04:46 d #58 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/384a8de3ab2e8f6ba44151938fb884fb033436bb57658b4fc1ffc8e648de8f25/main.spi
00:04:47 v #1658 > >
00:04:47 v #1659 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:47 v #1660 > > ///! _
00:04:47 v #1661 > >
00:04:47 v #1662 > > inl main (_args : array_base string) =
00:04:47 v #1663 > >     inl value = 1i32
00:04:47 v #1664 > >     console.write_line ($'$"value: {!value}"' : string)
00:04:47 v #1665 > >     0i32
00:04:47 v #1666 > >
00:04:47 v #1667 > > inl main () =
00:04:47 v #1668 > >     $'let tests () = !tests ()' : ()
00:04:47 v #1669 > >     $'let main args = !main args' : ()
00:04:48 v #1670 > 00:04:47 d #59 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b876e95753904e95f4e1f8e088df401551a50b1e08781ba0504d05e7cc597cb2/main.spi
00:04:49 v #1671 > 00:04:47 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 98307 }
00:04:49 v #1672 > 00:04:47 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/math/math.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/math/math.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:04:50 v #1673 > 00:04:48 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/math/math.dib.ipynb to html
00:04:50 v #1674 > 00:04:48 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:04:50 v #1675 > 00:04:48 v #7 !   validate(nb)
00:04:51 v #1676 > 00:04:49 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:04:51 v #1677 > 00:04:49 v #9 !   return _pygments_highlight(
00:04:53 v #1678 > 00:04:51 v #10 ! [NbConvertApp] Writing 7170785 bytes to c:\home\git\polyglot\lib\math\math.dib.html
00:04:53 v #1679 > 00:04:51 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 847 }
00:04:53 v #1680 > 00:04:51 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 847 }
00:04:53 v #1681 > 00:04:51 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/math/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/math/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:04:53 v #1682 > 00:04:51 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:04:53 v #1683 > 00:04:51 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:04:53 v #1684 > 00:04:51 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 99213 }
00:04:53 d #1685 runtime.execute_with_options_async / { exit_code = 0; output_length = 104956 }
00:04:53 d #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 1
00:04:54 v #5 async.run_with_timeout_async / { timeout = 100 }
00:00:00 d #1 writeDibCode / output: Spi / path: math.dib
00:00:00 d #2 parseDibCode / output: Spi / file: math.dib
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:01 v #6 > Server bound to: http://localhost:13805
00:00:02 v #5 async.run_with_timeout_async / { timeout = 180 }
00:00:02 d #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:02 d #4 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:02 d #5 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:02 v #6 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # math\nopen testing\nopen rust.rust_operators\nopen rust\n\n/// ## comp...027let main args = !main args\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result:
00:00:02 v #7 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result:
00:00:02 d #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:02 d #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:02 v #7 > 00:00:02 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/math/math.spi
00:00:03 d #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:03 d #11 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:03 d #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:03 d #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:04 d #14 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:04 d #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:04 d #16 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:04 d #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:05 d #18 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:05 d #19 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:05 d #20 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:05 d #21 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:06 d #22 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:06 d #23 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:06 d #24 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:06 d #25 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:07 d #26 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>]
#endif
type pyo3_Python = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa...v3 (); v2) ()
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure3()
let main args = v1 args
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:07 d #27 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>]
#endif
type pyo3_Python = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa...v3 (); v2) ()
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure3()
let main args = v1 args
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:07 d #28 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07 v #6 async.run_with_timeout_async / { timeout = 100 }
00:00:00 d #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: math / hash:  / code.Length: 187981
00:00:00 d #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\math\math.fsproj
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  "publish "C:\home\git\polyglot\target/Builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime linux-x64"; options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\math" } }
00:00:00 v #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 v #3 >   Determining projects to restore...
00:00:02 v #4 >   Restored C:\home\git\polyglot\target\Builder\math\math.fsproj (in 1.28 sec).
00:00:03 v #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\math\math.fsproj]
00:00:16 v #6 >   math -> C:\home\git\polyglot\target\Builder\math\bin\Release\net9.0\linux-x64\math.dll
00:00:18 v #7 >   math -> C:\home\git\polyglot\lib\math\dist\
00:00:18 d #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 639 }
00:00:18 d #9 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  "publish "C:\home\git\polyglot\target/Builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime win-x64"; options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\math" } }
00:00:18 v #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:19 v #11 >   Determining projects to restore...
00:00:20 v #12 >   Restored C:\home\git\polyglot\target\Builder\math\math.fsproj (in 468 ms).
00:00:20 v #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\math\math.fsproj]
00:00:32 v #14 >   math -> C:\home\git\polyglot\target\Builder\math\bin\Release\net9.0\win-x64\math.dll
00:00:34 v #15 >   math -> C:\home\git\polyglot\lib\math\dist\
00:00:34 d #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 635 }
targetDir: C:\home\git\polyglot\target\Builder\math
Fable 4.21.0: F# to Rust compiler (status: alpha)

Thanks to the contributor! @fdcastel
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\math\math.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 198ms

Started Fable compilation...

Fable compilation finished in 11624ms

.\lib\spiral\common.fsx(1475,0): (1475,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\sm.fsx(452,0): (452,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1629,0): (1629,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(997,0): (997,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\async_.fsx(76,0): (76,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(127,0): (127,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(3673,0): (3673,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(104,0): (104,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(4709,0): (4709,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(55639,0): (55639,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1505,0): (1505,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\target\Builder\math\math.fs(42,0): (44,3) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!

    Directory: C:\home\git\polyglot\target\Builder\math\target

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2024-09-23  2:47 PM                rs
   Compiling target-lexicon v0.12.16
   Compiling libm v0.2.8
   Compiling num-traits v0.2.19
   Compiling once_cell v1.20.2
   Compiling syn v2.0.79
   Compiling rand_core v0.6.4
   Compiling paste v1.0.15
   Compiling bytemuck v1.19.0
   Compiling safe_arch v0.7.2
   Compiling matrixmultiply v0.3.9
   Compiling futures-io v0.3.31
   Compiling libc v0.2.161
   Compiling memoffset v0.9.1
   Compiling rawpointer v0.2.1
   Compiling heck v0.5.0
   Compiling wide v0.7.28
   Compiling pyo3-build-config v0.22.5
   Compiling unindent v0.2.3
   Compiling indoc v2.0.5
   Compiling num-integer v0.1.46
   Compiling approx v0.5.1
   Compiling num-complex v0.4.6
   Compiling chrono v0.4.38
   Compiling float-cmp v0.10.0
   Compiling num-rational v0.4.2
   Compiling pyo3-ffi v0.22.5
   Compiling pyo3-macros-backend v0.22.5
   Compiling pyo3 v0.22.5
   Compiling simba v0.8.1
   Compiling zerocopy-derive v0.7.35
   Compiling futures-macro v0.3.31
   Compiling nalgebra-macros v0.2.2
   Compiling zerocopy v0.7.35
   Compiling futures-util v0.3.31
   Compiling ppv-lite86 v0.2.20
   Compiling rand_chacha v0.3.1
   Compiling rand v0.8.5
   Compiling pyo3-macros v0.22.5
   Compiling rand_distr v0.4.3
   Compiling futures-executor v0.3.31
   Compiling futures v0.3.31
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling nalgebra v0.32.6
   Compiling statrs v0.17.1
   Compiling math v0.0.1 (C:\home\git\polyglot\lib\math)
    Finished `release` profile [optimized] target(s) in 52.51s
     Running unittests math.rs (C:\home\git\polyglot\workspace\target\release\deps\math-2c93ec4a7932e96e.exe)

running 12 tests
test module_b7a9935b::Math::test_real_part_greater_than_one___ ... ok
test module_b7a9935b::Math::test_symmetry_across_real_axis___ ... ok
test module_b7a9935b::Math::test_zeta_at_1___ ... ok
test module_b7a9935b::Math::test_euler_product_formula ... ok
test module_b7a9935b::Math::test_zeta_at_known_values_ ... ok
test module_b7a9935b::Math::test_reflection_formula_for_specific_value ... ok
test module_b7a9935b::Math::test_behavior_near_origin___ ... ok
test module_b7a9935b::Math::test_critical_strip ... ok
test module_b7a9935b::Math::test_zeta_at_2_minus2 ... ok
test module_b7a9935b::Math::test_imaginary_axis ... ok
test module_b7a9935b::Math::test_trivial_zero_at_negative_even___ ... ok
test module_b7a9935b::Math::test_non_trivial_zero___ ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s


In [ ]:
{ pwsh ../apps/plot/build.ps1 } | Invoke-Block
   Compiling num-traits v0.2.19
   Compiling futures-io v0.3.31
   Compiling getrandom v0.2.15
   Compiling plotters-backend v0.3.7
   Compiling uuid v1.11.0
   Compiling futures-util v0.3.31
   Compiling plotters-svg v0.3.7
   Compiling chrono v0.4.38
   Compiling plotters v0.3.7
   Compiling futures-executor v0.3.31
   Compiling futures v0.3.31
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling plot v0.0.1 (C:\home\git\polyglot\apps\plot)
    Finished `release` profile [optimized] target(s) in 26.87s
In [ ]:
{ pwsh ../apps/perf/build.ps1 } | Invoke-Block
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:01 v #6 > Server bound to: http://localhost:13805
00:00:01 d #7 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path Perf.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Perf.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:02 v #8 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Perf.dib", "--retries", "3"])) }
00:00:02 v #9 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/perf/Perf.dib", "--output-path", "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/perf/Perf.dib" --output-path "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 v #10 > >
00:00:04 v #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #13 > > │ # Perf (Polyglot)                                                            │
00:00:04 v #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 v #15 > >
00:00:25 v #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 v #17 > > //// test
00:00:25 v #18 > >
00:00:25 v #19 > > open testing
00:00:25 v #20 > > open benchmark
00:00:26 v #21 > 00:00:26 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0fe24d3dc606a5d07b53d5ea3fede53fab8fac286f91bf9a11131630555d4050/main.spi
00:00:30 v #22 > >
00:00:30 v #23 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #24 > > #if !INTERACTIVE
00:00:30 v #25 > > open Lib
00:00:30 v #26 > > #endif
00:00:30 v #27 > >
00:00:30 v #28 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 v #29 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 v #30 > > │ ## TestCaseResult                                                            │
00:00:30 v #31 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #32 > >
00:00:30 v #33 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #34 > > type TestCaseResult =
00:00:30 v #35 > >     {
00:00:30 v #36 > >         Input: string
00:00:30 v #37 > >         Expected: string
00:00:30 v #38 > >         Result: string
00:00:30 v #39 > >         TimeList: int64 list
00:00:30 v #40 > >     }
00:00:30 v #41 > >
00:00:30 v #42 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 v #43 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 v #44 > > │ ## run                                                                       │
00:00:30 v #45 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #46 > >
00:00:30 v #47 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #48 > > let run count (solutions: (string * ('TInput -> 'TExpected)) list) (input,
00:00:30 v #49 > > expected) =
00:00:30 v #50 > >     let inputStr =
00:00:30 v #51 > >         match box input with
00:00:30 v #52 > >         | :? System.Collections.ICollection as input ->
00:00:30 v #53 > >             System.Linq.Enumerable.Cast<obj> input
00:00:30 v #54 > >             |> Seq.map string
00:00:30 v #55 > >             |> SpiralSm.concat ","
00:00:30 v #56 > >         | _ -> input.ToString ()
00:00:30 v #57 > >
00:00:30 v #58 > >     printfn ""
00:00:30 v #59 > >     printfn $"Solution: {inputStr}  "
00:00:30 v #60 > >
00:00:30 v #61 > >     let performanceInvoke (fn: unit -> 'T) =
00:00:30 v #62 > >         GC.Collect ()
00:00:30 v #63 > >         let stopwatch = System.Diagnostics.Stopwatch ()
00:00:30 v #64 > >         stopwatch.Start ()
00:00:30 v #65 > >         let time1 = stopwatch.ElapsedMilliseconds
00:00:30 v #66 > >
00:00:30 v #67 > >         let result =
00:00:30 v #68 > >             [[| 0 .. count |]]
00:00:30 v #69 > >             |> Array.Parallel.map (fun _ ->
00:00:30 v #70 > >                 fn ()
00:00:30 v #71 > >             )
00:00:30 v #72 > >             |> Array.last
00:00:30 v #73 > >
00:00:30 v #74 > >         let time2 = stopwatch.ElapsedMilliseconds - time1
00:00:30 v #75 > >
00:00:30 v #76 > >         result, time2
00:00:30 v #77 > >
00:00:30 v #78 > >     let resultsWithTime =
00:00:30 v #79 > >         solutions
00:00:30 v #80 > >         |> List.mapi (fun i (testName, solution) ->
00:00:30 v #81 > >             let result, time = performanceInvoke (fun () -> solution input)
00:00:30 v #82 > >             printfn $"Test case %d{i + 1}. %s{testName}. Time: %A{time}  "
00:00:30 v #83 > >             result, time
00:00:30 v #84 > >         )
00:00:30 v #85 > >
00:00:30 v #86 > >
00:00:30 v #87 > >     match resultsWithTime |> List.map fst with
00:00:30 v #88 > >     | ([[]] | [[ _ ]]) -> ()
00:00:30 v #89 > >     | (head :: tail) when tail |> List.forall ((=) head) -> ()
00:00:30 v #90 > >     | results -> failwithf $"Challenge error: %A{results}"
00:00:30 v #91 > >
00:00:30 v #92 > >     {
00:00:30 v #93 > >         Input = inputStr
00:00:30 v #94 > >         Expected = expected.ToString ()
00:00:30 v #95 > >         Result = resultsWithTime |> Seq.map fst |> Seq.head |> _.ToString()
00:00:30 v #96 > >         TimeList = resultsWithTime |> List.map snd
00:00:30 v #97 > >     }
00:00:30 v #98 > >
00:00:30 v #99 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 v #100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 v #101 > > │ ## runAll                                                                    │
00:00:30 v #102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #103 > >
00:00:30 v #104 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #105 > > let runAll testName count (solutions: (string * ('TInput -> 'TExpected)) list)
00:00:30 v #106 > > testCases =
00:00:30 v #107 > >     printfn ""
00:00:30 v #108 > >     printfn ""
00:00:30 v #109 > >     printfn $"Test: {testName}"
00:00:30 v #110 > >     testCases
00:00:30 v #111 > >     |> Seq.map (run count solutions)
00:00:30 v #112 > >     |> Seq.toList
00:00:30 v #113 > >
00:00:30 v #114 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 v #115 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 v #116 > > │ ## sortResultList                                                            │
00:00:30 v #117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #118 > >
00:00:30 v #119 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #120 > > let sortResultList resultList =
00:00:30 v #121 > >     let table =
00:00:30 v #122 > >         let rows =
00:00:30 v #123 > >             resultList
00:00:30 v #124 > >             |> List.map (fun result ->
00:00:30 v #125 > >                 let best =
00:00:30 v #126 > >                     result.TimeList
00:00:30 v #127 > >                     |> List.mapi (fun i time ->
00:00:30 v #128 > >                         i + 1, time
00:00:30 v #129 > >                     )
00:00:30 v #130 > >                     |> List.sortBy snd
00:00:30 v #131 > >                     |> List.head
00:00:30 v #132 > >                     |> _.ToString()
00:00:30 v #133 > >                 let row =
00:00:30 v #134 > >                     [[
00:00:30 v #135 > >                         result.Input
00:00:30 v #136 > >                         result.Expected
00:00:30 v #137 > >                         result.Result
00:00:30 v #138 > >                         best
00:00:30 v #139 > >                     ]]
00:00:30 v #140 > >                 let color =
00:00:30 v #141 > >                     match result.Expected = result.Result with
00:00:30 v #142 > >                     | true -> Some ConsoleColor.DarkGreen
00:00:30 v #143 > >                     | false -> Some ConsoleColor.DarkRed
00:00:30 v #144 > >                 row, color
00:00:30 v #145 > >             )
00:00:30 v #146 > >         let header =
00:00:30 v #147 > >             [[
00:00:30 v #148 > >                 [[
00:00:30 v #149 > >                     "Input"
00:00:30 v #150 > >                     "Expected"
00:00:30 v #151 > >                     "Result"
00:00:30 v #152 > >                     "Best"
00:00:30 v #153 > >                 ]]
00:00:30 v #154 > >                 [[
00:00:30 v #155 > >                     "---"
00:00:30 v #156 > >                     "---"
00:00:30 v #157 > >                     "---"
00:00:30 v #158 > >                     "---"
00:00:30 v #159 > >                 ]]
00:00:30 v #160 > >             ]]
00:00:30 v #161 > >             |> List.map (fun row -> row, None)
00:00:30 v #162 > >         header @ rows
00:00:30 v #163 > >
00:00:30 v #164 > >     let formattedTable =
00:00:30 v #165 > >         let lengthMap =
00:00:30 v #166 > >             table
00:00:30 v #167 > >             |> List.map fst
00:00:30 v #168 > >             |> List.transpose
00:00:30 v #169 > >             |> List.map (fun column ->
00:00:30 v #170 > >                 column
00:00:30 v #171 > >                 |> List.map String.length
00:00:30 v #172 > >                 |> List.sortDescending
00:00:30 v #173 > >                 |> List.tryHead
00:00:30 v #174 > >                 |> Option.defaultValue 0
00:00:30 v #175 > >             )
00:00:30 v #176 > >             |> List.indexed
00:00:30 v #177 > >             |> Map.ofList
00:00:30 v #178 > >         table
00:00:30 v #179 > >         |> List.map (fun (row, color) ->
00:00:30 v #180 > >             let newRow =
00:00:30 v #181 > >                 row
00:00:30 v #182 > >                 |> List.mapi (fun i cell ->
00:00:30 v #183 > >                     cell.PadRight lengthMap.[[i]]
00:00:30 v #184 > >                 )
00:00:30 v #185 > >             newRow, color
00:00:30 v #186 > >         )
00:00:30 v #187 > >
00:00:30 v #188 > >     printfn ""
00:00:30 v #189 > >     formattedTable
00:00:30 v #190 > >     |> List.iter (fun (row, color) ->
00:00:30 v #191 > >         match color with
00:00:30 v #192 > >         | Some color -> Console.ForegroundColor <- color
00:00:30 v #193 > >         | None -> Console.ResetColor ()
00:00:30 v #194 > >
00:00:30 v #195 > >         printfn "%s" (String.Join ("\t| ", row))
00:00:30 v #196 > >
00:00:30 v #197 > >         Console.ResetColor ()
00:00:30 v #198 > >     )
00:00:30 v #199 > >
00:00:30 v #200 > >     let averages =
00:00:30 v #201 > >         resultList
00:00:30 v #202 > >         |> List.map (fun result -> result.TimeList |> List.map float)
00:00:30 v #203 > >         |> List.transpose
00:00:30 v #204 > >         |> List.map List.average
00:00:30 v #205 > >         |> List.map int64
00:00:30 v #206 > >         |> List.indexed
00:00:30 v #207 > >
00:00:30 v #208 > >     printfn ""
00:00:30 v #209 > >     printfn "Average Ranking  "
00:00:30 v #210 > >     averages
00:00:30 v #211 > >     |> List.sortBy snd
00:00:30 v #212 > >     |> List.iter (fun (i, avg) ->
00:00:30 v #213 > >         printfn $"Test case %d{i + 1}. Average Time: %A{avg}  "
00:00:30 v #214 > >     )
00:00:30 v #215 > >
00:00:30 v #216 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:30 v #217 > > let mutable _count =
00:00:30 v #218 > >     if ("CI" |> System.Environment.GetEnvironmentVariable |> fun x -> $"%A{x}")
00:00:30 v #219 > > <> "<null>"
00:00:30 v #220 > >     then 2000000
00:00:30 v #221 > >     else 2000
00:00:30 v #222 > >
00:00:30 v #223 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 v #224 > > inl is_fast () =
00:00:30 v #225 > >     false
00:00:30 v #226 > 00:00:29 d #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af72357aa5b9c8336ba97493cc77aac4861a203d5a854c174807f06c5afe1c3d/main.spi
00:00:31 v #227 > >
00:00:31 v #228 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 v #229 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 v #230 > > │ ## empty3Tests                                                               │
00:00:31 v #231 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #232 > >
00:00:31 v #233 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 v #234 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 v #235 > > │ Test: Empty3                                                                 │
00:00:31 v #236 > > │                                                                              │
00:00:31 v #237 > > │ Solution: (a, a)                                                             │
00:00:31 v #238 > > │ Test case 1. A. Time: 91L                                                    │
00:00:31 v #239 > > │                                                                              │
00:00:31 v #240 > > │ Solution: (a, a)                                                             │
00:00:31 v #241 > > │ Test case 1. A. Time: 56L                                                    │
00:00:31 v #242 > > │                                                                              │
00:00:31 v #243 > > │ Input  | Expected      | Result | Best                                       │
00:00:31 v #244 > > │ ---    | ---           | ---    | ---                                        │
00:00:31 v #245 > > │ (a, a) | a             | a      | (1, 91)                                    │
00:00:31 v #246 > > │ (a, a) | a             | a      | (1, 56)                                    │
00:00:31 v #247 > > │                                                                              │
00:00:31 v #248 > > │ Averages                                                                     │
00:00:31 v #249 > > │ Test case 1. Average Time: 73L                                               │
00:00:31 v #250 > > │                                                                              │
00:00:31 v #251 > > │ Ranking                                                                      │
00:00:31 v #252 > > │ Test case 1. Average Time: 73L                                               │
00:00:31 v #253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #254 > >
00:00:31 v #255 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:31 v #256 > > //// test
00:00:31 v #257 > >
00:00:31 v #258 > > let solutions = [[
00:00:31 v #259 > >     "A",
00:00:31 v #260 > >     fun (a, _b) ->
00:00:31 v #261 > >         a
00:00:31 v #262 > > ]]
00:00:31 v #263 > > let testCases = seq {
00:00:31 v #264 > >     ("a", "a"), "a"
00:00:31 v #265 > >     ("a", "a"), "a"
00:00:31 v #266 > > }
00:00:31 v #267 > > let rec empty3Tests = runAll (nameof empty3Tests) _count solutions testCases
00:00:31 v #268 > > empty3Tests
00:00:31 v #269 > > |> sortResultList
00:00:31 v #270 > >
00:00:31 v #271 > > ╭─[ 552.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 v #272 > > │                                                                              │
00:00:31 v #273 > > │                                                                              │
00:00:31 v #274 > > │ Test: empty3Tests                                                            │
00:00:31 v #275 > > │                                                                              │
00:00:31 v #276 > > │ Solution: (a, a)                                                             │
00:00:31 v #277 > > │ Test case 1. A. Time: 1L                                                     │
00:00:31 v #278 > > │                                                                              │
00:00:31 v #279 > > │ Solution: (a, a)                                                             │
00:00:31 v #280 > > │ Test case 1. A. Time: 1L                                                     │
00:00:31 v #281 > > │                                                                              │
00:00:31 v #282 > > │ Input 	| Expected	| Result	| Best                                                  │
00:00:31 v #283 > > │ ---   	| ---     	| ---   	| ---                                                   │
00:00:31 v #284 > > │ (a, a)	| a       	| a     	| (1, 1)                                                │
00:00:31 v #285 > > │ (a, a)	| a       	| a     	| (1, 1)                                                │
00:00:31 v #286 > > │                                                                              │
00:00:31 v #287 > > │ Average Ranking                                                              │
00:00:31 v #288 > > │ Test case 1. Average Time: 1L                                                │
00:00:31 v #289 > > │                                                                              │
00:00:31 v #290 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #291 > >
00:00:31 v #292 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 v #293 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 v #294 > > │ ## empty2Tests                                                               │
00:00:31 v #295 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #296 > >
00:00:31 v #297 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 v #298 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 v #299 > > │ Test: Empty2                                                                 │
00:00:31 v #300 > > │                                                                              │
00:00:31 v #301 > > │ Solution: (a, a)                                                             │
00:00:31 v #302 > > │ Test case 1. A. Time: 59L                                                    │
00:00:31 v #303 > > │                                                                              │
00:00:31 v #304 > > │ Solution: (a, a)                                                             │
00:00:31 v #305 > > │ Test case 1. A. Time: 53L                                                    │
00:00:31 v #306 > > │                                                                              │
00:00:31 v #307 > > │ Input   | Expected        | Result  | Best                                   │
00:00:31 v #308 > > │ ---     | ---             | ---     | ---                                    │
00:00:31 v #309 > > │ (a, a)  | a               | a       | (1, 59)                                │
00:00:31 v #310 > > │ (a, a)  | a               | a       | (1, 53)                                │
00:00:31 v #311 > > │                                                                              │
00:00:31 v #312 > > │ Averages                                                                     │
00:00:31 v #313 > > │ Test case 1. Average Time: 56L                                               │
00:00:31 v #314 > > │                                                                              │
00:00:31 v #315 > > │ Ranking                                                                      │
00:00:31 v #316 > > │ Test case 1. Average Time: 56L                                               │
00:00:31 v #317 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #318 > >
00:00:31 v #319 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:31 v #320 > > //// test
00:00:31 v #321 > >
00:00:31 v #322 > > let solutions = [[
00:00:31 v #323 > >     "A",
00:00:31 v #324 > >     fun (a, _b) ->
00:00:31 v #325 > >         a
00:00:31 v #326 > > ]]
00:00:31 v #327 > > let testCases = seq {
00:00:31 v #328 > >     ("a", "a"), "a"
00:00:31 v #329 > >     ("a", "a"), "a"
00:00:31 v #330 > > }
00:00:31 v #331 > > let rec empty2Tests = runAll (nameof empty2Tests) _count solutions testCases
00:00:31 v #332 > > empty2Tests
00:00:31 v #333 > > |> sortResultList
00:00:32 v #334 > >
00:00:32 v #335 > > ╭─[ 523.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 v #336 > > │                                                                              │
00:00:32 v #337 > > │                                                                              │
00:00:32 v #338 > > │ Test: empty2Tests                                                            │
00:00:32 v #339 > > │                                                                              │
00:00:32 v #340 > > │ Solution: (a, a)                                                             │
00:00:32 v #341 > > │ Test case 1. A. Time: 0L                                                     │
00:00:32 v #342 > > │                                                                              │
00:00:32 v #343 > > │ Solution: (a, a)                                                             │
00:00:32 v #344 > > │ Test case 1. A. Time: 0L                                                     │
00:00:32 v #345 > > │                                                                              │
00:00:32 v #346 > > │ Input 	| Expected	| Result	| Best                                                  │
00:00:32 v #347 > > │ ---   	| ---     	| ---   	| ---                                                   │
00:00:32 v #348 > > │ (a, a)	| a       	| a     	| (1, 0)                                                │
00:00:32 v #349 > > │ (a, a)	| a       	| a     	| (1, 0)                                                │
00:00:32 v #350 > > │                                                                              │
00:00:32 v #351 > > │ Average Ranking                                                              │
00:00:32 v #352 > > │ Test case 1. Average Time: 0L                                                │
00:00:32 v #353 > > │                                                                              │
00:00:32 v #354 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #355 > >
00:00:32 v #356 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #357 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #358 > > │ ## emptyTests                                                                │
00:00:32 v #359 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #360 > >
00:00:32 v #361 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #362 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #363 > > │ Test: Empty                                                                  │
00:00:32 v #364 > > │                                                                              │
00:00:32 v #365 > > │ Solution: 0                                                                  │
00:00:32 v #366 > > │ Test case 1. A. Time: 61L                                                    │
00:00:32 v #367 > > │                                                                              │
00:00:32 v #368 > > │ Solution: 2                                                                  │
00:00:32 v #369 > > │ Test case 1. A. Time: 62L                                                    │
00:00:32 v #370 > > │                                                                              │
00:00:32 v #371 > > │ Solution: 5                                                                  │
00:00:32 v #372 > > │ Test case 1. A. Time: 70L                                                    │
00:00:32 v #373 > > │                                                                              │
00:00:32 v #374 > > │ Input   | Expected        | Result  | Best                                   │
00:00:32 v #375 > > │ ---     | ---             | ---     | ---                                    │
00:00:32 v #376 > > │ 0       | 0               | 0       | (1, 61)                                │
00:00:32 v #377 > > │ 2       | 2               | 2       | (1, 62)                                │
00:00:32 v #378 > > │ 5       | 5               | 5       | (1, 70)                                │
00:00:32 v #379 > > │                                                                              │
00:00:32 v #380 > > │ Averages                                                                     │
00:00:32 v #381 > > │ Test case 1. Average Time: 64L                                               │
00:00:32 v #382 > > │                                                                              │
00:00:32 v #383 > > │ Ranking                                                                      │
00:00:32 v #384 > > │ Test case 1. Average Time: 64L                                               │
00:00:32 v #385 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #386 > >
00:00:32 v #387 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:32 v #388 > > //// test
00:00:32 v #389 > >
00:00:32 v #390 > > let solutions = [[
00:00:32 v #391 > >     "A",
00:00:32 v #392 > >     fun n ->
00:00:32 v #393 > >         n + 0
00:00:32 v #394 > > ]]
00:00:32 v #395 > > let testCases = seq {
00:00:32 v #396 > >     0, 0
00:00:32 v #397 > >     2, 2
00:00:32 v #398 > >     5, 5
00:00:32 v #399 > > }
00:00:32 v #400 > > let rec emptyTests = runAll (nameof emptyTests) _count solutions testCases
00:00:32 v #401 > > emptyTests
00:00:32 v #402 > > |> sortResultList
00:00:32 v #403 > >
00:00:32 v #404 > > ╭─[ 833.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 v #405 > > │                                                                              │
00:00:32 v #406 > > │                                                                              │
00:00:32 v #407 > > │ Test: emptyTests                                                             │
00:00:32 v #408 > > │                                                                              │
00:00:32 v #409 > > │ Solution: 0                                                                  │
00:00:32 v #410 > > │ Test case 1. A. Time: 3L                                                     │
00:00:32 v #411 > > │                                                                              │
00:00:32 v #412 > > │ Solution: 2                                                                  │
00:00:32 v #413 > > │ Test case 1. A. Time: 0L                                                     │
00:00:32 v #414 > > │                                                                              │
00:00:32 v #415 > > │ Solution: 5                                                                  │
00:00:32 v #416 > > │ Test case 1. A. Time: 0L                                                     │
00:00:32 v #417 > > │                                                                              │
00:00:32 v #418 > > │ Input	| Expected	| Result	| Best                                                   │
00:00:32 v #419 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:00:32 v #420 > > │ 0    	| 0       	| 0     	| (1, 3)                                                 │
00:00:32 v #421 > > │ 2    	| 2       	| 2     	| (1, 0)                                                 │
00:00:32 v #422 > > │ 5    	| 5       	| 5     	| (1, 0)                                                 │
00:00:32 v #423 > > │                                                                              │
00:00:32 v #424 > > │ Average Ranking                                                              │
00:00:32 v #425 > > │ Test case 1. Average Time: 1L                                                │
00:00:32 v #426 > > │                                                                              │
00:00:32 v #427 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #428 > >
00:00:32 v #429 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #430 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #431 > > │ ## uniqueLettersTests                                                        │
00:00:32 v #432 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #433 > >
00:00:32 v #434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #436 > > │ Test: UniqueLetters                                                          │
00:00:32 v #437 > > │                                                                              │
00:00:32 v #438 > > │ Solution: abc                                                                │
00:00:32 v #439 > > │ Test case 1. A. Time: 1512L                                                  │
00:00:32 v #440 > > │ Test case 2. B. Time: 1947L                                                  │
00:00:32 v #441 > > │ Test case 3. C. Time: 2023L                                                  │
00:00:32 v #442 > > │ Test case 4. D. Time: 1358L                                                  │
00:00:32 v #443 > > │ Test case 5. E. Time: 1321L                                                  │
00:00:32 v #444 > > │ Test case 6. F. Time: 1346L                                                  │
00:00:32 v #445 > > │ Test case 7. G. Time: 1304L                                                  │
00:00:32 v #446 > > │ Test case 8. H. Time: 1383L                                                  │
00:00:32 v #447 > > │ Test case 9. I. Time: 1495L                                                  │
00:00:32 v #448 > > │ Test case 10. J. Time: 1245L                                                 │
00:00:32 v #449 > > │ Test case 11. K. Time: 1219L                                                 │
00:00:32 v #450 > > │                                                                              │
00:00:32 v #451 > > │ Solution: accabb                                                             │
00:00:32 v #452 > > │ Test case 1. A. Time: 1648L                                                  │
00:00:32 v #453 > > │ Test case 2. B. Time: 2061L                                                  │
00:00:32 v #454 > > │ Test case 3. C. Time: 2413L                                                  │
00:00:32 v #455 > > │ Test case 4. D. Time: 1561L                                                  │
00:00:32 v #456 > > │ Test case 5. E. Time: 1593L                                                  │
00:00:32 v #457 > > │ Test case 6. F. Time: 1518L                                                  │
00:00:32 v #458 > > │ Test case 7. G. Time: 1415L                                                  │
00:00:32 v #459 > > │ Test case 8. H. Time: 1510L                                                  │
00:00:32 v #460 > > │ Test case 9. I. Time: 1445L                                                  │
00:00:32 v #461 > > │ Test case 10. J. Time: 1636L                                                 │
00:00:32 v #462 > > │ Test case 11. K. Time: 1317L                                                 │
00:00:32 v #463 > > │                                                                              │
00:00:32 v #464 > > │ Solution: pprrqqpp                                                           │
00:00:32 v #465 > > │ Test case 1. A. Time: 2255L                                                  │
00:00:32 v #466 > > │ Test case 2. B. Time: 2408L                                                  │
00:00:32 v #467 > > │ Test case 3. C. Time: 2393L                                                  │
00:00:32 v #468 > > │ Test case 4. D. Time: 1675L                                                  │
00:00:32 v #469 > > │ Test case 5. E. Time: 1911L                                                  │
00:00:32 v #470 > > │ Test case 6. F. Time: 2126L                                                  │
00:00:32 v #471 > > │ Test case 7. G. Time: 1504L                                                  │
00:00:32 v #472 > > │ Test case 8. H. Time: 1715L                                                  │
00:00:32 v #473 > > │ Test case 9. I. Time: 1537L                                                  │
00:00:32 v #474 > > │ Test case 10. J. Time: 1522L                                                 │
00:00:32 v #475 > > │ Test case 11. K. Time: 1322L                                                 │
00:00:32 v #476 > > │                                                                              │
00:00:32 v #477 > > │ Solution:                                                                    │
00:00:32 v #478 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:32 v #479 > > │ bbb                                                                          │
00:00:32 v #480 > > │ Test case 1. A. Time: 13073L                                                 │
00:00:32 v #481 > > │ Test case 2. B. Time: 11519L                                                 │
00:00:32 v #482 > > │ Test case 3. C. Time: 8373L                                                  │
00:00:32 v #483 > > │ Test case 4. D. Time: 5860L                                                  │
00:00:32 v #484 > > │ Test case 5. E. Time: 6490L                                                  │
00:00:32 v #485 > > │ Test case 6. F. Time: 6325L                                                  │
00:00:32 v #486 > > │ Test case 7. G. Time: 5799L                                                  │
00:00:32 v #487 > > │ Test case 8. H. Time: 7099L                                                  │
00:00:32 v #488 > > │ Test case 9. I. Time: 6133L                                                  │
00:00:32 v #489 > > │ Test case 10. J. Time: 5993L                                                 │
00:00:32 v #490 > > │ Test case 11. K. Time: 2040L                                                 │
00:00:32 v #491 > > │                                                                              │
00:00:32 v #492 > > │ Input                                                                        │
00:00:32 v #493 > > │ | Expected        | Result  | Best                                           │
00:00:32 v #494 > > │ ---                                                                          │
00:00:32 v #495 > > │                                                                              │
00:00:32 v #496 > > │ | ---             | ---     | ---                                            │
00:00:32 v #497 > > │ abc                                                                          │
00:00:32 v #498 > > │                                                                              │
00:00:32 v #499 > > │ | abc             | abc     | (11, 1219)                                     │
00:00:32 v #500 > > │ accabb                                                                       │
00:00:32 v #501 > > │ | acb             | acb     | (11, 1317)                                     │
00:00:32 v #502 > > │ pprrqqpp                                                                     │
00:00:32 v #503 > > │ | prq             | prq     | (11, 1322)                                     │
00:00:32 v #504 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:32 v #505 > > │ bbb | acb             | acb     | (11, 2040)                                 │
00:00:32 v #506 > > │                                                                              │
00:00:32 v #507 > > │ Averages                                                                     │
00:00:32 v #508 > > │ Test case 1. Average Time: 4622L                                             │
00:00:32 v #509 > > │ Test case 2. Average Time: 4483L                                             │
00:00:32 v #510 > > │ Test case 3. Average Time: 3800L                                             │
00:00:32 v #511 > > │ Test case 4. Average Time: 2613L                                             │
00:00:32 v #512 > > │ Test case 5. Average Time: 2828L                                             │
00:00:32 v #513 > > │ Test case 6. Average Time: 2828L                                             │
00:00:32 v #514 > > │ Test case 7. Average Time: 2505L                                             │
00:00:32 v #515 > > │ Test case 8. Average Time: 2926L                                             │
00:00:32 v #516 > > │ Test case 9. Average Time: 2652L                                             │
00:00:32 v #517 > > │ Test case 10. Average Time: 2599L                                            │
00:00:32 v #518 > > │ Test case 11. Average Time: 1474L                                            │
00:00:32 v #519 > > │                                                                              │
00:00:32 v #520 > > │ Ranking                                                                      │
00:00:32 v #521 > > │ Test case 1. Average Time: 4622L                                             │
00:00:32 v #522 > > │ Test case 2. Average Time: 4483L                                             │
00:00:32 v #523 > > │ Test case 3. Average Time: 3800L                                             │
00:00:32 v #524 > > │ Test case 8. Average Time: 2926L                                             │
00:00:32 v #525 > > │ Test case 5. Average Time: 2828L                                             │
00:00:32 v #526 > > │ Test case 6. Average Time: 2828L                                             │
00:00:32 v #527 > > │ Test case 9. Average Time: 2652L                                             │
00:00:32 v #528 > > │ Test case 4. Average Time: 2613L                                             │
00:00:32 v #529 > > │ Test case 10. Average Time: 2599L                                            │
00:00:32 v #530 > > │ Test case 7. Average Time: 2505L                                             │
00:00:32 v #531 > > │ Test case 11. Average Time: 1474L                                            │
00:00:32 v #532 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #533 > >
00:00:32 v #534 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:32 v #535 > > //// test
00:00:32 v #536 > >
00:00:32 v #537 > > let solutions = [[
00:00:32 v #538 > >     "A",
00:00:32 v #539 > >     fun input ->
00:00:32 v #540 > >         input
00:00:32 v #541 > >         |> Seq.toList
00:00:32 v #542 > >         |> List.fold (fun acc x -> if List.contains x acc then acc else acc @ [[
00:00:32 v #543 > > x ]]) [[]]
00:00:32 v #544 > >         |> Seq.toArray
00:00:32 v #545 > >         |> String
00:00:32 v #546 > >
00:00:32 v #547 > >     "B",
00:00:32 v #548 > >     fun input ->
00:00:32 v #549 > >         input
00:00:32 v #550 > >         |> Seq.rev
00:00:32 v #551 > >         |> fun list -> Seq.foldBack (fun x acc -> if List.contains x acc then
00:00:32 v #552 > > acc else x :: acc) list [[]]
00:00:32 v #553 > >         |> Seq.rev
00:00:32 v #554 > >         |> Seq.toArray
00:00:32 v #555 > >         |> String
00:00:32 v #556 > >
00:00:32 v #557 > >     "C",
00:00:32 v #558 > >     fun input ->
00:00:32 v #559 > >         input
00:00:32 v #560 > >         |> Seq.rev
00:00:32 v #561 > >         |> fun list -> Seq.foldBack (fun x (set, acc) -> if Set.contains x set
00:00:32 v #562 > > then set, acc else set.Add x, x :: acc) list (Set.empty, [[]])
00:00:32 v #563 > >         |> snd
00:00:32 v #564 > >         |> Seq.rev
00:00:32 v #565 > >         |> Seq.toArray
00:00:32 v #566 > >         |> String
00:00:32 v #567 > >
00:00:32 v #568 > >     "D",
00:00:32 v #569 > >     fun input ->
00:00:32 v #570 > >         input
00:00:32 v #571 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:32 v #572 > > else set.Add x, Array.append acc [[| x |]]) (Set.empty, [[||]])
00:00:32 v #573 > >         |> snd
00:00:32 v #574 > >         |> String
00:00:32 v #575 > >
00:00:32 v #576 > >     "E",
00:00:32 v #577 > >     fun input ->
00:00:32 v #578 > >         input
00:00:32 v #579 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:32 v #580 > > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:32 v #581 > >         |> snd
00:00:32 v #582 > >         |> List.rev
00:00:32 v #583 > >         |> List.toArray
00:00:32 v #584 > >         |> String
00:00:32 v #585 > >
00:00:32 v #586 > >     "F",
00:00:32 v #587 > >     fun input ->
00:00:32 v #588 > >         input
00:00:32 v #589 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:32 v #590 > > else set.Add x, acc @ [[ x ]]) (Set.empty, [[]])
00:00:32 v #591 > >         |> snd
00:00:32 v #592 > >         |> List.toArray
00:00:32 v #593 > >         |> String
00:00:32 v #594 > >
00:00:32 v #595 > >     "G",
00:00:32 v #596 > >     fun input ->
00:00:32 v #597 > >         input
00:00:32 v #598 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:32 v #599 > > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:32 v #600 > >         |> snd
00:00:32 v #601 > >         |> List.toArray
00:00:32 v #602 > >         |> Array.rev
00:00:32 v #603 > >         |> String
00:00:32 v #604 > >
00:00:32 v #605 > >     "H",
00:00:32 v #606 > >     fun input ->
00:00:32 v #607 > >         input
00:00:32 v #608 > >         |> Seq.toList
00:00:32 v #609 > >         |> fun list ->
00:00:32 v #610 > >             let rec loop set = function
00:00:32 v #611 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:32 v #612 > >                 | head :: tail -> (loop (set.Add head) tail) @ [[ head ]]
00:00:32 v #613 > >                 | [[]] -> [[]]
00:00:32 v #614 > >             loop Set.empty list
00:00:32 v #615 > >             |> List.rev
00:00:32 v #616 > >         |> List.toArray
00:00:32 v #617 > >         |> String
00:00:32 v #618 > >
00:00:32 v #619 > >     "I",
00:00:32 v #620 > >     fun input ->
00:00:32 v #621 > >         input
00:00:32 v #622 > >         |> Seq.toList
00:00:32 v #623 > >         |> fun list ->
00:00:32 v #624 > >             let rec loop set = function
00:00:32 v #625 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:32 v #626 > >                 | head :: tail -> loop (set.Add head) tail |> Array.append [[|
00:00:32 v #627 > > head |]]
00:00:32 v #628 > >                 | [[]] -> [[||]]
00:00:32 v #629 > >             loop Set.empty list
00:00:32 v #630 > >         |> String
00:00:32 v #631 > >
00:00:32 v #632 > >     "J",
00:00:32 v #633 > >     fun input ->
00:00:32 v #634 > >         input
00:00:32 v #635 > >         |> Seq.toList
00:00:32 v #636 > >         |> fun list ->
00:00:32 v #637 > >             let rec loop set = function
00:00:32 v #638 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:32 v #639 > >                 | head :: tail -> head :: loop (set.Add head) tail
00:00:32 v #640 > >                 | [[]] -> [[]]
00:00:32 v #641 > >             loop Set.empty list
00:00:32 v #642 > >         |> List.toArray
00:00:32 v #643 > >         |> String
00:00:32 v #644 > >
00:00:32 v #645 > >     "K",
00:00:32 v #646 > >     fun input ->
00:00:32 v #647 > >         input
00:00:32 v #648 > >         |> Seq.distinct
00:00:32 v #649 > >         |> Seq.toArray
00:00:32 v #650 > >         |> String
00:00:32 v #651 > > ]]
00:00:32 v #652 > > let testCases = seq {
00:00:32 v #653 > >     "abc", "abc"
00:00:32 v #654 > >     "accabb", "acb"
00:00:32 v #655 > >     "pprrqqpp", "prq"
00:00:32 v #656 > >
00:00:32 v #657 > > "aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbbbbb
00:00:32 v #658 > > ", "acb"
00:00:32 v #659 > > }
00:00:32 v #660 > > let rec uniqueLettersTests = runAll (nameof uniqueLettersTests) _count solutions
00:00:32 v #661 > > testCases
00:00:32 v #662 > > uniqueLettersTests
00:00:32 v #663 > > |> sortResultList
00:00:43 v #664 > >
00:00:43 v #665 > > ╭─[ 10.44s - stdout ]──────────────────────────────────────────────────────────╮
00:00:43 v #666 > > │                                                                              │
00:00:43 v #667 > > │                                                                              │
00:00:43 v #668 > > │ Test: uniqueLettersTests                                                     │
00:00:43 v #669 > > │                                                                              │
00:00:43 v #670 > > │ Solution: abc                                                                │
00:00:43 v #671 > > │ Test case 1. A. Time: 6L                                                     │
00:00:43 v #672 > > │ Test case 2. B. Time: 6L                                                     │
00:00:43 v #673 > > │ Test case 3. C. Time: 5L                                                     │
00:00:43 v #674 > > │ Test case 4. D. Time: 2L                                                     │
00:00:43 v #675 > > │ Test case 5. E. Time: 2L                                                     │
00:00:43 v #676 > > │ Test case 6. F. Time: 2L                                                     │
00:00:43 v #677 > > │ Test case 7. G. Time: 2L                                                     │
00:00:43 v #678 > > │ Test case 8. H. Time: 2L                                                     │
00:00:43 v #679 > > │ Test case 9. I. Time: 2L                                                     │
00:00:43 v #680 > > │ Test case 10. J. Time: 1L                                                    │
00:00:43 v #681 > > │ Test case 11. K. Time: 3L                                                    │
00:00:43 v #682 > > │                                                                              │
00:00:43 v #683 > > │ Solution: accabb                                                             │
00:00:43 v #684 > > │ Test case 1. A. Time: 1L                                                     │
00:00:43 v #685 > > │ Test case 2. B. Time: 1L                                                     │
00:00:43 v #686 > > │ Test case 3. C. Time: 1L                                                     │
00:00:43 v #687 > > │ Test case 4. D. Time: 1L                                                     │
00:00:43 v #688 > > │ Test case 5. E. Time: 1L                                                     │
00:00:43 v #689 > > │ Test case 6. F. Time: 1L                                                     │
00:00:43 v #690 > > │ Test case 7. G. Time: 1L                                                     │
00:00:43 v #691 > > │ Test case 8. H. Time: 1L                                                     │
00:00:43 v #692 > > │ Test case 9. I. Time: 1L                                                     │
00:00:43 v #693 > > │ Test case 10. J. Time: 1L                                                    │
00:00:43 v #694 > > │ Test case 11. K. Time: 1L                                                    │
00:00:43 v #695 > > │                                                                              │
00:00:43 v #696 > > │ Solution: pprrqqpp                                                           │
00:00:43 v #697 > > │ Test case 1. A. Time: 1L                                                     │
00:00:43 v #698 > > │ Test case 2. B. Time: 1L                                                     │
00:00:43 v #699 > > │ Test case 3. C. Time: 1L                                                     │
00:00:43 v #700 > > │ Test case 4. D. Time: 1L                                                     │
00:00:43 v #701 > > │ Test case 5. E. Time: 1L                                                     │
00:00:43 v #702 > > │ Test case 6. F. Time: 1L                                                     │
00:00:43 v #703 > > │ Test case 7. G. Time: 1L                                                     │
00:00:43 v #704 > > │ Test case 8. H. Time: 1L                                                     │
00:00:43 v #705 > > │ Test case 9. I. Time: 0L                                                     │
00:00:43 v #706 > > │ Test case 10. J. Time: 1L                                                    │
00:00:43 v #707 > > │ Test case 11. K. Time: 1L                                                    │
00:00:43 v #708 > > │                                                                              │
00:00:43 v #709 > > │ Solution:                                                                    │
00:00:43 v #710 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:43 v #711 > > │ bbb                                                                          │
00:00:43 v #712 > > │ Test case 1. A. Time: 14L                                                    │
00:00:43 v #713 > > │ Test case 2. B. Time: 8L                                                     │
00:00:43 v #714 > > │ Test case 3. C. Time: 13L                                                    │
00:00:43 v #715 > > │ Test case 4. D. Time: 7L                                                     │
00:00:43 v #716 > > │ Test case 5. E. Time: 7L                                                     │
00:00:43 v #717 > > │ Test case 6. F. Time: 8L                                                     │
00:00:43 v #718 > > │ Test case 7. G. Time: 9L                                                     │
00:00:43 v #719 > > │ Test case 8. H. Time: 8L                                                     │
00:00:43 v #720 > > │ Test case 9. I. Time: 5L                                                     │
00:00:43 v #721 > > │ Test case 10. J. Time: 6L                                                    │
00:00:43 v #722 > > │ Test case 11. K. Time: 3L                                                    │
00:00:43 v #723 > > │                                                                              │
00:00:43 v #724 > > │ Input                                                                        │
00:00:43 v #725 > > │ | Expected	| Result	| Best                                                       │
00:00:43 v #726 > > │ ---                                                                          │
00:00:43 v #727 > > │ | ---     	| ---   	| ---                                                        │
00:00:43 v #728 > > │ abc                                                                          │
00:00:43 v #729 > > │ | abc     	| abc   	| (10, 1)                                                    │
00:00:43 v #730 > > │ accabb                                                                       │
00:00:43 v #731 > > │ | acb     	| acb   	| (1, 1)                                                     │
00:00:43 v #732 > > │ pprrqqpp                                                                     │
00:00:43 v #733 > > │ | prq     	| prq   	| (9, 0)                                                     │
00:00:43 v #734 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:43 v #735 > > │ bbb	| acb     	| acb   	| (11, 3)                                                  │
00:00:43 v #736 > > │                                                                              │
00:00:43 v #737 > > │ Average Ranking                                                              │
00:00:43 v #738 > > │ Test case 4. Average Time: 2L                                                │
00:00:43 v #739 > > │ Test case 5. Average Time: 2L                                                │
00:00:43 v #740 > > │ Test case 9. Average Time: 2L                                                │
00:00:43 v #741 > > │ Test case 10. Average Time: 2L                                               │
00:00:43 v #742 > > │ Test case 11. Average Time: 2L                                               │
00:00:43 v #743 > > │ Test case 6. Average Time: 3L                                                │
00:00:43 v #744 > > │ Test case 7. Average Time: 3L                                                │
00:00:43 v #745 > > │ Test case 8. Average Time: 3L                                                │
00:00:43 v #746 > > │ Test case 2. Average Time: 4L                                                │
00:00:43 v #747 > > │ Test case 1. Average Time: 5L                                                │
00:00:43 v #748 > > │ Test case 3. Average Time: 5L                                                │
00:00:43 v #749 > > │                                                                              │
00:00:43 v #750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 v #751 > >
00:00:43 v #752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 v #753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 v #754 > > │ ## rotateStringsTests                                                        │
00:00:43 v #755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 v #756 > >
00:00:43 v #757 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 v #758 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 v #759 > > │ https://www.hackerrank.com/challenges/rotate-string/forum                    │
00:00:43 v #760 > > │                                                                              │
00:00:43 v #761 > > │ Test: RotateStrings                                                          │
00:00:43 v #762 > > │                                                                              │
00:00:43 v #763 > > │ Solution: abc                                                                │
00:00:43 v #764 > > │ Test case 1. A. Time: 1842L                                                  │
00:00:43 v #765 > > │ Test case 2. B. Time: 1846L                                                  │
00:00:43 v #766 > > │ Test case 3. C. Time: 1936L                                                  │
00:00:43 v #767 > > │ Test case 4. CA. Time: 2224L                                                 │
00:00:43 v #768 > > │ Test case 5. CB. Time: 2329L                                                 │
00:00:43 v #769 > > │ Test case 6. D. Time: 2474L                                                  │
00:00:43 v #770 > > │ Test case 7. E. Time: 1664L                                                  │
00:00:43 v #771 > > │ Test case 8. F. Time: 1517L                                                  │
00:00:43 v #772 > > │ Test case 9. FA. Time: 1651L                                                 │
00:00:43 v #773 > > │ Test case 10. FB. Time: 3764L                                                │
00:00:43 v #774 > > │ Test case 11. FC. Time: 5415L                                                │
00:00:43 v #775 > > │                                                                              │
00:00:43 v #776 > > │ Solution: abcde                                                              │
00:00:43 v #777 > > │ Test case 1. A. Time: 3356L                                                  │
00:00:43 v #778 > > │ Test case 2. B. Time: 2592L                                                  │
00:00:43 v #779 > > │ Test case 3. C. Time: 2346L                                                  │
00:00:43 v #780 > > │ Test case 4. CA. Time: 2997L                                                 │
00:00:43 v #781 > > │ Test case 5. CB. Time: 3061L                                                 │
00:00:43 v #782 > > │ Test case 6. D. Time: 4051L                                                  │
00:00:43 v #783 > > │ Test case 7. E. Time: 1905L                                                  │
00:00:43 v #784 > > │ Test case 8. F. Time: 1771L                                                  │
00:00:43 v #785 > > │ Test case 9. FA. Time: 2175L                                                 │
00:00:43 v #786 > > │ Test case 10. FB. Time: 3275L                                                │
00:00:43 v #787 > > │ Test case 11. FC. Time: 5266L                                                │
00:00:43 v #788 > > │                                                                              │
00:00:43 v #789 > > │ Solution: abcdefghi                                                          │
00:00:43 v #790 > > │ Test case 1. A. Time: 4492L                                                  │
00:00:43 v #791 > > │ Test case 2. B. Time: 3526L                                                  │
00:00:43 v #792 > > │ Test case 3. C. Time: 3583L                                                  │
00:00:43 v #793 > > │ Test case 4. CA. Time: 3711L                                                 │
00:00:43 v #794 > > │ Test case 5. CB. Time: 4783L                                                 │
00:00:43 v #795 > > │ Test case 6. D. Time: 7557L                                                  │
00:00:43 v #796 > > │ Test case 7. E. Time: 3452L                                                  │
00:00:43 v #797 > > │ Test case 8. F. Time: 3050L                                                  │
00:00:43 v #798 > > │ Test case 9. FA. Time: 3275L                                                 │
00:00:43 v #799 > > │ Test case 10. FB. Time: 4635L                                                │
00:00:43 v #800 > > │ Test case 11. FC. Time: 5616L                                                │
00:00:43 v #801 > > │                                                                              │
00:00:43 v #802 > > │ Solution: abab                                                               │
00:00:43 v #803 > > │ Test case 1. A. Time: 2093L                                                  │
00:00:43 v #804 > > │ Test case 2. B. Time: 1843L                                                  │
00:00:43 v #805 > > │ Test case 3. C. Time: 1746L                                                  │
00:00:43 v #806 > > │ Test case 4. CA. Time: 2085L                                                 │
00:00:43 v #807 > > │ Test case 5. CB. Time: 2139L                                                 │
00:00:43 v #808 > > │ Test case 6. D. Time: 2095L                                                  │
00:00:43 v #809 > > │ Test case 7. E. Time: 1723L                                                  │
00:00:43 v #810 > > │ Test case 8. F. Time: 1558L                                                  │
00:00:43 v #811 > > │ Test case 9. FA. Time: 1620L                                                 │
00:00:43 v #812 > > │ Test case 10. FB. Time: 2319L                                                │
00:00:43 v #813 > > │ Test case 11. FC. Time: 3918L                                                │
00:00:43 v #814 > > │                                                                              │
00:00:43 v #815 > > │ Solution: aa                                                                 │
00:00:43 v #816 > > │ Test case 1. A. Time: 1107L                                                  │
00:00:43 v #817 > > │ Test case 2. B. Time: 1241L                                                  │
00:00:43 v #818 > > │ Test case 3. C. Time: 1183L                                                  │
00:00:43 v #819 > > │ Test case 4. CA. Time: 1563L                                                 │
00:00:43 v #820 > > │ Test case 5. CB. Time: 1525L                                                 │
00:00:43 v #821 > > │ Test case 6. D. Time: 1591L                                                  │
00:00:43 v #822 > > │ Test case 7. E. Time: 1327L                                                  │
00:00:43 v #823 > > │ Test case 8. F. Time: 1151L                                                  │
00:00:43 v #824 > > │ Test case 9. FA. Time: 1180L                                                 │
00:00:43 v #825 > > │ Test case 10. FB. Time: 1733L                                                │
00:00:43 v #826 > > │ Test case 11. FC. Time: 2817L                                                │
00:00:43 v #827 > > │                                                                              │
00:00:43 v #828 > > │ Solution: z                                                                  │
00:00:43 v #829 > > │ Test case 1. A. Time: 816L                                                   │
00:00:43 v #830 > > │ Test case 2. B. Time: 745L                                                   │
00:00:43 v #831 > > │ Test case 3. C. Time: 928L                                                   │
00:00:43 v #832 > > │ Test case 4. CA. Time: 1375L                                                 │
00:00:43 v #833 > > │ Test case 5. CB. Time: 1029L                                                 │
00:00:43 v #834 > > │ Test case 6. D. Time: 852L                                                   │
00:00:43 v #835 > > │ Test case 7. E. Time: 712L                                                   │
00:00:43 v #836 > > │ Test case 8. F. Time: 263L                                                   │
00:00:43 v #837 > > │ Test case 9. FA. Time: 232L                                                  │
00:00:43 v #838 > > │ Test case 10. FB. Time: 773L                                                 │
00:00:43 v #839 > > │ Test case 11. FC. Time: 1789L                                                │
00:00:43 v #840 > > │                                                                              │
00:00:43 v #841 > > │ Input           | Expected                                                   │
00:00:43 v #842 > > │                                                                              │
00:00:43 v #843 > > │ | Result                                                                     │
00:00:43 v #844 > > │                                                                              │
00:00:43 v #845 > > │ | Best                                                                       │
00:00:43 v #846 > > │ ---             | ---                                                        │
00:00:43 v #847 > > │                                                                              │
00:00:43 v #848 > > │ | ---                                                                        │
00:00:43 v #849 > > │                                                                              │
00:00:43 v #850 > > │ | ---                                                                        │
00:00:43 v #851 > > │ abc             | bca cab abc                                                │
00:00:43 v #852 > > │                                                                              │
00:00:43 v #853 > > │ | bca cab abc                                                                │
00:00:43 v #854 > > │                                                                              │
00:00:43 v #855 > > │ | (8, 1517)                                                                  │
00:00:43 v #856 > > │ abcde           | bcdea cdeab deabc eabcd abcde                              │
00:00:43 v #857 > > │ | bcdea cdeab deabc eabcd abcde                                              │
00:00:43 v #858 > > │ | (8, 1771)                                                                  │
00:00:43 v #859 > > │ abcdefghi       | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde          │
00:00:43 v #860 > > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi       | bcdefghia cdefghiab          │
00:00:43 v #861 > > │ defghiabc efghiabcd fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi        │
00:00:43 v #862 > > │ | (8, 3050)                                                                  │
00:00:43 v #863 > > │ abab            | baba abab baba abab                                        │
00:00:43 v #864 > > │                                                                              │
00:00:43 v #865 > > │ | baba abab baba abab                                                        │
00:00:43 v #866 > > │                                                                              │
00:00:43 v #867 > > │ | (8, 1558)                                                                  │
00:00:43 v #868 > > │ aa              | aa aa                                                      │
00:00:43 v #869 > > │                                                                              │
00:00:43 v #870 > > │ | aa aa                                                                      │
00:00:43 v #871 > > │                                                                              │
00:00:43 v #872 > > │ | (1, 1107)                                                                  │
00:00:43 v #873 > > │ z               | z                                                          │
00:00:43 v #874 > > │                                                                              │
00:00:43 v #875 > > │ | z                                                                          │
00:00:43 v #876 > > │                                                                              │
00:00:43 v #877 > > │ | (9, 232)                                                                   │
00:00:43 v #878 > > │                                                                              │
00:00:43 v #879 > > │ Averages                                                                     │
00:00:43 v #880 > > │ Test case 1. Average Time: 2284L                                             │
00:00:43 v #881 > > │ Test case 2. Average Time: 1965L                                             │
00:00:43 v #882 > > │ Test case 3. Average Time: 1953L                                             │
00:00:43 v #883 > > │ Test case 4. Average Time: 2325L                                             │
00:00:43 v #884 > > │ Test case 5. Average Time: 2477L                                             │
00:00:43 v #885 > > │ Test case 6. Average Time: 3103L                                             │
00:00:43 v #886 > > │ Test case 7. Average Time: 1797L                                             │
00:00:43 v #887 > > │ Test case 8. Average Time: 1551L                                             │
00:00:43 v #888 > > │ Test case 9. Average Time: 1688L                                             │
00:00:43 v #889 > > │ Test case 10. Average Time: 2749L                                            │
00:00:43 v #890 > > │ Test case 11. Average Time: 4136L                                            │
00:00:43 v #891 > > │                                                                              │
00:00:43 v #892 > > │ Ranking                                                                      │
00:00:43 v #893 > > │ Test case 11. Average Time: 4136L                                            │
00:00:43 v #894 > > │ Test case 6. Average Time: 3103L                                             │
00:00:43 v #895 > > │ Test case 10. Average Time: 2749L                                            │
00:00:43 v #896 > > │ Test case 5. Average Time: 2477L                                             │
00:00:43 v #897 > > │ Test case 4. Average Time: 2325L                                             │
00:00:43 v #898 > > │ Test case 1. Average Time: 2284L                                             │
00:00:43 v #899 > > │ Test case 2. Average Time: 1965L                                             │
00:00:43 v #900 > > │ Test case 3. Average Time: 1953L                                             │
00:00:43 v #901 > > │ Test case 7. Average Time: 1797L                                             │
00:00:43 v #902 > > │ Test case 9. Average Time: 1688L                                             │
00:00:43 v #903 > > │ Test case 8. Average Time: 1551L                                             │
00:00:43 v #904 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 v #905 > >
00:00:43 v #906 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:43 v #907 > > //// test
00:00:43 v #908 > >
00:00:43 v #909 > > let solutions = [[
00:00:43 v #910 > >     "A",
00:00:43 v #911 > >     fun (input: string) ->
00:00:43 v #912 > >         let resultList =
00:00:43 v #913 > >             List.fold (fun acc x ->
00:00:43 v #914 > >                 let rotate (text: string) (letter: string) = (text |>
00:00:43 v #915 > > SpiralSm.slice 1 (input.Length - 1)) + letter
00:00:43 v #916 > >                 [[ rotate (if acc.IsEmpty then input else acc.Head) (string x)
00:00:43 v #917 > > ]] @ acc
00:00:43 v #918 > >             ) [[]] (Seq.toList input)
00:00:43 v #919 > >
00:00:43 v #920 > >         (resultList, "")
00:00:43 v #921 > >         ||> List.foldBack (fun acc x -> x + acc + " ")
00:00:43 v #922 > >         |> _.TrimEnd()
00:00:43 v #923 > >
00:00:43 v #924 > >     "B",
00:00:43 v #925 > >     fun input ->
00:00:43 v #926 > >         input
00:00:43 v #927 > >         |> Seq.toList
00:00:43 v #928 > >         |> List.fold (fun (acc: string list) letter ->
00:00:43 v #929 > >             let last =
00:00:43 v #930 > >                 if acc.IsEmpty
00:00:43 v #931 > >                 then input
00:00:43 v #932 > >                 else acc.Head
00:00:43 v #933 > >
00:00:43 v #934 > >             let item = last.[[1 .. input.Length - 1]] + string letter
00:00:43 v #935 > >
00:00:43 v #936 > >             item :: acc
00:00:43 v #937 > >         ) [[]]
00:00:43 v #938 > >         |> List.rev
00:00:43 v #939 > >         |> SpiralSm.concat " "
00:00:43 v #940 > >
00:00:43 v #941 > >     "C",
00:00:43 v #942 > >     fun input ->
00:00:43 v #943 > >         input
00:00:43 v #944 > >         |> Seq.toList
00:00:43 v #945 > >         |> List.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:43 v #946 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:43 v #947 > >         |> List.rev
00:00:43 v #948 > >         |> List.skip 1
00:00:43 v #949 > >         |> SpiralSm.concat " "
00:00:43 v #950 > >
00:00:43 v #951 > >     "CA",
00:00:43 v #952 > >     fun input ->
00:00:43 v #953 > >         input
00:00:43 v #954 > >         |> Seq.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:43 v #955 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:43 v #956 > >         |> Seq.rev
00:00:43 v #957 > >         |> Seq.skip 1
00:00:43 v #958 > >         |> SpiralSm.concat " "
00:00:43 v #959 > >
00:00:43 v #960 > >     "CB",
00:00:43 v #961 > >     fun input ->
00:00:43 v #962 > >         input
00:00:43 v #963 > >         |> Seq.toArray
00:00:43 v #964 > >         |> Array.fold (fun (acc: string[[]]) letter -> acc |> Array.append [[|
00:00:43 v #965 > > acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter |]]) [[| input |]]
00:00:43 v #966 > >         |> Array.rev
00:00:43 v #967 > >         |> Array.skip 1
00:00:43 v #968 > >         |> SpiralSm.concat " "
00:00:43 v #969 > >
00:00:43 v #970 > >     "D",
00:00:43 v #971 > >     fun input ->
00:00:43 v #972 > >         input
00:00:43 v #973 > >         |> Seq.toList
00:00:43 v #974 > >         |> fun list ->
00:00:43 v #975 > >             let rec loop (acc: char list list) = function
00:00:43 v #976 > >                 | _ when acc.Length = list.Length -> acc
00:00:43 v #977 > >                 | head :: tail ->
00:00:43 v #978 > >                     let item = tail @ [[ head ]]
00:00:43 v #979 > >                     loop (item :: acc) item
00:00:43 v #980 > >                 | [[]] -> [[]]
00:00:43 v #981 > >             loop [[]] list
00:00:43 v #982 > >         |> List.rev
00:00:43 v #983 > >         |> List.map (List.toArray >> String)
00:00:43 v #984 > >         |> SpiralSm.concat " "
00:00:43 v #985 > >
00:00:43 v #986 > >     "E",
00:00:43 v #987 > >     fun input ->
00:00:43 v #988 > >         input
00:00:43 v #989 > >         |> Seq.toList
00:00:43 v #990 > >         |> fun list ->
00:00:43 v #991 > >             let rec loop (last: string) = function
00:00:43 v #992 > >                 | head :: tail ->
00:00:43 v #993 > >                     let item = last.[[1 .. input.Length - 1]] + string head
00:00:43 v #994 > >                     item :: loop item tail
00:00:43 v #995 > >                 | [[]] -> [[]]
00:00:43 v #996 > >             loop input list
00:00:43 v #997 > >         |> SpiralSm.concat " "
00:00:43 v #998 > >
00:00:43 v #999 > >     "F",
00:00:43 v #1000 > >     fun input ->
00:00:43 v #1001 > >         Array.singleton 0
00:00:43 v #1002 > >         |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:43 v #1003 > >         |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:43 v #1004 > >         |> SpiralSm.concat " "
00:00:43 v #1005 > >
00:00:43 v #1006 > >     "FA",
00:00:43 v #1007 > >     fun input ->
00:00:43 v #1008 > >         List.singleton 0
00:00:43 v #1009 > >         |> List.append [[ 1 .. input.Length - 1 ]]
00:00:43 v #1010 > >         |> List.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:43 v #1011 > >         |> SpiralSm.concat " "
00:00:43 v #1012 > >
00:00:43 v #1013 > >     "FB",
00:00:43 v #1014 > >     fun input ->
00:00:43 v #1015 > >         Seq.singleton 0
00:00:43 v #1016 > >         |> Seq.append (seq { 1 .. input.Length - 1 })
00:00:43 v #1017 > >         |> Seq.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:43 v #1018 > >         |> SpiralSm.concat " "
00:00:43 v #1019 > >
00:00:43 v #1020 > >     "FC",
00:00:43 v #1021 > >     fun input ->
00:00:43 v #1022 > >         Array.singleton 0
00:00:43 v #1023 > >         |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:43 v #1024 > >         |> Array.Parallel.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:43 v #1025 > >         |> SpiralSm.concat " "
00:00:43 v #1026 > > ]]
00:00:43 v #1027 > > let testCases = seq {
00:00:43 v #1028 > >     "abc", "bca cab abc"
00:00:43 v #1029 > >     "abcde", "bcdea cdeab deabc eabcd abcde"
00:00:43 v #1030 > >     "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef
00:00:43 v #1031 > > hiabcdefg iabcdefgh abcdefghi"
00:00:43 v #1032 > >     "abab", "baba abab baba abab"
00:00:43 v #1033 > >     "aa", "aa aa"
00:00:43 v #1034 > >     "z", "z"
00:00:43 v #1035 > > }
00:00:43 v #1036 > > let rec rotateStringsTests = runAll (nameof rotateStringsTests) _count solutions
00:00:43 v #1037 > > testCases
00:00:43 v #1038 > > rotateStringsTests
00:00:43 v #1039 > > |> sortResultList
00:00:57 v #1040 > >
00:00:57 v #1041 > > ╭─[ 14.36s - stdout ]──────────────────────────────────────────────────────────╮
00:00:57 v #1042 > > │                                                                              │
00:00:57 v #1043 > > │                                                                              │
00:00:57 v #1044 > > │ Test: rotateStringsTests                                                     │
00:00:57 v #1045 > > │                                                                              │
00:00:57 v #1046 > > │ Solution: abc                                                                │
00:00:57 v #1047 > > │ Test case 1. A. Time: 2L                                                     │
00:00:57 v #1048 > > │ Test case 2. B. Time: 2L                                                     │
00:00:57 v #1049 > > │ Test case 3. C. Time: 1L                                                     │
00:00:57 v #1050 > > │ Test case 4. CA. Time: 4L                                                    │
00:00:57 v #1051 > > │ Test case 5. CB. Time: 2L                                                    │
00:00:57 v #1052 > > │ Test case 6. D. Time: 3L                                                     │
00:00:57 v #1053 > > │ Test case 7. E. Time: 1L                                                     │
00:00:57 v #1054 > > │ Test case 8. F. Time: 2L                                                     │
00:00:57 v #1055 > > │ Test case 9. FA. Time: 2L                                                    │
00:00:57 v #1056 > > │ Test case 10. FB. Time: 9L                                                   │
00:00:57 v #1057 > > │ Test case 11. FC. Time: 10L                                                  │
00:00:57 v #1058 > > │                                                                              │
00:00:57 v #1059 > > │ Solution: abcde                                                              │
00:00:57 v #1060 > > │ Test case 1. A. Time: 4L                                                     │
00:00:57 v #1061 > > │ Test case 2. B. Time: 1L                                                     │
00:00:57 v #1062 > > │ Test case 3. C. Time: 1L                                                     │
00:00:57 v #1063 > > │ Test case 4. CA. Time: 1L                                                    │
00:00:57 v #1064 > > │ Test case 5. CB. Time: 1L                                                    │
00:00:57 v #1065 > > │ Test case 6. D. Time: 3L                                                     │
00:00:57 v #1066 > > │ Test case 7. E. Time: 1L                                                     │
00:00:57 v #1067 > > │ Test case 8. F. Time: 0L                                                     │
00:00:57 v #1068 > > │ Test case 9. FA. Time: 1L                                                    │
00:00:57 v #1069 > > │ Test case 10. FB. Time: 3L                                                   │
00:00:57 v #1070 > > │ Test case 11. FC. Time: 4L                                                   │
00:00:57 v #1071 > > │                                                                              │
00:00:57 v #1072 > > │ Solution: abcdefghi                                                          │
00:00:57 v #1073 > > │ Test case 1. A. Time: 5L                                                     │
00:00:57 v #1074 > > │ Test case 2. B. Time: 1L                                                     │
00:00:57 v #1075 > > │ Test case 3. C. Time: 3L                                                     │
00:00:57 v #1076 > > │ Test case 4. CA. Time: 2L                                                    │
00:00:57 v #1077 > > │ Test case 5. CB. Time: 4L                                                    │
00:00:57 v #1078 > > │ Test case 6. D. Time: 7L                                                     │
00:00:57 v #1079 > > │ Test case 7. E. Time: 3L                                                     │
00:00:57 v #1080 > > │ Test case 8. F. Time: 0L                                                     │
00:00:57 v #1081 > > │ Test case 9. FA. Time: 3L                                                    │
00:00:57 v #1082 > > │ Test case 10. FB. Time: 2L                                                   │
00:00:57 v #1083 > > │ Test case 11. FC. Time: 4L                                                   │
00:00:57 v #1084 > > │                                                                              │
00:00:57 v #1085 > > │ Solution: abab                                                               │
00:00:57 v #1086 > > │ Test case 1. A. Time: 0L                                                     │
00:00:57 v #1087 > > │ Test case 2. B. Time: 0L                                                     │
00:00:57 v #1088 > > │ Test case 3. C. Time: 0L                                                     │
00:00:57 v #1089 > > │ Test case 4. CA. Time: 1L                                                    │
00:00:57 v #1090 > > │ Test case 5. CB. Time: 1L                                                    │
00:00:57 v #1091 > > │ Test case 6. D. Time: 1L                                                     │
00:00:57 v #1092 > > │ Test case 7. E. Time: 0L                                                     │
00:00:57 v #1093 > > │ Test case 8. F. Time: 0L                                                     │
00:00:57 v #1094 > > │ Test case 9. FA. Time: 1L                                                    │
00:00:57 v #1095 > > │ Test case 10. FB. Time: 1L                                                   │
00:00:57 v #1096 > > │ Test case 11. FC. Time: 4L                                                   │
00:00:57 v #1097 > > │                                                                              │
00:00:57 v #1098 > > │ Solution: aa                                                                 │
00:00:57 v #1099 > > │ Test case 1. A. Time: 0L                                                     │
00:00:57 v #1100 > > │ Test case 2. B. Time: 0L                                                     │
00:00:57 v #1101 > > │ Test case 3. C. Time: 0L                                                     │
00:00:57 v #1102 > > │ Test case 4. CA. Time: 0L                                                    │
00:00:57 v #1103 > > │ Test case 5. CB. Time: 0L                                                    │
00:00:57 v #1104 > > │ Test case 6. D. Time: 0L                                                     │
00:00:57 v #1105 > > │ Test case 7. E. Time: 0L                                                     │
00:00:57 v #1106 > > │ Test case 8. F. Time: 0L                                                     │
00:00:57 v #1107 > > │ Test case 9. FA. Time: 0L                                                    │
00:00:57 v #1108 > > │ Test case 10. FB. Time: 0L                                                   │
00:00:57 v #1109 > > │ Test case 11. FC. Time: 6L                                                   │
00:00:57 v #1110 > > │                                                                              │
00:00:57 v #1111 > > │ Solution: z                                                                  │
00:00:57 v #1112 > > │ Test case 1. A. Time: 0L                                                     │
00:00:57 v #1113 > > │ Test case 2. B. Time: 0L                                                     │
00:00:57 v #1114 > > │ Test case 3. C. Time: 0L                                                     │
00:00:57 v #1115 > > │ Test case 4. CA. Time: 0L                                                    │
00:00:57 v #1116 > > │ Test case 5. CB. Time: 0L                                                    │
00:00:57 v #1117 > > │ Test case 6. D. Time: 0L                                                     │
00:00:57 v #1118 > > │ Test case 7. E. Time: 0L                                                     │
00:00:57 v #1119 > > │ Test case 8. F. Time: 0L                                                     │
00:00:57 v #1120 > > │ Test case 9. FA. Time: 0L                                                    │
00:00:57 v #1121 > > │ Test case 10. FB. Time: 0L                                                   │
00:00:57 v #1122 > > │ Test case 11. FC. Time: 5L                                                   │
00:00:57 v #1123 > > │                                                                              │
00:00:57 v #1124 > > │ Input    	| Expected                                                           │
00:00:57 v #1125 > > │                                                                              │
00:00:57 v #1126 > > │ | Result                                                                     │
00:00:57 v #1127 > > │                                                                              │
00:00:57 v #1128 > > │ | Best                                                                       │
00:00:57 v #1129 > > │ ---      	| ---                                                                │
00:00:57 v #1130 > > │                                                                              │
00:00:57 v #1131 > > │ | ---                                                                        │
00:00:57 v #1132 > > │                                                                              │
00:00:57 v #1133 > > │ | ---                                                                        │
00:00:57 v #1134 > > │ abc      	| bca cab abc                                                        │
00:00:57 v #1135 > > │                                                                              │
00:00:57 v #1136 > > │ | bca cab abc                                                                │
00:00:57 v #1137 > > │                                                                              │
00:00:57 v #1138 > > │ | (3, 1)                                                                     │
00:00:57 v #1139 > > │ abcde    	| bcdea cdeab deabc eabcd abcde                                      │
00:00:57 v #1140 > > │ | bcdea cdeab deabc eabcd abcde                                              │
00:00:57 v #1141 > > │ | (8, 0)                                                                     │
00:00:57 v #1142 > > │ abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef        │
00:00:57 v #1143 > > │ hiabcdefg iabcdefgh abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd        │
00:00:57 v #1144 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi	| (8, 0)                     │
00:00:57 v #1145 > > │ abab     	| baba abab baba abab                                                │
00:00:57 v #1146 > > │ | baba abab baba abab                                                        │
00:00:57 v #1147 > > │ | (1, 0)                                                                     │
00:00:57 v #1148 > > │ aa       	| aa aa                                                              │
00:00:57 v #1149 > > │                                                                              │
00:00:57 v #1150 > > │ | aa aa                                                                      │
00:00:57 v #1151 > > │                                                                              │
00:00:57 v #1152 > > │ | (1, 0)                                                                     │
00:00:57 v #1153 > > │ z        	| z                                                                  │
00:00:57 v #1154 > > │                                                                              │
00:00:57 v #1155 > > │ | z                                                                          │
00:00:57 v #1156 > > │                                                                              │
00:00:57 v #1157 > > │ | (1, 0)                                                                     │
00:00:57 v #1158 > > │                                                                              │
00:00:57 v #1159 > > │ Average Ranking                                                              │
00:00:57 v #1160 > > │ Test case 2. Average Time: 0L                                                │
00:00:57 v #1161 > > │ Test case 3. Average Time: 0L                                                │
00:00:57 v #1162 > > │ Test case 7. Average Time: 0L                                                │
00:00:57 v #1163 > > │ Test case 8. Average Time: 0L                                                │
00:00:57 v #1164 > > │ Test case 1. Average Time: 1L                                                │
00:00:57 v #1165 > > │ Test case 4. Average Time: 1L                                                │
00:00:57 v #1166 > > │ Test case 5. Average Time: 1L                                                │
00:00:57 v #1167 > > │ Test case 9. Average Time: 1L                                                │
00:00:57 v #1168 > > │ Test case 6. Average Time: 2L                                                │
00:00:57 v #1169 > > │ Test case 10. Average Time: 2L                                               │
00:00:57 v #1170 > > │ Test case 11. Average Time: 5L                                               │
00:00:57 v #1171 > > │                                                                              │
00:00:57 v #1172 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 v #1173 > >
00:00:57 v #1174 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 v #1175 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 v #1176 > > │ ## rotate_strings_tests                                                      │
00:00:57 v #1177 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 v #1178 > >
00:00:57 v #1179 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 v #1180 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 v #1181 > > │ ```                                                                          │
00:00:57 v #1182 > > │ 02:21:12 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:00:57 v #1183 > > │ rotate_strings_tests}                                                        │
00:00:57 v #1184 > > │                                                                              │
00:00:57 v #1185 > > │ 02:21:12 verbose #2 benchmark.run / {input_str = "abc"}                 │
00:00:57 v #1186 > > │ 02:21:13 verbose #3 benchmark.run / solutions.map / {i = 1; test_name = │
00:00:57 v #1187 > > │ F; time = 638}                                                               │
00:00:57 v #1188 > > │ 02:21:14 verbose #4 benchmark.run / solutions.map / {i = 2; test_name = │
00:00:57 v #1189 > > │ FA; time = 779}                                                              │
00:00:57 v #1190 > > │                                                                              │
00:00:57 v #1191 > > │ 02:21:14 verbose #5 benchmark.run / {input_str = "abcde"}               │
00:00:57 v #1192 > > │ 02:21:15 verbose #6 benchmark.run / solutions.map / {i = 1; test_name = │
00:00:57 v #1193 > > │ F; time = 745}                                                               │
00:00:57 v #1194 > > │ 02:21:16 verbose #7 benchmark.run / solutions.map / {i = 2; test_name = │
00:00:57 v #1195 > > │ FA; time = 809}                                                              │
00:00:57 v #1196 > > │                                                                              │
00:00:57 v #1197 > > │ 02:21:16 verbose #8 benchmark.run / {input_str = "abcdefghi"}           │
00:00:57 v #1198 > > │ 02:21:17 verbose #9 benchmark.run / solutions.map / {i = 1; test_name = │
00:00:57 v #1199 > > │ F; time = 1092}                                                              │
00:00:57 v #1200 > > │ 02:21:18 verbose #10 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:57 v #1201 > > │ = FA; time = 1304}                                                           │
00:00:57 v #1202 > > │                                                                              │
00:00:57 v #1203 > > │ 02:21:18 verbose #11 benchmark.run / {input_str = "abab"}               │
00:00:57 v #1204 > > │ 02:21:19 verbose #12 benchmark.run / solutions.map / {i = 1; test_name  │
00:00:57 v #1205 > > │ = F; time = 536}                                                             │
00:00:57 v #1206 > > │ 02:21:20 verbose #13 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:57 v #1207 > > │ = FA; time = 620}                                                            │
00:00:57 v #1208 > > │                                                                              │
00:00:57 v #1209 > > │ 02:21:20 verbose #14 benchmark.run / {input_str = "aa"}                 │
00:00:57 v #1210 > > │ 02:21:21 verbose #15 benchmark.run / solutions.map / {i = 1; test_name  │
00:00:57 v #1211 > > │ = F; time = 365}                                                             │
00:00:57 v #1212 > > │ 02:21:21 verbose #16 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:57 v #1213 > > │ = FA; time = 396}                                                            │
00:00:57 v #1214 > > │                                                                              │
00:00:57 v #1215 > > │ 02:21:21 verbose #17 benchmark.run / {input_str = "z"}                  │
00:00:57 v #1216 > > │ 02:21:22 verbose #18 benchmark.run / solutions.map / {i = 1; test_name  │
00:00:57 v #1217 > > │ = F; time = 158}                                                             │
00:00:57 v #1218 > > │ 02:21:22 verbose #19 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:57 v #1219 > > │ = FA; time = 143}                                                            │
00:00:57 v #1220 > > │ ```                                                                          │
00:00:57 v #1221 > > │ input      	| expected                                                         │
00:00:57 v #1222 > > │                                                                              │
00:00:57 v #1223 > > │ | result                                                                     │
00:00:57 v #1224 > > │                                                                              │
00:00:57 v #1225 > > │ | best                                                                       │
00:00:57 v #1226 > > │ ---        	| ---                                                              │
00:00:57 v #1227 > > │                                                                              │
00:00:57 v #1228 > > │ | ---                                                                        │
00:00:57 v #1229 > > │                                                                              │
00:00:57 v #1230 > > │ | ---                                                                        │
00:00:57 v #1231 > > │ "abc"      	| "bca cab abc"                                                    │
00:00:57 v #1232 > > │                                                                              │
00:00:57 v #1233 > > │ | "bca cab abc"                                                              │
00:00:57 v #1234 > > │                                                                              │
00:00:57 v #1235 > > │ | 1, 638                                                                     │
00:00:57 v #1236 > > │ "abcde"    	| "bcdea cdeab deabc eabcd abcde"                                  │
00:00:57 v #1237 > > │ | "bcdea cdeab deabc eabcd abcde"                                            │
00:00:57 v #1238 > > │ | 1, 745                                                                     │
00:00:57 v #1239 > > │ "abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef     │
00:00:57 v #1240 > > │ hiabcdefg iabcdefgh abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd      │
00:00:57 v #1241 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi"	| 1, 1092                   │
00:00:57 v #1242 > > │ "abab"     	| "baba abab baba abab"                                            │
00:00:57 v #1243 > > │ | "baba abab baba abab"                                                      │
00:00:57 v #1244 > > │ | 1, 536                                                                     │
00:00:57 v #1245 > > │ "aa"       	| "aa aa"                                                          │
00:00:57 v #1246 > > │                                                                              │
00:00:57 v #1247 > > │ | "aa aa"                                                                    │
00:00:57 v #1248 > > │                                                                              │
00:00:57 v #1249 > > │ | 1, 365                                                                     │
00:00:57 v #1250 > > │ "z"        	| "z"                                                              │
00:00:57 v #1251 > > │                                                                              │
00:00:57 v #1252 > > │ | "z"                                                                        │
00:00:57 v #1253 > > │                                                                              │
00:00:57 v #1254 > > │ | 2, 143                                                                     │
00:00:57 v #1255 > > │ ```                                                                          │
00:00:57 v #1256 > > │ 02:21:22 verbose #20 benchmark.sort_result_list / averages.iter / {avg  │
00:00:57 v #1257 > > │ = 589; i = 1}                                                                │
00:00:57 v #1258 > > │ 02:21:22 verbose #21 benchmark.sort_result_list / averages.iter / {avg  │
00:00:57 v #1259 > > │ = 675; i = 2}                                                                │
00:00:57 v #1260 > > │ ```                                                                          │
00:00:57 v #1261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 v #1262 > >
00:00:57 v #1263 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 v #1264 > > //// test
00:00:57 v #1265 > > //// timeout=60000
00:00:57 v #1266 > >
00:00:57 v #1267 > > inl get_solutions () =
00:00:57 v #1268 > >     [[
00:00:57 v #1269 > >         // "A",
00:00:57 v #1270 > >         // fun (input : string) =>
00:00:57 v #1271 > >         //     let resultList =
00:00:57 v #1272 > >         //         List.fold (fun acc x =>
00:00:57 v #1273 > >         //             let rotate (text : string) (letter : string) =
00:00:57 v #1274 > > text.Substring (1, input.Length - 1) + letter
00:00:57 v #1275 > >         //             [[ rotate (if acc.IsEmpty then input else acc.Head)
00:00:57 v #1276 > > (string x) ]] ++ acc
00:00:57 v #1277 > >         //         ) [[]] (Seq.toList input)
00:00:57 v #1278 > >
00:00:57 v #1279 > >         //     List.foldBack (fun acc x => x + acc + " ") resultList ""
00:00:57 v #1280 > >         //     |> fun x => x.TrimEnd ()
00:00:57 v #1281 > >
00:00:57 v #1282 > >         // "B",
00:00:57 v #1283 > >         // fun input =>
00:00:57 v #1284 > >         //     input
00:00:57 v #1285 > >         //     |> Seq.toList
00:00:57 v #1286 > >         //     |> List.fold (fun (acc : string list) letter =>
00:00:57 v #1287 > >         //         let last =
00:00:57 v #1288 > >         //             if acc.IsEmpty
00:00:57 v #1289 > >         //             then input
00:00:57 v #1290 > >         //             else acc.Head
00:00:57 v #1291 > >
00:00:57 v #1292 > >         //         let item = last.[[1 .. input.Length - 1]] + string letter
00:00:57 v #1293 > >
00:00:57 v #1294 > >         //         item :: acc
00:00:57 v #1295 > >         //     ) [[]]
00:00:57 v #1296 > >         //     |> List.rev
00:00:57 v #1297 > >         //     |> SpiralSm.concat " "
00:00:57 v #1298 > >
00:00:57 v #1299 > >         // "C",
00:00:57 v #1300 > >         // fun input =>
00:00:57 v #1301 > >         //     input
00:00:57 v #1302 > >         //     |> Seq.toList
00:00:57 v #1303 > >         //     |> List.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:00:57 v #1304 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:57 v #1305 > >         //     |> List.rev
00:00:57 v #1306 > >         //     |> List.skip 1
00:00:57 v #1307 > >         //     |> SpiralSm.concat " "
00:00:57 v #1308 > >
00:00:57 v #1309 > >         // "CA",
00:00:57 v #1310 > >         // fun input =>
00:00:57 v #1311 > >         //     input
00:00:57 v #1312 > >         //     |> Seq.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:00:57 v #1313 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:57 v #1314 > >         //     |> Seq.rev
00:00:57 v #1315 > >         //     |> Seq.skip 1
00:00:57 v #1316 > >         //     |> SpiralSm.concat " "
00:00:57 v #1317 > >
00:00:57 v #1318 > >         // "CB",
00:00:57 v #1319 > >         // fun input =>
00:00:57 v #1320 > >         //     input
00:00:57 v #1321 > >         //     |> Seq.toArray
00:00:57 v #1322 > >         //     |> Array.fold (fun (acc : a _ string) letter => acc |>
00:00:57 v #1323 > > Array.append (a ;[[ acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter ]]))
00:00:57 v #1324 > > (a ;[[ input ]])
00:00:57 v #1325 > >         //     |> Array.rev
00:00:57 v #1326 > >         //     |> Array.skip 1
00:00:57 v #1327 > >         //     |> SpiralSm.concat " "
00:00:57 v #1328 > >
00:00:57 v #1329 > >         // "D",
00:00:57 v #1330 > >         // fun input =>
00:00:57 v #1331 > >         //     input
00:00:57 v #1332 > >         //     |> Seq.toList
00:00:57 v #1333 > >         //     |> fun list =>
00:00:57 v #1334 > >         //         let rec loop (acc : list (list char)) = function
00:00:57 v #1335 > >         //             | _ when acc.Length = list.Length => acc
00:00:57 v #1336 > >         //             | head :: tail =>
00:00:57 v #1337 > >         //                 let item = tail ++ [[ head ]]
00:00:57 v #1338 > >         //                 loop (item :: acc) item
00:00:57 v #1339 > >         //             | [[]] => [[]]
00:00:57 v #1340 > >         //         loop [[]] list
00:00:57 v #1341 > >         //     |> List.rev
00:00:57 v #1342 > >         //     |> List.map (List.toArray >> String)
00:00:57 v #1343 > >         //     |> SpiralSm.concat " "
00:00:57 v #1344 > >
00:00:57 v #1345 > >         // "E",
00:00:57 v #1346 > >         // fun input =>
00:00:57 v #1347 > >         //     input
00:00:57 v #1348 > >         //     |> Seq.toList
00:00:57 v #1349 > >         //     |> fun list =>
00:00:57 v #1350 > >         //         let rec loop (last : string) = function
00:00:57 v #1351 > >         //             | head :: tail =>
00:00:57 v #1352 > >         //                 let item = last.[[1 .. input.Length - 1]] + string
00:00:57 v #1353 > > head
00:00:57 v #1354 > >         //                 item :: loop item tail
00:00:57 v #1355 > >         //             | [[]] => [[]]
00:00:57 v #1356 > >         //         loop input list
00:00:57 v #1357 > >         //     |> SpiralSm.concat " "
00:00:57 v #1358 > >
00:00:57 v #1359 > >         "F",
00:00:57 v #1360 > >         fun input =>
00:00:57 v #1361 > >         // Array.singleton 0
00:00:57 v #1362 > >         // |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:57 v #1363 > >         // |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:57 v #1364 > >         // |> SpiralSm.concat " "
00:00:57 v #1365 > >             inl input_length = input |> sm.length
00:00:57 v #1366 > >             am.singleton 0i32
00:00:57 v #1367 > >             |> am.append (am'.init_series 1 (input_length - 1) 1 |> fun x => a x
00:00:57 v #1368 > > : _ int _)
00:00:57 v #1369 > >             |> fun (a x) => x
00:00:57 v #1370 > >             |> am'.map_base fun i =>
00:00:57 v #1371 > >                 inl a = input |> sm'.slice i (input_length - 1)
00:00:57 v #1372 > >                 inl b = input |> sm'.slice 0 (i - 1)
00:00:57 v #1373 > >                 a +. b
00:00:57 v #1374 > >             |> fun x => a x : _ int _
00:00:57 v #1375 > >             |> seq.of_array
00:00:57 v #1376 > >             |> sm'.concat " "
00:00:57 v #1377 > >
00:00:57 v #1378 > >         "FA",
00:00:57 v #1379 > >         fun input =>
00:00:57 v #1380 > >         //     List.singleton 0
00:00:57 v #1381 > >         //     |> List.append [[ 1 .. input.Length - 1 ]]
00:00:57 v #1382 > >         //   //  |> List.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:57 v #1383 > >         //     |> SpiralSm.concat " "
00:00:57 v #1384 > >             inl input_length = input |> sm.length
00:00:57 v #1385 > >             listm.singleton 0i32
00:00:57 v #1386 > >             |> listm.append (listm'.init_series 1 (input_length - 1) 1)
00:00:57 v #1387 > >             |> listm.map (fun i =>
00:00:57 v #1388 > >                 inl a = input |> sm'.slice i (input_length - 1)
00:00:57 v #1389 > >                 inl b = if i = 0 then "" else input |> sm'.slice 0 (i - 1)
00:00:57 v #1390 > >                 a +. b
00:00:57 v #1391 > >             )
00:00:57 v #1392 > >             |> listm'.box
00:00:57 v #1393 > >             |> listm'.to_array'
00:00:57 v #1394 > >             |> fun x => a x : _ int _
00:00:57 v #1395 > >             |> seq.of_array
00:00:57 v #1396 > >             |> sm'.concat " "
00:00:57 v #1397 > >
00:00:57 v #1398 > >         // "FB",
00:00:57 v #1399 > >         // fun input =>
00:00:57 v #1400 > >         //     Seq.singleton 0
00:00:57 v #1401 > >         //   //  |> Seq.append (seq { 1 .. input.Length - 1 })
00:00:57 v #1402 > >         //   //  |> Seq.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:57 v #1403 > >         //     |> SpiralSm.concat " "
00:00:57 v #1404 > >
00:00:57 v #1405 > >         // "FC",
00:00:57 v #1406 > >         // fun input =>
00:00:57 v #1407 > >         //     Array.singleton 0
00:00:57 v #1408 > >         //     |> Array.append (a ;[[ 1 .. input.Length - 1 ]])
00:00:57 v #1409 > >         ////    |> Array.Parallel.map (fun i => input.[[ i .. ]] + input.[[ .. i
00:00:57 v #1410 > > - 1 ]])
00:00:57 v #1411 > >         //     |> SpiralSm.concat " "
00:00:57 v #1412 > >     ]]
00:00:57 v #1413 > >
00:00:57 v #1414 > > inl rec rotate_strings_tests () =
00:00:57 v #1415 > >     inl test_cases = [[
00:00:57 v #1416 > >         "abc", "bca cab abc"
00:00:57 v #1417 > >         "abcde", "bcdea cdeab deabc eabcd abcde"
00:00:57 v #1418 > >         "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde
00:00:57 v #1419 > > ghiabcdef hiabcdefg iabcdefgh abcdefghi"
00:00:57 v #1420 > >         "abab", "baba abab baba abab"
00:00:57 v #1421 > >         "aa", "aa aa"
00:00:57 v #1422 > >         "z", "z"
00:00:57 v #1423 > >     ]]
00:00:57 v #1424 > >
00:00:57 v #1425 > >     inl solutions = get_solutions ()
00:00:57 v #1426 > >
00:00:57 v #1427 > >     // inl is_fast () = true
00:00:57 v #1428 > >
00:00:57 v #1429 > >     inl count =
00:00:57 v #1430 > >         if is_fast ()
00:00:57 v #1431 > >         then 1000i32
00:00:57 v #1432 > >         else 2000000i32
00:00:57 v #1433 > >
00:00:57 v #1434 > >     run_all (reflection.nameof { rotate_strings_tests }) count solutions
00:00:57 v #1435 > > test_cases
00:00:57 v #1436 > >     |> sort_result_list
00:00:57 v #1437 > >
00:00:57 v #1438 > > rotate_strings_tests ()
00:00:58 v #1439 > 00:00:57 d #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf6e4db8b1c0fd8e1ac38b1afd3c052faa998d7764d773b7bd7a8d599095fc0e/main.spi
00:01:19 v #1440 > >
00:01:19 v #1441 > > ╭─[ 21.84s - stdout ]──────────────────────────────────────────────────────────╮
00:01:19 v #1442 > > │                                                                              │
00:01:19 v #1443 > > │ ```                                                                          │
00:01:19 v #1444 > > │ 00:00:00 v #1 benchmark.run_all / { test_name = rotate_strings_tests;   │
00:01:19 v #1445 > > │ count = 2000000 }                                                            │
00:01:19 v #1446 > > │                                                                              │
00:01:19 v #1447 > > │ 00:00:00 v #2 benchmark.run / { input_str = "abc" }                     │
00:01:19 v #1448 > > │ 00:00:01 v #3 benchmark.run / solutions.map / { i = 1; test_name = F;   │
00:01:19 v #1449 > > │ time = 1075 }                                                                │
00:01:19 v #1450 > > │ 00:00:03 v #4 benchmark.run / solutions.map / { i = 2; test_name = FA;  │
00:01:19 v #1451 > > │ time = 1284 }                                                                │
00:01:19 v #1452 > > │                                                                              │
00:01:19 v #1453 > > │ 00:00:03 v #5 benchmark.run / { input_str = "abcde" }                   │
00:01:19 v #1454 > > │ 00:00:04 v #6 benchmark.run / solutions.map / { i = 1; test_name = F;   │
00:01:19 v #1455 > > │ time = 1258 }                                                                │
00:01:19 v #1456 > > │ 00:00:06 v #7 benchmark.run / solutions.map / { i = 2; test_name = FA;  │
00:01:19 v #1457 > > │ time = 1771 }                                                                │
00:01:19 v #1458 > > │                                                                              │
00:01:19 v #1459 > > │ 00:00:06 v #8 benchmark.run / { input_str = "abcdefghi" }               │
00:01:19 v #1460 > > │ 00:00:09 v #9 benchmark.run / solutions.map / { i = 1; test_name = F;   │
00:01:19 v #1461 > > │ time = 2337 }                                                                │
00:01:19 v #1462 > > │ 00:00:13 v #10 benchmark.run / solutions.map / { i = 2; test_name = FA; │
00:01:19 v #1463 > > │ time = 2978 }                                                                │
00:01:19 v #1464 > > │                                                                              │
00:01:19 v #1465 > > │ 00:00:13 v #11 benchmark.run / { input_str = "abab" }                   │
00:01:19 v #1466 > > │ 00:00:14 v #12 benchmark.run / solutions.map / { i = 1; test_name = F;  │
00:01:19 v #1467 > > │ time = 1058 }                                                                │
00:01:19 v #1468 > > │ 00:00:16 v #13 benchmark.run / solutions.map / { i = 2; test_name = FA; │
00:01:19 v #1469 > > │ time = 1324 }                                                                │
00:01:19 v #1470 > > │                                                                              │
00:01:19 v #1471 > > │ 00:00:16 v #14 benchmark.run / { input_str = "aa" }                     │
00:01:19 v #1472 > > │ 00:00:17 v #15 benchmark.run / solutions.map / { i = 1; test_name = F;  │
00:01:19 v #1473 > > │ time = 804 }                                                                 │
00:01:19 v #1474 > > │ 00:00:18 v #16 benchmark.run / solutions.map / { i = 2; test_name = FA; │
00:01:19 v #1475 > > │ time = 863 }                                                                 │
00:01:19 v #1476 > > │                                                                              │
00:01:19 v #1477 > > │ 00:00:18 v #17 benchmark.run / { input_str = "z" }                      │
00:01:19 v #1478 > > │ 00:00:19 v #18 benchmark.run / solutions.map / { i = 1; test_name = F;  │
00:01:19 v #1479 > > │ time = 205 }                                                                 │
00:01:19 v #1480 > > │ 00:00:19 v #19 benchmark.run / solutions.map / { i = 2; test_name = FA; │
00:01:19 v #1481 > > │ time = 208 }                                                                 │
00:01:19 v #1482 > > │ ```                                                                          │
00:01:19 v #1483 > > │ input      	| expected                                                         │
00:01:19 v #1484 > > │                                                                              │
00:01:19 v #1485 > > │ | result                                                                     │
00:01:19 v #1486 > > │                                                                              │
00:01:19 v #1487 > > │ | best                                                                       │
00:01:19 v #1488 > > │ ---        	| ---                                                              │
00:01:19 v #1489 > > │                                                                              │
00:01:19 v #1490 > > │ | ---                                                                        │
00:01:19 v #1491 > > │                                                                              │
00:01:19 v #1492 > > │ | ---                                                                        │
00:01:19 v #1493 > > │ "abc"      	| "bca cab abc"                                                    │
00:01:19 v #1494 > > │                                                                              │
00:01:19 v #1495 > > │ | "bca cab abc"                                                              │
00:01:19 v #1496 > > │                                                                              │
00:01:19 v #1497 > > │ | 1, 1075                                                                    │
00:01:19 v #1498 > > │ "abcde"    	| "bcdea cdeab deabc eabcd abcde"                                  │
00:01:19 v #1499 > > │ | "bcdea cdeab deabc eabcd abcde"                                            │
00:01:19 v #1500 > > │ | 1, 1258                                                                    │
00:01:19 v #1501 > > │ "abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef     │
00:01:19 v #1502 > > │ hiabcdefg iabcdefgh abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd      │
00:01:19 v #1503 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi"	| 1, 2337                   │
00:01:19 v #1504 > > │ "abab"     	| "baba abab baba abab"                                            │
00:01:19 v #1505 > > │ | "baba abab baba abab"                                                      │
00:01:19 v #1506 > > │ | 1, 1058                                                                    │
00:01:19 v #1507 > > │ "aa"       	| "aa aa"                                                          │
00:01:19 v #1508 > > │                                                                              │
00:01:19 v #1509 > > │ | "aa aa"                                                                    │
00:01:19 v #1510 > > │                                                                              │
00:01:19 v #1511 > > │ | 1, 804                                                                     │
00:01:19 v #1512 > > │ "z"        	| "z"                                                              │
00:01:19 v #1513 > > │                                                                              │
00:01:19 v #1514 > > │ | "z"                                                                        │
00:01:19 v #1515 > > │                                                                              │
00:01:19 v #1516 > > │ | 1, 205                                                                     │
00:01:19 v #1517 > > │ ```                                                                          │
00:01:19 v #1518 > > │ 00:00:19 v #20 benchmark.sort_result_list / averages.iter / { i = 1;    │
00:01:19 v #1519 > > │ avg = 1122 }                                                                 │
00:01:19 v #1520 > > │ 00:00:19 v #21 benchmark.sort_result_list / averages.iter / { i = 2;    │
00:01:19 v #1521 > > │ avg = 1404 }                                                                 │
00:01:19 v #1522 > > │ ```                                                                          │
00:01:19 v #1523 > > │                                                                              │
00:01:19 v #1524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:19 v #1525 > >
00:01:19 v #1526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:19 v #1527 > > //// test
00:01:19 v #1528 > >
00:01:19 v #1529 > > // rotate_strings_tests ()
00:01:19 v #1530 > > ()
00:01:19 v #1531 > 00:01:19 d #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffbdf638a179ab054b52361d40c49795bf15c33906a7feb238e04c589e007e2a/main.spi
00:01:20 v #1532 > >
00:01:20 v #1533 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:20 v #1534 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:20 v #1535 > > │ ## binary_search_tests                                                       │
00:01:20 v #1536 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:20 v #1537 > >
00:01:20 v #1538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:20 v #1539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:20 v #1540 > > │ ```                                                                          │
00:01:20 v #1541 > > │ 02:19:29 verbose #1 benchmark.run_all / {count = 10000000; test_name =  │
00:01:20 v #1542 > > │ binary_search_tests}                                                         │
00:01:20 v #1543 > > │                                                                              │
00:01:20 v #1544 > > │ 02:19:29 verbose #2 benchmark.run / {input_str = struct ([|1; 3; 4; 6;  │
00:01:20 v #1545 > > │ 8; 9; 11|], 6, 7)}                                                           │
00:01:20 v #1546 > > │ 02:19:30 verbose #3 benchmark.run / solutions.map / {i = 1; test_name = │
00:01:20 v #1547 > > │ semi_open_1; time = 662}                                                     │
00:01:20 v #1548 > > │ 02:19:30 verbose #4 benchmark.run / solutions.map / {i = 2; test_name = │
00:01:20 v #1549 > > │ closed_1; time = 619}                                                        │
00:01:20 v #1550 > > │ 02:19:31 verbose #5 benchmark.run / solutions.map / {i = 3; test_name = │
00:01:20 v #1551 > > │ semi_open_2; time = 644}                                                     │
00:01:20 v #1552 > > │ 02:19:32 verbose #6 benchmark.run / solutions.map / {i = 4; test_name = │
00:01:20 v #1553 > > │ closed_2; time = 610}                                                        │
00:01:20 v #1554 > > │                                                                              │
00:01:20 v #1555 > > │ 02:19:32 verbose #7 benchmark.run / {input_str = struct ([|1; 3; 4; 6;  │
00:01:20 v #1556 > > │ 8; 9; 11|], 1, 7)}                                                           │
00:01:20 v #1557 > > │ 02:19:33 verbose #8 benchmark.run / solutions.map / {i = 1; test_name = │
00:01:20 v #1558 > > │ semi_open_1; time = 607}                                                     │
00:01:20 v #1559 > > │ 02:19:33 verbose #9 benchmark.run / solutions.map / {i = 2; test_name = │
00:01:20 v #1560 > > │ closed_1; time = 559}                                                        │
00:01:20 v #1561 > > │ 02:19:34 verbose #10 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:20 v #1562 > > │ = semi_open_2; time = 612}                                                   │
00:01:20 v #1563 > > │ 02:19:35 verbose #11 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:20 v #1564 > > │ = closed_2; time = 577}                                                      │
00:01:20 v #1565 > > │                                                                              │
00:01:20 v #1566 > > │ 02:19:35 verbose #12 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:20 v #1567 > > │ 8; 9; 11|], 11, 7)}                                                          │
00:01:20 v #1568 > > │ 02:19:35 verbose #13 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:20 v #1569 > > │ = semi_open_1; time = 550}                                                   │
00:01:20 v #1570 > > │ 02:19:36 verbose #14 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:20 v #1571 > > │ = closed_1; time = 580}                                                      │
00:01:20 v #1572 > > │ 02:19:37 verbose #15 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:20 v #1573 > > │ = semi_open_2; time = 624}                                                   │
00:01:20 v #1574 > > │ 02:19:37 verbose #16 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:20 v #1575 > > │ = closed_2; time = 590}                                                      │
00:01:20 v #1576 > > │                                                                              │
00:01:20 v #1577 > > │ 02:19:37 verbose #17 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:20 v #1578 > > │ 8; 9; 11|], 12, 7)}                                                          │
00:01:20 v #1579 > > │ 02:19:38 verbose #18 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:20 v #1580 > > │ = semi_open_1; time = 574}                                                   │
00:01:20 v #1581 > > │ 02:19:39 verbose #19 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:20 v #1582 > > │ = closed_1; time = 577}                                                      │
00:01:20 v #1583 > > │ 02:19:39 verbose #20 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:20 v #1584 > > │ = semi_open_2; time = 582}                                                   │
00:01:20 v #1585 > > │ 02:19:40 verbose #21 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:20 v #1586 > > │ = closed_2; time = 585}                                                      │
00:01:20 v #1587 > > │                                                                              │
00:01:20 v #1588 > > │ 02:19:40 verbose #22 benchmark.run / {input_str = struct ([|1; 2; 3;    │
00:01:20 v #1589 > > │ 4...00; ...|], 60, 1000)}                                                    │
00:01:20 v #1590 > > │ 02:19:41 verbose #23 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:20 v #1591 > > │ = semi_open_1; time = 610}                                                   │
00:01:20 v #1592 > > │ 02:19:42 verbose #24 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:20 v #1593 > > │ = closed_1; time = 672}                                                      │
00:01:20 v #1594 > > │ 02:19:42 verbose #25 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:20 v #1595 > > │ = semi_open_2; time = 636}                                                   │
00:01:20 v #1596 > > │ 02:19:43 verbose #26 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:20 v #1597 > > │ = closed_2; time = 629}                                                      │
00:01:20 v #1598 > > │                                                                              │
00:01:20 v #1599 > > │ 02:19:43 verbose #27 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:20 v #1600 > > │ 8; 9; 11|], 6, 7)}                                                           │
00:01:20 v #1601 > > │ 02:19:44 verbose #28 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:20 v #1602 > > │ = semi_open_1; time = 599}                                                   │
00:01:20 v #1603 > > │ 02:19:44 verbose #29 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:20 v #1604 > > │ = closed_1; time = 561}                                                      │
00:01:20 v #1605 > > │ 02:19:45 verbose #30 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:20 v #1606 > > │ = semi_open_2; time = 604}                                                   │
00:01:20 v #1607 > > │ 02:19:46 verbose #31 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:20 v #1608 > > │ = closed_2; time = 573}                                                      │
00:01:20 v #1609 > > │                                                                              │
00:01:20 v #1610 > > │ 02:19:46 verbose #32 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:20 v #1611 > > │ 8; 9; 11|], 1, 7)}                                                           │
00:01:20 v #1612 > > │ 02:19:47 verbose #33 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:20 v #1613 > > │ = semi_open_1; time = 635}                                                   │
00:01:20 v #1614 > > │ 02:19:47 verbose #34 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:20 v #1615 > > │ = closed_1; time = 603}                                                      │
00:01:20 v #1616 > > │ 02:19:48 verbose #35 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:20 v #1617 > > │ = semi_open_2; time = 644}                                                   │
00:01:20 v #1618 > > │ 02:19:49 verbose #36 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:20 v #1619 > > │ = closed_2; time = 628}                                                      │
00:01:20 v #1620 > > │                                                                              │
00:01:20 v #1621 > > │ 02:19:49 verbose #37 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:20 v #1622 > > │ 8; 9; 11|], 11, 7)}                                                          │
00:01:20 v #1623 > > │ 02:19:49 verbose #38 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:20 v #1624 > > │ = semi_open_1; time = 643}                                                   │
00:01:20 v #1625 > > │ 02:19:50 verbose #39 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:20 v #1626 > > │ = closed_1; time = 606}                                                      │
00:01:20 v #1627 > > │ 02:19:51 verbose #40 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:20 v #1628 > > │ = semi_open_2; time = 636}                                                   │
00:01:20 v #1629 > > │ 02:19:52 verbose #41 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:20 v #1630 > > │ = closed_2; time = 624}                                                      │
00:01:20 v #1631 > > │                                                                              │
00:01:20 v #1632 > > │ 02:19:52 verbose #42 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:20 v #1633 > > │ 8; 9; 11|], 12, 7)}                                                          │
00:01:20 v #1634 > > │ 02:19:52 verbose #43 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:20 v #1635 > > │ = semi_open_1; time = 689}                                                   │
00:01:20 v #1636 > > │ 02:19:53 verbose #44 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:20 v #1637 > > │ = closed_1; time = 613}                                                      │
00:01:20 v #1638 > > │ 02:19:54 verbose #45 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:20 v #1639 > > │ = semi_open_2; time = 623}                                                   │
00:01:20 v #1640 > > │ 02:19:55 verbose #46 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:20 v #1641 > > │ = closed_2; time = 613}                                                      │
00:01:20 v #1642 > > │                                                                              │
00:01:20 v #1643 > > │ 02:19:55 verbose #47 benchmark.run / {input_str = struct ([|1; 2; 3;    │
00:01:20 v #1644 > > │ 4...100; ...|], 60, 100)}                                                    │
00:01:20 v #1645 > > │ 02:19:55 verbose #48 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:20 v #1646 > > │ = semi_open_1; time = 630}                                                   │
00:01:20 v #1647 > > │ 02:19:56 verbose #49 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:20 v #1648 > > │ = closed_1; time = 633}                                                      │
00:01:20 v #1649 > > │ 02:19:57 verbose #50 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:20 v #1650 > > │ = semi_open_2; time = 653}                                                   │
00:01:20 v #1651 > > │ 02:19:58 verbose #51 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:20 v #1652 > > │ = closed_2; time = 646}                                                      │
00:01:20 v #1653 > > │ ```                                                                          │
00:01:20 v #1654 > > │ input                                    	| expected	| result  	| best             │
00:01:20 v #1655 > > │ ---                                      	| ---     	| ---     	| ---              │
00:01:20 v #1656 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 4, 610           │
00:01:20 v #1657 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 2, 559           │
00:01:20 v #1658 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 1, 550           │
00:01:20 v #1659 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 1, 574           │
00:01:20 v #1660 > > │ struct ([1; 2; 3; 4...00; ...], 60, 1000)	| US4_0 59	| US4_0 59	| 1, 610           │
00:01:20 v #1661 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 2, 561           │
00:01:20 v #1662 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 2, 603           │
00:01:20 v #1663 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 2, 606           │
00:01:20 v #1664 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 2, 613           │
00:01:20 v #1665 > > │ struct ([1; 2; 3; 4...100; ...], 60, 100)	| US4_0 59	| US4_0 59	| 1, 630           │
00:01:20 v #1666 > > │ ```                                                                          │
00:01:20 v #1667 > > │ 02:19:58 verbose #52 benchmark.sort_result_list / averages.iter / {avg  │
00:01:20 v #1668 > > │ = 602; i = 2}                                                                │
00:01:20 v #1669 > > │ 02:19:58 verbose #53 benchmark.sort_result_list / averages.iter / {avg  │
00:01:20 v #1670 > > │ = 607; i = 4}                                                                │
00:01:20 v #1671 > > │ 02:19:58 verbose #54 benchmark.sort_result_list / averages.iter / {avg  │
00:01:20 v #1672 > > │ = 619; i = 1}                                                                │
00:01:20 v #1673 > > │ 02:19:58 verbose #55 benchmark.sort_result_list / averages.iter / {avg  │
00:01:20 v #1674 > > │ = 625; i = 3}                                                                │
00:01:20 v #1675 > > │ ```                                                                          │
00:01:20 v #1676 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:20 v #1677 > >
00:01:20 v #1678 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:20 v #1679 > > //// test
00:01:20 v #1680 > > //// timeout=90000
00:01:20 v #1681 > >
00:01:20 v #1682 > > inl binary_search_semi_open_1 arr target left right =
00:01:20 v #1683 > >     inl rec body left right =
00:01:20 v #1684 > >         if left >= right
00:01:20 v #1685 > >         then None
00:01:20 v #1686 > >         else
00:01:20 v #1687 > >             inl mid = (left + right) / 2
00:01:20 v #1688 > >             inl item = index arr mid
00:01:20 v #1689 > >             if item = target
00:01:20 v #1690 > >             then Some mid
00:01:20 v #1691 > >             elif item < target
00:01:20 v #1692 > >             then loop (mid + 1) right
00:01:20 v #1693 > >             else loop left mid
00:01:20 v #1694 > >     and inl loop left right =
00:01:20 v #1695 > >         if var_is right |> not
00:01:20 v #1696 > >         then body left right
00:01:20 v #1697 > >         else
00:01:20 v #1698 > >             inl left = dyn left
00:01:20 v #1699 > >             join body left right
00:01:20 v #1700 > >     loop left right
00:01:20 v #1701 > >
00:01:20 v #1702 > > inl binary_search_closed_1 arr target left right =
00:01:20 v #1703 > >     inl rec body left right =
00:01:20 v #1704 > >         if left > right
00:01:20 v #1705 > >         then None
00:01:20 v #1706 > >         else
00:01:20 v #1707 > >             inl mid = (left + right) / 2
00:01:20 v #1708 > >             inl item = index arr mid
00:01:20 v #1709 > >             if item = target
00:01:20 v #1710 > >             then Some mid
00:01:20 v #1711 > >             elif item < target
00:01:20 v #1712 > >             then loop (mid + 1) right
00:01:20 v #1713 > >             else loop left (mid - 1)
00:01:20 v #1714 > >     and inl loop left right =
00:01:20 v #1715 > >         if var_is right |> not
00:01:20 v #1716 > >         then body left right
00:01:20 v #1717 > >         else
00:01:20 v #1718 > >             inl left = dyn left
00:01:20 v #1719 > >             join body left right
00:01:20 v #1720 > >     loop left right
00:01:20 v #1721 > >
00:01:20 v #1722 > > inl binary_search_semi_open_2 arr target left right =
00:01:20 v #1723 > >     let rec body left right =
00:01:20 v #1724 > >         if left >= right
00:01:20 v #1725 > >         then None
00:01:20 v #1726 > >         else
00:01:20 v #1727 > >             inl mid = (left + right) / 2
00:01:20 v #1728 > >             inl item = index arr mid
00:01:20 v #1729 > >             if item = target
00:01:20 v #1730 > >             then Some mid
00:01:20 v #1731 > >             elif item < target
00:01:20 v #1732 > >             then loop (mid + 1) right
00:01:20 v #1733 > >             else loop left mid
00:01:20 v #1734 > >     and inl loop left right = body left right
00:01:20 v #1735 > >     loop left right
00:01:20 v #1736 > >
00:01:20 v #1737 > > inl binary_search_closed_2 arr target left right =
00:01:20 v #1738 > >     let rec body left right =
00:01:20 v #1739 > >         if left > right
00:01:20 v #1740 > >         then None
00:01:20 v #1741 > >         else
00:01:20 v #1742 > >             inl mid = (left + right) / 2
00:01:20 v #1743 > >             inl item = index arr mid
00:01:20 v #1744 > >             if item = target
00:01:20 v #1745 > >             then Some mid
00:01:20 v #1746 > >             elif item < target
00:01:20 v #1747 > >             then loop (mid + 1) right
00:01:20 v #1748 > >             else loop left (mid - 1)
00:01:20 v #1749 > >     and inl loop left right = body left right
00:01:20 v #1750 > >     loop left right
00:01:20 v #1751 > >
00:01:20 v #1752 > > inl get_solutions () =
00:01:20 v #1753 > >     [[
00:01:20 v #1754 > >         "semi_open_1",
00:01:20 v #1755 > >         fun (arr, (target, len)) =>
00:01:20 v #1756 > >             binary_search_semi_open_1 arr target 0 len
00:01:20 v #1757 > >
00:01:20 v #1758 > >         "closed_1",
00:01:20 v #1759 > >         fun (arr, (target, len)) =>
00:01:20 v #1760 > >             binary_search_closed_1 arr target 0 (len - 1)
00:01:20 v #1761 > >
00:01:20 v #1762 > >         "semi_open_2",
00:01:20 v #1763 > >         fun (arr, (target, len)) =>
00:01:20 v #1764 > >             binary_search_semi_open_2 arr target 0 len
00:01:20 v #1765 > >
00:01:20 v #1766 > >         "closed_2",
00:01:20 v #1767 > >         fun (arr, (target, len)) =>
00:01:20 v #1768 > >             binary_search_closed_2 arr target 0 (len - 1)
00:01:20 v #1769 > >     ]]
00:01:20 v #1770 > >
00:01:20 v #1771 > > inl rec binary_search_tests () =
00:01:20 v #1772 > >     inl arr_with_len target len arr =
00:01:20 v #1773 > >         arr, (target, (len |> optionm'.default_with fun () => length arr))
00:01:20 v #1774 > >
00:01:20 v #1775 > >     inl test_cases = [[
00:01:20 v #1776 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 None), (Some 3i32)
00:01:20 v #1777 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 None), (Some 0i32)
00:01:20 v #1778 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 None), (Some 6i32)
00:01:20 v #1779 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 None), None
00:01:20 v #1780 > >         ((am'.init_series 1i32 1000 1 |> fun x => a x : _ int _) |> arr_with_len
00:01:20 v #1781 > > 60 None), (Some 59)
00:01:20 v #1782 > >
00:01:20 v #1783 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 (Some 7)), (Some
00:01:20 v #1784 > > 3i32)
00:01:20 v #1785 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 (Some 7)), (Some
00:01:20 v #1786 > > 0i32)
00:01:20 v #1787 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 (Some 7)), (Some
00:01:20 v #1788 > > 6i32)
00:01:20 v #1789 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 (Some 7)), None
00:01:20 v #1790 > >         ((am'.init_series 1i32 1000 1 |> fun x => a x : _ int _) |> arr_with_len
00:01:20 v #1791 > > 60 (Some 100)), (Some 59)
00:01:20 v #1792 > >     ]]
00:01:20 v #1793 > >
00:01:20 v #1794 > >     inl solutions = get_solutions ()
00:01:20 v #1795 > >
00:01:20 v #1796 > >     // inl is_fast () = true
00:01:20 v #1797 > >
00:01:20 v #1798 > >     inl count =
00:01:20 v #1799 > >         if is_fast ()
00:01:20 v #1800 > >         then 1000i32
00:01:20 v #1801 > >         else 10000000i32
00:01:20 v #1802 > >
00:01:20 v #1803 > >     run_all (reflection.nameof { binary_search_tests }) count solutions
00:01:20 v #1804 > > test_cases
00:01:20 v #1805 > >     |> sort_result_list
00:01:20 v #1806 > >
00:01:20 v #1807 > >
00:01:20 v #1808 > > let main () =
00:01:20 v #1809 > >     binary_search_tests ()
00:01:20 v #1810 > 00:01:19 d #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/713602f9b8f4d82d4dcfe100ca8304d8b93c68d2b3a29765618d48f14990f769/main.spi
00:01:57 v #1811 > >
00:01:57 v #1812 > > ╭─[ 37.26s - stdout ]──────────────────────────────────────────────────────────╮
00:01:57 v #1813 > > │                                                                              │
00:01:57 v #1814 > > │ ```                                                                          │
00:01:57 v #1815 > > │ 00:00:00 v #1 benchmark.run_all / { test_name = binary_search_tests;    │
00:01:57 v #1816 > > │ count = 10000000 }                                                           │
00:01:57 v #1817 > > │                                                                              │
00:01:57 v #1818 > > │ 00:00:00 v #2 benchmark.run / { input_str = struct ([|1; 3; 4; 6; 8; 9; │
00:01:57 v #1819 > > │ 11|], 6, 7) }                                                                │
00:01:57 v #1820 > > │ 00:00:00 v #3 benchmark.run / solutions.map / { i = 1; test_name =      │
00:01:57 v #1821 > > │ semi_open_1; time = 770 }                                                    │
00:01:57 v #1822 > > │ 00:00:02 v #4 benchmark.run / solutions.map / { i = 2; test_name =      │
00:01:57 v #1823 > > │ closed_1; time = 741 }                                                       │
00:01:57 v #1824 > > │ 00:00:02 v #5 benchmark.run / solutions.map / { i = 3; test_name =      │
00:01:57 v #1825 > > │ semi_open_2; time = 674 }                                                    │
00:01:57 v #1826 > > │ 00:00:03 v #6 benchmark.run / solutions.map / { i = 4; test_name =      │
00:01:57 v #1827 > > │ closed_2; time = 696 }                                                       │
00:01:57 v #1828 > > │                                                                              │
00:01:57 v #1829 > > │ 00:00:03 v #7 benchmark.run / { input_str = struct ([|1; 3; 4; 6; 8; 9; │
00:01:57 v #1830 > > │ 11|], 1, 7) }                                                                │
00:01:57 v #1831 > > │ 00:00:04 v #8 benchmark.run / solutions.map / { i = 1; test_name =      │
00:01:57 v #1832 > > │ semi_open_1; time = 605 }                                                    │
00:01:57 v #1833 > > │ 00:00:05 v #9 benchmark.run / solutions.map / { i = 2; test_name =      │
00:01:57 v #1834 > > │ closed_1; time = 589 }                                                       │
00:01:57 v #1835 > > │ 00:00:06 v #10 benchmark.run / solutions.map / { i = 3; test_name =     │
00:01:57 v #1836 > > │ semi_open_2; time = 603 }                                                    │
00:01:57 v #1837 > > │ 00:00:07 v #11 benchmark.run / solutions.map / { i = 4; test_name =     │
00:01:57 v #1838 > > │ closed_2; time = 619 }                                                       │
00:01:57 v #1839 > > │                                                                              │
00:01:57 v #1840 > > │ 00:00:07 v #12 benchmark.run / { input_str = struct ([|1; 3; 4; 6; 8;   │
00:01:57 v #1841 > > │ 9; 11|], 11, 7) }                                                            │
00:01:57 v #1842 > > │ 00:00:08 v #13 benchmark.run / solutions.map / { i = 1; test_name =     │
00:01:57 v #1843 > > │ semi_open_1; time = 642 }                                                    │
00:01:57 v #1844 > > │ 00:00:09 v #14 benchmark.run / solutions.map / { i = 2; test_name =     │
00:01:57 v #1845 > > │ closed_1; time = 632 }                                                       │
00:01:57 v #1846 > > │ 00:00:10 v #15 benchmark.run / solutions.map / { i = 3; test_name =     │
00:01:57 v #1847 > > │ semi_open_2; time = 628 }                                                    │
00:01:57 v #1848 > > │ 00:00:10 v #16 benchmark.run / solutions.map / { i = 4; test_name =     │
00:01:57 v #1849 > > │ closed_2; time = 631 }                                                       │
00:01:57 v #1850 > > │                                                                              │
00:01:57 v #1851 > > │ 00:00:10 v #17 benchmark.run / { input_str = struct ([|1; 3; 4; 6; 8;   │
00:01:57 v #1852 > > │ 9; 11|], 12, 7) }                                                            │
00:01:57 v #1853 > > │ 00:00:11 v #18 benchmark.run / solutions.map / { i = 1; test_name =     │
00:01:57 v #1854 > > │ semi_open_1; time = 607 }                                                    │
00:01:57 v #1855 > > │ 00:00:12 v #19 benchmark.run / solutions.map / { i = 2; test_name =     │
00:01:57 v #1856 > > │ closed_1; time = 597 }                                                       │
00:01:57 v #1857 > > │ 00:00:13 v #20 benchmark.run / solutions.map / { i = 3; test_name =     │
00:01:57 v #1858 > > │ semi_open_2; time = 602 }                                                    │
00:01:57 v #1859 > > │ 00:00:14 v #21 benchmark.run / solutions.map / { i = 4; test_name =     │
00:01:57 v #1860 > > │ closed_2; time = 615 }                                                       │
00:01:57 v #1861 > > │                                                                              │
00:01:57 v #1862 > > │ 00:00:14 v #22 benchmark.run / { input_str = struct ([|1; 2; 3; 4...00; │
00:01:57 v #1863 > > │ ...|], 60, 1000) }                                                           │
00:01:57 v #1864 > > │ 00:00:15 v #23 benchmark.run / solutions.map / { i = 1; test_name =     │
00:01:57 v #1865 > > │ semi_open_1; time = 651 }                                                    │
00:01:57 v #1866 > > │ 00:00:16 v #24 benchmark.run / solutions.map / { i = 2; test_name =     │
00:01:57 v #1867 > > │ closed_1; time = 653 }                                                       │
00:01:57 v #1868 > > │ 00:00:17 v #25 benchmark.run / solutions.map / { i = 3; test_name =     │
00:01:57 v #1869 > > │ semi_open_2; time = 662 }                                                    │
00:01:57 v #1870 > > │ 00:00:17 v #26 benchmark.run / solutions.map / { i = 4; test_name =     │
00:01:57 v #1871 > > │ closed_2; time = 670 }                                                       │
00:01:57 v #1872 > > │                                                                              │
00:01:57 v #1873 > > │ 00:00:17 v #27 benchmark.run / { input_str = struct ([|1; 3; 4; 6; 8;   │
00:01:57 v #1874 > > │ 9; 11|], 6, 7) }                                                             │
00:01:57 v #1875 > > │ 00:00:18 v #28 benchmark.run / solutions.map / { i = 1; test_name =     │
00:01:57 v #1876 > > │ semi_open_1; time = 662 }                                                    │
00:01:57 v #1877 > > │ 00:00:19 v #29 benchmark.run / solutions.map / { i = 2; test_name =     │
00:01:57 v #1878 > > │ closed_1; time = 648 }                                                       │
00:01:57 v #1879 > > │ 00:00:20 v #30 benchmark.run / solutions.map / { i = 3; test_name =     │
00:01:57 v #1880 > > │ semi_open_2; time = 580 }                                                    │
00:01:57 v #1881 > > │ 00:00:21 v #31 benchmark.run / solutions.map / { i = 4; test_name =     │
00:01:57 v #1882 > > │ closed_2; time = 589 }                                                       │
00:01:57 v #1883 > > │                                                                              │
00:01:57 v #1884 > > │ 00:00:21 v #32 benchmark.run / { input_str = struct ([|1; 3; 4; 6; 8;   │
00:01:57 v #1885 > > │ 9; 11|], 1, 7) }                                                             │
00:01:57 v #1886 > > │ 00:00:22 v #33 benchmark.run / solutions.map / { i = 1; test_name =     │
00:01:57 v #1887 > > │ semi_open_1; time = 620 }                                                    │
00:01:57 v #1888 > > │ 00:00:23 v #34 benchmark.run / solutions.map / { i = 2; test_name =     │
00:01:57 v #1889 > > │ closed_1; time = 625 }                                                       │
00:01:57 v #1890 > > │ 00:00:24 v #35 benchmark.run / solutions.map / { i = 3; test_name =     │
00:01:57 v #1891 > > │ semi_open_2; time = 628 }                                                    │
00:01:57 v #1892 > > │ 00:00:25 v #36 benchmark.run / solutions.map / { i = 4; test_name =     │
00:01:57 v #1893 > > │ closed_2; time = 658 }                                                       │
00:01:57 v #1894 > > │                                                                              │
00:01:57 v #1895 > > │ 00:00:25 v #37 benchmark.run / { input_str = struct ([|1; 3; 4; 6; 8;   │
00:01:57 v #1896 > > │ 9; 11|], 11, 7) }                                                            │
00:01:57 v #1897 > > │ 00:00:25 v #38 benchmark.run / solutions.map / { i = 1; test_name =     │
00:01:57 v #1898 > > │ semi_open_1; time = 608 }                                                    │
00:01:57 v #1899 > > │ 00:00:26 v #39 benchmark.run / solutions.map / { i = 2; test_name =     │
00:01:57 v #1900 > > │ closed_1; time = 601 }                                                       │
00:01:57 v #1901 > > │ 00:00:27 v #40 benchmark.run / solutions.map / { i = 3; test_name =     │
00:01:57 v #1902 > > │ semi_open_2; time = 585 }                                                    │
00:01:57 v #1903 > > │ 00:00:28 v #41 benchmark.run / solutions.map / { i = 4; test_name =     │
00:01:57 v #1904 > > │ closed_2; time = 585 }                                                       │
00:01:57 v #1905 > > │                                                                              │
00:01:57 v #1906 > > │ 00:00:28 v #42 benchmark.run / { input_str = struct ([|1; 3; 4; 6; 8;   │
00:01:57 v #1907 > > │ 9; 11|], 12, 7) }                                                            │
00:01:57 v #1908 > > │ 00:00:29 v #43 benchmark.run / solutions.map / { i = 1; test_name =     │
00:01:57 v #1909 > > │ semi_open_1; time = 604 }                                                    │
00:01:57 v #1910 > > │ 00:00:30 v #44 benchmark.run / solutions.map / { i = 2; test_name =     │
00:01:57 v #1911 > > │ closed_1; time = 618 }                                                       │
00:01:57 v #1912 > > │ 00:00:31 v #45 benchmark.run / solutions.map / { i = 3; test_name =     │
00:01:57 v #1913 > > │ semi_open_2; time = 636 }                                                    │
00:01:57 v #1914 > > │ 00:00:32 v #46 benchmark.run / solutions.map / { i = 4; test_name =     │
00:01:57 v #1915 > > │ closed_2; time = 614 }                                                       │
00:01:57 v #1916 > > │                                                                              │
00:01:57 v #1917 > > │ 00:00:32 v #47 benchmark.run / { input_str = struct ([|1; 2; 3;         │
00:01:57 v #1918 > > │ 4...100; ...|], 60, 100) }                                                   │
00:01:57 v #1919 > > │ 00:00:32 v #48 benchmark.run / solutions.map / { i = 1; test_name =     │
00:01:57 v #1920 > > │ semi_open_1; time = 630 }                                                    │
00:01:57 v #1921 > > │ 00:00:33 v #49 benchmark.run / solutions.map / { i = 2; test_name =     │
00:01:57 v #1922 > > │ closed_1; time = 625 }                                                       │
00:01:57 v #1923 > > │ 00:00:34 v #50 benchmark.run / solutions.map / { i = 3; test_name =     │
00:01:57 v #1924 > > │ semi_open_2; time = 628 }                                                    │
00:01:57 v #1925 > > │ 00:00:35 v #51 benchmark.run / solutions.map / { i = 4; test_name =     │
00:01:57 v #1926 > > │ closed_2; time = 609 }                                                       │
00:01:57 v #1927 > > │ ```                                                                          │
00:01:57 v #1928 > > │ input                                    	| expected	| result  	| best             │
00:01:57 v #1929 > > │ ---                                      	| ---     	| ---     	| ---              │
00:01:57 v #1930 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 3, 674           │
00:01:57 v #1931 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 2, 589           │
00:01:57 v #1932 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 3, 628           │
00:01:57 v #1933 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 2, 597           │
00:01:57 v #1934 > > │ struct ([1; 2; 3; 4...00; ...], 60, 1000)	| US4_0 59	| US4_0 59	| 1, 651           │
00:01:57 v #1935 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 3, 580           │
00:01:57 v #1936 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 1, 620           │
00:01:57 v #1937 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 3, 585           │
00:01:57 v #1938 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 1, 604           │
00:01:57 v #1939 > > │ struct ([1; 2; 3; 4...100; ...], 60, 100)	| US4_0 59	| US4_0 59	| 4, 609           │
00:01:57 v #1940 > > │ ```                                                                          │
00:01:57 v #1941 > > │ 00:00:35 v #52 benchmark.sort_result_list / averages.iter / { i = 3;    │
00:01:57 v #1942 > > │ avg = 622 }                                                                  │
00:01:57 v #1943 > > │ 00:00:35 v #53 benchmark.sort_result_list / averages.iter / { i = 4;    │
00:01:57 v #1944 > > │ avg = 628 }                                                                  │
00:01:57 v #1945 > > │ 00:00:35 v #54 benchmark.sort_result_list / averages.iter / { i = 2;    │
00:01:57 v #1946 > > │ avg = 632 }                                                                  │
00:01:57 v #1947 > > │ 00:00:35 v #55 benchmark.sort_result_list / averages.iter / { i = 1;    │
00:01:57 v #1948 > > │ avg = 639 }                                                                  │
00:01:57 v #1949 > > │ ```                                                                          │
00:01:57 v #1950 > > │                                                                              │
00:01:57 v #1951 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:57 v #1952 > >
00:01:57 v #1953 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:57 v #1954 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:57 v #1955 > > │ ## returnLettersWithOddCountTests                                            │
00:01:57 v #1956 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:57 v #1957 > >
00:01:57 v #1958 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:57 v #1959 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:57 v #1960 > > │ Test: ReturnLettersWithOddCount                                              │
00:01:57 v #1961 > > │                                                                              │
00:01:57 v #1962 > > │ Solution: 1                                                                  │
00:01:57 v #1963 > > │ Test case 1. A. Time: 645L                                                   │
00:01:57 v #1964 > > │                                                                              │
00:01:57 v #1965 > > │ Solution: 2                                                                  │
00:01:57 v #1966 > > │ Test case 1. A. Time: 663L                                                   │
00:01:57 v #1967 > > │                                                                              │
00:01:57 v #1968 > > │ Solution: 3                                                                  │
00:01:57 v #1969 > > │ Test case 1. A. Time: 680L                                                   │
00:01:57 v #1970 > > │                                                                              │
00:01:57 v #1971 > > │ Solution: 9                                                                  │
00:01:57 v #1972 > > │ Test case 1. A. Time: 730L                                                   │
00:01:57 v #1973 > > │                                                                              │
00:01:57 v #1974 > > │ Solution: 10                                                                 │
00:01:57 v #1975 > > │ Test case 1. A. Time: 815L                                                   │
00:01:57 v #1976 > > │                                                                              │
00:01:57 v #1977 > > │ Input   | Expected        | Result          | Best                           │
00:01:57 v #1978 > > │ ---     | ---             | ---             | ---                            │
00:01:57 v #1979 > > │ 1       | a               | a               | (1, 645)                       │
00:01:57 v #1980 > > │ 2       | ba              | ba              | (1, 663)                       │
00:01:57 v #1981 > > │ 3       | aaa             | aaa             | (1, 680)                       │
00:01:57 v #1982 > > │ 9       | aaaaaaaaa       | aaaaaaaaa       | (1, 730)                       │
00:01:57 v #1983 > > │ 10      | baaaaaaaaa      | baaaaaaaaa      | (1, 815)                       │
00:01:57 v #1984 > > │                                                                              │
00:01:57 v #1985 > > │ Averages                                                                     │
00:01:57 v #1986 > > │ Test case 1. Average Time: 706L                                              │
00:01:57 v #1987 > > │                                                                              │
00:01:57 v #1988 > > │ Ranking                                                                      │
00:01:57 v #1989 > > │ Test case 1. Average Time: 706L                                              │
00:01:57 v #1990 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:57 v #1991 > >
00:01:57 v #1992 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:57 v #1993 > > //// test
00:01:57 v #1994 > >
00:01:57 v #1995 > > let solutions = [[
00:01:57 v #1996 > >     "A",
00:01:57 v #1997 > >     fun n ->
00:01:57 v #1998 > >         let mutable _builder = StringBuilder (new string('a', n))
00:01:57 v #1999 > >         if n % 2 = 0 then
00:01:57 v #2000 > >             _builder.[[0]] <- 'b'
00:01:57 v #2001 > >
00:01:57 v #2002 > >         _builder.ToString ()
00:01:57 v #2003 > > ]]
00:01:57 v #2004 > > let testCases = seq {
00:01:57 v #2005 > >     1, "a"
00:01:57 v #2006 > >     2, "ba"
00:01:57 v #2007 > >     3, "aaa"
00:01:57 v #2008 > >     9, "aaaaaaaaa"
00:01:57 v #2009 > >     10, "baaaaaaaaa"
00:01:57 v #2010 > > }
00:01:57 v #2011 > > let rec returnLettersWithOddCountTests =
00:01:57 v #2012 > >     runAll (nameof returnLettersWithOddCountTests) _count solutions testCases
00:01:57 v #2013 > > returnLettersWithOddCountTests
00:01:57 v #2014 > > |> sortResultList
00:01:58 v #2015 > >
00:01:58 v #2016 > > ╭─[ 1.30s - stdout ]───────────────────────────────────────────────────────────╮
00:01:58 v #2017 > > │                                                                              │
00:01:58 v #2018 > > │                                                                              │
00:01:58 v #2019 > > │ Test: returnLettersWithOddCountTests                                         │
00:01:58 v #2020 > > │                                                                              │
00:01:58 v #2021 > > │ Solution: 1                                                                  │
00:01:58 v #2022 > > │ Test case 1. A. Time: 0L                                                     │
00:01:58 v #2023 > > │                                                                              │
00:01:58 v #2024 > > │ Solution: 2                                                                  │
00:01:58 v #2025 > > │ Test case 1. A. Time: 0L                                                     │
00:01:58 v #2026 > > │                                                                              │
00:01:58 v #2027 > > │ Solution: 3                                                                  │
00:01:58 v #2028 > > │ Test case 1. A. Time: 0L                                                     │
00:01:58 v #2029 > > │                                                                              │
00:01:58 v #2030 > > │ Solution: 9                                                                  │
00:01:58 v #2031 > > │ Test case 1. A. Time: 0L                                                     │
00:01:58 v #2032 > > │                                                                              │
00:01:58 v #2033 > > │ Solution: 10                                                                 │
00:01:58 v #2034 > > │ Test case 1. A. Time: 2L                                                     │
00:01:58 v #2035 > > │                                                                              │
00:01:58 v #2036 > > │ Input	| Expected  	| Result    	| Best                                             │
00:01:58 v #2037 > > │ ---  	| ---       	| ---       	| ---                                              │
00:01:58 v #2038 > > │ 1    	| a         	| a         	| (1, 0)                                           │
00:01:58 v #2039 > > │ 2    	| ba        	| ba        	| (1, 0)                                           │
00:01:58 v #2040 > > │ 3    	| aaa       	| aaa       	| (1, 0)                                           │
00:01:58 v #2041 > > │ 9    	| aaaaaaaaa 	| aaaaaaaaa 	| (1, 0)                                           │
00:01:58 v #2042 > > │ 10   	| baaaaaaaaa	| baaaaaaaaa	| (1, 2)                                           │
00:01:58 v #2043 > > │                                                                              │
00:01:58 v #2044 > > │ Average Ranking                                                              │
00:01:58 v #2045 > > │ Test case 1. Average Time: 0L                                                │
00:01:58 v #2046 > > │                                                                              │
00:01:58 v #2047 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 v #2048 > >
00:01:58 v #2049 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:58 v #2050 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:58 v #2051 > > │ ## hasAnyPairCloseToEachotherTests                                           │
00:01:58 v #2052 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 v #2053 > >
00:01:58 v #2054 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:58 v #2055 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:58 v #2056 > > │ Test: HasAnyPairCloseToEachother                                             │
00:01:58 v #2057 > > │                                                                              │
00:01:58 v #2058 > > │ Solution: 0                                                                  │
00:01:58 v #2059 > > │ Test case 1. A. Time: 137L                                                   │
00:01:58 v #2060 > > │                                                                              │
00:01:58 v #2061 > > │ Solution: 1,2                                                                │
00:01:58 v #2062 > > │ Test case 1. A. Time: 186L                                                   │
00:01:58 v #2063 > > │                                                                              │
00:01:58 v #2064 > > │ Solution: 3,5                                                                │
00:01:58 v #2065 > > │ Test case 1. A. Time: 206L                                                   │
00:01:58 v #2066 > > │                                                                              │
00:01:58 v #2067 > > │ Solution: 3,4,6                                                              │
00:01:58 v #2068 > > │ Test case 1. A. Time: 149L                                                   │
00:01:58 v #2069 > > │                                                                              │
00:01:58 v #2070 > > │ Solution: 2,4,6                                                              │
00:01:58 v #2071 > > │ Test case 1. A. Time: 150L                                                   │
00:01:58 v #2072 > > │                                                                              │
00:01:58 v #2073 > > │ Input   | Expected        | Result  | Best                                   │
00:01:58 v #2074 > > │ ---     | ---             | ---     | ---                                    │
00:01:58 v #2075 > > │ 0       | False           | False   | (1, 137)                               │
00:01:58 v #2076 > > │ 1,2     | True            | True    | (1, 186)                               │
00:01:58 v #2077 > > │ 3,5     | False           | False   | (1, 206)                               │
00:01:58 v #2078 > > │ 3,4,6   | True            | True    | (1, 149)                               │
00:01:58 v #2079 > > │ 2,4,6   | False           | False   | (1, 150)                               │
00:01:58 v #2080 > > │                                                                              │
00:01:58 v #2081 > > │ Averages                                                                     │
00:01:58 v #2082 > > │ Test case 1. Average Time: 165L                                              │
00:01:58 v #2083 > > │                                                                              │
00:01:58 v #2084 > > │ Ranking                                                                      │
00:01:58 v #2085 > > │ Test case 1. Average Time: 165L                                              │
00:01:58 v #2086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 v #2087 > >
00:01:58 v #2088 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:58 v #2089 > > //// test
00:01:58 v #2090 > >
00:01:58 v #2091 > > let solutions = [[
00:01:58 v #2092 > >     "A",
00:01:58 v #2093 > >     fun (a: int[[]]) ->
00:01:58 v #2094 > >         let indices = System.Linq.Enumerable.Range(0, a.Length) |>
00:01:58 v #2095 > > System.Linq.Enumerable.ToArray
00:01:58 v #2096 > >         System.Array.Sort (a, indices)
00:01:58 v #2097 > >
00:01:58 v #2098 > >         indices
00:01:58 v #2099 > >         |> Array.take (a.Length - 1)
00:01:58 v #2100 > >         |> Array.exists (fun i -> a.[[i + 1]] - a.[[i]] = 1)
00:01:58 v #2101 > > ]]
00:01:58 v #2102 > > let testCases = seq {
00:01:58 v #2103 > >     [[| 0 |]], false
00:01:58 v #2104 > >     [[| 1; 2 |]], true
00:01:58 v #2105 > >     [[| 3; 5 |]], false
00:01:58 v #2106 > >     [[| 3; 4; 6 |]], true
00:01:58 v #2107 > >     [[| 2; 4; 6 |]], false
00:01:58 v #2108 > > }
00:01:58 v #2109 > > let rec hasAnyPairCloseToEachotherTests =
00:01:58 v #2110 > >     runAll (nameof hasAnyPairCloseToEachotherTests) _count solutions testCases
00:01:58 v #2111 > > hasAnyPairCloseToEachotherTests
00:01:58 v #2112 > > |> sortResultList
00:01:59 v #2113 > >
00:01:59 v #2114 > > ╭─[ 1.12s - stdout ]───────────────────────────────────────────────────────────╮
00:01:59 v #2115 > > │                                                                              │
00:01:59 v #2116 > > │                                                                              │
00:01:59 v #2117 > > │ Test: hasAnyPairCloseToEachotherTests                                        │
00:01:59 v #2118 > > │                                                                              │
00:01:59 v #2119 > > │ Solution: 0                                                                  │
00:01:59 v #2120 > > │ Test case 1. A. Time: 2L                                                     │
00:01:59 v #2121 > > │                                                                              │
00:01:59 v #2122 > > │ Solution: 1,2                                                                │
00:01:59 v #2123 > > │ Test case 1. A. Time: 0L                                                     │
00:01:59 v #2124 > > │                                                                              │
00:01:59 v #2125 > > │ Solution: 3,5                                                                │
00:01:59 v #2126 > > │ Test case 1. A. Time: 0L                                                     │
00:01:59 v #2127 > > │                                                                              │
00:01:59 v #2128 > > │ Solution: 3,4,6                                                              │
00:01:59 v #2129 > > │ Test case 1. A. Time: 0L                                                     │
00:01:59 v #2130 > > │                                                                              │
00:01:59 v #2131 > > │ Solution: 2,4,6                                                              │
00:01:59 v #2132 > > │ Test case 1. A. Time: 0L                                                     │
00:01:59 v #2133 > > │                                                                              │
00:01:59 v #2134 > > │ Input	| Expected	| Result	| Best                                                   │
00:01:59 v #2135 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:01:59 v #2136 > > │ 0    	| False   	| False 	| (1, 2)                                                 │
00:01:59 v #2137 > > │ 1,2  	| True    	| True  	| (1, 0)                                                 │
00:01:59 v #2138 > > │ 3,5  	| False   	| False 	| (1, 0)                                                 │
00:01:59 v #2139 > > │ 3,4,6	| True    	| True  	| (1, 0)                                                 │
00:01:59 v #2140 > > │ 2,4,6	| False   	| False 	| (1, 0)                                                 │
00:01:59 v #2141 > > │                                                                              │
00:01:59 v #2142 > > │ Average Ranking                                                              │
00:01:59 v #2143 > > │ Test case 1. Average Time: 0L                                                │
00:01:59 v #2144 > > │                                                                              │
00:01:59 v #2145 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:00 v #2146 > 00:01:58 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 125147 }
00:02:00 v #2147 > 00:01:58 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:01 v #2148 > 00:01:59 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/perf/Perf.dib.ipynb to html
00:02:01 v #2149 > 00:01:59 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:01 v #2150 > 00:01:59 v #7 !   validate(nb)
00:02:02 v #2151 > 00:02:00 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:02:02 v #2152 > 00:02:00 v #9 !   return _pygments_highlight(
00:02:03 v #2153 > 00:02:01 v #10 ! [NbConvertApp] Writing 458082 bytes to c:\home\git\polyglot\apps\perf\Perf.dib.html
00:02:03 v #2154 > 00:02:01 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 848 }
00:02:03 v #2155 > 00:02:01 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 848 }
00:02:03 v #2156 > 00:02:01 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/perf/Perf.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/perf/Perf.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:04 v #2157 > 00:02:02 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:04 v #2158 > 00:02:02 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:04 v #2159 > 00:02:02 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 126054 }
00:02:04 d #2160 runtime.execute_with_options_async / { exit_code = 0; output_length = 132859 }
00:02:04 d #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Perf.dib --retries 3
00:02:04 v #5 async.run_with_timeout_async / { timeout = 100 }
00:00:00 d #1 writeDibCode / output: Fs / path: Perf.dib
00:00:00 d #2 parseDibCode / output: Fs / file: Perf.dib
In [ ]:
{ pwsh ../apps/dir-tree-html/build.ps1 } | Invoke-Block
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:02 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:02 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:02 v #6 > Server bound to: http://localhost:13805
00:00:02 d #7 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path DirTreeHtml.dib"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path DirTreeHtml.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:02 v #8 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "DirTreeHtml.dib"])) }
00:00:02 v #9 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib", "--output-path", "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib" --output-path "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 v #10 > >
00:00:04 v #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #13 > > │ # DirTreeHtml (Polyglot)                                                     │
00:00:04 v #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 v #15 > >
00:00:08 v #16 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:08 v #17 > > #r
00:00:08 v #18 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:00:08 v #19 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:00:08 v #20 > > #r
00:00:08 v #21 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:00:08 v #22 > > 0/System.Reactive.dll"
00:00:08 v #23 > > #r
00:00:08 v #24 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:00:08 v #25 > > netstandard2.0/System.Reactive.Linq.dll"
00:00:08 v #26 > > #r
00:00:08 v #27 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:00:08 v #28 > > #r
00:00:08 v #29 > > @"../../../../../../../.nuget/packages/falco.markup/1.1.1/lib/netstandard2.0/Fal
00:00:08 v #30 > > co.Markup.dll"
00:00:25 v #31 > >
00:00:25 v #32 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 v #33 > > #if !INTERACTIVE
00:00:25 v #34 > > open Lib
00:00:25 v #35 > > #endif
00:00:25 v #36 > >
00:00:25 v #37 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 v #38 > > open SpiralFileSystem.Operators
00:00:25 v #39 > > open Falco.Markup
00:00:25 v #40 > >
00:00:25 v #41 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 v #42 > > type FileSystemNode =
00:00:25 v #43 > >     | File of string * string * int64
00:00:25 v #44 > >     | Folder of string * string * FileSystemNode list
00:00:25 v #45 > >     | Root of FileSystemNode list
00:00:25 v #46 > >
00:00:25 v #47 > > let rec scanDirectory isRoot (basePath : string) (path : string) =
00:00:25 v #48 > >     let relativePath =
00:00:25 v #49 > >         path
00:00:25 v #50 > >         |> SpiralSm.replace basePath ""
00:00:25 v #51 > >         |> SpiralSm.replace "\\" "/"
00:00:25 v #52 > >         |> SpiralSm.replace "//" "/"
00:00:25 v #53 > >         |> SpiralSm.trim_start [[| '/' |]]
00:00:25 v #54 > >
00:00:25 v #55 > >     let directories =
00:00:25 v #56 > >         path
00:00:25 v #57 > >         |> System.IO.Directory.GetDirectories
00:00:25 v #58 > >         |> Array.toList
00:00:25 v #59 > >         |> List.sort
00:00:25 v #60 > >         |> List.map (scanDirectory false basePath)
00:00:25 v #61 > >     let files =
00:00:25 v #62 > >         path
00:00:25 v #63 > >         |> System.IO.Directory.GetFiles
00:00:25 v #64 > >         |> Array.toList
00:00:25 v #65 > >         |> List.sort
00:00:25 v #66 > >         |> List.map (fun f -> File (System.IO.Path.GetFileName f, relativePath,
00:00:25 v #67 > > System.IO.FileInfo(f).Length))
00:00:25 v #68 > >
00:00:25 v #69 > >     let children = directories @ files
00:00:25 v #70 > >     if isRoot
00:00:25 v #71 > >     then Root children
00:00:25 v #72 > >     else Folder (path |> System.IO.Path.GetFileName, relativePath, children)
00:00:25 v #73 > >
00:00:25 v #74 > > let rec generateHtml fsNode =
00:00:25 v #75 > >     let sizeLabel size =
00:00:25 v #76 > >         match float size with
00:00:25 v #77 > >         | size when size > 1024.0 * 1024.0 -> $"%.2f{size / 1024.0 / 1024.0} MB"
00:00:25 v #78 > >         | size when size > 1024.0 -> $"%.2f{size / 1024.0} KB"
00:00:25 v #79 > >         | size -> $"%.2f{size} B"
00:00:25 v #80 > >     match fsNode with
00:00:25 v #81 > >     | File (fileName, relativePath, size) ->
00:00:25 v #82 > >         Elem.div [[]] [[
00:00:25 v #83 > >             Text.raw "&#128196; "
00:00:25 v #84 > >             Elem.a [[
00:00:25 v #85 > >                 Attr.href $"""{relativePath}{if relativePath = "" then "" else
00:00:25 v #86 > > "/"}{fileName}"""
00:00:25 v #87 > >             ]] [[
00:00:25 v #88 > >                 Text.raw fileName
00:00:25 v #89 > >             ]]
00:00:25 v #90 > >             Elem.span [[]] [[
00:00:25 v #91 > >                 Text.raw $" ({size |> sizeLabel})"
00:00:25 v #92 > >             ]]
00:00:25 v #93 > >         ]]
00:00:25 v #94 > >     | Folder (folderName, relativePath, children) ->
00:00:25 v #95 > >         let size =
00:00:25 v #96 > >             let rec loop children =
00:00:25 v #97 > >                 children
00:00:25 v #98 > >                 |> List.sumBy (function
00:00:25 v #99 > >                     | File (_, _, size) -> size
00:00:25 v #100 > >                     | Folder (_, _, children)
00:00:25 v #101 > >                     | Root children -> loop children
00:00:25 v #102 > >                 )
00:00:25 v #103 > >             loop children
00:00:25 v #104 > >         Elem.details [[
00:00:25 v #105 > >             Attr.open' "true"
00:00:25 v #106 > >         ]] [[
00:00:25 v #107 > >             Elem.summary [[]] [[
00:00:25 v #108 > >                 Text.raw "&#128194; "
00:00:25 v #109 > >                 Elem.a [[
00:00:25 v #110 > >                     Attr.href relativePath
00:00:25 v #111 > >                 ]] [[
00:00:25 v #112 > >                     Text.raw folderName
00:00:25 v #113 > >                 ]]
00:00:25 v #114 > >                 Elem.span [[]] [[
00:00:25 v #115 > >                     Text.raw $" ({size |> sizeLabel})"
00:00:25 v #116 > >                 ]]
00:00:25 v #117 > >             ]]
00:00:25 v #118 > >             Elem.div [[]] [[
00:00:25 v #119 > >                 yield! children |> List.map generateHtml
00:00:25 v #120 > >             ]]
00:00:25 v #121 > >         ]]
00:00:25 v #122 > >     | Root children ->
00:00:25 v #123 > >         Elem.div [[]] [[
00:00:25 v #124 > >             yield! children |> List.map generateHtml
00:00:25 v #125 > >         ]]
00:00:25 v #126 > >
00:00:25 v #127 > > let generateHtmlForFileSystem root =
00:00:25 v #128 > >     $"""<!DOCTYPE html>
00:00:25 v #129 > > <html lang="en">
00:00:25 v #130 > > <head>
00:00:25 v #131 > >   <meta charset="UTF-8">
00:00:25 v #132 > >   <style>
00:00:25 v #133 > > body {{
00:00:25 v #134 > >     background-color: #222;
00:00:25 v #135 > >     color: #ccc;
00:00:25 v #136 > > }}
00:00:25 v #137 > > a {{
00:00:25 v #138 > >   color: #777;
00:00:25 v #139 > >   font-size: 15px;
00:00:25 v #140 > > }}
00:00:25 v #141 > > span {{
00:00:25 v #142 > >   font-size: 11px;
00:00:25 v #143 > > }}
00:00:25 v #144 > > div > div {{
00:00:25 v #145 > >   padding-left: 10px;
00:00:25 v #146 > > }}
00:00:25 v #147 > > details > div {{
00:00:25 v #148 > >   padding-left: 19px;
00:00:25 v #149 > > }}
00:00:25 v #150 > >   </style>
00:00:25 v #151 > > </head>
00:00:25 v #152 > > <body>
00:00:25 v #153 > >   {root |> generateHtml |> renderNode}
00:00:25 v #154 > > </body>
00:00:25 v #155 > > </html>
00:00:25 v #156 > > """
00:00:26 v #157 > >
00:00:26 v #158 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 v #159 > > //// test
00:00:26 v #160 > >
00:00:26 v #161 > > let expected = """<!DOCTYPE html>
00:00:26 v #162 > > <html lang="en">
00:00:26 v #163 > > <head>
00:00:26 v #164 > >   <meta charset="UTF-8">
00:00:26 v #165 > >   <style>
00:00:26 v #166 > > body {
00:00:26 v #167 > >     background-color: #222;
00:00:26 v #168 > >     color: #ccc;
00:00:26 v #169 > > }
00:00:26 v #170 > > a {
00:00:26 v #171 > >   color: #777;
00:00:26 v #172 > >   font-size: 15px;
00:00:26 v #173 > > }
00:00:26 v #174 > > span {
00:00:26 v #175 > >   font-size: 11px;
00:00:26 v #176 > > }
00:00:26 v #177 > > div > div {
00:00:26 v #178 > >   padding-left: 10px;
00:00:26 v #179 > > }
00:00:26 v #180 > > details > div {
00:00:26 v #181 > >   padding-left: 19px;
00:00:26 v #182 > > }
00:00:26 v #183 > >   </style>
00:00:26 v #184 > > </head>
00:00:26 v #185 > > <body>
00:00:26 v #186 > >   <div><details open="true"><summary>&#128194; <a href="_.root">_.root</a><span>
00:00:26 v #187 > > (10.00 B)</span></summary><div><details open="true"><summary>&#128194; <a
00:00:26 v #188 > > href="_.root/3">3</a><span> (6.00 B)</span></summary><div><details
00:00:26 v #189 > > open="true"><summary>&#128194; <a href="_.root/3/2">2</a><span> (3.00
00:00:26 v #190 > > B)</span></summary><div><details open="true"><summary>&#128194; <a
00:00:26 v #191 > > href="_.root/3/2/1">1</a><span> (1.00 B)</span></summary><div><div>&#128196; <a
00:00:26 v #192 > > href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00
00:00:26 v #193 > > B)</span></div></div></details><div>&#128196; <a
00:00:26 v #194 > > href="_.root/3/2/file.txt">file.txt</a><span> (2.00
00:00:26 v #195 > > B)</span></div></div></details><div>&#128196; <a
00:00:26 v #196 > > href="_.root/3/file.txt">file.txt</a><span> (3.00
00:00:26 v #197 > > B)</span></div></div></details><div>&#128196; <a
00:00:26 v #198 > > href="_.root/file.txt">file.txt</a><span> (4.00
00:00:26 v #199 > > B)</span></div></div></details></div>
00:00:26 v #200 > > </body>
00:00:26 v #201 > > </html>
00:00:26 v #202 > > """
00:00:26 v #203 > >
00:00:26 v #204 > > let struct (tempFolder, disposable) = expected |> SpiralCrypto.hash_text |>
00:00:26 v #205 > > SpiralFileSystem.create_temp_dir'
00:00:26 v #206 > > let rec loop d n = async {
00:00:26 v #207 > >     if n >= 0 then
00:00:26 v #208 > >         tempFolder </> d |> System.IO.Directory.CreateDirectory |> ignore
00:00:26 v #209 > >         do!
00:00:26 v #210 > >             n
00:00:26 v #211 > >             |> string
00:00:26 v #212 > >             |> String.replicate (n + 1)
00:00:26 v #213 > >             |> SpiralFileSystem.write_all_text_async (tempFolder </> d </>
00:00:26 v #214 > > $"file.txt")
00:00:26 v #215 > >         do! loop $"{d}/{n}" (n - 1)
00:00:26 v #216 > > }
00:00:26 v #217 > > loop "_.root" 3
00:00:26 v #218 > > |> Async.RunSynchronously
00:00:26 v #219 > >
00:00:26 v #220 > > let html =
00:00:26 v #221 > >     scanDirectory true tempFolder tempFolder
00:00:26 v #222 > >     |> generateHtmlForFileSystem
00:00:26 v #223 > >
00:00:26 v #224 > > html
00:00:26 v #225 > > |> _assertEqual expected
00:00:26 v #226 > >
00:00:26 v #227 > > disposable.Dispose ()
00:00:26 v #228 > >
00:00:26 v #229 > > html |> Microsoft.DotNet.Interactive.Formatting.Html.ToHtmlContent
00:00:26 v #230 > >
00:00:26 v #231 > > ╭─[ 203.56ms - return value ]──────────────────────────────────────────────────╮
00:00:26 v #232 > > │ <!DOCTYPE html>                                                              │
00:00:26 v #233 > > │ <html lang="en">                                                             │
00:00:26 v #234 > > │ <head>                                                                       │
00:00:26 v #235 > > │   <meta charset="UTF-8">                                                     │
00:00:26 v #236 > > │   <style>                                                                    │
00:00:26 v #237 > > │ body {                                                                       │
00:00:26 v #238 > > │     background-color: #222;                                                  │
00:00:26 v #239 > > │     color: #ccc;                                                             │
00:00:26 v #240 > > │ }                                                                            │
00:00:26 v #241 > > │ a {                                                                          │
00:00:26 v #242 > > │   color: #777;                                                               │
00:00:26 v #243 > > │   font-size: 15px;                                                           │
00:00:26 v #244 > > │ }                                                                            │
00:00:26 v #245 > > │ span {                                                                       │
00:00:26 v #246 > > │   font-size: 11px;                                                           │
00:00:26 v #247 > > │ }                                                                            │
00:00:26 v #248 > > │ div > div {                                                                  │
00:00:26 v #249 > > │   padding-left: 10px;                                                        │
00:00:26 v #250 > > │ }                                                                            │
00:00:26 v #251 > > │ details > div {                                                              │
00:00:26 v #252 > > │   padding-left: 19px;                                                        │
00:00:26 v #253 > > │ }                                                                            │
00:00:26 v #254 > > │   </style>                                                                   │
00:00:26 v #255 > > │ </head>                                                                      │
00:00:26 v #256 > > │ <body>                                                                       │
00:00:26 v #257 > > │   <div><details open="true"><summary>&#128194; <a                            │
00:00:26 v #258 > > │ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │
00:00:26 v #259 > > │ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │
00:00:26 v #260 > > │ B)</span></summary><div><details open="true"><summary>&#128194; <a           │
00:00:26 v #261 > > │ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │
00:00:26 v #262 > > │ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │
00:00:26 v #263 > > │ B)</span></summary><div><div>&#128196; <a                                    │
00:00:26 v #264 > > │ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00                        │
00:00:26 v #265 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:26 v #266 > > │ href="_.root/3/2/file.txt">file.txt</a><span> (2.00                          │
00:00:26 v #267 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:26 v #268 > > │ href="_.root/3/file.txt">file.txt</a><span> (3.00                            │
00:00:26 v #269 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:26 v #270 > > │ href="_.root/file.txt">file.txt</a><span> (4.00                              │
00:00:26 v #271 > > │ B)</span></div></div></details></div>                                        │
00:00:26 v #272 > > │ </body>                                                                      │
00:00:26 v #273 > > │ </html>                                                                      │
00:00:26 v #274 > > │                                                                              │
00:00:26 v #275 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #276 > >
00:00:26 v #277 > > ╭─[ 209.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 v #278 > > │ "<!DOCTYPE html>                                                             │
00:00:26 v #279 > > │ <html lang="en">                                                             │
00:00:26 v #280 > > │ <head>                                                                       │
00:00:26 v #281 > > │   <meta charset="UTF-8">                                                     │
00:00:26 v #282 > > │   <style>                                                                    │
00:00:26 v #283 > > │ body {                                                                       │
00:00:26 v #284 > > │     background-color: #222;                                                  │
00:00:26 v #285 > > │     color: #ccc;                                                             │
00:00:26 v #286 > > │ }                                                                            │
00:00:26 v #287 > > │ a {                                                                          │
00:00:26 v #288 > > │   color: #777;                                                               │
00:00:26 v #289 > > │   font-size: 15px;                                                           │
00:00:26 v #290 > > │ }                                                                            │
00:00:26 v #291 > > │ span {                                                                       │
00:00:26 v #292 > > │   font-size: 11px;                                                           │
00:00:26 v #293 > > │ }                                                                            │
00:00:26 v #294 > > │ div > div {                                                                  │
00:00:26 v #295 > > │   padding-left: 10px;                                                        │
00:00:26 v #296 > > │ }                                                                            │
00:00:26 v #297 > > │ details > div {                                                              │
00:00:26 v #298 > > │   padding-left: 19px;                                                        │
00:00:26 v #299 > > │ }                                                                            │
00:00:26 v #300 > > │   </style>                                                                   │
00:00:26 v #301 > > │ </head>                                                                      │
00:00:26 v #302 > > │ <body>                                                                       │
00:00:26 v #303 > > │   <div><details open="true"><summary>&#128194; <a                            │
00:00:26 v #304 > > │ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │
00:00:26 v #305 > > │ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │
00:00:26 v #306 > > │ B)</span></summary><div><details open="true"><summary>&#128194; <a           │
00:00:26 v #307 > > │ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │
00:00:26 v #308 > > │ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │
00:00:26 v #309 > > │ B)</span></summary><div><div>&#128196; <a                                    │
00:00:26 v #310 > > │ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00                        │
00:00:26 v #311 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:26 v #312 > > │ href="_.root/3/2/file.txt">file.txt</a><span> (2.00                          │
00:00:26 v #313 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:26 v #314 > > │ href="_.root/3/file.txt">file.txt</a><span> (3.00                            │
00:00:26 v #315 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:26 v #316 > > │ href="_.root/file.txt">file.txt</a><span> (4.00                              │
00:00:26 v #317 > > │ B)</span></div></div></details></div>                                        │
00:00:26 v #318 > > │ </body>                                                                      │
00:00:26 v #319 > > │ </html>                                                                      │
00:00:26 v #320 > > │ "                                                                            │
00:00:26 v #321 > > │                                                                              │
00:00:26 v #322 > > │                                                                              │
00:00:26 v #323 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #324 > >
00:00:26 v #325 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 v #326 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 v #327 > > │ ## Arguments                                                                 │
00:00:26 v #328 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #329 > >
00:00:26 v #330 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 v #331 > > [[<RequireQualifiedAccess>]]
00:00:26 v #332 > > type Arguments =
00:00:26 v #333 > >     | [[<Argu.ArguAttributes.ExactlyOnce>]] Dir of string
00:00:26 v #334 > >     | [[<Argu.ArguAttributes.ExactlyOnce>]] Html of string
00:00:26 v #335 > >
00:00:26 v #336 > >     interface Argu.IArgParserTemplate with
00:00:26 v #337 > >         member s.Usage =
00:00:26 v #338 > >             match s with
00:00:26 v #339 > >             | Dir _ -> nameof Dir
00:00:26 v #340 > >             | Html _ -> nameof Html
00:00:26 v #341 > >
00:00:26 v #342 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 v #343 > > //// test
00:00:26 v #344 > >
00:00:26 v #345 > > Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
00:00:26 v #346 > >
00:00:26 v #347 > > ╭─[ 111.18ms - return value ]──────────────────────────────────────────────────╮
00:00:26 v #348 > > │ "USAGE: dotnet-repl [--help] --dir <string> --html <string>                  │
00:00:26 v #349 > > │                                                                              │
00:00:26 v #350 > > │ OPTIONS:                                                                     │
00:00:26 v #351 > > │                                                                              │
00:00:26 v #352 > > │     --dir <string>        Dir                                                │
00:00:26 v #353 > > │     --html <string>       Html                                               │
00:00:26 v #354 > > │     --help                display this list of options.                      │
00:00:26 v #355 > > │ "                                                                            │
00:00:26 v #356 > > │                                                                              │
00:00:26 v #357 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #358 > >
00:00:26 v #359 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 v #360 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 v #361 > > │ ## main                                                                      │
00:00:26 v #362 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #363 > >
00:00:26 v #364 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 v #365 > > let main args =
00:00:26 v #366 > >     let argsMap = args |> Runtime.parseArgsMap<Arguments>
00:00:26 v #367 > >
00:00:26 v #368 > >     let dir =
00:00:26 v #369 > >         match argsMap.[[nameof Arguments.Dir]] with
00:00:26 v #370 > >         | [[ Arguments.Dir dir ]] -> Some dir
00:00:26 v #371 > >         | _ -> None
00:00:26 v #372 > >         |> Option.get
00:00:26 v #373 > >
00:00:26 v #374 > >     let htmlPath =
00:00:26 v #375 > >         match argsMap.[[nameof Arguments.Html]] with
00:00:26 v #376 > >         | [[ Arguments.Html html ]] -> Some html
00:00:26 v #377 > >         | _ -> None
00:00:26 v #378 > >         |> Option.get
00:00:26 v #379 > >
00:00:26 v #380 > >     let fileSystem = scanDirectory true dir dir
00:00:26 v #381 > >     let html = generateHtmlForFileSystem fileSystem
00:00:26 v #382 > >
00:00:26 v #383 > >     html |> SpiralFileSystem.write_all_text_async htmlPath
00:00:26 v #384 > >     |> Async.runWithTimeout 30000
00:00:26 v #385 > >     |> function
00:00:26 v #386 > >         | Some () -> 0
00:00:26 v #387 > >         | None -> 1
00:00:26 v #388 > >
00:00:26 v #389 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 v #390 > > //// test
00:00:26 v #391 > >
00:00:26 v #392 > > let args =
00:00:26 v #393 > >     System.Environment.GetEnvironmentVariable "ARGS"
00:00:26 v #394 > >     |> SpiralRuntime.split_args
00:00:26 v #395 > >     |> Result.toArray
00:00:26 v #396 > >     |> Array.collect id
00:00:26 v #397 > >
00:00:26 v #398 > > match args with
00:00:26 v #399 > > | [[||]] -> 0
00:00:26 v #400 > > | args -> if main args = 0 then 0 else failwith "main failed"
00:00:26 v #401 > >
00:00:26 v #402 > > ╭─[ 97.52ms - return value ]───────────────────────────────────────────────────╮
00:00:26 v #403 > > │ <div class="dni-plaintext"><pre>0                                            │
00:00:26 v #404 > > │ </pre></div><style>                                                          │
00:00:26 v #405 > > │ .dni-code-hint {                                                             │
00:00:26 v #406 > > │     font-style: italic;                                                      │
00:00:26 v #407 > > │     overflow: hidden;                                                        │
00:00:26 v #408 > > │     white-space: nowrap;                                                     │
00:00:26 v #409 > > │ }                                                                            │
00:00:26 v #410 > > │ .dni-treeview {                                                              │
00:00:26 v #411 > > │     white-space: nowrap;                                                     │
00:00:26 v #412 > > │ }                                                                            │
00:00:26 v #413 > > │ .dni-treeview td {                                                           │
00:00:26 v #414 > > │     vertical-align: top;                                                     │
00:00:26 v #415 > > │     text-align: start;                                                       │
00:00:26 v #416 > > │ }                                                                            │
00:00:26 v #417 > > │ details.dni-treeview {                                                       │
00:00:26 v #418 > > │     padding-left: 1em;                                                       │
00:00:26 v #419 > > │ }                                                                            │
00:00:26 v #420 > > │ table td {                                                                   │
00:00:26 v #421 > > │     text-align: start;                                                       │
00:00:26 v #422 > > │ }                                                                            │
00:00:26 v #423 > > │ table tr {                                                                   │
00:00:26 v #424 > > │     vertical-align: top;                                                     │
00:00:26 v #425 > > │     margin: 0em 0px;                                                         │
00:00:26 v #426 > > │ }                                                                            │
00:00:26 v #427 > > │ table tr td pre                                                              │
00:00:26 v #428 > > │ {                                                                            │
00:00:26 v #429 > > │     vertical-align: top !important;                                          │
00:00:26 v #430 > > │     margin: 0em 0px !important;                                              │
00:00:26 v #431 > > │ }                                                                            │
00:00:26 v #432 > > │ table th {                                                                   │
00:00:26 v #433 > > │     text-align: start;                                                       │
00:00:26 v #434 > > │ }                                                                            │
00:00:26 v #435 > > │ </style>                                                                     │
00:00:26 v #436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #437 > 00:00:24 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 19755 }
00:00:26 v #438 > 00:00:24 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:28 v #439 > 00:00:26 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb to html
00:00:28 v #440 > 00:00:26 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:28 v #441 > 00:00:26 v #7 !   validate(nb)
00:00:29 v #442 > 00:00:26 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:29 v #443 > 00:00:26 v #9 !   return _pygments_highlight(
00:00:29 v #444 > 00:00:27 v #10 ! [NbConvertApp] Writing 310059 bytes to c:\home\git\polyglot\apps\dir-tree-html\DirTreeHtml.dib.html
00:00:29 v #445 > 00:00:27 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 880 }
00:00:29 v #446 > 00:00:27 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 880 }
00:00:29 v #447 > 00:00:27 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:29 v #448 > 00:00:27 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:29 v #449 > 00:00:27 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:29 v #450 > 00:00:27 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 20694 }
00:00:29 d #451 runtime.execute_with_options_async / { exit_code = 0; output_length = 24206 }
00:00:29 d #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path DirTreeHtml.dib
00:00:30 v #5 async.run_with_timeout_async / { timeout = 100 }
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = string
#endif

#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
type Ref<'T> = class end
#else
type Ref<'T> = 'T
#endif

#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("mut $0")>]
#endif
type Mut<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
module TraceState = let mutable trace_state = None
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::env::VarError")>]
#endif
type std_env_VarError = class end
type IOsEnviron = abstract environ: x: unit -> obj
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("str")>]
type Str = class end
#else
type Str = string
#endif

type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
    | US0_3
    | US0_4
and Mut0 = {mutable l0 : int64}
and Mut1 = {mutable l0 : (string -> unit)}
and Mut2 = {mutable l0 : bool}
and Mut3 = {mutable l0 : string}
and Mut4 = {mutable l0 : US0}
and [<Struct>] US1 =
    | US1_0 of f0_0 : string
    | US1_1
and [<Struct>] US2 =
    | US2_0 of f0_0 : US0
    | US2_1
and [<Struct>] US3 =
    | US3_0 of f0_0 : int64
    | US3_1
and [<Struct>] US4 =
    | US4_0 of f0_0 : bool
    | US4_1
and [<Struct>] US5 =
    | US5_0 of f0_0 : bool
    | US5_1 of f1_0 : exn
and [<Struct>] US6 =
    | US6_0 of f0_0 : bool
    | US6_1 of f1_0 : exn
and [<Struct>] US7 =
    | US7_0 of f0_0 : int32
    | US7_1
let rec method1 () : string =
    let v0 : string = "TRACE_LEVEL"
    v0
and method3 () : string =
    let v0 : string = ""
    v0
and closure1 () (v0 : string) : US1 =
    US1_0(v0)
and method4 () : (string -> US1) =
    closure1()
and method2 (v0 : string) : string =
    let v1 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v2 : string = "std::env::var(&*$0)"
    let v3 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v2 
    let v4 : string = "true; let _result_map_ = $0.map(|x| { //"
    let v5 : bool = Fable.Core.RustInterop.emitRustExpr v3 v4 
    let v6 : string = "x"
    let v7 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v6 
    let v8 : string = "fable_library_rust::String_::fromString($0)"
    let v9 : string = Fable.Core.RustInterop.emitRustExpr v7 v8 
    let v10 : string = "true; $0 })"
    let v11 : bool = Fable.Core.RustInterop.emitRustExpr v9 v10 
    let v12 : string = "_result_map_"
    let v13 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v12 
    let v14 : string = method3()
    let v15 : string = "$0.unwrap_or($1)"
    let v16 : string = Fable.Core.RustInterop.emitRustExpr struct (v13, v14) v15 
    let _v1 = v16 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v17 : string = "std::env::var(&*$0)"
    let v18 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v17 
    let v19 : string = "true; let _result_map_ = $0.map(|x| { //"
    let v20 : bool = Fable.Core.RustInterop.emitRustExpr v18 v19 
    let v21 : string = "x"
    let v22 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v21 
    let v23 : string = "fable_library_rust::String_::fromString($0)"
    let v24 : string = Fable.Core.RustInterop.emitRustExpr v22 v23 
    let v25 : string = "true; $0 })"
    let v26 : bool = Fable.Core.RustInterop.emitRustExpr v24 v25 
    let v27 : string = "_result_map_"
    let v28 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v27 
    let v29 : string = method3()
    let v30 : string = "$0.unwrap_or($1)"
    let v31 : string = Fable.Core.RustInterop.emitRustExpr struct (v28, v29) v30 
    let _v1 = v31 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v32 : string = "std::env::var(&*$0)"
    let v33 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v32 
    let v34 : string = "true; let _result_map_ = $0.map(|x| { //"
    let v35 : bool = Fable.Core.RustInterop.emitRustExpr v33 v34 
    let v36 : string = "x"
    let v37 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v36 
    let v38 : string = "fable_library_rust::String_::fromString($0)"
    let v39 : string = Fable.Core.RustInterop.emitRustExpr v37 v38 
    let v40 : string = "true; $0 })"
    let v41 : bool = Fable.Core.RustInterop.emitRustExpr v39 v40 
    let v42 : string = "_result_map_"
    let v43 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v42 
    let v44 : string = method3()
    let v45 : string = "$0.unwrap_or($1)"
    let v46 : string = Fable.Core.RustInterop.emitRustExpr struct (v43, v44) v45 
    let _v1 = v46 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v47 : string = "process.env[$0] ?? \"\""
    let v48 : string = Fable.Core.JsInterop.emitJsExpr v0 v47 
    let _v1 = v48 
    #endif
#if FABLE_COMPILER_PYTHON
    let v49 : string = "os"
    let v50 : IOsEnviron = Fable.Core.PyInterop.importAll v49 
    let v51 : string = "v50.environ"
    let v52 : obj = Fable.Core.PyInterop.emitPyExpr () v51 
    let v55 : string = "v52.get($0)"
    let v56 : string = Fable.Core.PyInterop.emitPyExpr v0 v55 
    let mutable _v56 = None
    #if !FABLE_COMPILER && !WASM && !CONTRACT
    let v59 : (string -> string option) = Option.ofObj
    let v60 : string option = v59 v56
    v60 
    #else
    Some v56 
    #endif
    |> fun x -> _v56 <- Some x
    let v61 : string option = match _v56 with Some x -> x | None -> failwith "optionm'.of_obj / _v56=None"
    let v64 : (string -> US1) = method4()
    let v65 : US1 option = v61 |> Option.map v64 
    let v76 : US1 = US1_1
    let v77 : US1 = v65 |> Option.defaultValue v76 
    let v84 : string =
        match v77 with
        | US1_1 -> (* None *)
            let v82 : string = ""
            v82
        | US1_0(v81) -> (* Some *)
            v81
    let _v1 = v84 
    #endif
#else
    let v85 : (string -> string) = System.Environment.GetEnvironmentVariable
    let v86 : string = v85 v0
    let mutable _v86 = None
    #if !FABLE_COMPILER && !WASM && !CONTRACT
    let v87 : (string -> string option) = Option.ofObj
    let v88 : string option = v87 v86
    v88 
    #else
    Some v86 
    #endif
    |> fun x -> _v86 <- Some x
    let v89 : string option = match _v86 with Some x -> x | None -> failwith "optionm'.of_obj / _v86=None"
    let v92 : (string -> US1) = method4()
    let v93 : US1 option = v89 |> Option.map v92 
    let v104 : US1 = US1_1
    let v105 : US1 = v93 |> Option.defaultValue v104 
    let v112 : string =
        match v105 with
        | US1_1 -> (* None *)
            let v110 : string = ""
            v110
        | US1_0(v109) -> (* Some *)
            v109
    let _v1 = v112 
    #endif
    let v113 : string = _v1 
    v113
and method5 () : string =
    let v0 : string = "AUTOMATION"
    v0
and closure2 () (v0 : string) : unit =
    ()
and method0 (v0 : US0) : struct (Mut0 * Mut1 * Mut2 * Mut3 * Mut4 * int64 option) =
    let v1 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v2 : string = method1()
    let v3 : string = method2(v2)
    
    
    
    
    
    let v4 : bool = "Verbose" = v3
    let v8 : US2 =
        if v4 then
            let v5 : US0 = US0_0
            US2_0(v5)
        else
            US2_1
    let v49 : US2 =
        match v8 with
        | US2_1 -> (* None *)
            let v11 : bool = "Debug" = v3
            let v15 : US2 =
                if v11 then
                    let v12 : US0 = US0_1
                    US2_0(v12)
                else
                    US2_1
            match v15 with
            | US2_1 -> (* None *)
                let v18 : bool = "Info" = v3
                let v22 : US2 =
                    if v18 then
                        let v19 : US0 = US0_2
                        US2_0(v19)
                    else
                        US2_1
                match v22 with
                | US2_1 -> (* None *)
                    let v25 : bool = "Warning" = v3
                    let v29 : US2 =
                        if v25 then
                            let v26 : US0 = US0_3
                            US2_0(v26)
                        else
                            US2_1
                    match v29 with
                    | US2_1 -> (* None *)
                        let v32 : bool = "Critical" = v3
                        let v36 : US2 =
                            if v32 then
                                let v33 : US0 = US0_4
                                US2_0(v33)
                            else
                                US2_1
                        match v36 with
                        | US2_1 -> (* None *)
                            US2_1
                        | US2_0(v37) -> (* Some *)
                            US2_0(v37)
                    | US2_0(v30) -> (* Some *)
                        US2_0(v30)
                | US2_0(v23) -> (* Some *)
                    US2_0(v23)
            | US2_0(v16) -> (* Some *)
                US2_0(v16)
        | US2_0(v9) -> (* Some *)
            US2_0(v9)
    let v50 : string = method5()
    let v51 : string = method2(v50)
    let v52 : bool = v51 = "True"
    let v62 : US3 =
        if v52 then
            let v53 : System.DateTime = System.DateTime.Now
            let v56 : (System.DateTime -> int64) = _.Ticks
            let v57 : int64 = v56 v53
            US3_0(v57)
        else
            US3_1
    let _v1 = struct (v49, v62) 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v63 : US2 = US2_1
    let v64 : US3 = US3_1
    let _v1 = struct (v63, v64) 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v65 : string = "AUTOMATION"
    let v66 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v67 : string = "env!(\"" + v65 + "\")"
    let v68 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v67 
    let v69 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v70 : string = "String::from($0)"
    let v71 : std_string_String = Fable.Core.RustInterop.emitRustExpr v68 v70 
    let _v69 = v71 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v72 : string = "String::from($0)"
    let v73 : std_string_String = Fable.Core.RustInterop.emitRustExpr v68 v72 
    let _v69 = v73 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v74 : string = "String::from($0)"
    let v75 : std_string_String = Fable.Core.RustInterop.emitRustExpr v68 v74 
    let _v69 = v75 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v76 : std_string_String = v68 |> unbox<std_string_String>
    let _v69 = v76 
    #endif
#if FABLE_COMPILER_PYTHON
    let v79 : std_string_String = v68 |> unbox<std_string_String>
    let _v69 = v79 
    #endif
#else
    let v82 : std_string_String = v68 |> unbox<std_string_String>
    let _v69 = v82 
    #endif
    let v85 : std_string_String = _v69 
    let v90 : string = "fable_library_rust::String_::fromString($0)"
    let v91 : string = Fable.Core.RustInterop.emitRustExpr v85 v90 
    let _v66 = v91 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v92 : string = "env!(\"" + v65 + "\")"
    let v93 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v92 
    let v94 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v95 : string = "String::from($0)"
    let v96 : std_string_String = Fable.Core.RustInterop.emitRustExpr v93 v95 
    let _v94 = v96 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v97 : string = "String::from($0)"
    let v98 : std_string_String = Fable.Core.RustInterop.emitRustExpr v93 v97 
    let _v94 = v98 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v99 : string = "String::from($0)"
    let v100 : std_string_String = Fable.Core.RustInterop.emitRustExpr v93 v99 
    let _v94 = v100 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v101 : std_string_String = v93 |> unbox<std_string_String>
    let _v94 = v101 
    #endif
#if FABLE_COMPILER_PYTHON
    let v104 : std_string_String = v93 |> unbox<std_string_String>
    let _v94 = v104 
    #endif
#else
    let v107 : std_string_String = v93 |> unbox<std_string_String>
    let _v94 = v107 
    #endif
    let v110 : std_string_String = _v94 
    let v115 : string = "fable_library_rust::String_::fromString($0)"
    let v116 : string = Fable.Core.RustInterop.emitRustExpr v110 v115 
    let _v66 = v116 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v117 : string = "env!(\"" + v65 + "\")"
    let v118 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v117 
    let v119 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v120 : string = "String::from($0)"
    let v121 : std_string_String = Fable.Core.RustInterop.emitRustExpr v118 v120 
    let _v119 = v121 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v122 : string = "String::from($0)"
    let v123 : std_string_String = Fable.Core.RustInterop.emitRustExpr v118 v122 
    let _v119 = v123 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v124 : string = "String::from($0)"
    let v125 : std_string_String = Fable.Core.RustInterop.emitRustExpr v118 v124 
    let _v119 = v125 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v126 : std_string_String = v118 |> unbox<std_string_String>
    let _v119 = v126 
    #endif
#if FABLE_COMPILER_PYTHON
    let v129 : std_string_String = v118 |> unbox<std_string_String>
    let _v119 = v129 
    #endif
#else
    let v132 : std_string_String = v118 |> unbox<std_string_String>
    let _v119 = v132 
    #endif
    let v135 : std_string_String = _v119 
    let v140 : string = "fable_library_rust::String_::fromString($0)"
    let v141 : string = Fable.Core.RustInterop.emitRustExpr v135 v140 
    let _v66 = v141 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v142 : string = null |> unbox<string>
    let _v66 = v142 
    #endif
#if FABLE_COMPILER_PYTHON
    let v145 : string = null |> unbox<string>
    let _v66 = v145 
    #endif
#else
    let v148 : string = null |> unbox<string>
    let _v66 = v148 
    #endif
    let v151 : string = _v66 
    let v156 : string = "True"
    let v157 : bool = v151 <> v156 
    let v166 : US3 =
        if v157 then
            US3_1
        else
            let v161 : string = $"near_sdk::env::block_timestamp()"
            let v162 : uint64 = Fable.Core.RustInterop.emitRustExpr () v161 
            let v163 : (uint64 -> int64) = int64
            let v164 : int64 = v163 v162
            US3_0(v164)
    let v167 : US2 = US2_1
    let _v1 = struct (v167, v166) 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v168 : string = method1()
    let v169 : string = method2(v168)
    
    
    
    
    
    let v170 : bool = "Verbose" = v169
    let v174 : US2 =
        if v170 then
            let v171 : US0 = US0_0
            US2_0(v171)
        else
            US2_1
    let v215 : US2 =
        match v174 with
        | US2_1 -> (* None *)
            let v177 : bool = "Debug" = v169
            let v181 : US2 =
                if v177 then
                    let v178 : US0 = US0_1
                    US2_0(v178)
                else
                    US2_1
            match v181 with
            | US2_1 -> (* None *)
                let v184 : bool = "Info" = v169
                let v188 : US2 =
                    if v184 then
                        let v185 : US0 = US0_2
                        US2_0(v185)
                    else
                        US2_1
                match v188 with
                | US2_1 -> (* None *)
                    let v191 : bool = "Warning" = v169
                    let v195 : US2 =
                        if v191 then
                            let v192 : US0 = US0_3
                            US2_0(v192)
                        else
                            US2_1
                    match v195 with
                    | US2_1 -> (* None *)
                        let v198 : bool = "Critical" = v169
                        let v202 : US2 =
                            if v198 then
                                let v199 : US0 = US0_4
                                US2_0(v199)
                            else
                                US2_1
                        match v202 with
                        | US2_1 -> (* None *)
                            US2_1
                        | US2_0(v203) -> (* Some *)
                            US2_0(v203)
                    | US2_0(v196) -> (* Some *)
                        US2_0(v196)
                | US2_0(v189) -> (* Some *)
                    US2_0(v189)
            | US2_0(v182) -> (* Some *)
                US2_0(v182)
        | US2_0(v175) -> (* Some *)
            US2_0(v175)
    let v216 : string = method5()
    let v217 : string = method2(v216)
    let v218 : bool = v217 = "True"
    let v228 : US3 =
        if v218 then
            let v219 : System.DateTime = System.DateTime.Now
            let v222 : (System.DateTime -> int64) = _.Ticks
            let v223 : int64 = v222 v219
            US3_0(v223)
        else
            US3_1
    let _v1 = struct (v215, v228) 
    #endif
#if FABLE_COMPILER_PYTHON
    let v229 : string = method1()
    let v230 : string = method2(v229)
    
    
    
    
    
    let v231 : bool = "Verbose" = v230
    let v235 : US2 =
        if v231 then
            let v232 : US0 = US0_0
            US2_0(v232)
        else
            US2_1
    let v276 : US2 =
        match v235 with
        | US2_1 -> (* None *)
            let v238 : bool = "Debug" = v230
            let v242 : US2 =
                if v238 then
                    let v239 : US0 = US0_1
                    US2_0(v239)
                else
                    US2_1
            match v242 with
            | US2_1 -> (* None *)
                let v245 : bool = "Info" = v230
                let v249 : US2 =
                    if v245 then
                        let v246 : US0 = US0_2
                        US2_0(v246)
                    else
                        US2_1
                match v249 with
                | US2_1 -> (* None *)
                    let v252 : bool = "Warning" = v230
                    let v256 : US2 =
                        if v252 then
                            let v253 : US0 = US0_3
                            US2_0(v253)
                        else
                            US2_1
                    match v256 with
                    | US2_1 -> (* None *)
                        let v259 : bool = "Critical" = v230
                        let v263 : US2 =
                            if v259 then
                                let v260 : US0 = US0_4
                                US2_0(v260)
                            else
                                US2_1
                        match v263 with
                        | US2_1 -> (* None *)
                            US2_1
                        | US2_0(v264) -> (* Some *)
                            US2_0(v264)
                    | US2_0(v257) -> (* Some *)
                        US2_0(v257)
                | US2_0(v250) -> (* Some *)
                    US2_0(v250)
            | US2_0(v243) -> (* Some *)
                US2_0(v243)
        | US2_0(v236) -> (* Some *)
            US2_0(v236)
    let v277 : string = method5()
    let v278 : string = method2(v277)
    let v279 : bool = v278 = "True"
    let v289 : US3 =
        if v279 then
            let v280 : System.DateTime = System.DateTime.Now
            let v283 : (System.DateTime -> int64) = _.Ticks
            let v284 : int64 = v283 v280
            US3_0(v284)
        else
            US3_1
    let _v1 = struct (v276, v289) 
    #endif
#else
    let v290 : string = method1()
    let v291 : string = method2(v290)
    
    
    
    
    
    let v292 : bool = "Verbose" = v291
    let v296 : US2 =
        if v292 then
            let v293 : US0 = US0_0
            US2_0(v293)
        else
            US2_1
    let v337 : US2 =
        match v296 with
        | US2_1 -> (* None *)
            let v299 : bool = "Debug" = v291
            let v303 : US2 =
                if v299 then
                    let v300 : US0 = US0_1
                    US2_0(v300)
                else
                    US2_1
            match v303 with
            | US2_1 -> (* None *)
                let v306 : bool = "Info" = v291
                let v310 : US2 =
                    if v306 then
                        let v307 : US0 = US0_2
                        US2_0(v307)
                    else
                        US2_1
                match v310 with
                | US2_1 -> (* None *)
                    let v313 : bool = "Warning" = v291
                    let v317 : US2 =
                        if v313 then
                            let v314 : US0 = US0_3
                            US2_0(v314)
                        else
                            US2_1
                    match v317 with
                    | US2_1 -> (* None *)
                        let v320 : bool = "Critical" = v291
                        let v324 : US2 =
                            if v320 then
                                let v321 : US0 = US0_4
                                US2_0(v321)
                            else
                                US2_1
                        match v324 with
                        | US2_1 -> (* None *)
                            US2_1
                        | US2_0(v325) -> (* Some *)
                            US2_0(v325)
                    | US2_0(v318) -> (* Some *)
                        US2_0(v318)
                | US2_0(v311) -> (* Some *)
                    US2_0(v311)
            | US2_0(v304) -> (* Some *)
                US2_0(v304)
        | US2_0(v297) -> (* Some *)
            US2_0(v297)
    let v338 : string = method5()
    let v339 : string = method2(v338)
    let v340 : bool = v339 = "True"
    let v350 : US3 =
        if v340 then
            let v341 : System.DateTime = System.DateTime.Now
            let v344 : (System.DateTime -> int64) = _.Ticks
            let v345 : int64 = v344 v341
            US3_0(v345)
        else
            US3_1
    let _v1 = struct (v337, v350) 
    #endif
    let struct (v351 : US2, v352 : US3) = _v1 
    let v416 : Mut0 = {l0 = 1L} : Mut0
    let v417 : (string -> unit) = closure2()
    let v418 : Mut1 = {l0 = v417} : Mut1
    let v419 : Mut2 = {l0 = true} : Mut2
    let v420 : string = ""
    let v421 : Mut3 = {l0 = v420} : Mut3
    let v424 : US0 =
        match v351 with
        | US2_1 -> (* None *)
            v0
        | US2_0(v422) -> (* Some *)
            v422
    let v425 : Mut4 = {l0 = v424} : Mut4
    let v432 : int64 option =
        match v352 with
        | US3_1 -> (* None *)
            let v430 : int64 option = None
            v430
        | US3_0(v426) -> (* Some *)
            let v427 : int64 option = Some v426 
            v427
    struct (v416, v418, v419, v421, v425, v432)
and closure0 () () : unit =
    let v0 : bool = TraceState.trace_state.IsNone
    if v0 then
        let v1 : US0 = US0_0
        let struct (v2 : Mut0, v3 : Mut1, v4 : Mut2, v5 : Mut3, v6 : Mut4, v7 : int64 option) = method0(v1)
        let v8 : struct (Mut0 * Mut1 * Mut2 * Mut3 * Mut4 * int64 option) option = Some struct (v2, v3, v4, v5, v6, v7) 
        TraceState.trace_state <- v8 
        ()
and method6 (v0 : US0) : bool =
    let v1 : unit = ()
    let v2 : (unit -> unit) = closure0()
    let v3 : unit = (fun () -> v2 (); v1) ()
    let struct (v17 : Mut0, v18 : Mut1, v19 : Mut2, v20 : Mut3, v21 : Mut4, v22 : int64 option) = TraceState.trace_state.Value
    let v35 : US0 = v21.l0
    let v36 : bool = v19.l0
    let v37 : bool = v36 = false
    if v37 then
        false
    else
        let v38 : int32 = [ US0_0, 0; US0_1, 1; US0_2, 2; US0_3, 3; US0_4, 4 ] |> Map |> Map.find v0
        let v39 : int32 = [ US0_0, 0; US0_1, 1; US0_2, 2; US0_3, 3; US0_4, 4 ] |> Map |> Map.find v35
        let v40 : bool = v38 >= v39
        v40
and closure6 () (v0 : int64) : US3 =
    US3_0(v0)
and method8 () : (int64 -> US3) =
    closure6()
and method9 () : string =
    let v0 : string = "hh:mm:ss"
    v0
and method10 () : string =
    let v0 : string = "HH:mm:ss"
    v0
and method7 (v0 : Mut0, v1 : Mut1, v2 : Mut2, v3 : Mut3, v4 : Mut4, v5 : int64 option) : string =
    let v6 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v7 : (int64 -> US3) = method8()
    let v8 : US3 option = v5 |> Option.map v7 
    let v19 : US3 = US3_1
    let v20 : US3 = v8 |> Option.defaultValue v19 
    let v60 : System.DateTime =
        match v20 with
        | US3_1 -> (* None *)
            let v56 : System.DateTime = System.DateTime.Now
            v56
        | US3_0(v24) -> (* Some *)
            let v25 : System.DateTime = System.DateTime.Now
            let v28 : (System.DateTime -> int64) = _.Ticks
            let v29 : int64 = v28 v25
            let v32 : int64 = v29 - v24
            let v33 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v34 : System.TimeSpan = v33 v32
            let v37 : (System.TimeSpan -> int32) = _.Hours
            let v38 : int32 = v37 v34
            let v41 : (System.TimeSpan -> int32) = _.Minutes
            let v42 : int32 = v41 v34
            let v45 : (System.TimeSpan -> int32) = _.Seconds
            let v46 : int32 = v45 v34
            let v49 : (System.TimeSpan -> int32) = _.Milliseconds
            let v50 : int32 = v49 v34
            let v53 : System.DateTime = System.DateTime (1, 1, 1, v38, v42, v46, v50)
            v53
    let v61 : string = method9()
    let v64 : (string -> string) = v60.ToString
    let v65 : string = v64 v61
    let _v6 = v65 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v68 : (int64 -> US3) = method8()
    let v69 : US3 option = v5 |> Option.map v68 
    let v80 : US3 = US3_1
    let v81 : US3 = v69 |> Option.defaultValue v80 
    let v121 : System.DateTime =
        match v81 with
        | US3_1 -> (* None *)
            let v117 : System.DateTime = System.DateTime.Now
            v117
        | US3_0(v85) -> (* Some *)
            let v86 : System.DateTime = System.DateTime.Now
            let v89 : (System.DateTime -> int64) = _.Ticks
            let v90 : int64 = v89 v86
            let v93 : int64 = v90 - v85
            let v94 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v95 : System.TimeSpan = v94 v93
            let v98 : (System.TimeSpan -> int32) = _.Hours
            let v99 : int32 = v98 v95
            let v102 : (System.TimeSpan -> int32) = _.Minutes
            let v103 : int32 = v102 v95
            let v106 : (System.TimeSpan -> int32) = _.Seconds
            let v107 : int32 = v106 v95
            let v110 : (System.TimeSpan -> int32) = _.Milliseconds
            let v111 : int32 = v110 v95
            let v114 : System.DateTime = System.DateTime (1, 1, 1, v99, v103, v107, v111)
            v114
    let v122 : string = method9()
    let v125 : (string -> string) = v121.ToString
    let v126 : string = v125 v122
    let _v6 = v126 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v129 : string = $"near_sdk::env::block_timestamp()"
    let v130 : uint64 = Fable.Core.RustInterop.emitRustExpr () v129 
    let v131 : (int64 -> US3) = method8()
    let v132 : US3 option = v5 |> Option.map v131 
    let v143 : US3 = US3_1
    let v144 : US3 = v132 |> Option.defaultValue v143 
    let v153 : uint64 =
        match v144 with
        | US3_1 -> (* None *)
            v130
        | US3_0(v148) -> (* Some *)
            let v149 : (int64 -> uint64) = uint64
            let v150 : uint64 = v149 v148
            let v151 : uint64 = v130 - v150
            v151
    let v154 : uint64 = v153 / 1000000000UL
    let v155 : uint64 = v154 % 60UL
    let v156 : uint64 = v154 / 60UL
    let v157 : uint64 = v156 % 60UL
    let v158 : uint64 = v154 / 3600UL
    let v159 : uint64 = v158 % 24UL
    let v160 : string = $"format!(\"{{:02}}:{{:02}}:{{:02}}\", $0, $1, $2)"
    let v161 : std_string_String = Fable.Core.RustInterop.emitRustExpr struct (v159, v157, v155) v160 
    let v162 : string = "fable_library_rust::String_::fromString($0)"
    let v163 : string = Fable.Core.RustInterop.emitRustExpr v161 v162 
    let _v6 = v163 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v164 : (int64 -> US3) = method8()
    let v165 : US3 option = v5 |> Option.map v164 
    let v176 : US3 = US3_1
    let v177 : US3 = v165 |> Option.defaultValue v176 
    let v217 : System.DateTime =
        match v177 with
        | US3_1 -> (* None *)
            let v213 : System.DateTime = System.DateTime.Now
            v213
        | US3_0(v181) -> (* Some *)
            let v182 : System.DateTime = System.DateTime.Now
            let v185 : (System.DateTime -> int64) = _.Ticks
            let v186 : int64 = v185 v182
            let v189 : int64 = v186 - v181
            let v190 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v191 : System.TimeSpan = v190 v189
            let v194 : (System.TimeSpan -> int32) = _.Hours
            let v195 : int32 = v194 v191
            let v198 : (System.TimeSpan -> int32) = _.Minutes
            let v199 : int32 = v198 v191
            let v202 : (System.TimeSpan -> int32) = _.Seconds
            let v203 : int32 = v202 v191
            let v206 : (System.TimeSpan -> int32) = _.Milliseconds
            let v207 : int32 = v206 v191
            let v210 : System.DateTime = System.DateTime (1, 1, 1, v195, v199, v203, v207)
            v210
    let v218 : string = method10()
    let v221 : (string -> string) = v217.ToString
    let v222 : string = v221 v218
    let _v6 = v222 
    #endif
#if FABLE_COMPILER_PYTHON
    let v225 : (int64 -> US3) = method8()
    let v226 : US3 option = v5 |> Option.map v225 
    let v237 : US3 = US3_1
    let v238 : US3 = v226 |> Option.defaultValue v237 
    let v278 : System.DateTime =
        match v238 with
        | US3_1 -> (* None *)
            let v274 : System.DateTime = System.DateTime.Now
            v274
        | US3_0(v242) -> (* Some *)
            let v243 : System.DateTime = System.DateTime.Now
            let v246 : (System.DateTime -> int64) = _.Ticks
            let v247 : int64 = v246 v243
            let v250 : int64 = v247 - v242
            let v251 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v252 : System.TimeSpan = v251 v250
            let v255 : (System.TimeSpan -> int32) = _.Hours
            let v256 : int32 = v255 v252
            let v259 : (System.TimeSpan -> int32) = _.Minutes
            let v260 : int32 = v259 v252
            let v263 : (System.TimeSpan -> int32) = _.Seconds
            let v264 : int32 = v263 v252
            let v267 : (System.TimeSpan -> int32) = _.Milliseconds
            let v268 : int32 = v267 v252
            let v271 : System.DateTime = System.DateTime (1, 1, 1, v256, v260, v264, v268)
            v271
    let v279 : string = method10()
    let v282 : (string -> string) = v278.ToString
    let v283 : string = v282 v279
    let _v6 = v283 
    #endif
#else
    let v286 : (int64 -> US3) = method8()
    let v287 : US3 option = v5 |> Option.map v286 
    let v298 : US3 = US3_1
    let v299 : US3 = v287 |> Option.defaultValue v298 
    let v339 : System.DateTime =
        match v299 with
        | US3_1 -> (* None *)
            let v335 : System.DateTime = System.DateTime.Now
            v335
        | US3_0(v303) -> (* Some *)
            let v304 : System.DateTime = System.DateTime.Now
            let v307 : (System.DateTime -> int64) = _.Ticks
            let v308 : int64 = v307 v304
            let v311 : int64 = v308 - v303
            let v312 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v313 : System.TimeSpan = v312 v311
            let v316 : (System.TimeSpan -> int32) = _.Hours
            let v317 : int32 = v316 v313
            let v320 : (System.TimeSpan -> int32) = _.Minutes
            let v321 : int32 = v320 v313
            let v324 : (System.TimeSpan -> int32) = _.Seconds
            let v325 : int32 = v324 v313
            let v328 : (System.TimeSpan -> int32) = _.Milliseconds
            let v329 : int32 = v328 v313
            let v332 : System.DateTime = System.DateTime (1, 1, 1, v317, v321, v325, v329)
            v332
    let v340 : string = method10()
    let v343 : (string -> string) = v339.ToString
    let v344 : string = v343 v340
    let _v6 = v344 
    #endif
    let v347 : string = _v6 
    v347
and method13 () : string =
    let v0 : string = ""
    v0
and closure7 (v0 : Mut3, v1 : string) () : unit =
    let v2 : string = v0.l0
    let v3 : string = v2 + v1 
    v0.l0 <- v3
    ()
and method12 (v0 : char) : string =
    let v1 : string = method13()
    let v2 : Mut3 = {l0 = v1} : Mut3
    let v3 : string = $"{v0}"
    let v6 : unit = ()
    let v7 : (unit -> unit) = closure7(v2, v3)
    let v8 : unit = (fun () -> v7 (); v6) ()
    let v11 : string = v2.l0
    v11
and method14 () : string =
    let v0 : string = "\u001b[0m"
    v0
and method11 () : string =
    
    
    
    
    
    let v0 : string = "Verbose"
    let v1 : (unit -> string) = v0.ToLower
    let v2 : string = v1 ()
    let v5 : char = v2.[int 0]
    let v6 : string = method12(v5)
    let v7 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v8 : string = "inline_colorization::color_bright_black"
    let v9 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v8 
    let v10 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v11 : string = "&*$0"
    let v12 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v11 
    let _v10 = v12 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v13 : string = "&*$0"
    let v14 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v13 
    let _v10 = v14 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v15 : string = "&*$0"
    let v16 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v15 
    let _v10 = v16 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v17 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v10 = v17 
    #endif
#if FABLE_COMPILER_PYTHON
    let v20 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v10 = v20 
    #endif
#else
    let v23 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v10 = v23 
    #endif
    let v26 : Ref<Str> = _v10 
    let v31 : string = "inline_colorization::color_reset"
    let v32 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v31 
    let v33 : string = $"format!(\"{{}}{{}}{{}}\", $0, $1, $2)"
    let v34 : std_string_String = Fable.Core.RustInterop.emitRustExpr struct (v9, v26, v32) v33 
    let v35 : string = "fable_library_rust::String_::fromString($0)"
    let v36 : string = Fable.Core.RustInterop.emitRustExpr v34 v35 
    let _v7 = v36 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v37 : string = "inline_colorization::color_bright_black"
    let v38 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v37 
    let v39 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v40 : string = "&*$0"
    let v41 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v40 
    let _v39 = v41 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v42 : string = "&*$0"
    let v43 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v42 
    let _v39 = v43 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v44 : string = "&*$0"
    let v45 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v44 
    let _v39 = v45 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v46 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v39 = v46 
    #endif
#if FABLE_COMPILER_PYTHON
    let v49 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v39 = v49 
    #endif
#else
    let v52 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v39 = v52 
    #endif
    let v55 : Ref<Str> = _v39 
    let v60 : string = "inline_colorization::color_reset"
    let v61 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v60 
    let v62 : string = $"format!(\"{{}}{{}}{{}}\", $0, $1, $2)"
    let v63 : std_string_String = Fable.Core.RustInterop.emitRustExpr struct (v38, v55, v61) v62 
    let v64 : string = "fable_library_rust::String_::fromString($0)"
    let v65 : string = Fable.Core.RustInterop.emitRustExpr v63 v64 
    let _v7 = v65 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v66 : string = "inline_colorization::color_bright_black"
    let v67 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v66 
    let v68 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v69 : string = "&*$0"
    let v70 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v69 
    let _v68 = v70 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v71 : string = "&*$0"
    let v72 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v71 
    let _v68 = v72 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v73 : string = "&*$0"
    let v74 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v73 
    let _v68 = v74 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v75 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v68 = v75 
    #endif
#if FABLE_COMPILER_PYTHON
    let v78 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v68 = v78 
    #endif
#else
    let v81 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v68 = v81 
    #endif
    let v84 : Ref<Str> = _v68 
    let v89 : string = "inline_colorization::color_reset"
    let v90 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v89 
    let v91 : string = $"format!(\"{{}}{{}}{{}}\", $0, $1, $2)"
    let v92 : std_string_String = Fable.Core.RustInterop.emitRustExpr struct (v67, v84, v90) v91 
    let v93 : string = "fable_library_rust::String_::fromString($0)"
    let v94 : string = Fable.Core.RustInterop.emitRustExpr v92 v93 
    let _v7 = v94 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v95 : string = "\u001b[90m"
    let v96 : string = method14()
    let v97 : string = v95 + v6 
    let v98 : string = v97 + v96 
    let _v7 = v98 
    #endif
#if FABLE_COMPILER_PYTHON
    let v99 : string = "\u001b[90m"
    let v100 : string = method14()
    let v101 : string = v99 + v6 
    let v102 : string = v101 + v100 
    let _v7 = v102 
    #endif
#else
    let v103 : string = "\u001b[90m"
    let v104 : string = method14()
    let v105 : string = v103 + v6 
    let v106 : string = v105 + v104 
    let _v7 = v106 
    #endif
    let v107 : string = _v7 
    v107
and method16 (v0 : int32, v1 : string) : string =
    let v2 : string = method13()
    let v3 : Mut3 = {l0 = v2} : Mut3
    let v4 : string = "{ "
    let v5 : string = $"{v4}"
    let v8 : unit = ()
    let v9 : (unit -> unit) = closure7(v3, v5)
    let v10 : unit = (fun () -> v9 (); v8) ()
    let v13 : string = "port"
    let v14 : string = $"{v13}"
    let v17 : unit = ()
    let v18 : (unit -> unit) = closure7(v3, v14)
    let v19 : unit = (fun () -> v18 (); v17) ()
    let v22 : string = " = "
    let v23 : string = $"{v22}"
    let v26 : unit = ()
    let v27 : (unit -> unit) = closure7(v3, v23)
    let v28 : unit = (fun () -> v27 (); v26) ()
    let v31 : string = $"{v0}"
    let v34 : unit = ()
    let v35 : (unit -> unit) = closure7(v3, v31)
    let v36 : unit = (fun () -> v35 (); v34) ()
    let v39 : string = "; "
    let v40 : string = $"{v39}"
    let v43 : unit = ()
    let v44 : (unit -> unit) = closure7(v3, v40)
    let v45 : unit = (fun () -> v44 (); v43) ()
    let v48 : string = "ex"
    let v49 : string = $"{v48}"
    let v52 : unit = ()
    let v53 : (unit -> unit) = closure7(v3, v49)
    let v54 : unit = (fun () -> v53 (); v52) ()
    let v57 : string = $"{v22}"
    let v60 : unit = ()
    let v61 : (unit -> unit) = closure7(v3, v57)
    let v62 : unit = (fun () -> v61 (); v60) ()
    let v65 : string = $"{v1}"
    let v68 : unit = ()
    let v69 : (unit -> unit) = closure7(v3, v65)
    let v70 : unit = (fun () -> v69 (); v68) ()
    let v73 : string = " }"
    let v74 : string = $"{v73}"
    let v77 : unit = ()
    let v78 : (unit -> unit) = closure7(v3, v74)
    let v79 : unit = (fun () -> v78 (); v77) ()
    let v82 : string = v3.l0
    v82
and method17 (v0 : string) : string =
    let v1 : char list = []
    let v2 : (char list -> (char [])) = List.toArray
    let v3 : (char []) = v2 v1
    let v6 : string = v0.TrimStart v3 
    let v24 : char list = []
    let v25 : char list = '/' :: v24 
    let v28 : char list = ' ' :: v25 
    let v31 : (char list -> (char [])) = List.toArray
    let v32 : (char []) = v31 v28
    let v35 : string = v6.TrimEnd v32 
    v35
and method15 (v0 : Mut0, v1 : Mut1, v2 : Mut2, v3 : Mut3, v4 : Mut4, v5 : int64 option, v6 : string, v7 : string, v8 : int32, v9 : string) : string =
    let v10 : string = method16(v8, v9)
    let v11 : int64 = v0.l0
    let v12 : string = "networking.test_port_open"
    let v13 : string = $"{v6} {v7} #{v11} %s{v12} / {v10}"
    method17(v13)
and closure8 (v0 : Mut0) () : unit =
    let v1 : int64 = v0.l0
    let v2 : int64 = v1 + 1L
    v0.l0 <- v2
    ()
and closure10 (v0 : string) () : unit =
    let v1 : (string -> unit) = System.Console.WriteLine
    v1 v0
and closure9 () (v0 : string) : unit =
    let v1 : unit = ()
    let v2 : (unit -> unit) = closure10(v0)
    let v3 : unit = (fun () -> v2 (); v1) ()
    ()
and method18 (v0 : string) : unit =
    let v1 : unit = ()
    let v2 : (unit -> unit) = closure0()
    let v3 : unit = (fun () -> v2 (); v1) ()
    let struct (v17 : Mut0, v18 : Mut1, v19 : Mut2, v20 : Mut3, v21 : Mut4, v22 : int64 option) = TraceState.trace_state.Value
    let v35 : unit = ()
    let v36 : (unit -> unit) = closure8(v17)
    let v37 : unit = (fun () -> v36 (); v35) ()
    let v40 : (string -> unit) = closure9()
    let v41 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v42 : string = @"println!(""{}"", $0)"
    Fable.Core.RustInterop.emitRustExpr v0 v42 
    let _v41 = () 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v43 : string = @"println!(""{}"", $0)"
    Fable.Core.RustInterop.emitRustExpr v0 v43 
    let _v41 = () 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v44 : string = v20.l0
    let v45 : bool = v44 = ""
    let v53 : string =
        if v45 then
            v0
        else
            let v46 : bool = v0 = ""
            if v46 then
                let v47 : string = v20.l0
                v47
            else
                let v48 : string = v20.l0
                let v49 : string = "\n"
                let v50 : string = v48 + v49 
                let v51 : string = v50 + v0 
                v51
    let v54 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v55 : string = "&*$0"
    let v56 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v53 v55 
    let _v54 = v56 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v57 : string = "&*$0"
    let v58 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v53 v57 
    let _v54 = v58 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v59 : string = "&*$0"
    let v60 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v53 v59 
    let _v54 = v60 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v61 : Ref<Str> = v53 |> unbox<Ref<Str>>
    let _v54 = v61 
    #endif
#if FABLE_COMPILER_PYTHON
    let v64 : Ref<Str> = v53 |> unbox<Ref<Str>>
    let _v54 = v64 
    #endif
#else
    let v67 : Ref<Str> = v53 |> unbox<Ref<Str>>
    let _v54 = v67 
    #endif
    let v70 : Ref<Str> = _v54 
    let v75 : string = $"$0.chars()"
    let v76 : Mut<_> = Fable.Core.RustInterop.emitRustExpr v70 v75 
    let v77 : string = "$0"
    let v78 : _ = Fable.Core.RustInterop.emitRustExpr v76 v77 
    let v79 : string = "$0.collect::<Vec<_>>()"
    let v80 : Vec<char> = Fable.Core.RustInterop.emitRustExpr v78 v79 
    let v81 : string = "$0.chunks(15000).map(|x| x.into_iter().map(|x| x.clone()).collect::<Vec<_>>()).collect::<Vec<_>>()"
    let v82 : Vec<Vec<char>> = Fable.Core.RustInterop.emitRustExpr v80 v81 
    let v83 : string = "true; let _vec_map : Vec<_> = $0.into_iter().map(|x| { //"
    let v84 : bool = Fable.Core.RustInterop.emitRustExpr v82 v83 
    let v85 : string = "x"
    let v86 : Vec<char> = Fable.Core.RustInterop.emitRustExpr () v85 
    let v87 : string = "String::from_iter($0)"
    let v88 : std_string_String = Fable.Core.RustInterop.emitRustExpr v86 v87 
    let v89 : string = "true; $0 }).collect::<Vec<_>>()"
    let v90 : bool = Fable.Core.RustInterop.emitRustExpr v88 v89 
    let v91 : string = "_vec_map"
    let v92 : Vec<std_string_String> = Fable.Core.RustInterop.emitRustExpr () v91 
    let v93 : string = "$0.len()"
    let v94 : unativeint = Fable.Core.RustInterop.emitRustExpr v92 v93 
    let v95 : (unativeint -> int32) = int32
    let v96 : int32 = v95 v94
    let v97 : string = ""
    let v98 : bool = v0 <> v97 
    let v102 : bool =
        if v98 then
            let v101 : bool = v96 <= 1
            v101
        else
            false
    if v102 then
        v20.l0 <- v53
        ()
    else
        v20.l0 <- v97
        let v103 : string = "true; $0.into_iter().for_each(|x| { //"
        let v104 : bool = Fable.Core.RustInterop.emitRustExpr v92 v103 
        let v105 : string = "x"
        let v106 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v105 
        let v107 : string = $"true; near_sdk::log!(\"{{}}\", $0)"
        let v108 : bool = Fable.Core.RustInterop.emitRustExpr v106 v107 
        let v109 : string = $"true"
        let v110 : bool = Fable.Core.RustInterop.emitRustExpr () v109 
        let v111 : string = "true; }); //"
        let v112 : bool = Fable.Core.RustInterop.emitRustExpr () v111 
        ()
    let _v41 = () 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    v40 v0
    let _v41 = () 
    #endif
#if FABLE_COMPILER_PYTHON
    v40 v0
    let _v41 = () 
    #endif
#else
    v40 v0
    let _v41 = () 
    #endif
    _v41 
    let v113 : (string -> unit) = v18.l0
    v113 v0
and closure5 (v0 : int32, v1 : string) () : unit =
    let v2 : US0 = US0_0
    let v3 : bool = method6(v2)
    if v3 then
        let v4 : unit = ()
        let v5 : (unit -> unit) = closure0()
        let v6 : unit = (fun () -> v5 (); v4) ()
        let struct (v20 : Mut0, v21 : Mut1, v22 : Mut2, v23 : Mut3, v24 : Mut4, v25 : int64 option) = TraceState.trace_state.Value
        let v38 : string = method7(v20, v21, v22, v23, v24, v25)
        let v39 : string = method11()
        let v40 : string = method15(v20, v21, v22, v23, v24, v25, v38, v39, v0, v1)
        method18(v40)
and closure4 (v0 : string) (v1 : int32) : Async<bool> =
    let v2 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v3 : Async<bool> = null |> unbox<Async<bool>>
    let _v2 = v3 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v6 : Async<bool> = null |> unbox<Async<bool>>
    let _v2 = v6 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v9 : Async<bool> = null |> unbox<Async<bool>>
    let _v2 = v9 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v12 : Async<bool> = null |> unbox<Async<bool>>
    let _v2 = v12 
    #endif
#if FABLE_COMPILER_PYTHON
    let v15 : Async<bool> = null |> unbox<Async<bool>>
    let _v2 = v15 
    #endif
#else
    let v18 : Async<bool> option = None
    let mutable _v18 = v18 
    async {
    let v19 : Async<System.Threading.CancellationToken> = Async.CancellationToken
    let! v19 = v19 
    let v20 : System.Threading.CancellationToken = v19 
    let v21 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
    use v21 = v21 
    let v22 : System.Net.Sockets.TcpClient = v21 
    try
    let v23 : System.Threading.Tasks.ValueTask = v22.ConnectAsync (v0, v1, v20)
    let v24 : (unit -> System.Threading.Tasks.Task) = v23.AsTask
    let v25 : System.Threading.Tasks.Task = v24 ()
    let v26 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v27 : Async<unit> = null |> unbox<Async<unit>>
    let _v26 = v27 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v30 : Async<unit> = null |> unbox<Async<unit>>
    let _v26 = v30 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v33 : Async<unit> = null |> unbox<Async<unit>>
    let _v26 = v33 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v36 : Async<unit> = null |> unbox<Async<unit>>
    let _v26 = v36 
    #endif
#if FABLE_COMPILER_PYTHON
    let v39 : Async<unit> = null |> unbox<Async<unit>>
    let _v26 = v39 
    #endif
#else
    let v42 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
    let v43 : Async<unit> = v42 v25
    let _v26 = v43 
    #endif
    let v44 : Async<unit> = _v26 
    do! v44 
    return true 
    with ex ->
    let v49 : exn = ex
    let v50 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v51 : string = $"%A{v49}"
    let _v50 = v51 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v54 : string = $"%A{v49}"
    let _v50 = v54 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v57 : string = $"%A{v49}"
    let _v50 = v57 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v60 : string = $"%A{v49}"
    let _v50 = v60 
    #endif
#if FABLE_COMPILER_PYTHON
    let v63 : string = $"%A{v49}"
    let _v50 = v63 
    #endif
#else
    let v66 : string = $"{v49.GetType ()}: {v49.Message}"
    let _v50 = v66 
    #endif
    let v67 : string = _v50 
    let v72 : unit = ()
    let v73 : (unit -> unit) = closure5(v1, v67)
    let v74 : unit = (fun () -> v73 (); v72) ()
    return false 
    (*
    let v114 : bool = *)
    }
    |> fun x -> _v18 <- Some x
    let v115 : Async<bool> = match _v18 with Some x -> x | None -> failwith "async.new_async_unit / _v18=None"
    let _v2 = v115 
    #endif
    let v116 : Async<bool> = _v2 
    v116
and closure3 () (v0 : string) : (int32 -> Async<bool>) =
    closure4(v0)
and closure14 () (v0 : bool) : US5 =
    US5_0(v0)
and closure15 () (v0 : exn) : US5 =
    US5_1(v0)
and method20 (v0 : int32) : string =
    let v1 : string = method13()
    let v2 : Mut3 = {l0 = v1} : Mut3
    let v3 : string = "{ "
    let v4 : string = $"{v3}"
    let v7 : unit = ()
    let v8 : (unit -> unit) = closure7(v2, v4)
    let v9 : unit = (fun () -> v8 (); v7) ()
    let v12 : string = "timeout"
    let v13 : string = $"{v12}"
    let v16 : unit = ()
    let v17 : (unit -> unit) = closure7(v2, v13)
    let v18 : unit = (fun () -> v17 (); v16) ()
    let v21 : string = " = "
    let v22 : string = $"{v21}"
    let v25 : unit = ()
    let v26 : (unit -> unit) = closure7(v2, v22)
    let v27 : unit = (fun () -> v26 (); v25) ()
    let v30 : string = $"{v0}"
    let v33 : unit = ()
    let v34 : (unit -> unit) = closure7(v2, v30)
    let v35 : unit = (fun () -> v34 (); v33) ()
    let v38 : string = " }"
    let v39 : string = $"{v38}"
    let v42 : unit = ()
    let v43 : (unit -> unit) = closure7(v2, v39)
    let v44 : unit = (fun () -> v43 (); v42) ()
    let v47 : string = v2.l0
    v47
and method19 (v0 : Mut0, v1 : Mut1, v2 : Mut2, v3 : Mut3, v4 : Mut4, v5 : int64 option, v6 : string, v7 : string, v8 : int32) : string =
    let v9 : string = method20(v8)
    let v10 : int64 = v0.l0
    let v11 : string = "async.run_with_timeout_async"
    let v12 : string = $"{v6} {v7} #{v10} %s{v11} / {v9}"
    method17(v12)
and closure16 (v0 : int32) () : unit =
    let v1 : US0 = US0_0
    let v2 : bool = method6(v1)
    if v2 then
        let v3 : unit = ()
        let v4 : (unit -> unit) = closure0()
        let v5 : unit = (fun () -> v4 (); v3) ()
        let struct (v19 : Mut0, v20 : Mut1, v21 : Mut2, v22 : Mut3, v23 : Mut4, v24 : int64 option) = TraceState.trace_state.Value
        let v37 : string = method7(v19, v20, v21, v22, v23, v24)
        let v38 : string = method11()
        let v39 : string = method19(v19, v20, v21, v22, v23, v24, v37, v38, v0)
        method18(v39)
and method21 () : string =
    
    
    
    
    
    let v0 : string = "Critical"
    let v1 : (unit -> string) = v0.ToLower
    let v2 : string = v1 ()
    let v5 : char = v2.[int 0]
    let v6 : string = method12(v5)
    let v7 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v8 : string = "inline_colorization::color_bright_red"
    let v9 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v8 
    let v10 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v11 : string = "&*$0"
    let v12 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v11 
    let _v10 = v12 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v13 : string = "&*$0"
    let v14 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v13 
    let _v10 = v14 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v15 : string = "&*$0"
    let v16 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v15 
    let _v10 = v16 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v17 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v10 = v17 
    #endif
#if FABLE_COMPILER_PYTHON
    let v20 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v10 = v20 
    #endif
#else
    let v23 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v10 = v23 
    #endif
    let v26 : Ref<Str> = _v10 
    let v31 : string = "inline_colorization::color_reset"
    let v32 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v31 
    let v33 : string = $"format!(\"{{}}{{}}{{}}\", $0, $1, $2)"
    let v34 : std_string_String = Fable.Core.RustInterop.emitRustExpr struct (v9, v26, v32) v33 
    let v35 : string = "fable_library_rust::String_::fromString($0)"
    let v36 : string = Fable.Core.RustInterop.emitRustExpr v34 v35 
    let _v7 = v36 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v37 : string = "inline_colorization::color_bright_red"
    let v38 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v37 
    let v39 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v40 : string = "&*$0"
    let v41 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v40 
    let _v39 = v41 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v42 : string = "&*$0"
    let v43 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v42 
    let _v39 = v43 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v44 : string = "&*$0"
    let v45 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v44 
    let _v39 = v45 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v46 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v39 = v46 
    #endif
#if FABLE_COMPILER_PYTHON
    let v49 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v39 = v49 
    #endif
#else
    let v52 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v39 = v52 
    #endif
    let v55 : Ref<Str> = _v39 
    let v60 : string = "inline_colorization::color_reset"
    let v61 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v60 
    let v62 : string = $"format!(\"{{}}{{}}{{}}\", $0, $1, $2)"
    let v63 : std_string_String = Fable.Core.RustInterop.emitRustExpr struct (v38, v55, v61) v62 
    let v64 : string = "fable_library_rust::String_::fromString($0)"
    let v65 : string = Fable.Core.RustInterop.emitRustExpr v63 v64 
    let _v7 = v65 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v66 : string = "inline_colorization::color_bright_red"
    let v67 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v66 
    let v68 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v69 : string = "&*$0"
    let v70 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v69 
    let _v68 = v70 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v71 : string = "&*$0"
    let v72 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v71 
    let _v68 = v72 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v73 : string = "&*$0"
    let v74 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v6 v73 
    let _v68 = v74 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v75 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v68 = v75 
    #endif
#if FABLE_COMPILER_PYTHON
    let v78 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v68 = v78 
    #endif
#else
    let v81 : Ref<Str> = v6 |> unbox<Ref<Str>>
    let _v68 = v81 
    #endif
    let v84 : Ref<Str> = _v68 
    let v89 : string = "inline_colorization::color_reset"
    let v90 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v89 
    let v91 : string = $"format!(\"{{}}{{}}{{}}\", $0, $1, $2)"
    let v92 : std_string_String = Fable.Core.RustInterop.emitRustExpr struct (v67, v84, v90) v91 
    let v93 : string = "fable_library_rust::String_::fromString($0)"
    let v94 : string = Fable.Core.RustInterop.emitRustExpr v92 v93 
    let _v7 = v94 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v95 : string = "\u001b[91m"
    let v96 : string = method14()
    let v97 : string = v95 + v6 
    let v98 : string = v97 + v96 
    let _v7 = v98 
    #endif
#if FABLE_COMPILER_PYTHON
    let v99 : string = "\u001b[91m"
    let v100 : string = method14()
    let v101 : string = v99 + v6 
    let v102 : string = v101 + v100 
    let _v7 = v102 
    #endif
#else
    let v103 : string = "\u001b[91m"
    let v104 : string = method14()
    let v105 : string = v103 + v6 
    let v106 : string = v105 + v104 
    let _v7 = v106 
    #endif
    let v107 : string = _v7 
    v107
and method23 (v0 : int32, v1 : string) : string =
    let v2 : string = method13()
    let v3 : Mut3 = {l0 = v2} : Mut3
    let v4 : string = "{ "
    let v5 : string = $"{v4}"
    let v8 : unit = ()
    let v9 : (unit -> unit) = closure7(v3, v5)
    let v10 : unit = (fun () -> v9 (); v8) ()
    let v13 : string = "timeout"
    let v14 : string = $"{v13}"
    let v17 : unit = ()
    let v18 : (unit -> unit) = closure7(v3, v14)
    let v19 : unit = (fun () -> v18 (); v17) ()
    let v22 : string = " = "
    let v23 : string = $"{v22}"
    let v26 : unit = ()
    let v27 : (unit -> unit) = closure7(v3, v23)
    let v28 : unit = (fun () -> v27 (); v26) ()
    let v31 : string = $"{v0}"
    let v34 : unit = ()
    let v35 : (unit -> unit) = closure7(v3, v31)
    let v36 : unit = (fun () -> v35 (); v34) ()
    let v39 : string = "; "
    let v40 : string = $"{v39}"
    let v43 : unit = ()
    let v44 : (unit -> unit) = closure7(v3, v40)
    let v45 : unit = (fun () -> v44 (); v43) ()
    let v48 : string = "ex"
    let v49 : string = $"{v48}"
    let v52 : unit = ()
    let v53 : (unit -> unit) = closure7(v3, v49)
    let v54 : unit = (fun () -> v53 (); v52) ()
    let v57 : string = $"{v22}"
    let v60 : unit = ()
    let v61 : (unit -> unit) = closure7(v3, v57)
    let v62 : unit = (fun () -> v61 (); v60) ()
    let v65 : string = $"{v1}"
    let v68 : unit = ()
    let v69 : (unit -> unit) = closure7(v3, v65)
    let v70 : unit = (fun () -> v69 (); v68) ()
    let v73 : string = " }"
    let v74 : string = $"{v73}"
    let v77 : unit = ()
    let v78 : (unit -> unit) = closure7(v3, v74)
    let v79 : unit = (fun () -> v78 (); v77) ()
    let v82 : string = v3.l0
    v82
and method22 (v0 : Mut0, v1 : Mut1, v2 : Mut2, v3 : Mut3, v4 : Mut4, v5 : int64 option, v6 : string, v7 : string, v8 : int32, v9 : string) : string =
    let v10 : string = method23(v8, v9)
    let v11 : int64 = v0.l0
    let v12 : string = "async.run_with_timeout_async**"
    let v13 : string = $"{v6} {v7} #{v11} %s{v12} / {v10}"
    method17(v13)
and closure17 (v0 : int32, v1 : exn) () : unit =
    let v2 : US0 = US0_4
    let v3 : bool = method6(v2)
    if v3 then
        let v4 : unit = ()
        let v5 : (unit -> unit) = closure0()
        let v6 : unit = (fun () -> v5 (); v4) ()
        let struct (v20 : Mut0, v21 : Mut1, v22 : Mut2, v23 : Mut3, v24 : Mut4, v25 : int64 option) = TraceState.trace_state.Value
        let v38 : string = method7(v20, v21, v22, v23, v24, v25)
        let v39 : string = method21()
        let v40 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v41 : string = $"%A{v1}"
        let _v40 = v41 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v44 : string = $"%A{v1}"
        let _v40 = v44 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v47 : string = $"%A{v1}"
        let _v40 = v47 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v50 : string = $"%A{v1}"
        let _v40 = v50 
        #endif
#if FABLE_COMPILER_PYTHON
        let v53 : string = $"%A{v1}"
        let _v40 = v53 
        #endif
#else
        let v56 : string = $"{v1.GetType ()}: {v1.Message}"
        let _v40 = v56 
        #endif
        let v57 : string = _v40 
        let v62 : string = method22(v20, v21, v22, v23, v24, v25, v38, v39, v0, v57)
        method18(v62)
and closure13 (v0 : int32, v1 : string) (v2 : int32) : Async<bool> =
    let v3 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v4 : Async<bool> = null |> unbox<Async<bool>>
    let _v3 = v4 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v7 : Async<bool> = null |> unbox<Async<bool>>
    let _v3 = v7 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v10 : Async<bool> = null |> unbox<Async<bool>>
    let _v3 = v10 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v13 : Async<bool> = null |> unbox<Async<bool>>
    let _v3 = v13 
    #endif
#if FABLE_COMPILER_PYTHON
    let v16 : Async<bool> = null |> unbox<Async<bool>>
    let _v3 = v16 
    #endif
#else
    let v19 : Async<bool> option = None
    let mutable _v19 = v19 
    async {
    let v20 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v21 : Async<bool> = null |> unbox<Async<bool>>
    let _v20 = v21 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v24 : Async<bool> = null |> unbox<Async<bool>>
    let _v20 = v24 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v27 : Async<bool> = null |> unbox<Async<bool>>
    let _v20 = v27 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v30 : Async<bool> = null |> unbox<Async<bool>>
    let _v20 = v30 
    #endif
#if FABLE_COMPILER_PYTHON
    let v33 : Async<bool> = null |> unbox<Async<bool>>
    let _v20 = v33 
    #endif
#else
    let v36 : Async<bool> option = None
    let mutable _v36 = v36 
    async {
    let v37 : Async<System.Threading.CancellationToken> = Async.CancellationToken
    let! v37 = v37 
    let v38 : System.Threading.CancellationToken = v37 
    let v39 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
    use v39 = v39 
    let v40 : System.Net.Sockets.TcpClient = v39 
    try
    let v41 : System.Threading.Tasks.ValueTask = v40.ConnectAsync (v1, v2, v38)
    let v42 : (unit -> System.Threading.Tasks.Task) = v41.AsTask
    let v43 : System.Threading.Tasks.Task = v42 ()
    let v44 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v45 : Async<unit> = null |> unbox<Async<unit>>
    let _v44 = v45 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v48 : Async<unit> = null |> unbox<Async<unit>>
    let _v44 = v48 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v51 : Async<unit> = null |> unbox<Async<unit>>
    let _v44 = v51 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v54 : Async<unit> = null |> unbox<Async<unit>>
    let _v44 = v54 
    #endif
#if FABLE_COMPILER_PYTHON
    let v57 : Async<unit> = null |> unbox<Async<unit>>
    let _v44 = v57 
    #endif
#else
    let v60 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
    let v61 : Async<unit> = v60 v43
    let _v44 = v61 
    #endif
    let v62 : Async<unit> = _v44 
    do! v62 
    return true 
    with ex ->
    let v67 : exn = ex
    let v68 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v69 : string = $"%A{v67}"
    let _v68 = v69 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v72 : string = $"%A{v67}"
    let _v68 = v72 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v75 : string = $"%A{v67}"
    let _v68 = v75 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v78 : string = $"%A{v67}"
    let _v68 = v78 
    #endif
#if FABLE_COMPILER_PYTHON
    let v81 : string = $"%A{v67}"
    let _v68 = v81 
    #endif
#else
    let v84 : string = $"{v67.GetType ()}: {v67.Message}"
    let _v68 = v84 
    #endif
    let v85 : string = _v68 
    let v90 : unit = ()
    let v91 : (unit -> unit) = closure5(v2, v85)
    let v92 : unit = (fun () -> v91 (); v90) ()
    return false 
    (*
    let v132 : bool = *)
    }
    |> fun x -> _v36 <- Some x
    let v133 : Async<bool> = match _v36 with Some x -> x | None -> failwith "async.new_async_unit / _v36=None"
    let _v20 = v133 
    #endif
    let v134 : Async<bool> = _v20 
    let v139 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v140 : Async<US4> = null |> unbox<Async<US4>>
    let _v139 = v140 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v143 : Async<US4> = null |> unbox<Async<US4>>
    let _v139 = v143 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v146 : Async<US4> = null |> unbox<Async<US4>>
    let _v139 = v146 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v149 : Async<US4> = null |> unbox<Async<US4>>
    let _v139 = v149 
    #endif
#if FABLE_COMPILER_PYTHON
    let v152 : Async<US4> = null |> unbox<Async<US4>>
    let _v139 = v152 
    #endif
#else
    let v155 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v156 : Async<US4> = null |> unbox<Async<US4>>
    let _v155 = v156 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v159 : Async<US4> = null |> unbox<Async<US4>>
    let _v155 = v159 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v162 : Async<US4> = null |> unbox<Async<US4>>
    let _v155 = v162 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v165 : Async<US4> = null |> unbox<Async<US4>>
    let _v155 = v165 
    #endif
#if FABLE_COMPILER_PYTHON
    let v168 : Async<US4> = null |> unbox<Async<US4>>
    let _v155 = v168 
    #endif
#else
    let v171 : Async<US4> option = None
    let mutable _v171 = v171 
    async {
    let v172 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v173 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    let _v172 = v173 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v176 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    let _v172 = v176 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v179 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    let _v172 = v179 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v182 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    let _v172 = v182 
    #endif
#if FABLE_COMPILER_PYTHON
    let v185 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    let _v172 = v185 
    #endif
#else
    let v188 : Async<Async<bool>> = Async.StartChild (v134, v0)
    let _v172 = v188 
    #endif
    let v189 : Async<Async<bool>> = _v172 
    let! v189 = v189 
    let v194 : Async<bool> = v189 
    let v195 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v196 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    let _v195 = v196 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v199 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    let _v195 = v199 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v202 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    let _v195 = v202 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v205 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    let _v195 = v205 
    #endif
#if FABLE_COMPILER_PYTHON
    let v208 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    let _v195 = v208 
    #endif
#else
    let v211 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
    let v212 : Async<Choice<bool, exn>> = v211 v194
    let _v195 = v212 
    #endif
    let v213 : Async<Choice<bool, exn>> = _v195 
    let v218 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v219 : Async<US5> = null |> unbox<Async<US5>>
    let _v218 = v219 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v222 : Async<US5> = null |> unbox<Async<US5>>
    let _v218 = v222 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v225 : Async<US5> = null |> unbox<Async<US5>>
    let _v218 = v225 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v228 : Async<US5> = null |> unbox<Async<US5>>
    let _v218 = v228 
    #endif
#if FABLE_COMPILER_PYTHON
    let v231 : Async<US5> = null |> unbox<Async<US5>>
    let _v218 = v231 
    #endif
#else
    let v234 : Async<US5> option = None
    let mutable _v234 = v234 
    async {
    let! v213 = v213 
    let v235 : Choice<bool, exn> = v213 
    let v236 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v237 : US5 = null |> unbox<US5>
    let _v236 = v237 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v240 : US5 = null |> unbox<US5>
    let _v236 = v240 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v243 : US5 = null |> unbox<US5>
    let _v236 = v243 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v246 : US5 = null |> unbox<US5>
    let _v236 = v246 
    #endif
#if FABLE_COMPILER_PYTHON
    let v249 : US5 = null |> unbox<US5>
    let _v236 = v249 
    #endif
#else
    let v252 : (bool -> US5) = closure14()
    let v253 : (exn -> US5) = closure15()
    let v254 : US5 = match v235 with Choice1Of2 x -> v252 x | Choice2Of2 x -> v253 x
    let _v236 = v254 
    #endif
    let v255 : US5 = _v236 
    return v255 
    }
    |> fun x -> _v234 <- Some x
    let v260 : Async<US5> = match _v234 with Some x -> x | None -> failwith "async.new_async_unit / _v234=None"
    let _v218 = v260 
    #endif
    let v261 : Async<US5> = _v218 
    let v266 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v267 : Async<US6> = null |> unbox<Async<US6>>
    let _v266 = v267 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v270 : Async<US6> = null |> unbox<Async<US6>>
    let _v266 = v270 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v273 : Async<US6> = null |> unbox<Async<US6>>
    let _v266 = v273 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v276 : Async<US6> = null |> unbox<Async<US6>>
    let _v266 = v276 
    #endif
#if FABLE_COMPILER_PYTHON
    let v279 : Async<US6> = null |> unbox<Async<US6>>
    let _v266 = v279 
    #endif
#else
    let v282 : Async<US6> option = None
    let mutable _v282 = v282 
    async {
    let! v261 = v261 
    let v283 : US5 = v261 
    let v289 : US6 =
        match v283 with
        | US5_0(v284) -> (* C1of2 *)
            US6_0(v284)
        | US5_1(v286) -> (* C2of2 *)
            US6_1(v286)
    return v289 
    }
    |> fun x -> _v282 <- Some x
    let v290 : Async<US6> = match _v282 with Some x -> x | None -> failwith "async.new_async_unit / _v282=None"
    let _v266 = v290 
    #endif
    let v291 : Async<US6> = _v266 
    let v296 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v297 : Async<US4> = null |> unbox<Async<US4>>
    let _v296 = v297 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v300 : Async<US4> = null |> unbox<Async<US4>>
    let _v296 = v300 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v303 : Async<US4> = null |> unbox<Async<US4>>
    let _v296 = v303 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v306 : Async<US4> = null |> unbox<Async<US4>>
    let _v296 = v306 
    #endif
#if FABLE_COMPILER_PYTHON
    let v309 : Async<US4> = null |> unbox<Async<US4>>
    let _v296 = v309 
    #endif
#else
    let v312 : Async<US4> option = None
    let mutable _v312 = v312 
    async {
    let! v291 = v291 
    let v313 : US6 = v291 
    let v434 : US4 =
        match v313 with
        | US6_1(v316) -> (* Error *)
            let v317 : string = $"%A{v316}"
            let v320 : string = "System.TimeoutException"
            let v321 : bool = v317.Contains v320 
            if v321 then
                let v324 : unit = ()
                let v325 : (unit -> unit) = closure16(v0)
                let v326 : unit = (fun () -> v325 (); v324) ()
                US4_1
            else
                let v367 : unit = ()
                let v368 : (unit -> unit) = closure17(v0, v316)
                let v369 : unit = (fun () -> v368 (); v367) ()
                US4_1
        | US6_0(v314) -> (* Ok *)
            US4_0(v314)
    return v434 
    }
    |> fun x -> _v312 <- Some x
    let v435 : Async<US4> = match _v312 with Some x -> x | None -> failwith "async.new_async_unit / _v312=None"
    let _v296 = v435 
    #endif
    let v436 : Async<US4> = _v296 
    return! v436 
    }
    |> fun x -> _v171 <- Some x
    let v441 : Async<US4> = match _v171 with Some x -> x | None -> failwith "async.new_async_unit / _v171=None"
    let _v155 = v441 
    #endif
    let v442 : Async<US4> = _v155 
    let _v139 = v442 
    #endif
    let v447 : Async<US4> = _v139 
    let! v447 = v447 
    let v452 : US4 = v447 
    let v455 : bool =
        match v452 with
        | US4_1 -> (* None *)
            false
        | US4_0(v453) -> (* Some *)
            v453
    return v455 
    }
    |> fun x -> _v19 <- Some x
    let v456 : Async<bool> = match _v19 with Some x -> x | None -> failwith "async.new_async_unit / _v19=None"
    let _v3 = v456 
    #endif
    let v457 : Async<bool> = _v3 
    v457
and closure12 (v0 : int32) (v1 : string) : (int32 -> Async<bool>) =
    closure13(v0, v1)
and closure11 () (v0 : int32) : (string -> (int32 -> Async<bool>)) =
    closure12(v0)
and closure22 () (v0 : int32) : US7 =
    US7_0(v0)
and method25 () : (int32 -> US7) =
    closure22()
and method27 (v0 : int32, v1 : int64, v2 : int32 option, v3 : bool) : string =
    let v4 : string = method13()
    let v5 : Mut3 = {l0 = v4} : Mut3
    let v6 : string = "{ "
    let v7 : string = $"{v6}"
    let v10 : unit = ()
    let v11 : (unit -> unit) = closure7(v5, v7)
    let v12 : unit = (fun () -> v11 (); v10) ()
    let v15 : string = "port"
    let v16 : string = $"{v15}"
    let v19 : unit = ()
    let v20 : (unit -> unit) = closure7(v5, v16)
    let v21 : unit = (fun () -> v20 (); v19) ()
    let v24 : string = " = "
    let v25 : string = $"{v24}"
    let v28 : unit = ()
    let v29 : (unit -> unit) = closure7(v5, v25)
    let v30 : unit = (fun () -> v29 (); v28) ()
    let v33 : string = $"{v0}"
    let v36 : unit = ()
    let v37 : (unit -> unit) = closure7(v5, v33)
    let v38 : unit = (fun () -> v37 (); v36) ()
    let v41 : string = "; "
    let v42 : string = $"{v41}"
    let v45 : unit = ()
    let v46 : (unit -> unit) = closure7(v5, v42)
    let v47 : unit = (fun () -> v46 (); v45) ()
    let v50 : string = "retry"
    let v51 : string = $"{v50}"
    let v54 : unit = ()
    let v55 : (unit -> unit) = closure7(v5, v51)
    let v56 : unit = (fun () -> v55 (); v54) ()
    let v59 : string = $"{v24}"
    let v62 : unit = ()
    let v63 : (unit -> unit) = closure7(v5, v59)
    let v64 : unit = (fun () -> v63 (); v62) ()
    let v67 : string = $"{v1}"
    let v70 : unit = ()
    let v71 : (unit -> unit) = closure7(v5, v67)
    let v72 : unit = (fun () -> v71 (); v70) ()
    let v75 : string = $"{v41}"
    let v78 : unit = ()
    let v79 : (unit -> unit) = closure7(v5, v75)
    let v80 : unit = (fun () -> v79 (); v78) ()
    let v83 : string = "timeout"
    let v84 : string = $"{v83}"
    let v87 : unit = ()
    let v88 : (unit -> unit) = closure7(v5, v84)
    let v89 : unit = (fun () -> v88 (); v87) ()
    let v92 : string = $"{v24}"
    let v95 : unit = ()
    let v96 : (unit -> unit) = closure7(v5, v92)
    let v97 : unit = (fun () -> v96 (); v95) ()
    let v100 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v101 : string = "format!(\"{:#?}\", $0)"
    let v102 : std_string_String = Fable.Core.RustInterop.emitRustExpr v2 v101 
    let v103 : string = "fable_library_rust::String_::fromString($0)"
    let v104 : string = Fable.Core.RustInterop.emitRustExpr v102 v103 
    let _v100 = v104 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v105 : string = "format!(\"{:#?}\", $0)"
    let v106 : std_string_String = Fable.Core.RustInterop.emitRustExpr v2 v105 
    let v107 : string = "fable_library_rust::String_::fromString($0)"
    let v108 : string = Fable.Core.RustInterop.emitRustExpr v106 v107 
    let _v100 = v108 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v109 : string = "format!(\"{:#?}\", $0)"
    let v110 : std_string_String = Fable.Core.RustInterop.emitRustExpr v2 v109 
    let v111 : string = "fable_library_rust::String_::fromString($0)"
    let v112 : string = Fable.Core.RustInterop.emitRustExpr v110 v111 
    let _v100 = v112 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v113 : string = $"%A{v2}"
    let _v100 = v113 
    #endif
#if FABLE_COMPILER_PYTHON
    let v116 : string = $"%A{v2}"
    let _v100 = v116 
    #endif
#else
    let v119 : string = $"%A{v2}"
    let _v100 = v119 
    #endif
    let v122 : string = _v100 
    let v127 : string = $"{v122}"
    let v130 : unit = ()
    let v131 : (unit -> unit) = closure7(v5, v127)
    let v132 : unit = (fun () -> v131 (); v130) ()
    let v135 : string = $"{v41}"
    let v138 : unit = ()
    let v139 : (unit -> unit) = closure7(v5, v135)
    let v140 : unit = (fun () -> v139 (); v138) ()
    let v143 : string = "status"
    let v144 : string = $"{v143}"
    let v147 : unit = ()
    let v148 : (unit -> unit) = closure7(v5, v144)
    let v149 : unit = (fun () -> v148 (); v147) ()
    let v152 : string = $"{v24}"
    let v155 : unit = ()
    let v156 : (unit -> unit) = closure7(v5, v152)
    let v157 : unit = (fun () -> v156 (); v155) ()
    let v162 : string =
        if v3 then
            let v160 : string = "true"
            v160
        else
            let v161 : string = "false"
            v161
    let v163 : string = $"{v162}"
    let v166 : unit = ()
    let v167 : (unit -> unit) = closure7(v5, v163)
    let v168 : unit = (fun () -> v167 (); v166) ()
    let v171 : string = " }"
    let v172 : string = $"{v171}"
    let v175 : unit = ()
    let v176 : (unit -> unit) = closure7(v5, v172)
    let v177 : unit = (fun () -> v176 (); v175) ()
    let v180 : string = v5.l0
    v180
and method26 (v0 : Mut0, v1 : Mut1, v2 : Mut2, v3 : Mut3, v4 : Mut4, v5 : int64 option, v6 : string, v7 : string, v8 : int32, v9 : int64, v10 : int32 option, v11 : bool) : string =
    let v12 : string = method27(v8, v9, v10, v11)
    let v13 : int64 = v0.l0
    let v14 : string = "networking.wait_for_port_access"
    let v15 : string = $"{v6} {v7} #{v13} %s{v14} / {v12}"
    method17(v15)
and closure23 (v0 : int32 option, v1 : bool, v2 : int32, v3 : int64) () : unit =
    let v4 : US0 = US0_0
    let v5 : bool = method6(v4)
    if v5 then
        let v6 : unit = ()
        let v7 : (unit -> unit) = closure0()
        let v8 : unit = (fun () -> v7 (); v6) ()
        let struct (v22 : Mut0, v23 : Mut1, v24 : Mut2, v25 : Mut3, v26 : Mut4, v27 : int64 option) = TraceState.trace_state.Value
        let v40 : string = method7(v22, v23, v24, v25, v26, v27)
        let v41 : string = method11()
        let v42 : string = method26(v22, v23, v24, v25, v26, v27, v40, v41, v2, v3, v0, v1)
        method18(v42)
and method24 (v0 : int32 option, v1 : bool, v2 : string, v3 : int32, v4 : int64) : Async<int64> =
    let v5 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v6 : Async<int64> = null |> unbox<Async<int64>>
    let _v5 = v6 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v9 : Async<int64> = null |> unbox<Async<int64>>
    let _v5 = v9 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v12 : Async<int64> = null |> unbox<Async<int64>>
    let _v5 = v12 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v15 : Async<int64> = null |> unbox<Async<int64>>
    let _v5 = v15 
    #endif
#if FABLE_COMPILER_PYTHON
    let v18 : Async<int64> = null |> unbox<Async<int64>>
    let _v5 = v18 
    #endif
#else
    let v21 : Async<int64> option = None
    let mutable _v21 = v21 
    async {
    let v22 : (int32 -> US7) = method25()
    let v23 : US7 option = v0 |> Option.map v22 
    let v34 : US7 = US7_1
    let v35 : US7 = v23 |> Option.defaultValue v34 
    let v619 : Async<bool> =
        match v35 with
        | US7_1 -> (* None *)
            let v39 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v40 : Async<bool> = null |> unbox<Async<bool>>
            let _v39 = v40 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v43 : Async<bool> = null |> unbox<Async<bool>>
            let _v39 = v43 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v46 : Async<bool> = null |> unbox<Async<bool>>
            let _v39 = v46 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v49 : Async<bool> = null |> unbox<Async<bool>>
            let _v39 = v49 
            #endif
#if FABLE_COMPILER_PYTHON
            let v52 : Async<bool> = null |> unbox<Async<bool>>
            let _v39 = v52 
            #endif
#else
            let v55 : Async<bool> option = None
            let mutable _v55 = v55 
            async {
            let v56 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v56 = v56 
            let v57 : System.Threading.CancellationToken = v56 
            let v58 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v58 = v58 
            let v59 : System.Net.Sockets.TcpClient = v58 
            try
            let v60 : System.Threading.Tasks.ValueTask = v59.ConnectAsync (v2, v3, v57)
            let v61 : (unit -> System.Threading.Tasks.Task) = v60.AsTask
            let v62 : System.Threading.Tasks.Task = v61 ()
            let v63 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v64 : Async<unit> = null |> unbox<Async<unit>>
            let _v63 = v64 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v67 : Async<unit> = null |> unbox<Async<unit>>
            let _v63 = v67 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v70 : Async<unit> = null |> unbox<Async<unit>>
            let _v63 = v70 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v73 : Async<unit> = null |> unbox<Async<unit>>
            let _v63 = v73 
            #endif
#if FABLE_COMPILER_PYTHON
            let v76 : Async<unit> = null |> unbox<Async<unit>>
            let _v63 = v76 
            #endif
#else
            let v79 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v80 : Async<unit> = v79 v62
            let _v63 = v80 
            #endif
            let v81 : Async<unit> = _v63 
            do! v81 
            return true 
            with ex ->
            let v86 : exn = ex
            let v87 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v88 : string = $"%A{v86}"
            let _v87 = v88 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v91 : string = $"%A{v86}"
            let _v87 = v91 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v94 : string = $"%A{v86}"
            let _v87 = v94 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v97 : string = $"%A{v86}"
            let _v87 = v97 
            #endif
#if FABLE_COMPILER_PYTHON
            let v100 : string = $"%A{v86}"
            let _v87 = v100 
            #endif
#else
            let v103 : string = $"{v86.GetType ()}: {v86.Message}"
            let _v87 = v103 
            #endif
            let v104 : string = _v87 
            let v109 : unit = ()
            let v110 : (unit -> unit) = closure5(v3, v104)
            let v111 : unit = (fun () -> v110 (); v109) ()
            return false 
            (*
            let v151 : bool = *)
            }
            |> fun x -> _v55 <- Some x
            let v152 : Async<bool> = match _v55 with Some x -> x | None -> failwith "async.new_async_unit / _v55=None"
            let _v39 = v152 
            #endif
            let v153 : Async<bool> = _v39 
            v153
        | US7_0(v158) -> (* Some *)
            let v159 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v160 : Async<bool> = null |> unbox<Async<bool>>
            let _v159 = v160 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v163 : Async<bool> = null |> unbox<Async<bool>>
            let _v159 = v163 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v166 : Async<bool> = null |> unbox<Async<bool>>
            let _v159 = v166 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v169 : Async<bool> = null |> unbox<Async<bool>>
            let _v159 = v169 
            #endif
#if FABLE_COMPILER_PYTHON
            let v172 : Async<bool> = null |> unbox<Async<bool>>
            let _v159 = v172 
            #endif
#else
            let v175 : Async<bool> option = None
            let mutable _v175 = v175 
            async {
            let v176 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v177 : Async<bool> = null |> unbox<Async<bool>>
            let _v176 = v177 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v180 : Async<bool> = null |> unbox<Async<bool>>
            let _v176 = v180 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v183 : Async<bool> = null |> unbox<Async<bool>>
            let _v176 = v183 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v186 : Async<bool> = null |> unbox<Async<bool>>
            let _v176 = v186 
            #endif
#if FABLE_COMPILER_PYTHON
            let v189 : Async<bool> = null |> unbox<Async<bool>>
            let _v176 = v189 
            #endif
#else
            let v192 : Async<bool> option = None
            let mutable _v192 = v192 
            async {
            let v193 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v193 = v193 
            let v194 : System.Threading.CancellationToken = v193 
            let v195 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v195 = v195 
            let v196 : System.Net.Sockets.TcpClient = v195 
            try
            let v197 : System.Threading.Tasks.ValueTask = v196.ConnectAsync (v2, v3, v194)
            let v198 : (unit -> System.Threading.Tasks.Task) = v197.AsTask
            let v199 : System.Threading.Tasks.Task = v198 ()
            let v200 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v201 : Async<unit> = null |> unbox<Async<unit>>
            let _v200 = v201 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v204 : Async<unit> = null |> unbox<Async<unit>>
            let _v200 = v204 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v207 : Async<unit> = null |> unbox<Async<unit>>
            let _v200 = v207 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v210 : Async<unit> = null |> unbox<Async<unit>>
            let _v200 = v210 
            #endif
#if FABLE_COMPILER_PYTHON
            let v213 : Async<unit> = null |> unbox<Async<unit>>
            let _v200 = v213 
            #endif
#else
            let v216 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v217 : Async<unit> = v216 v199
            let _v200 = v217 
            #endif
            let v218 : Async<unit> = _v200 
            do! v218 
            return true 
            with ex ->
            let v223 : exn = ex
            let v224 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v225 : string = $"%A{v223}"
            let _v224 = v225 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v228 : string = $"%A{v223}"
            let _v224 = v228 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v231 : string = $"%A{v223}"
            let _v224 = v231 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v234 : string = $"%A{v223}"
            let _v224 = v234 
            #endif
#if FABLE_COMPILER_PYTHON
            let v237 : string = $"%A{v223}"
            let _v224 = v237 
            #endif
#else
            let v240 : string = $"{v223.GetType ()}: {v223.Message}"
            let _v224 = v240 
            #endif
            let v241 : string = _v224 
            let v246 : unit = ()
            let v247 : (unit -> unit) = closure5(v3, v241)
            let v248 : unit = (fun () -> v247 (); v246) ()
            return false 
            (*
            let v288 : bool = *)
            }
            |> fun x -> _v192 <- Some x
            let v289 : Async<bool> = match _v192 with Some x -> x | None -> failwith "async.new_async_unit / _v192=None"
            let _v176 = v289 
            #endif
            let v290 : Async<bool> = _v176 
            let v295 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v296 : Async<US4> = null |> unbox<Async<US4>>
            let _v295 = v296 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v299 : Async<US4> = null |> unbox<Async<US4>>
            let _v295 = v299 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v302 : Async<US4> = null |> unbox<Async<US4>>
            let _v295 = v302 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v305 : Async<US4> = null |> unbox<Async<US4>>
            let _v295 = v305 
            #endif
#if FABLE_COMPILER_PYTHON
            let v308 : Async<US4> = null |> unbox<Async<US4>>
            let _v295 = v308 
            #endif
#else
            let v311 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v312 : Async<US4> = null |> unbox<Async<US4>>
            let _v311 = v312 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v315 : Async<US4> = null |> unbox<Async<US4>>
            let _v311 = v315 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v318 : Async<US4> = null |> unbox<Async<US4>>
            let _v311 = v318 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v321 : Async<US4> = null |> unbox<Async<US4>>
            let _v311 = v321 
            #endif
#if FABLE_COMPILER_PYTHON
            let v324 : Async<US4> = null |> unbox<Async<US4>>
            let _v311 = v324 
            #endif
#else
            let v327 : Async<US4> option = None
            let mutable _v327 = v327 
            async {
            let v328 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v329 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v328 = v329 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v332 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v328 = v332 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v335 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v328 = v335 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v338 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v328 = v338 
            #endif
#if FABLE_COMPILER_PYTHON
            let v341 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v328 = v341 
            #endif
#else
            let v344 : Async<Async<bool>> = Async.StartChild (v290, v158)
            let _v328 = v344 
            #endif
            let v345 : Async<Async<bool>> = _v328 
            let! v345 = v345 
            let v350 : Async<bool> = v345 
            let v351 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v352 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v351 = v352 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v355 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v351 = v355 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v358 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v351 = v358 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v361 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v351 = v361 
            #endif
#if FABLE_COMPILER_PYTHON
            let v364 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v351 = v364 
            #endif
#else
            let v367 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
            let v368 : Async<Choice<bool, exn>> = v367 v350
            let _v351 = v368 
            #endif
            let v369 : Async<Choice<bool, exn>> = _v351 
            let v374 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v375 : Async<US5> = null |> unbox<Async<US5>>
            let _v374 = v375 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v378 : Async<US5> = null |> unbox<Async<US5>>
            let _v374 = v378 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v381 : Async<US5> = null |> unbox<Async<US5>>
            let _v374 = v381 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v384 : Async<US5> = null |> unbox<Async<US5>>
            let _v374 = v384 
            #endif
#if FABLE_COMPILER_PYTHON
            let v387 : Async<US5> = null |> unbox<Async<US5>>
            let _v374 = v387 
            #endif
#else
            let v390 : Async<US5> option = None
            let mutable _v390 = v390 
            async {
            let! v369 = v369 
            let v391 : Choice<bool, exn> = v369 
            let v392 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v393 : US5 = null |> unbox<US5>
            let _v392 = v393 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v396 : US5 = null |> unbox<US5>
            let _v392 = v396 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v399 : US5 = null |> unbox<US5>
            let _v392 = v399 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v402 : US5 = null |> unbox<US5>
            let _v392 = v402 
            #endif
#if FABLE_COMPILER_PYTHON
            let v405 : US5 = null |> unbox<US5>
            let _v392 = v405 
            #endif
#else
            let v408 : (bool -> US5) = closure14()
            let v409 : (exn -> US5) = closure15()
            let v410 : US5 = match v391 with Choice1Of2 x -> v408 x | Choice2Of2 x -> v409 x
            let _v392 = v410 
            #endif
            let v411 : US5 = _v392 
            return v411 
            }
            |> fun x -> _v390 <- Some x
            let v416 : Async<US5> = match _v390 with Some x -> x | None -> failwith "async.new_async_unit / _v390=None"
            let _v374 = v416 
            #endif
            let v417 : Async<US5> = _v374 
            let v422 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v423 : Async<US6> = null |> unbox<Async<US6>>
            let _v422 = v423 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v426 : Async<US6> = null |> unbox<Async<US6>>
            let _v422 = v426 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v429 : Async<US6> = null |> unbox<Async<US6>>
            let _v422 = v429 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v432 : Async<US6> = null |> unbox<Async<US6>>
            let _v422 = v432 
            #endif
#if FABLE_COMPILER_PYTHON
            let v435 : Async<US6> = null |> unbox<Async<US6>>
            let _v422 = v435 
            #endif
#else
            let v438 : Async<US6> option = None
            let mutable _v438 = v438 
            async {
            let! v417 = v417 
            let v439 : US5 = v417 
            let v445 : US6 =
                match v439 with
                | US5_0(v440) -> (* C1of2 *)
                    US6_0(v440)
                | US5_1(v442) -> (* C2of2 *)
                    US6_1(v442)
            return v445 
            }
            |> fun x -> _v438 <- Some x
            let v446 : Async<US6> = match _v438 with Some x -> x | None -> failwith "async.new_async_unit / _v438=None"
            let _v422 = v446 
            #endif
            let v447 : Async<US6> = _v422 
            let v452 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v453 : Async<US4> = null |> unbox<Async<US4>>
            let _v452 = v453 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v456 : Async<US4> = null |> unbox<Async<US4>>
            let _v452 = v456 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v459 : Async<US4> = null |> unbox<Async<US4>>
            let _v452 = v459 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v462 : Async<US4> = null |> unbox<Async<US4>>
            let _v452 = v462 
            #endif
#if FABLE_COMPILER_PYTHON
            let v465 : Async<US4> = null |> unbox<Async<US4>>
            let _v452 = v465 
            #endif
#else
            let v468 : Async<US4> option = None
            let mutable _v468 = v468 
            async {
            let! v447 = v447 
            let v469 : US6 = v447 
            let v590 : US4 =
                match v469 with
                | US6_1(v472) -> (* Error *)
                    let v473 : string = $"%A{v472}"
                    let v476 : string = "System.TimeoutException"
                    let v477 : bool = v473.Contains v476 
                    if v477 then
                        let v480 : unit = ()
                        let v481 : (unit -> unit) = closure16(v158)
                        let v482 : unit = (fun () -> v481 (); v480) ()
                        US4_1
                    else
                        let v523 : unit = ()
                        let v524 : (unit -> unit) = closure17(v158, v472)
                        let v525 : unit = (fun () -> v524 (); v523) ()
                        US4_1
                | US6_0(v470) -> (* Ok *)
                    US4_0(v470)
            return v590 
            }
            |> fun x -> _v468 <- Some x
            let v591 : Async<US4> = match _v468 with Some x -> x | None -> failwith "async.new_async_unit / _v468=None"
            let _v452 = v591 
            #endif
            let v592 : Async<US4> = _v452 
            return! v592 
            }
            |> fun x -> _v327 <- Some x
            let v597 : Async<US4> = match _v327 with Some x -> x | None -> failwith "async.new_async_unit / _v327=None"
            let _v311 = v597 
            #endif
            let v598 : Async<US4> = _v311 
            let _v295 = v598 
            #endif
            let v603 : Async<US4> = _v295 
            let! v603 = v603 
            let v608 : US4 = v603 
            let v611 : bool =
                match v608 with
                | US4_1 -> (* None *)
                    false
                | US4_0(v609) -> (* Some *)
                    v609
            return v611 
            }
            |> fun x -> _v175 <- Some x
            let v612 : Async<bool> = match _v175 with Some x -> x | None -> failwith "async.new_async_unit / _v175=None"
            let _v159 = v612 
            #endif
            let v613 : Async<bool> = _v159 
            v613
    let! v619 = v619 
    let v620 : bool = v619 
    let v621 : bool = v620 = v1
    if v621 then
        return v4 
        (*
        ()
    else
        *) else
        let v622 : int64 = v4 % 100L
        let v623 : bool = v622 = 0L
        if v623 then
            let v624 : unit = ()
            let v625 : (unit -> unit) = closure23(v0, v1, v3, v4)
            let v626 : unit = (fun () -> v625 (); v624) ()
            ()
        let v666 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v667 : Async<unit> = null |> unbox<Async<unit>>
        let _v666 = v667 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v670 : Async<unit> = null |> unbox<Async<unit>>
        let _v666 = v670 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v673 : Async<unit> = null |> unbox<Async<unit>>
        let _v666 = v673 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v676 : Async<unit> = null |> unbox<Async<unit>>
        let _v666 = v676 
        #endif
#if FABLE_COMPILER_PYTHON
        let v679 : Async<unit> = null |> unbox<Async<unit>>
        let _v666 = v679 
        #endif
#else
        let v682 : (int32 -> Async<unit>) = Async.Sleep
        let v683 : Async<unit> = v682 10
        let _v666 = v683 
        #endif
        let v684 : Async<unit> = _v666 
        do! v684 
        let v689 : int64 = v4 + 1L
        let v690 : Async<int64> = method24(v0, v1, v2, v3, v689)
        return! v690 
        (*
        ()
    *)
    }
    |> fun x -> _v21 <- Some x
    let v691 : Async<int64> = match _v21 with Some x -> x | None -> failwith "async.new_async_unit / _v21=None"
    let _v5 = v691 
    #endif
    let v692 : Async<int64> = _v5 
    v692
and closure21 (v0 : int32 option, v1 : bool, v2 : string) (v3 : int32) : Async<int64> =
    let v4 : int64 = 1L
    method24(v0, v1, v2, v3, v4)
and closure20 (v0 : int32 option, v1 : bool) (v2 : string) : (int32 -> Async<int64>) =
    closure21(v0, v1, v2)
and closure19 (v0 : int32 option) (v1 : bool) : (string -> (int32 -> Async<int64>)) =
    closure20(v0, v1)
and closure18 () (v0 : int32 option) : (bool -> (string -> (int32 -> Async<int64>))) =
    closure19(v0)
and method28 (v0 : int32 option, v1 : string, v2 : int32) : Async<int32> =
    let v3 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v4 : Async<int32> = null |> unbox<Async<int32>>
    let _v3 = v4 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v7 : Async<int32> = null |> unbox<Async<int32>>
    let _v3 = v7 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v10 : Async<int32> = null |> unbox<Async<int32>>
    let _v3 = v10 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v13 : Async<int32> = null |> unbox<Async<int32>>
    let _v3 = v13 
    #endif
#if FABLE_COMPILER_PYTHON
    let v16 : Async<int32> = null |> unbox<Async<int32>>
    let _v3 = v16 
    #endif
#else
    let v19 : Async<int32> option = None
    let mutable _v19 = v19 
    async {
    let v20 : (int32 -> US7) = method25()
    let v21 : US7 option = v0 |> Option.map v20 
    let v32 : US7 = US7_1
    let v33 : US7 = v21 |> Option.defaultValue v32 
    let v617 : Async<bool> =
        match v33 with
        | US7_1 -> (* None *)
            let v37 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v38 : Async<bool> = null |> unbox<Async<bool>>
            let _v37 = v38 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v41 : Async<bool> = null |> unbox<Async<bool>>
            let _v37 = v41 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v44 : Async<bool> = null |> unbox<Async<bool>>
            let _v37 = v44 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v47 : Async<bool> = null |> unbox<Async<bool>>
            let _v37 = v47 
            #endif
#if FABLE_COMPILER_PYTHON
            let v50 : Async<bool> = null |> unbox<Async<bool>>
            let _v37 = v50 
            #endif
#else
            let v53 : Async<bool> option = None
            let mutable _v53 = v53 
            async {
            let v54 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v54 = v54 
            let v55 : System.Threading.CancellationToken = v54 
            let v56 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v56 = v56 
            let v57 : System.Net.Sockets.TcpClient = v56 
            try
            let v58 : System.Threading.Tasks.ValueTask = v57.ConnectAsync (v1, v2, v55)
            let v59 : (unit -> System.Threading.Tasks.Task) = v58.AsTask
            let v60 : System.Threading.Tasks.Task = v59 ()
            let v61 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v62 : Async<unit> = null |> unbox<Async<unit>>
            let _v61 = v62 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v65 : Async<unit> = null |> unbox<Async<unit>>
            let _v61 = v65 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v68 : Async<unit> = null |> unbox<Async<unit>>
            let _v61 = v68 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v71 : Async<unit> = null |> unbox<Async<unit>>
            let _v61 = v71 
            #endif
#if FABLE_COMPILER_PYTHON
            let v74 : Async<unit> = null |> unbox<Async<unit>>
            let _v61 = v74 
            #endif
#else
            let v77 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v78 : Async<unit> = v77 v60
            let _v61 = v78 
            #endif
            let v79 : Async<unit> = _v61 
            do! v79 
            return true 
            with ex ->
            let v84 : exn = ex
            let v85 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v86 : string = $"%A{v84}"
            let _v85 = v86 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v89 : string = $"%A{v84}"
            let _v85 = v89 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v92 : string = $"%A{v84}"
            let _v85 = v92 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v95 : string = $"%A{v84}"
            let _v85 = v95 
            #endif
#if FABLE_COMPILER_PYTHON
            let v98 : string = $"%A{v84}"
            let _v85 = v98 
            #endif
#else
            let v101 : string = $"{v84.GetType ()}: {v84.Message}"
            let _v85 = v101 
            #endif
            let v102 : string = _v85 
            let v107 : unit = ()
            let v108 : (unit -> unit) = closure5(v2, v102)
            let v109 : unit = (fun () -> v108 (); v107) ()
            return false 
            (*
            let v149 : bool = *)
            }
            |> fun x -> _v53 <- Some x
            let v150 : Async<bool> = match _v53 with Some x -> x | None -> failwith "async.new_async_unit / _v53=None"
            let _v37 = v150 
            #endif
            let v151 : Async<bool> = _v37 
            v151
        | US7_0(v156) -> (* Some *)
            let v157 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v158 : Async<bool> = null |> unbox<Async<bool>>
            let _v157 = v158 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v161 : Async<bool> = null |> unbox<Async<bool>>
            let _v157 = v161 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v164 : Async<bool> = null |> unbox<Async<bool>>
            let _v157 = v164 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v167 : Async<bool> = null |> unbox<Async<bool>>
            let _v157 = v167 
            #endif
#if FABLE_COMPILER_PYTHON
            let v170 : Async<bool> = null |> unbox<Async<bool>>
            let _v157 = v170 
            #endif
#else
            let v173 : Async<bool> option = None
            let mutable _v173 = v173 
            async {
            let v174 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v175 : Async<bool> = null |> unbox<Async<bool>>
            let _v174 = v175 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v178 : Async<bool> = null |> unbox<Async<bool>>
            let _v174 = v178 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v181 : Async<bool> = null |> unbox<Async<bool>>
            let _v174 = v181 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v184 : Async<bool> = null |> unbox<Async<bool>>
            let _v174 = v184 
            #endif
#if FABLE_COMPILER_PYTHON
            let v187 : Async<bool> = null |> unbox<Async<bool>>
            let _v174 = v187 
            #endif
#else
            let v190 : Async<bool> option = None
            let mutable _v190 = v190 
            async {
            let v191 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v191 = v191 
            let v192 : System.Threading.CancellationToken = v191 
            let v193 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v193 = v193 
            let v194 : System.Net.Sockets.TcpClient = v193 
            try
            let v195 : System.Threading.Tasks.ValueTask = v194.ConnectAsync (v1, v2, v192)
            let v196 : (unit -> System.Threading.Tasks.Task) = v195.AsTask
            let v197 : System.Threading.Tasks.Task = v196 ()
            let v198 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v199 : Async<unit> = null |> unbox<Async<unit>>
            let _v198 = v199 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v202 : Async<unit> = null |> unbox<Async<unit>>
            let _v198 = v202 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v205 : Async<unit> = null |> unbox<Async<unit>>
            let _v198 = v205 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v208 : Async<unit> = null |> unbox<Async<unit>>
            let _v198 = v208 
            #endif
#if FABLE_COMPILER_PYTHON
            let v211 : Async<unit> = null |> unbox<Async<unit>>
            let _v198 = v211 
            #endif
#else
            let v214 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v215 : Async<unit> = v214 v197
            let _v198 = v215 
            #endif
            let v216 : Async<unit> = _v198 
            do! v216 
            return true 
            with ex ->
            let v221 : exn = ex
            let v222 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v223 : string = $"%A{v221}"
            let _v222 = v223 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v226 : string = $"%A{v221}"
            let _v222 = v226 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v229 : string = $"%A{v221}"
            let _v222 = v229 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v232 : string = $"%A{v221}"
            let _v222 = v232 
            #endif
#if FABLE_COMPILER_PYTHON
            let v235 : string = $"%A{v221}"
            let _v222 = v235 
            #endif
#else
            let v238 : string = $"{v221.GetType ()}: {v221.Message}"
            let _v222 = v238 
            #endif
            let v239 : string = _v222 
            let v244 : unit = ()
            let v245 : (unit -> unit) = closure5(v2, v239)
            let v246 : unit = (fun () -> v245 (); v244) ()
            return false 
            (*
            let v286 : bool = *)
            }
            |> fun x -> _v190 <- Some x
            let v287 : Async<bool> = match _v190 with Some x -> x | None -> failwith "async.new_async_unit / _v190=None"
            let _v174 = v287 
            #endif
            let v288 : Async<bool> = _v174 
            let v293 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v294 : Async<US4> = null |> unbox<Async<US4>>
            let _v293 = v294 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v297 : Async<US4> = null |> unbox<Async<US4>>
            let _v293 = v297 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v300 : Async<US4> = null |> unbox<Async<US4>>
            let _v293 = v300 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v303 : Async<US4> = null |> unbox<Async<US4>>
            let _v293 = v303 
            #endif
#if FABLE_COMPILER_PYTHON
            let v306 : Async<US4> = null |> unbox<Async<US4>>
            let _v293 = v306 
            #endif
#else
            let v309 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v310 : Async<US4> = null |> unbox<Async<US4>>
            let _v309 = v310 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v313 : Async<US4> = null |> unbox<Async<US4>>
            let _v309 = v313 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v316 : Async<US4> = null |> unbox<Async<US4>>
            let _v309 = v316 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v319 : Async<US4> = null |> unbox<Async<US4>>
            let _v309 = v319 
            #endif
#if FABLE_COMPILER_PYTHON
            let v322 : Async<US4> = null |> unbox<Async<US4>>
            let _v309 = v322 
            #endif
#else
            let v325 : Async<US4> option = None
            let mutable _v325 = v325 
            async {
            let v326 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v327 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v326 = v327 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v330 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v326 = v330 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v333 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v326 = v333 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v336 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v326 = v336 
            #endif
#if FABLE_COMPILER_PYTHON
            let v339 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v326 = v339 
            #endif
#else
            let v342 : Async<Async<bool>> = Async.StartChild (v288, v156)
            let _v326 = v342 
            #endif
            let v343 : Async<Async<bool>> = _v326 
            let! v343 = v343 
            let v348 : Async<bool> = v343 
            let v349 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v350 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v349 = v350 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v353 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v349 = v353 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v356 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v349 = v356 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v359 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v349 = v359 
            #endif
#if FABLE_COMPILER_PYTHON
            let v362 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v349 = v362 
            #endif
#else
            let v365 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
            let v366 : Async<Choice<bool, exn>> = v365 v348
            let _v349 = v366 
            #endif
            let v367 : Async<Choice<bool, exn>> = _v349 
            let v372 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v373 : Async<US5> = null |> unbox<Async<US5>>
            let _v372 = v373 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v376 : Async<US5> = null |> unbox<Async<US5>>
            let _v372 = v376 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v379 : Async<US5> = null |> unbox<Async<US5>>
            let _v372 = v379 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v382 : Async<US5> = null |> unbox<Async<US5>>
            let _v372 = v382 
            #endif
#if FABLE_COMPILER_PYTHON
            let v385 : Async<US5> = null |> unbox<Async<US5>>
            let _v372 = v385 
            #endif
#else
            let v388 : Async<US5> option = None
            let mutable _v388 = v388 
            async {
            let! v367 = v367 
            let v389 : Choice<bool, exn> = v367 
            let v390 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v391 : US5 = null |> unbox<US5>
            let _v390 = v391 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v394 : US5 = null |> unbox<US5>
            let _v390 = v394 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v397 : US5 = null |> unbox<US5>
            let _v390 = v397 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v400 : US5 = null |> unbox<US5>
            let _v390 = v400 
            #endif
#if FABLE_COMPILER_PYTHON
            let v403 : US5 = null |> unbox<US5>
            let _v390 = v403 
            #endif
#else
            let v406 : (bool -> US5) = closure14()
            let v407 : (exn -> US5) = closure15()
            let v408 : US5 = match v389 with Choice1Of2 x -> v406 x | Choice2Of2 x -> v407 x
            let _v390 = v408 
            #endif
            let v409 : US5 = _v390 
            return v409 
            }
            |> fun x -> _v388 <- Some x
            let v414 : Async<US5> = match _v388 with Some x -> x | None -> failwith "async.new_async_unit / _v388=None"
            let _v372 = v414 
            #endif
            let v415 : Async<US5> = _v372 
            let v420 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v421 : Async<US6> = null |> unbox<Async<US6>>
            let _v420 = v421 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v424 : Async<US6> = null |> unbox<Async<US6>>
            let _v420 = v424 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v427 : Async<US6> = null |> unbox<Async<US6>>
            let _v420 = v427 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v430 : Async<US6> = null |> unbox<Async<US6>>
            let _v420 = v430 
            #endif
#if FABLE_COMPILER_PYTHON
            let v433 : Async<US6> = null |> unbox<Async<US6>>
            let _v420 = v433 
            #endif
#else
            let v436 : Async<US6> option = None
            let mutable _v436 = v436 
            async {
            let! v415 = v415 
            let v437 : US5 = v415 
            let v443 : US6 =
                match v437 with
                | US5_0(v438) -> (* C1of2 *)
                    US6_0(v438)
                | US5_1(v440) -> (* C2of2 *)
                    US6_1(v440)
            return v443 
            }
            |> fun x -> _v436 <- Some x
            let v444 : Async<US6> = match _v436 with Some x -> x | None -> failwith "async.new_async_unit / _v436=None"
            let _v420 = v444 
            #endif
            let v445 : Async<US6> = _v420 
            let v450 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v451 : Async<US4> = null |> unbox<Async<US4>>
            let _v450 = v451 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v454 : Async<US4> = null |> unbox<Async<US4>>
            let _v450 = v454 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v457 : Async<US4> = null |> unbox<Async<US4>>
            let _v450 = v457 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v460 : Async<US4> = null |> unbox<Async<US4>>
            let _v450 = v460 
            #endif
#if FABLE_COMPILER_PYTHON
            let v463 : Async<US4> = null |> unbox<Async<US4>>
            let _v450 = v463 
            #endif
#else
            let v466 : Async<US4> option = None
            let mutable _v466 = v466 
            async {
            let! v445 = v445 
            let v467 : US6 = v445 
            let v588 : US4 =
                match v467 with
                | US6_1(v470) -> (* Error *)
                    let v471 : string = $"%A{v470}"
                    let v474 : string = "System.TimeoutException"
                    let v475 : bool = v471.Contains v474 
                    if v475 then
                        let v478 : unit = ()
                        let v479 : (unit -> unit) = closure16(v156)
                        let v480 : unit = (fun () -> v479 (); v478) ()
                        US4_1
                    else
                        let v521 : unit = ()
                        let v522 : (unit -> unit) = closure17(v156, v470)
                        let v523 : unit = (fun () -> v522 (); v521) ()
                        US4_1
                | US6_0(v468) -> (* Ok *)
                    US4_0(v468)
            return v588 
            }
            |> fun x -> _v466 <- Some x
            let v589 : Async<US4> = match _v466 with Some x -> x | None -> failwith "async.new_async_unit / _v466=None"
            let _v450 = v589 
            #endif
            let v590 : Async<US4> = _v450 
            return! v590 
            }
            |> fun x -> _v325 <- Some x
            let v595 : Async<US4> = match _v325 with Some x -> x | None -> failwith "async.new_async_unit / _v325=None"
            let _v309 = v595 
            #endif
            let v596 : Async<US4> = _v309 
            let _v293 = v596 
            #endif
            let v601 : Async<US4> = _v293 
            let! v601 = v601 
            let v606 : US4 = v601 
            let v609 : bool =
                match v606 with
                | US4_1 -> (* None *)
                    false
                | US4_0(v607) -> (* Some *)
                    v607
            return v609 
            }
            |> fun x -> _v173 <- Some x
            let v610 : Async<bool> = match _v173 with Some x -> x | None -> failwith "async.new_async_unit / _v173=None"
            let _v157 = v610 
            #endif
            let v611 : Async<bool> = _v157 
            v611
    let! v617 = v617 
    let v618 : bool = v617 
    let v619 : bool = v618 = false
    if v619 then
        return v2 
        (*
        ()
    else
        *) else
        let v620 : int32 = v2 + 1
        let v621 : Async<int32> = method28(v0, v1, v620)
        return! v621 
        (*
        ()
    *)
    }
    |> fun x -> _v19 <- Some x
    let v622 : Async<int32> = match _v19 with Some x -> x | None -> failwith "async.new_async_unit / _v19=None"
    let _v3 = v622 
    #endif
    let v623 : Async<int32> = _v3 
    v623
and closure26 (v0 : int32 option, v1 : string) (v2 : int32) : Async<int32> =
    method28(v0, v1, v2)
and closure25 (v0 : int32 option) (v1 : string) : (int32 -> Async<int32>) =
    closure26(v0, v1)
and closure24 () (v0 : int32 option) : (string -> (int32 -> Async<int32>)) =
    closure25(v0)
let v0 : unit = ()
let v1 : (unit -> unit) = closure0()
let v2 : unit = (fun () -> v1 (); v0) ()
let v16 : (string -> (int32 -> Async<bool>)) = closure3()
let test_port_open x = v16 x
let v17 : (int32 -> (string -> (int32 -> Async<bool>))) = closure11()
let test_port_open_timeout x = v17 x
let v18 : (int32 option -> (bool -> (string -> (int32 -> Async<int64>)))) = closure18()
let wait_for_port_access x = v18 x
let v19 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure24()
let get_available_port x = v19 x
()
00:00:00 d #1 writeDibCode / output: Fs / path: DirTreeHtml.dib
00:00:00 d #2 parseDibCode / output: Fs / file: DirTreeHtml.dib
00:00:00 d #1 persistCodeProject / packages: [Argu; Falco.Markup; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: DirTreeHtml / hash:  / code.Length: 4638
00:00:00 d #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  "publish "C:\home\git\polyglot\target/Builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime linux-x64"; options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DirTreeHtml" } }
00:00:00 v #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 v #3 >   Determining projects to restore...
00:00:01 v #4 >   Restored C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj (in 413 ms).
00:00:02 v #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:14 v #6 >   DirTreeHtml -> C:\home\git\polyglot\target\Builder\DirTreeHtml\bin\Release\net9.0\linux-x64\DirTreeHtml.dll
00:00:15 v #7 >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:00:16 d #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 703 }
00:00:16 d #9 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  "publish "C:\home\git\polyglot\target/Builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime win-x64"; options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DirTreeHtml" } }
00:00:16 v #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:16 v #11 >   Determining projects to restore...
00:00:17 v #12 >   Restored C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj (in 409 ms).
00:00:17 v #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:30 v #14 >   DirTreeHtml -> C:\home\git\polyglot\target\Builder\DirTreeHtml\bin\Release\net9.0\win-x64\DirTreeHtml.dll
00:00:31 v #15 >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:00:31 d #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 701 }
In [ ]:
{ pwsh ../lib/spiral/build.ps1 -sequential 1 } | Invoke-Block
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:01 v #6 > Server bound to: http://localhost:13805
00:00:01 d #7 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path parsing.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path parsing.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 v #8 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "parsing.dib", "--retries", "3"])) }
00:00:01 v #9 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/parsing.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/parsing.dib" --output-path "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 v #10 > >
00:00:04 v #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #13 > > │ # parsing                                                                    │
00:00:04 v #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 v #15 > >
00:00:08 v #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 v #17 > > open rust.rust_operators
00:00:08 v #18 > > open sm'_operators
00:00:09 v #19 > 00:00:08 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ee17e9f72cb90671f0e951d428c4dec9e30a8a49cb5162328fc842debe96b71/main.spi
00:00:12 v #20 > >
00:00:12 v #21 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 v #22 > > //// test
00:00:12 v #23 > >
00:00:12 v #24 > > open testing
00:00:13 v #25 > 00:00:12 d #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9311f6f0df871546736c558f82d2c72ee24fa80c8badc5ab322a731a4c5ac065/main.spi
00:00:13 v #26 > >
00:00:13 v #27 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 v #28 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 v #29 > > │ ## fparsec                                                                   │
00:00:13 v #30 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 v #31 > >
00:00:13 v #32 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 v #33 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 v #34 > > │ <div><div></div><div><strong>Installing                                      │
00:00:13 v #35 > > │ Packages</strong><ul><li><span>FParsec</span></li></ul></div><div></div></di │
00:00:13 v #36 > > │ v>                                                                           │
00:00:13 v #37 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 v #38 > >
00:00:14 v #39 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 v #40 > > │ <div><div></div><div><strong>Installing                                      │
00:00:14 v #41 > > │ Packages</strong><ul><li><span>FParsec.</span></li></ul></div><div></div></d │
00:00:14 v #42 > > │ iv>                                                                          │
00:00:14 v #43 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 v #44 > >
00:00:14 v #45 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 v #46 > > │ <div><div></div><div><strong>Installing                                      │
00:00:14 v #47 > > │ Packages</strong><ul><li><span>FParsec..</span></li></ul></div><div></div></ │
00:00:14 v #48 > > │ div>                                                                         │
00:00:14 v #49 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 v #50 > >
00:00:15 v #51 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 v #52 > > │ <div><div></div><div><strong>Installing                                      │
00:00:15 v #53 > > │ Packages</strong><ul><li><span>FParsec...</span></li></ul></div><div></div>< │
00:00:15 v #54 > > │ /div>                                                                        │
00:00:15 v #55 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 v #56 > >
00:00:15 v #57 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 v #58 > > │ <div><div></div><div><strong>Installing                                      │
00:00:15 v #59 > > │ Packages</strong><ul><li><span>FParsec....</span></li></ul></div><div></div> │
00:00:15 v #60 > > │ </div>                                                                       │
00:00:15 v #61 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 v #62 > >
00:00:16 v #63 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 v #64 > > │ <div><div></div><div><strong>Installing                                      │
00:00:16 v #65 > > │ Packages</strong><ul><li><span>FParsec.....</span></li></ul></div><div></div │
00:00:16 v #66 > > │ ></div>                                                                      │
00:00:16 v #67 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 v #68 > >
00:00:16 v #69 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 v #70 > > │ <div><div></div><div><strong>Installing                                      │
00:00:16 v #71 > > │ Packages</strong><ul><li><span>FParsec......</span></li></ul></div><div></di │
00:00:16 v #72 > > │ v></div>                                                                     │
00:00:16 v #73 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 v #74 > >
00:00:17 v #75 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 v #76 > > │ <div><div></div><div><strong>Installing                                      │
00:00:17 v #77 > > │ Packages</strong><ul><li><span>FParsec.......</span></li></ul></div><div></d │
00:00:17 v #78 > > │ iv></div>                                                                    │
00:00:17 v #79 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 v #80 > >
00:00:17 v #81 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 v #82 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 v #83 > > │  Package added: fsharp.core,4.3.4                                            │
00:00:17 v #84 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 v #85 > >
00:00:17 v #86 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 v #87 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 v #88 > > │  Package added: FParsec,1.1.1                                                │
00:00:17 v #89 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 v #90 > >
00:00:17 v #91 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 v #92 > > │ <div><div></div><div></div><div><strong>Installed                            │
00:00:17 v #93 > > │ Packages</strong><ul><li><span>FParsec, 1.1.1</span></li></ul></div></div>   │
00:00:17 v #94 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 v #95 > 00:00:17 d #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d7a38f3828d9a017e6c528130ba956a93e114891de75bd8413e0ee85d667851/main.spi
00:00:18 v #96 > >
00:00:18 v #97 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 v #98 > > //// test
00:00:18 v #99 > >
00:00:18 v #100 > > nominal position_ = $'FParsec.Position'
00:00:18 v #101 > > nominal parser_error_ = $'FParsec.Error.ParserError'
00:00:18 v #102 > >
00:00:18 v #103 > > nominal reply_ t = $'FParsec.Reply<`t>'
00:00:18 v #104 > >
00:00:18 v #105 > > nominal char_stream_ t = $'FParsec.CharStream<`t>'
00:00:18 v #106 > >
00:00:18 v #107 > > // nominal parser t u = char_stream u -> reply t
00:00:18 v #108 > > nominal parser_ t u = $'FParsec.Primitives.Parser<`t, `u>'
00:00:18 v #109 > >
00:00:18 v #110 > > inl p_char_ forall t. (x : char) : parser_ char t =
00:00:18 v #111 > >     x |> $'FParsec.CharParsers.pchar'
00:00:18 v #112 > >
00:00:18 v #113 > > inl p_string_ forall t. (x : string) : parser_ string t =
00:00:18 v #114 > >     x |> $'FParsec.CharParsers.pstring'
00:00:18 v #115 > >
00:00:18 v #116 > > inl (>>.$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ u v =
00:00:18 v #117 > >     b |> $'FParsec.Primitives.(>>.)' a
00:00:18 v #118 > >
00:00:18 v #119 > > inl (.>>$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ t v =
00:00:18 v #120 > >     b |> $'FParsec.Primitives.(.>>)' a
00:00:18 v #121 > >
00:00:18 v #122 > > inl (.>>.$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ (pair t
00:00:18 v #123 > > u) v =
00:00:18 v #124 > >     b |> $'FParsec.Primitives.(.>>.)' a
00:00:18 v #125 > >
00:00:18 v #126 > > inl (>>%$) forall t u v. (a : parser_ t v) (b : u) : parser_ u v =
00:00:18 v #127 > >     b |> $'FParsec.Primitives.(>>%)' a
00:00:18 v #128 > >
00:00:18 v #129 > > inl (>>=$) forall t u v. (a : parser_ t v) (b : t -> parser_ u v) : parser_ u v
00:00:18 v #130 > > =
00:00:18 v #131 > >     b |> $'FParsec.Primitives.(>>=)' a
00:00:18 v #132 > >
00:00:18 v #133 > > inl (|>>$) forall t u v. (a : parser_ t v) (b : t -> u) : parser_ u v =
00:00:18 v #134 > >     inl b = fun x => x |> b
00:00:18 v #135 > >     b |> $'FParsec.Primitives.(|>>)' a
00:00:18 v #136 > >
00:00:18 v #137 > > inl any_char_ () : parser_ char _ =
00:00:18 v #138 > >     $'FParsec.CharParsers.anyChar'
00:00:18 v #139 > >
00:00:18 v #140 > > inl any_string_ () : parser_ string _ =
00:00:18 v #141 > >     $'FParsec.CharParsers.anyString'
00:00:18 v #142 > >
00:00:18 v #143 > > inl any_string__ (n : i32) : parser_ string _ =
00:00:18 v #144 > >     n |> $'FParsec.CharParsers.anyString'
00:00:18 v #145 > >
00:00:18 v #146 > > inl eof_ () : parser_ () _ =
00:00:18 v #147 > >     $'FParsec.CharParsers.eof'
00:00:18 v #148 > >
00:00:18 v #149 > > inl spaces_ () : parser_ () () =
00:00:18 v #150 > >     $'FParsec.CharParsers.spaces'
00:00:18 v #151 > >
00:00:18 v #152 > > inl spaces1_ () : parser_ () () =
00:00:18 v #153 > >     $'FParsec.CharParsers.spaces1'
00:00:18 v #154 > >
00:00:18 v #155 > > inl (<|>$) forall t u. (a : parser_ t u) (b : parser_ t u) : parser_ t u =
00:00:18 v #156 > >     b |> $'FParsec.Primitives.(<|>)' a
00:00:18 v #157 > >
00:00:18 v #158 > > inl many_satisfy_ forall t. (x : char -> bool) : parser_ string t =
00:00:18 v #159 > >     x |> $'FParsec.CharParsers.manySatisfy'
00:00:18 v #160 > >
00:00:18 v #161 > > inl satisfy_ forall t. (x : char -> bool) : parser_ char t =
00:00:18 v #162 > >     x |> $'FParsec.CharParsers.satisfy'
00:00:18 v #163 > >
00:00:18 v #164 > > inl none_of_ (x : list char) : parser_ char () =
00:00:18 v #165 > >     x
00:00:18 v #166 > >     |> listm'.box
00:00:18 v #167 > >     |> listm'.to_array'
00:00:18 v #168 > >     |> $'FParsec.CharParsers.noneOf'
00:00:18 v #169 > >
00:00:18 v #170 > > inl any_of_ (x : list char) : parser_ char () =
00:00:18 v #171 > >     x
00:00:18 v #172 > >     |> listm'.box
00:00:18 v #173 > >     |> listm'.to_array'
00:00:18 v #174 > >     |> $'FParsec.CharParsers.anyOf'
00:00:18 v #175 > >
00:00:18 v #176 > > inl skip_any_of_ (x : list char) : parser_ () () =
00:00:18 v #177 > >     x
00:00:18 v #178 > >     |> listm'.box
00:00:18 v #179 > >     |> listm'.to_array'
00:00:18 v #180 > >     |> $'FParsec.CharParsers.skipAnyOf'
00:00:18 v #181 > >
00:00:18 v #182 > > inl between_ forall t u v x. (a : parser_ t x) (b : parser_ u x) (c : parser_ v
00:00:18 v #183 > > x) : parser_ v x =
00:00:18 v #184 > >     c |> $'FParsec.Primitives.between' a b
00:00:18 v #185 > >
00:00:18 v #186 > > inl many_chars_ forall t. (x : parser_ char t) : parser_ string t =
00:00:18 v #187 > >     x |> $'FParsec.CharParsers.manyChars'
00:00:18 v #188 > >
00:00:18 v #189 > > inl many1_chars_ forall t. (x : parser_ char t) : parser_ string t =
00:00:18 v #190 > >     x |> $'FParsec.CharParsers.many1Chars'
00:00:18 v #191 > >
00:00:18 v #192 > > inl many_strings_ forall t. (x : parser_ string t) : parser_ string t =
00:00:18 v #193 > >     x |> $'FParsec.CharParsers.manyStrings'
00:00:18 v #194 > >
00:00:18 v #195 > > inl skip_any_string_ forall t. (n : i32) : parser_ () t =
00:00:18 v #196 > >     n |> $'FParsec.CharParsers.skipAnyString'
00:00:18 v #197 > >
00:00:18 v #198 > > inl many1_strings_ forall t. (x : parser_ string t) : parser_ string t =
00:00:18 v #199 > >     x |> $'FParsec.CharParsers.many1Strings'
00:00:18 v #200 > >
00:00:18 v #201 > > inl opt_ forall t u. (a : parser_ t u) : parser_ (optionm'.option' t) u =
00:00:18 v #202 > >     a |> $'FParsec.Primitives.opt'
00:00:18 v #203 > >
00:00:18 v #204 > > inl choice_ forall t u. (a : list (parser_ t u)) : parser_ t u =
00:00:18 v #205 > >     a
00:00:18 v #206 > >     |> listm'.box
00:00:18 v #207 > >     |> seq.of_list'
00:00:18 v #208 > >     |> $'FParsec.Primitives.choice'
00:00:18 v #209 > >
00:00:18 v #210 > > inl delay_ forall t u. (fn : () -> parser_ t u) : parser_ t u =
00:00:18 v #211 > >     fn |> $'FParsec.Primitives.parse.Delay'
00:00:18 v #212 > >
00:00:18 v #213 > > inl peek_ forall t u. (a : parser_ t u) : parser_ char u =
00:00:18 v #214 > >     $'!a.Peek ()'
00:00:18 v #215 > >
00:00:18 v #216 > > inl not_followed_by_ forall t u. (a : parser_ t u) : parser_ () u =
00:00:18 v #217 > >     a |> $'FParsec.Primitives.notFollowedBy'
00:00:18 v #218 > >
00:00:18 v #219 > > inl sep_by_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:00:18 v #220 > > (listm'.list' t) v =
00:00:18 v #221 > >     b |> $'FParsec.Primitives.sepBy' a
00:00:18 v #222 > >
00:00:18 v #223 > > inl sep_by1_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:00:18 v #224 > > (listm'.list' t) v =
00:00:18 v #225 > >     b |> $'FParsec.Primitives.sepBy1' a
00:00:18 v #226 > >
00:00:18 v #227 > > inl sep_end_by_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:00:18 v #228 > > (listm'.list' t) v =
00:00:18 v #229 > >     b |> $'FParsec.Primitives.sepEndBy' a
00:00:18 v #230 > >
00:00:18 v #231 > > inl many_ forall t u. (a : parser_ t u) : parser_ (listm'.list' t) u =
00:00:18 v #232 > >     a |> $'FParsec.Primitives.many'
00:00:18 v #233 > >
00:00:18 v #234 > > inl many1_ forall t u. (a : parser_ t u) : parser_ (listm'.list' t) u =
00:00:18 v #235 > >     a |> $'FParsec.Primitives.many1'
00:00:18 v #236 > >
00:00:18 v #237 > > inl many1_satisfy_ forall t. (x : char -> bool) : parser_ string t =
00:00:18 v #238 > >     x |> $'FParsec.CharParsers.many1Satisfy'
00:00:18 v #239 > >
00:00:18 v #240 > > nominal parser_result'_ t u = $'FParsec.CharParsers.ParserResult<`t, `u>'
00:00:18 v #241 > >
00:00:18 v #242 > > inl run_ forall t. (parser : parser_ t ()) (x : string) : parser_result'_ t () =
00:00:18 v #243 > >     x |> $'FParsec.CharParsers.run' parser
00:00:18 v #244 > >
00:00:18 v #245 > > union parser_result_ t u =
00:00:18 v #246 > >     | Success : t * u * position_
00:00:18 v #247 > >     | Failure : string * parser_error_ * u
00:00:18 v #248 > >
00:00:18 v #249 > > inl parser_result_ forall t u. = function
00:00:18 v #250 > >     | Success (a, b, c) => $'`(parser_result'_ t u).Success (!a, !b, !c)' :
00:00:18 v #251 > > parser_result'_ t u
00:00:18 v #252 > >     | Failure (a, b, c) => $'`(parser_result'_ t u).Failure (!a, !b, !c)' :
00:00:18 v #253 > > parser_result'_ t u
00:00:18 v #254 > >
00:00:18 v #255 > > inl parser_result'_ forall t u. (x : parser_result'_ t u) : parser_result_ t u =
00:00:18 v #256 > >     $'let mutable _!x = None '
00:00:18 v #257 > >     $'match !x with'
00:00:18 v #258 > >     $'| FParsec.CharParsers.Success (a, b, c) -> (' : ()
00:00:18 v #259 > >     $'(fun () ->'
00:00:18 v #260 > >     $'(fun () ->'
00:00:18 v #261 > >     (Success ((dyn $'a'), dyn $'b', dyn $'c') : _ t u) |> emit_unit
00:00:18 v #262 > >     $')'
00:00:18 v #263 > >     $'|> fun x -> x ()'
00:00:18 v #264 > >     $') () ) | FParsec.CharParsers.Failure (a, b, c) -> (' : ()
00:00:18 v #265 > >     $'(fun () ->'
00:00:18 v #266 > >     $'(fun () ->'
00:00:18 v #267 > >     (Failure ((dyn $'a'), dyn $'b', dyn $'c') : _ t u) |> emit_unit
00:00:18 v #268 > >     $')'
00:00:18 v #269 > >     $'|> fun x -> x ()'
00:00:18 v #270 > >     $') () )' : ()
00:00:18 v #271 > >     $'|> fun x -> _!x <- Some x'
00:00:18 v #272 > >     $'match _!x with Some x -> x | None -> failwith "??? / _!x=None"'
00:00:18 v #273 > >
00:00:18 v #274 > > inl parse_ parser input : result _ _ =
00:00:18 v #275 > >     match input |> run_ parser |> parser_result'_ with
00:00:18 v #276 > >     | Success (result, b, c) => Ok (result, c)
00:00:18 v #277 > >     | Failure (error_msg, b, c) => Error (error_msg, b)
00:00:18 v #278 > 00:00:17 d #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44b584b8a251e905a0af4f58ac7985dedbf63759888d1ff0f6c8c12027a3caa3/main.spi
00:00:19 v #279 > >
00:00:19 v #280 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 v #281 > > //// test
00:00:19 v #282 > >
00:00:19 v #283 > > inl split_args (args : string) : result (array_base (string * position_))
00:00:19 v #284 > > (string * parser_error_) =
00:00:19 v #285 > >     inl esc = [[ '\\'; '`' ]]
00:00:19 v #286 > >     inl quotes = [[ '"' ]]
00:00:19 v #287 > >     inl special = esc ++ quotes
00:00:19 v #288 > >     inl p_esc_char c =
00:00:19 v #289 > >         p_char_ c >>.$ any_char_ () |>>$ fun c' => $'$"{!c}{!c'}"'
00:00:19 v #290 > >     inl p_word = special |> none_of_ |>>$ sm'.obj_to_string
00:00:19 v #291 > >     inl p_plain = special ++ [[ ' ' ]] |> none_of_ |> many1_chars_
00:00:19 v #292 > >     inl p_text = p_word |> many1_strings_
00:00:19 v #293 > >     inl p_esc = esc |> listm.map p_esc_char |> choice_
00:00:19 v #294 > >     inl p_quoted = (p_word <|>$ p_esc) |> many_ |>>$ (seq.of_list' >> sm'.concat
00:00:19 v #295 > > "")
00:00:19 v #296 > >     inl p_quoted_all = p_quoted |> between_ (p_char_ '"') (p_char_ '"')
00:00:19 v #297 > >     inl p_esc_root = p_esc |>>$ (fun _ => "") >>.$ (p_word |> many_) |>>$
00:00:19 v #298 > > (seq.of_list' >> sm'.concat "")
00:00:19 v #299 > >     inl p_content = p_plain <|>$ p_quoted_all <|>$ p_esc_root
00:00:19 v #300 > >     inl p_args = spaces1_ () |> sep_by_ p_content
00:00:19 v #301 > >     args
00:00:19 v #302 > >     |> parse_ p_args
00:00:19 v #303 > >     |> resultm.map fun (a', b') =>
00:00:19 v #304 > >         (
00:00:19 v #305 > >             (
00:00:19 v #306 > >                 a'
00:00:19 v #307 > >                 |> listm'.to_array'
00:00:19 v #308 > >                 |> a
00:00:19 v #309 > >                 |> am.map fun x => x, b'
00:00:19 v #310 > >                 |> fun (a x : _ i32 _) => x
00:00:19 v #311 > >             )
00:00:19 v #312 > >         )
00:00:19 v #313 > >
00:00:19 v #314 > > [[
00:00:19 v #315 > >     "a b c",
00:00:19 v #316 > >     ;[[ "a"; "b"; "c" ]]
00:00:19 v #317 > >
00:00:19 v #318 > >     "e f \"g h\" i",
00:00:19 v #319 > >     ;[[ "e"; "f"; "g h"; "i" ]]
00:00:19 v #320 > >
00:00:19 v #321 > >     "\"j k\" \"l\" \"m\"",
00:00:19 v #322 > >     ;[[ "j k"; "l"; "m" ]]
00:00:19 v #323 > >
00:00:19 v #324 > >     "s -t \"u \`\"v\`\" w\"",
00:00:19 v #325 > >     ;[[ "s"; "-t"; "u \`\"v\`\" w" ]]
00:00:19 v #326 > >
00:00:19 v #327 > >     "n -o \"p \\\"q\\\" r\"",
00:00:19 v #328 > >     ;[[ "n"; "-o"; "p \\\"q\\\" r" ]]
00:00:19 v #329 > >
00:00:19 v #330 > >     "r -s \"t \\\"u\\\"\"",
00:00:19 v #331 > >     ;[[ "r"; "-s"; "t \\\"u\\\"" ]]
00:00:19 v #332 > >
00:00:19 v #333 > >     $'$"x -y \\\"$z -a \'(b=\\\\\\"c-id=)[[a-fA-F0-9]]{{8}}\', {{ \`$_[[1]] +
00:00:19 v #334 > > \`$d++ }}\\\""',
00:00:19 v #335 > >     ;[[ "x"; "-y"; "$z -a '(b=\\\"c-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$d++ }"
00:00:19 v #336 > > ]]
00:00:19 v #337 > >
00:00:19 v #338 > >     "e -f \"$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }\"",
00:00:19 v #339 > >     ;[[ "e"; "-f"; "$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }"
00:00:19 v #340 > > ]]
00:00:19 v #341 > >
00:00:19 v #342 > >     $'$"--l \\\\\\"\'\'\' m \'\'\'\\\\\\" "',
00:00:19 v #343 > >     ;[[ "--l"; "''' m '''" ]]
00:00:19 v #344 > >
00:00:19 v #345 > >     $'$"n --o --p q --r \\\"s:/t u/v.w\\\" --x \\\"y:/z.a\\\" --b c.d
00:00:19 v #346 > > \\\"\\\\e{{f-g}}\\\" h.i \\\"j (k)\\\""',
00:00:19 v #347 > >     ;[[ "n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; "y:/z.a"; "--b";
00:00:19 v #348 > > "c.d"; "\\e{f-g}"; "h.i"; "j (k)" ]]
00:00:19 v #349 > >
00:00:19 v #350 > >     $'\@$"l ""m n:\\o.p"""',
00:00:19 v #351 > >     ;[[ "l"; "m n:\\o.p" ]]
00:00:19 v #352 > > ]]
00:00:19 v #353 > > |> listm.rev
00:00:19 v #354 > > |> listm.map fun input, expected =>
00:00:19 v #355 > >     input
00:00:19 v #356 > >     |> split_args
00:00:19 v #357 > >     |> fun x =>
00:00:19 v #358 > >         try
00:00:19 v #359 > >             fun () =>
00:00:19 v #360 > >                 ($'$"\ninput: {!input}"' : string)
00:00:19 v #361 > >                 |> console.write_line
00:00:19 v #362 > >                 x
00:00:19 v #363 > >                 |> resultm.get
00:00:19 v #364 > >                 |> am'.map_base fst
00:00:19 v #365 > >                 |> _assert_eq' expected
00:00:19 v #366 > >                 false
00:00:19 v #367 > >             fun ex =>
00:00:19 v #368 > >                 ($'$"error / expected: %A{!expected} / ex: %A{!ex}"' : string)
00:00:19 v #369 > >                 |> console.write_line
00:00:19 v #370 > >                 Some true
00:00:19 v #371 > >         |> optionm.value
00:00:19 v #372 > > |> listm'.filter id
00:00:19 v #373 > > |> function
00:00:19 v #374 > >     | [[]] => ()
00:00:19 v #375 > >     | x => failwith $'$"{!x}"'
00:00:19 v #376 > 00:00:18 d #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2de3d31fbb53b4fc53ad1d688eaed6f799e990358a495472558ab5fd5a947507/main.spi
00:00:22 v #377 > >
00:00:22 v #378 > > ╭─[ 3.95s - stdout ]───────────────────────────────────────────────────────────╮
00:00:22 v #379 > > │                                                                              │
00:00:22 v #380 > > │ input: a b c                                                                 │
00:00:22 v #381 > > │ __assert_eq' / actual: [|"a"; "b"; "c"|] / expected: [|"a"; "b"; "c"|]       │
00:00:22 v #382 > > │                                                                              │
00:00:22 v #383 > > │ input: e f "g h" i                                                           │
00:00:22 v #384 > > │ __assert_eq' / actual: [|"e"; "f"; "g h"; "i"|] / expected: [|"e"; "f"; "g   │
00:00:22 v #385 > > │ h"; "i"|]                                                                    │
00:00:22 v #386 > > │                                                                              │
00:00:22 v #387 > > │ input: "j k" "l" "m"                                                         │
00:00:22 v #388 > > │ __assert_eq' / actual: [|"j k"; "l"; "m"|] / expected: [|"j k"; "l"; "m"|]   │
00:00:22 v #389 > > │                                                                              │
00:00:22 v #390 > > │ input: s -t "u `"v`" w"                                                      │
00:00:22 v #391 > > │ __assert_eq' / actual: [|"s"; "-t"; "u `"v`" w"|] / expected: [|"s"; "-t";   │
00:00:22 v #392 > > │ "u `"v`" w"|]                                                                │
00:00:22 v #393 > > │                                                                              │
00:00:22 v #394 > > │ input: n -o "p \"q\" r"                                                      │
00:00:22 v #395 > > │ __assert_eq' / actual: [|"n"; "-o"; "p \"q\" r"|] / expected: [|"n"; "-o";   │
00:00:22 v #396 > > │ "p \"q\" r"|]                                                                │
00:00:22 v #397 > > │                                                                              │
00:00:22 v #398 > > │ input: r -s "t \"u\""                                                        │
00:00:22 v #399 > > │ __assert_eq' / actual: [|"r"; "-s"; "t \"u\""|] / expected: [|"r"; "-s"; "t  │
00:00:22 v #400 > > │ \"u\""|]                                                                     │
00:00:22 v #401 > > │                                                                              │
00:00:22 v #402 > > │ input: x -y "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }"          │
00:00:22 v #403 > > │ __assert_eq' / actual: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', {    │
00:00:22 v #404 > > │ `$_[1] + `$d++ }"|] / expected: [|"x"; "-y"; "$z -a '(b=\"c-id=)[            │
00:00:22 v #405 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }"|]                                        │
00:00:22 v #406 > > │                                                                              │
00:00:22 v #407 > > │ input: e -f "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[1] + `$k++ }"          │
00:00:22 v #408 > > │ __assert_eq' / actual: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', {    │
00:00:22 v #409 > > │ `$_[1] + `$k++ }"|] / expected: [|"e"; "-f"; "$g -h '(i=`"j-id=)[            │
00:00:22 v #410 > > │ a-fA-F0-9]{8}', { `$_[1] + `$k++ }"|]                                        │
00:00:22 v #411 > > │                                                                              │
00:00:22 v #412 > > │ input: --l \"''' m '''\"                                                     │
00:00:22 v #413 > > │ __assert_eq' / actual: [|"--l"; "''' m '''"|] / expected: [|"--l"; "''' m    │
00:00:22 v #414 > > │ '''"|]                                                                       │
00:00:22 v #415 > > │                                                                              │
00:00:22 v #416 > > │ input: n --o --p q --r "s:/t u/v.w" --x "y:/z.a" --b c.d "\e{f-g}" h.i "j    │
00:00:22 v #417 > > │ (k)"                                                                         │
00:00:22 v #418 > > │ __assert_eq' / actual: [|"n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; │
00:00:22 v #419 > > │ "y:/z.a"; "--b"; "c.d";                                                      │
00:00:22 v #420 > > │   "\e{f-g}"; "h.i"; "j (k)"|] / expected: [|"n"; "--o"; "--p"; "q"; "--r";   │
00:00:22 v #421 > > │ "s:/t u/v.w"; "--x"; "y:/z.a"; "--b"; "c.d";                                 │
00:00:22 v #422 > > │   "\e{f-g}"; "h.i"; "j (k)"|]                                                │
00:00:22 v #423 > > │                                                                              │
00:00:22 v #424 > > │ input: l "m n:\o.p"                                                          │
00:00:22 v #425 > > │ __assert_eq' / actual: [|"l"; "m n:\o.p"|] / expected: [|"l"; "m n:\o.p"|]   │
00:00:22 v #426 > > │                                                                              │
00:00:22 v #427 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 v #428 > >
00:00:22 v #429 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 v #430 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 v #431 > > │ ## parsing                                                                   │
00:00:22 v #432 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 v #433 > >
00:00:22 v #434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 v #435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 v #436 > > │ ### range                                                                    │
00:00:22 v #437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 v #438 > >
00:00:22 v #439 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 v #440 > > type range =
00:00:22 v #441 > >     {
00:00:22 v #442 > >         from : int
00:00:22 v #443 > >         to : int
00:00:22 v #444 > >     }
00:00:23 v #445 > 00:00:22 d #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ecd5bcf198e47ba3933bc4d7a264d1dbb8019b067f01d104d9521ba3c8f515a7/main.spi
00:00:23 v #446 > >
00:00:23 v #447 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 v #448 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 v #449 > > │ ### position                                                                 │
00:00:23 v #450 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 v #451 > >
00:00:23 v #452 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 v #453 > > type position =
00:00:23 v #454 > >     {
00:00:23 v #455 > >         line : int
00:00:23 v #456 > >         col : int
00:00:23 v #457 > >     }
00:00:23 v #458 > 00:00:22 d #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c9df713fcb716283937fd314ec7aa50d751be070a46cbb6351f2225444c2f204/main.spi
00:00:23 v #459 > >
00:00:23 v #460 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 v #461 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 v #462 > > │ ### parser_state                                                             │
00:00:23 v #463 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 v #464 > >
00:00:23 v #465 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 v #466 > > nominal parser_state =
00:00:23 v #467 > >     {
00:00:23 v #468 > >         line_text : sm'.string_builder
00:00:23 v #469 > >         position : position
00:00:23 v #470 > >     }
00:00:23 v #471 > 00:00:23 d #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a650669ec8cebb8700462c75d93992dd7c0208b0ed2701233ad68beb87ce0d29/main.spi
00:00:24 v #472 > >
00:00:24 v #473 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 v #474 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 v #475 > > │ ### parser                                                                   │
00:00:24 v #476 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 v #477 > >
00:00:24 v #478 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 v #479 > > type parser t = string * parser_state -> result (t * string * parser_state)
00:00:24 v #480 > > string
00:00:24 v #481 > 00:00:23 d #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c9701010f76f3345b2709d82fed11f1673fbb5e63d7098195f8167140245efd/main.spi
00:00:24 v #482 > >
00:00:24 v #483 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 v #484 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 v #485 > > │ ### parse                                                                    │
00:00:24 v #486 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 v #487 > >
00:00:24 v #488 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 v #489 > > inl parse forall t. (p : parser t) (input : string) : result (t * string *
00:00:24 v #490 > > parser_state) string =
00:00:24 v #491 > >     inl input =
00:00:24 v #492 > >         input
00:00:24 v #493 > >         |> optionm'.of_obj
00:00:24 v #494 > >         |> optionm'.default_value' ""
00:00:24 v #495 > >     p (input, { line_text = "" |> sm'.string_builder; position = { line = 1; col
00:00:24 v #496 > > = 1 } } |> parser_state)
00:00:24 v #497 > 00:00:24 d #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cca6edc73bf01a90b1a43babaade655be8fcf480d92cef940a00c5e395da7894/main.spi
00:00:25 v #498 > >
00:00:25 v #499 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 v #500 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 v #501 > > │ ### inc                                                                      │
00:00:25 v #502 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 v #503 > >
00:00:25 v #504 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 v #505 > > inl inc c (parser_state s) =
00:00:25 v #506 > >     match c with
00:00:25 v #507 > >     | '\n' => { line = s.position.line + 1; col = 1 }
00:00:25 v #508 > >     | _ => { s.position with col = s.position.col + 1 }.position
00:00:25 v #509 > 00:00:24 d #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d632252386dc1ec63f076f8a799472d92e2cfb9bbe779b50a307d840eef8ca7/main.spi
00:00:25 v #510 > >
00:00:25 v #511 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 v #512 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 v #513 > > │ ### update                                                                   │
00:00:25 v #514 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 v #515 > >
00:00:25 v #516 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 v #517 > > inl update result s =
00:00:25 v #518 > >     (s, result |> sm'.to_char_array |> a |> (fun x => x : _ int _) |>
00:00:25 v #519 > > am'.to_list' |> listm'.unbox)
00:00:25 v #520 > >     ||> listm.fold fun (parser_state s) c =>
00:00:25 v #521 > >         { s with
00:00:25 v #522 > >             position = s |> parser_state |> inc c
00:00:25 v #523 > >             line_text =
00:00:25 v #524 > >                 match c with
00:00:25 v #525 > >                 | '\n' => s.line_text |> sm'.builder_clear
00:00:25 v #526 > >                 | c => s.line_text |> sm'.builder_append (sm'.obj_to_string c)
00:00:25 v #527 > >         } |> parser_state
00:00:25 v #528 > 00:00:24 d #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1245cbdfbcfcde715579be997989952cfd8002d2d0e5910c72b607c582c167fa/main.spi
00:00:26 v #529 > >
00:00:26 v #530 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 v #531 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 v #532 > > │ ### any_char                                                                 │
00:00:26 v #533 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #534 > >
00:00:26 v #535 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 v #536 > > inl any_char () : parser char = function
00:00:26 v #537 > >     | "", s => Error $'$"parsing.any_char / unexpected end of input / s:
00:00:26 v #538 > > %A{!s}"'
00:00:26 v #539 > >     | x, s =>
00:00:26 v #540 > >         inl first_char = x |> sm'.index 0i32
00:00:26 v #541 > >         inl rest = x |> sm'.range (am'.Start 1i32) (am'.End id)
00:00:26 v #542 > >         in Ok (first_char, rest, s |> update (sm'.obj_to_string first_char))
00:00:26 v #543 > 00:00:25 d #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75ec8ab67d6d89f6563f7b380cb38f83649279ada3fdd47535c91b11839a1d65/main.spi
00:00:26 v #544 > >
00:00:26 v #545 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 v #546 > > //// test
00:00:26 v #547 > >
00:00:26 v #548 > > "abc"
00:00:26 v #549 > > |> parse (any_char ())
00:00:26 v #550 > > |> resultm.get
00:00:26 v #551 > > |> sm'.format_debug
00:00:26 v #552 > > |> _assert_eq (
00:00:26 v #553 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:00:26 v #554 > > 1i32; col = 2i32 } })
00:00:26 v #555 > >     |> sm'.format_debug
00:00:26 v #556 > > )
00:00:26 v #557 > 00:00:25 d #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a9565c72b0cc0f4952a0dafd5f98ceb154fb8a9eab17b832926d03ceaf57a61/main.spi
00:00:27 v #558 > >
00:00:27 v #559 > > ╭─[ 644.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 v #560 > > │ __assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct      │
00:00:27 v #561 > > │ ('a', "bc", a, 1, 2)"                                                        │
00:00:27 v #562 > > │                                                                              │
00:00:27 v #563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 v #564 > >
00:00:27 v #565 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 v #566 > > //// test
00:00:27 v #567 > >
00:00:27 v #568 > > "abc"
00:00:27 v #569 > > |> parse_ (any_char_ ())
00:00:27 v #570 > > |> resultm.get
00:00:27 v #571 > > |> sm'.format_debug
00:00:27 v #572 > > |> _assert_eq' (('a', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:00:27 v #573 > > sm'.format_debug)
00:00:27 v #574 > 00:00:26 d #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25f88a2943f27d00aa4eabc3c3b88e23ccf0ad9800e6fbd5e7e3bf33622fa34b/main.spi
00:00:27 v #575 > >
00:00:27 v #576 > > ╭─[ 546.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 v #577 > > │ __assert_eq' / actual: "struct ('a', (Ln: 1, Col: 2))" / expected: "struct   │
00:00:27 v #578 > > │ ('a', (Ln: 1, Col: 2))"                                                      │
00:00:27 v #579 > > │                                                                              │
00:00:27 v #580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 v #581 > >
00:00:27 v #582 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 v #583 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 v #584 > > │ ### p_char                                                                   │
00:00:27 v #585 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 v #586 > >
00:00:27 v #587 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 v #588 > > inl p_char (c : char) : parser char = function
00:00:27 v #589 > >     | "", s => Error $'$"parsing.p_char / unexpected end of input / s: %A{!s}"'
00:00:27 v #590 > >     | input, parser_state ({ line_text position = { line col } } as s) =>
00:00:27 v #591 > >         inl first_char = input |> sm'.index 0i32
00:00:27 v #592 > >         if first_char = c
00:00:27 v #593 > >         then Ok (
00:00:27 v #594 > >             first_char,
00:00:27 v #595 > >             input |> sm'.range (am'.Start 1i32) (am'.End id),
00:00:27 v #596 > >             s |> parser_state |> update (sm'.obj_to_string first_char)
00:00:27 v #597 > >         )
00:00:27 v #598 > >         else
00:00:27 v #599 > >             inl message : string =
00:00:27 v #600 > >                 inl rest =
00:00:27 v #601 > >                     input
00:00:27 v #602 > >                     |> sm'.range
00:00:27 v #603 > >                         (am'.Start 0i32)
00:00:27 v #604 > >                         (am'.End fun l =>
00:00:27 v #605 > >                             match (input |> sm'.index_of "\n") - 1 with
00:00:27 v #606 > >                             | -2 => l
00:00:27 v #607 > >                             | l => l
00:00:27 v #608 > >                         )
00:00:27 v #609 > >                 $'$"parsing.p_char / expected: \'{!c}\' / line: {!line} / col:
00:00:27 v #610 > > {!col}\n{!line_text}{!rest}"'
00:00:27 v #611 > >             inl pointer_line = (sm'.replicate (col - 1) " ") +. "^"
00:00:27 v #612 > >             $'$"{!message}\n{!pointer_line}\n"' |> Error
00:00:27 v #613 > 00:00:27 d #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25cc9060e762e3ca857fcf7ea4df37d3cd5763c34397f934fb6d8ece1141d423/main.spi
00:00:28 v #614 > >
00:00:28 v #615 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 v #616 > > //// test
00:00:28 v #617 > >
00:00:28 v #618 > > "abc"
00:00:28 v #619 > > |> parse (p_char 'a')
00:00:28 v #620 > > |> resultm.get
00:00:28 v #621 > > |> sm'.format_debug
00:00:28 v #622 > > |> _assert_eq (
00:00:28 v #623 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:00:28 v #624 > > 1i32; col = 2i32 } })
00:00:28 v #625 > >     |> sm'.format_debug
00:00:28 v #626 > > )
00:00:28 v #627 > 00:00:27 d #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2542a378e68af2433f17550087f2af0436a044b6a29216b51e53938ce06fa424/main.spi
00:00:28 v #628 > >
00:00:28 v #629 > > ╭─[ 562.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 v #630 > > │ __assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct      │
00:00:28 v #631 > > │ ('a', "bc", a, 1, 2)"                                                        │
00:00:28 v #632 > > │                                                                              │
00:00:28 v #633 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 v #634 > >
00:00:28 v #635 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 v #636 > > //// test
00:00:28 v #637 > >
00:00:28 v #638 > > "abc"
00:00:28 v #639 > > |> parse_ (p_char_ 'a')
00:00:28 v #640 > > |> resultm.get
00:00:28 v #641 > > |> sm'.format_debug
00:00:28 v #642 > > |> _assert_eq' (('a', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:00:28 v #643 > > sm'.format_debug)
00:00:28 v #644 > 00:00:28 d #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f522eccfc0f68b64e576e86262eb7845dc7e10f691b40774bde3432e0fc0c77/main.spi
00:00:29 v #645 > >
00:00:29 v #646 > > ╭─[ 472.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 v #647 > > │ __assert_eq' / actual: "struct ('a', (Ln: 1, Col: 2))" / expected: "struct   │
00:00:29 v #648 > > │ ('a', (Ln: 1, Col: 2))"                                                      │
00:00:29 v #649 > > │                                                                              │
00:00:29 v #650 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 v #651 > >
00:00:29 v #652 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 v #653 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 v #654 > > │ ### any_string                                                               │
00:00:29 v #655 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 v #656 > >
00:00:29 v #657 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 v #658 > > inl any_string length : parser string = fun input, s =>
00:00:29 v #659 > >     if sm'.length input < length
00:00:29 v #660 > >     then Error $'$"parsing.any_string / unexpected end of input / s: %A{!s}"'
00:00:29 v #661 > >     else
00:00:29 v #662 > >         inl result = input |> sm'.range (am'.Start 0i32) (am'.End fun _ =>
00:00:29 v #663 > > length - 1)
00:00:29 v #664 > >         inl rest = input |> sm'.range (am'.Start length) (am'.End id)
00:00:29 v #665 > >         Ok (result, rest, s |> update result)
00:00:29 v #666 > 00:00:28 d #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/646785eddcc007028f17c81eebf6d5304e87f001729a015a0717b5dd8cf6f25a/main.spi
00:00:29 v #667 > >
00:00:29 v #668 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 v #669 > > //// test
00:00:29 v #670 > >
00:00:29 v #671 > > "abcdef"
00:00:29 v #672 > > |> parse (any_string 3i32)
00:00:29 v #673 > > |> resultm.get
00:00:29 v #674 > > |> sm'.format_debug
00:00:29 v #675 > > |> _assert_eq (
00:00:29 v #676 > >     ("abc", "def", { line_text = "abc" |> sm'.string_builder; position = { line
00:00:29 v #677 > > = 1i32; col = 4i32 } })
00:00:29 v #678 > >     |> sm'.format_debug
00:00:29 v #679 > > )
00:00:29 v #680 > 00:00:29 d #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9475db193c5b067e05547ebe1e54a2aefa8bd081d65a76ef23ca67be89a7579/main.spi
00:00:30 v #681 > >
00:00:30 v #682 > > ╭─[ 584.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 v #683 > > │ __assert_eq / actual: "struct ("abc", "def", abc, 1, 4)" / expected: "struct │
00:00:30 v #684 > > │ ("abc", "def", abc, 1, 4)"                                                   │
00:00:30 v #685 > > │                                                                              │
00:00:30 v #686 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #687 > >
00:00:30 v #688 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 v #689 > > //// test
00:00:30 v #690 > >
00:00:30 v #691 > > "abcdef"
00:00:30 v #692 > > |> parse_ (any_string__ 3)
00:00:30 v #693 > > |> resultm.get
00:00:30 v #694 > > |> sm'.obj_to_string
00:00:30 v #695 > > |> _assert_eq' (("abc", ($'FParsec.Position (null, 0, 1, 4)' : position_)) |>
00:00:30 v #696 > > sm'.obj_to_string)
00:00:30 v #697 > 00:00:29 d #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d883960dbbccbed5d047dc90374d11223b00fa9e02ff6b75cd7a117c4fcfe0b4/main.spi
00:00:30 v #698 > >
00:00:30 v #699 > > ╭─[ 547.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 v #700 > > │ __assert_eq' / actual: "(abc, (Ln: 1, Col: 4))" / expected: "(abc, (Ln: 1,   │
00:00:30 v #701 > > │ Col: 4))"                                                                    │
00:00:30 v #702 > > │                                                                              │
00:00:30 v #703 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #704 > >
00:00:30 v #705 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 v #706 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 v #707 > > │ ### skip_any_string                                                          │
00:00:30 v #708 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 v #709 > >
00:00:30 v #710 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 v #711 > > inl skip_any_string length : parser () = fun input, s =>
00:00:30 v #712 > >     if sm'.length input < length
00:00:30 v #713 > >     then Error $'$"parsing.skip_any_string / unexpected end of input / s:
00:00:30 v #714 > > %A{!s}"'
00:00:30 v #715 > >     else Ok (
00:00:30 v #716 > >         (),
00:00:30 v #717 > >         input |> sm'.range (am'.Start length) (am'.End id),
00:00:30 v #718 > >         s |> update (input |> sm'.range (am'.Start 0i32) (am'.End fun _ =>
00:00:30 v #719 > > length - 1))
00:00:30 v #720 > >     )
00:00:30 v #721 > 00:00:30 d #25 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/716a0a21c571518601a7689c5357be36450330c33f7d6613eaec520d144353e8/main.spi
00:00:31 v #722 > >
00:00:31 v #723 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 v #724 > > //// test
00:00:31 v #725 > >
00:00:31 v #726 > > "abcdef"
00:00:31 v #727 > > |> parse (skip_any_string 3i32)
00:00:31 v #728 > > |> resultm.get
00:00:31 v #729 > > |> sm'.format_debug
00:00:31 v #730 > > |> _assert_eq (
00:00:31 v #731 > >     ((), "def", { line_text = "abc" |> sm'.string_builder; position = { line =
00:00:31 v #732 > > 1i32; col = 4i32 } })
00:00:31 v #733 > >     |> sm'.format_debug
00:00:31 v #734 > > )
00:00:31 v #735 > 00:00:30 d #26 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cd5e84844d78285753ea73241d2f2317acf61eab093ce5266fe6aa81bc42a48/main.spi
00:00:31 v #736 > >
00:00:31 v #737 > > ╭─[ 591.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 v #738 > > │ __assert_eq / actual: "struct ("def", abc, 1, 4)" / expected: "struct        │
00:00:31 v #739 > > │ ("def", abc, 1, 4)"                                                          │
00:00:31 v #740 > > │                                                                              │
00:00:31 v #741 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #742 > >
00:00:31 v #743 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 v #744 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 v #745 > > │ ### (>>.)                                                                    │
00:00:31 v #746 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 v #747 > >
00:00:31 v #748 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 v #749 > > inl (>>.) forall t u. (a : parser t) (b : parser u) : parser u = fun input, s =>
00:00:31 v #750 > >     match a (input, s) with
00:00:31 v #751 > >     | Ok (_, rest, s) => b (rest, s)
00:00:31 v #752 > >     | Error e => Error e
00:00:32 v #753 > 00:00:31 d #27 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d91e4c19a5361ad089771923a75352e43a70c3b13b6f6355ebdd49786855eb7f/main.spi
00:00:32 v #754 > >
00:00:32 v #755 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #756 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #757 > > │ ### (>>.)                                                                    │
00:00:32 v #758 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #759 > >
00:00:32 v #760 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 v #761 > > inl (.>>) forall t u. (a : parser t) (b : parser u) : parser t = fun input, s =>
00:00:32 v #762 > >     match a (input, s) with
00:00:32 v #763 > >     | Ok (result, rest, s) =>
00:00:32 v #764 > >         match b (rest, s) with
00:00:32 v #765 > >         | Ok (_, rest, s) => Ok (result, rest, s)
00:00:32 v #766 > >         | Error e => Error e
00:00:32 v #767 > >     | Error e => Error e
00:00:32 v #768 > 00:00:31 d #28 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/de020e09a6a2010d1c712b6964f2dfcb22b771629bc9d5a427f387b137b7e735/main.spi
00:00:32 v #769 > >
00:00:32 v #770 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #771 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #772 > > │ ### (.>>.)                                                                   │
00:00:32 v #773 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #774 > >
00:00:32 v #775 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 v #776 > > inl (.>>.) forall t u. (a : parser t) (b : parser u) : parser (t * u) = fun
00:00:32 v #777 > > input, s =>
00:00:32 v #778 > >     match a (input, s) with
00:00:32 v #779 > >     | Ok (result_a, rest, s) =>
00:00:32 v #780 > >         match b (rest, s) with
00:00:32 v #781 > >         | Ok (result_b, rest, s) => Ok ((result_a, result_b), rest, s)
00:00:32 v #782 > >         | Error e => Error e
00:00:32 v #783 > >     | Error e => Error e
00:00:32 v #784 > 00:00:32 d #29 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/22b8e82567158eb3bc8a94417e237e9f4b76b9652119be69e0f6a40b09acfefb/main.spi
00:00:33 v #785 > >
00:00:33 v #786 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 v #787 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 v #788 > > │ ### (>>%)                                                                    │
00:00:33 v #789 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 v #790 > >
00:00:33 v #791 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 v #792 > > inl (>>%) forall t u. (a : parser t) (b : u) : parser u = fun input, s =>
00:00:33 v #793 > >     match a (input, s) with
00:00:33 v #794 > >     | Ok (_, rest, s) => Ok (b, rest, s)
00:00:33 v #795 > >     | Error e => Error e
00:00:33 v #796 > 00:00:32 d #30 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e8770323e2ad788b365bd503635c2759af43a85a7c9355017e969813495017e/main.spi
00:00:33 v #797 > >
00:00:33 v #798 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 v #799 > > //// test
00:00:33 v #800 > >
00:00:33 v #801 > > "abc"
00:00:33 v #802 > > |> parse (p_char 'a' >>. p_char 'b')
00:00:33 v #803 > > |> resultm.get
00:00:33 v #804 > > |> sm'.format_debug
00:00:33 v #805 > > |> _assert_eq (
00:00:33 v #806 > >     ('b', "c", { line_text = "ab" |> sm'.string_builder; position = { line =
00:00:33 v #807 > > 1i32; col = 3i32 } })
00:00:33 v #808 > >     |> sm'.format_debug
00:00:33 v #809 > > )
00:00:33 v #810 > >
00:00:33 v #811 > > "abc\ndef\nghi"
00:00:33 v #812 > > |> parse (skip_any_string 5i32 >>. p_char 'a')
00:00:33 v #813 > > |> _assert_eq (Error "parsing.p_char / expected: 'a' / line: 2 / col: 2\ndef\n
00:00:33 v #814 > > ^\n")
00:00:33 v #815 > 00:00:33 d #31 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b2160254c65a4ac95a475ed0b8bb6ba2fea5ce7361f3cca3e8499bf592ce7a2f/main.spi
00:00:34 v #816 > >
00:00:34 v #817 > > ╭─[ 659.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 v #818 > > │ __assert_eq / actual: "struct ('b', "c", ab, 1, 3)" / expected: "struct      │
00:00:34 v #819 > > │ ('b', "c", ab, 1, 3)"                                                        │
00:00:34 v #820 > > │ __assert_eq / actual: US0_1 "parsing.p_char / expected: 'a' / line: 2 / col: │
00:00:34 v #821 > > │ 2                                                                            │
00:00:34 v #822 > > │ def                                                                          │
00:00:34 v #823 > > │  ^                                                                           │
00:00:34 v #824 > > │ " / expected: US0_1 "parsing.p_char / expected: 'a' / line: 2 / col: 2       │
00:00:34 v #825 > > │ def                                                                          │
00:00:34 v #826 > > │  ^                                                                           │
00:00:34 v #827 > > │ "                                                                            │
00:00:34 v #828 > > │                                                                              │
00:00:34 v #829 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 v #830 > >
00:00:34 v #831 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 v #832 > > //// test
00:00:34 v #833 > >
00:00:34 v #834 > > "abc"
00:00:34 v #835 > > |> parse_ (p_char_ 'a' >>.$ p_char_ 'b')
00:00:34 v #836 > > |> resultm.get
00:00:34 v #837 > > |> sm'.obj_to_string
00:00:34 v #838 > > |> _assert_eq' (('b', ($'FParsec.Position (null, 0, 1, 3)' : position_)) |>
00:00:34 v #839 > > sm'.obj_to_string)
00:00:34 v #840 > 00:00:33 d #32 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/62be0641ac6021c0f703014aaaeb6e190f805781232f20be6175224e57e6a6f7/main.spi
00:00:34 v #841 > >
00:00:34 v #842 > > ╭─[ 547.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 v #843 > > │ __assert_eq' / actual: "(b, (Ln: 1, Col: 3))" / expected: "(b, (Ln: 1, Col:  │
00:00:34 v #844 > > │ 3))"                                                                         │
00:00:34 v #845 > > │                                                                              │
00:00:34 v #846 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 v #847 > >
00:00:34 v #848 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 v #849 > > //// test
00:00:34 v #850 > >
00:00:34 v #851 > > "abc\ndef\nghi"
00:00:34 v #852 > > |> parse_ (skip_any_string_ 5 >>.$ p_char_ 'a')
00:00:34 v #853 > > |> resultm.unwrap_err
00:00:34 v #854 > > |> sm'.obj_to_string
00:00:34 v #855 > > |> sm'.replace "\r\n" "\n"
00:00:34 v #856 > > |> _assert_eq "(Error in Ln: 2 Col: 2\ndef\n ^\nExpecting: 'a'\n, Error in Ln: 2
00:00:34 v #857 > > Col: 2\nExpecting: 'a'\n)"
00:00:35 v #858 > 00:00:34 d #33 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f69fb73abb76ff30dc464393b7ef421a665e89a03d9a139636804dd870ac0d00/main.spi
00:00:35 v #859 > >
00:00:35 v #860 > > ╭─[ 523.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:35 v #861 > > │ __assert_eq / actual: "(Error in Ln: 2 Col: 2                                │
00:00:35 v #862 > > │ def                                                                          │
00:00:35 v #863 > > │  ^                                                                           │
00:00:35 v #864 > > │ Expecting: 'a'                                                               │
00:00:35 v #865 > > │ , Error in Ln: 2 Col: 2                                                      │
00:00:35 v #866 > > │ Expecting: 'a'                                                               │
00:00:35 v #867 > > │ )" / expected: "(Error in Ln: 2 Col: 2                                       │
00:00:35 v #868 > > │ def                                                                          │
00:00:35 v #869 > > │  ^                                                                           │
00:00:35 v #870 > > │ Expecting: 'a'                                                               │
00:00:35 v #871 > > │ , Error in Ln: 2 Col: 2                                                      │
00:00:35 v #872 > > │ Expecting: 'a'                                                               │
00:00:35 v #873 > > │ )"                                                                           │
00:00:35 v #874 > > │                                                                              │
00:00:35 v #875 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 v #876 > >
00:00:35 v #877 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:35 v #878 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:35 v #879 > > │ ### none_of                                                                  │
00:00:35 v #880 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 v #881 > >
00:00:35 v #882 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 v #883 > > inl none_of (chars : list char) : parser char = function
00:00:35 v #884 > >     | "", s =>
00:00:35 v #885 > >         inl chars = chars |> listm'.box |> listm'.to_array'
00:00:35 v #886 > >         Error $'$"parsing.none_of / unexpected end of input / chars: %A{!chars}
00:00:35 v #887 > > / s: %A{!s}"'
00:00:35 v #888 > >     | x, s =>
00:00:35 v #889 > >         inl first_char = x |> sm'.index 0i32
00:00:35 v #890 > >         inl rest = x |> sm'.range (am'.Start 1i32) (am'.End id)
00:00:35 v #891 > >         if chars |> listm'.exists' ((=) first_char) |> not
00:00:35 v #892 > >         then Ok (first_char, rest, s |> update (sm'.obj_to_string first_char))
00:00:35 v #893 > >         else
00:00:35 v #894 > >             inl chars = chars |> listm'.box |> listm'.to_array'
00:00:35 v #895 > >             Error $'$"parsing.none_of / unexpected char: \'{!first_char}\'
00:00:35 v #896 > > chars: %A{!chars} / s: %A{!s}"'
00:00:35 v #897 > 00:00:34 d #34 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b0efb3ccd8d0367db06e657acc834660dc6dea018b5ba619438eedf9c030fdb/main.spi
00:00:35 v #898 > >
00:00:35 v #899 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 v #900 > > //// test
00:00:35 v #901 > >
00:00:35 v #902 > > "abc"
00:00:35 v #903 > > |> parse (none_of [['a'; 'b'; 'c']])
00:00:35 v #904 > > |> _assert_eq (Error "parsing.none_of / unexpected char: \'a\' / chars: [[|'a';
00:00:35 v #905 > > 'b'; 'c'|]] / s: struct (, 1, 1)")
00:00:35 v #906 > >
00:00:35 v #907 > > "def"
00:00:35 v #908 > > |> parse (none_of [['a'; 'b'; 'c']])
00:00:35 v #909 > > |> resultm.get
00:00:35 v #910 > > |> sm'.format_debug
00:00:35 v #911 > > |> _assert_eq (
00:00:35 v #912 > >     ('d', "ef", { line_text = "d" |> sm'.string_builder; position = { line =
00:00:35 v #913 > > 1i32; col = 2i32 } })
00:00:35 v #914 > >     |> sm'.format_debug
00:00:35 v #915 > > )
00:00:36 v #916 > 00:00:35 d #35 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d05e16a6530483173221c8add2b09ddc354a2c26f2464fb1333cf1840f482104/main.spi
00:00:36 v #917 > >
00:00:36 v #918 > > ╭─[ 702.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:36 v #919 > > │ __assert_eq / actual: US0_1                                                  │
00:00:36 v #920 > > │   "parsing.none_of / unexpected char: 'a' / chars: [|'a'; 'b'; 'c'|] / s:    │
00:00:36 v #921 > > │ struct (, 1, 1)" / expected: US0_1                                           │
00:00:36 v #922 > > │   "parsing.none_of / unexpected char: 'a' / chars: [|'a'; 'b'; 'c'|] / s:    │
00:00:36 v #923 > > │ struct (, 1, 1)"                                                             │
00:00:36 v #924 > > │ __assert_eq / actual: "struct ('d', "ef", d, 1, 2)" / expected: "struct      │
00:00:36 v #925 > > │ ('d', "ef", d, 1, 2)"                                                        │
00:00:36 v #926 > > │                                                                              │
00:00:36 v #927 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 v #928 > >
00:00:36 v #929 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 v #930 > > //// test
00:00:36 v #931 > >
00:00:36 v #932 > > "abc"
00:00:36 v #933 > > |> parse_ (none_of_ [['a'; 'b'; 'c']])
00:00:36 v #934 > > |> resultm.unwrap_err
00:00:36 v #935 > > |> sm'.obj_to_string
00:00:36 v #936 > > |> sm'.replace "\r\n" "\n"
00:00:36 v #937 > > |> _assert_eq ($'"(Error in Ln: 1 Col: 1\nabc\n^\nExpecting: any char not in
00:00:36 v #938 > > ‘abc’\n, Error in Ln: 1 Col: 1\nExpecting: any char not in ‘abc’\n)"')
00:00:36 v #939 > >
00:00:36 v #940 > > "def"
00:00:36 v #941 > > |> parse_ (none_of_ [['a'; 'b'; 'c']])
00:00:36 v #942 > > |> resultm.get
00:00:36 v #943 > > |> sm'.obj_to_string
00:00:36 v #944 > > |> _assert_eq' (('d', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:00:36 v #945 > > sm'.obj_to_string)
00:00:36 v #946 > 00:00:35 d #36 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a8bf27ab8e36a4f691621cda2ae027d6fae5c9b673517dddd3c3cb374da5444/main.spi
00:00:37 v #947 > >
00:00:37 v #948 > > ╭─[ 637.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:37 v #949 > > │ __assert_eq / actual: "(Error in Ln: 1 Col: 1                                │
00:00:37 v #950 > > │ abc                                                                          │
00:00:37 v #951 > > │ ^                                                                            │
00:00:37 v #952 > > │ Expecting: any char not in ‘abc’                                             │
00:00:37 v #953 > > │ , Error in Ln: 1 Col: 1                                                      │
00:00:37 v #954 > > │ Expecting: any char not in ‘abc’                                             │
00:00:37 v #955 > > │ )" / expected: "(Error in Ln: 1 Col: 1                                       │
00:00:37 v #956 > > │ abc                                                                          │
00:00:37 v #957 > > │ ^                                                                            │
00:00:37 v #958 > > │ Expecting: any char not in ‘abc’                                             │
00:00:37 v #959 > > │ , Error in Ln: 1 Col: 1                                                      │
00:00:37 v #960 > > │ Expecting: any char not in ‘abc’                                             │
00:00:37 v #961 > > │ )"                                                                           │
00:00:37 v #962 > > │ __assert_eq' / actual: "(d, (Ln: 1, Col: 2))" / expected: "(d, (Ln: 1, Col:  │
00:00:37 v #963 > > │ 2))"                                                                         │
00:00:37 v #964 > > │                                                                              │
00:00:37 v #965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 v #966 > >
00:00:37 v #967 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 v #968 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 v #969 > > │ ### (<|>)                                                                    │
00:00:37 v #970 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 v #971 > >
00:00:37 v #972 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 v #973 > > inl (<|>) forall t. (a : parser t) (b : parser t) : parser t = fun input, s =>
00:00:37 v #974 > >     match a (input, s) with
00:00:37 v #975 > >     | Ok _ as result => result
00:00:37 v #976 > >     | Error _ => b (input, s)
00:00:37 v #977 > 00:00:36 d #37 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f04c5c12c05e0b29180cc04df094259f928dd0a3efea57319e7a3de40736823/main.spi
00:00:37 v #978 > >
00:00:37 v #979 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 v #980 > > //// test
00:00:37 v #981 > >
00:00:37 v #982 > > "abc"
00:00:37 v #983 > > |> parse (p_char 'a' <|> p_char 'b')
00:00:37 v #984 > > |> resultm.get
00:00:37 v #985 > > |> sm'.format_debug
00:00:37 v #986 > > |> _assert_eq (
00:00:37 v #987 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:00:37 v #988 > > 1i32; col = 2i32 } })
00:00:37 v #989 > >     |> sm'.format_debug
00:00:37 v #990 > > )
00:00:37 v #991 > >
00:00:37 v #992 > > "cba"
00:00:37 v #993 > > |> parse (p_char 'a' <|> p_char 'b')
00:00:37 v #994 > > |> _assert_eq (Error "parsing.p_char / expected: 'b' / line: 1 / col:
00:00:37 v #995 > > 1\ncba\n^\n")
00:00:37 v #996 > 00:00:37 d #38 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e0c9911e8b012ff729d18e53fdbc4f7fe6c133ef58191c87a0461820e719e17a/main.spi
00:00:38 v #997 > >
00:00:38 v #998 > > ╭─[ 712.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 v #999 > > │ __assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct      │
00:00:38 v #1000 > > │ ('a', "bc", a, 1, 2)"                                                        │
00:00:38 v #1001 > > │ __assert_eq / actual: US0_1 "parsing.p_char / expected: 'b' / line: 1 / col: │
00:00:38 v #1002 > > │ 1                                                                            │
00:00:38 v #1003 > > │ cba                                                                          │
00:00:38 v #1004 > > │ ^                                                                            │
00:00:38 v #1005 > > │ " / expected: US0_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1       │
00:00:38 v #1006 > > │ cba                                                                          │
00:00:38 v #1007 > > │ ^                                                                            │
00:00:38 v #1008 > > │ "                                                                            │
00:00:38 v #1009 > > │                                                                              │
00:00:38 v #1010 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 v #1011 > >
00:00:38 v #1012 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 v #1013 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 v #1014 > > │ ### (|>>)                                                                    │
00:00:38 v #1015 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 v #1016 > >
00:00:38 v #1017 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 v #1018 > > inl (|>>) p f : parser _ = fun input =>
00:00:38 v #1019 > >     match p input with
00:00:38 v #1020 > >     | Ok (result, rest) => Ok (f result, rest)
00:00:38 v #1021 > >     | Error e => Error e
00:00:38 v #1022 > 00:00:37 d #39 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9466a7dcbe586a994b175d5b354a79c47569335ffae6f4d08c6c19958287aefb/main.spi
00:00:38 v #1023 > >
00:00:38 v #1024 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 v #1025 > > //// test
00:00:38 v #1026 > >
00:00:38 v #1027 > > "abc"
00:00:38 v #1028 > > |> parse (p_char 'a' |>> sm'.char_to_upper)
00:00:38 v #1029 > > |> resultm.get
00:00:38 v #1030 > > |> sm'.format_debug
00:00:38 v #1031 > > |> _assert_eq (
00:00:38 v #1032 > >     ('A', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:00:38 v #1033 > > 1i32; col = 2i32 } })
00:00:38 v #1034 > >     |> sm'.format_debug
00:00:38 v #1035 > > )
00:00:38 v #1036 > 00:00:38 d #40 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b05fb2408574279ac8c07977fa0c192733670e5e8a2cc9f3282ff96bee6c7552/main.spi
00:00:39 v #1037 > >
00:00:39 v #1038 > > ╭─[ 590.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:39 v #1039 > > │ __assert_eq / actual: "struct ('A', "bc", a, 1, 2)" / expected: "struct      │
00:00:39 v #1040 > > │ ('A', "bc", a, 1, 2)"                                                        │
00:00:39 v #1041 > > │                                                                              │
00:00:39 v #1042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 v #1043 > >
00:00:39 v #1044 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 v #1045 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 v #1046 > > │ ### many                                                                     │
00:00:39 v #1047 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 v #1048 > >
00:00:39 v #1049 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 v #1050 > > inl many p : parser (list _) = fun input =>
00:00:39 v #1051 > >     let rec loop acc input =
00:00:39 v #1052 > >         match p input with
00:00:39 v #1053 > >         | Ok (result, rest) => loop (result :: acc) rest
00:00:39 v #1054 > >         | Error _ => Ok (listm.rev acc, input)
00:00:39 v #1055 > >     loop [[]] input
00:00:39 v #1056 > 00:00:38 d #41 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7e5ded0b93f3d936ab34ce73d4a61def2a858b983cae91286c0f4f294b9934b1/main.spi
00:00:39 v #1057 > >
00:00:39 v #1058 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 v #1059 > > //// test
00:00:39 v #1060 > >
00:00:39 v #1061 > > "aaabbc"
00:00:39 v #1062 > > |> parse (many (p_char 'a' <|> p_char 'b'))
00:00:39 v #1063 > > |> resultm.get
00:00:39 v #1064 > > |> sm'.format_debug
00:00:39 v #1065 > > |> _assert_eq (
00:00:39 v #1066 > >     ([['a'; 'a'; 'a'; 'b'; 'b']], "c", { line_text = "aaabb" |>
00:00:39 v #1067 > > sm'.string_builder; position = { line = 1i32; col = 6i32 } })
00:00:39 v #1068 > >     |> sm'.format_debug
00:00:39 v #1069 > > )
00:00:40 v #1070 > 00:00:39 d #42 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/03db0a1c5feb5f2c0172a590441670826f7931f0ee6c8d7a52f51deb956984fa/main.spi
00:00:40 v #1071 > >
00:00:40 v #1072 > > ╭─[ 625.72ms - stdout ]────────────────────────────────────────────────────────╮
00:00:40 v #1073 > > │ __assert_eq / actual: "struct (UH0_1 ('a', UH0_1 ('a', UH0_1 ('a', UH0_1     │
00:00:40 v #1074 > > │ ('b', UH0_1 ('b', UH0_0))))),                                                │
00:00:40 v #1075 > > │         "c", aaabb, 1, 6)" / expected: "struct (UH0_1 ('a', UH0_1 ('a',      │
00:00:40 v #1076 > > │ UH0_1 ('a', UH0_1 ('b', UH0_1 ('b', UH0_0))))),                              │
00:00:40 v #1077 > > │         "c", aaabb, 1, 6)"                                                   │
00:00:40 v #1078 > > │                                                                              │
00:00:40 v #1079 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 v #1080 > >
00:00:40 v #1081 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 v #1082 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 v #1083 > > │ ### many1_chars                                                              │
00:00:40 v #1084 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 v #1085 > >
00:00:40 v #1086 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 v #1087 > > inl many1_chars p : parser string = fun input =>
00:00:40 v #1088 > >     match p input with
00:00:40 v #1089 > >     | Error e => Error e
00:00:40 v #1090 > >     | Ok (first_result, rest) =>
00:00:40 v #1091 > >         let rec loop acc input =
00:00:40 v #1092 > >             match p input with
00:00:40 v #1093 > >             | Ok (result, rest) => loop (acc +. sm'.obj_to_string result) rest
00:00:40 v #1094 > >             | Error _ => Ok (acc, input)
00:00:40 v #1095 > >         loop (sm'.obj_to_string first_result) rest
00:00:40 v #1096 > 00:00:39 d #43 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4faa820af98250cb826c45fa7960ce5c8445c6ba71784147790d89885549b415/main.spi
00:00:40 v #1097 > >
00:00:40 v #1098 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 v #1099 > > //// test
00:00:40 v #1100 > >
00:00:40 v #1101 > > "aaabbc"
00:00:40 v #1102 > > |> parse (many1_chars (p_char 'a' <|> p_char 'b'))
00:00:40 v #1103 > > |> resultm.get
00:00:40 v #1104 > > |> sm'.format_debug
00:00:40 v #1105 > > |> _assert_eq (
00:00:40 v #1106 > >     ("aaabb", "c", { line_text = "aaabb" |> sm'.string_builder; position = {
00:00:40 v #1107 > > line = 1i32; col = 6i32 } })
00:00:40 v #1108 > >     |> sm'.format_debug
00:00:40 v #1109 > > )
00:00:41 v #1110 > 00:00:40 d #44 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3500ece4ebb11657a5e97bca3b12d51644aa2341639f7af4132a03f0232aac49/main.spi
00:00:41 v #1111 > >
00:00:41 v #1112 > > ╭─[ 790.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:41 v #1113 > > │ __assert_eq / actual: "struct ("aaabb", "c", aaabb, 1, 6)" / expected:       │
00:00:41 v #1114 > > │ "struct ("aaabb", "c", aaabb, 1, 6)"                                         │
00:00:41 v #1115 > > │                                                                              │
00:00:41 v #1116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 v #1117 > >
00:00:41 v #1118 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 v #1119 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 v #1120 > > │ ### many_chars                                                               │
00:00:41 v #1121 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 v #1122 > >
00:00:41 v #1123 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 v #1124 > > inl many_chars p : parser string = fun input =>
00:00:41 v #1125 > >     match many1_chars p input with
00:00:41 v #1126 > >     | Ok (result, rest) => Ok (result, rest)
00:00:41 v #1127 > >     | Error e => Ok ("", input)
00:00:42 v #1128 > 00:00:41 d #45 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/88e99ae3c4177509a3888e2aa8c9b37f2c309e0b82bc30bcc8f2c8395f4f400d/main.spi
00:00:42 v #1129 > >
00:00:42 v #1130 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:42 v #1131 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:42 v #1132 > > │ ### many_chars_till                                                          │
00:00:42 v #1133 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 v #1134 > >
00:00:42 v #1135 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 v #1136 > > inl many_chars_till p end_p : parser string = fun input =>
00:00:42 v #1137 > >     match end_p input with
00:00:42 v #1138 > >     | Ok _ => Ok ("", input)
00:00:42 v #1139 > >     | Error _ =>
00:00:42 v #1140 > >         match many_chars p input with
00:00:42 v #1141 > >         | Ok (result, rest) => Ok (result, rest)
00:00:42 v #1142 > >         | Error e => Error e
00:00:42 v #1143 > 00:00:41 d #46 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f149a2888280b5f07b9d1831709a905d250f736ea0fa46dd0cf3bd7faa6e33f/main.spi
00:00:42 v #1144 > >
00:00:42 v #1145 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:42 v #1146 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:42 v #1147 > > │ ### many1                                                                    │
00:00:42 v #1148 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 v #1149 > >
00:00:42 v #1150 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 v #1151 > > inl many1 p : parser (list _) = fun input =>
00:00:42 v #1152 > >     match p input with
00:00:42 v #1153 > >     | Error e => Error e
00:00:42 v #1154 > >     | Ok (first_result, rest) =>
00:00:42 v #1155 > >         let rec loop acc input =
00:00:42 v #1156 > >             match p input with
00:00:42 v #1157 > >             | Ok (result, rest) => loop (result :: acc) rest
00:00:42 v #1158 > >             | Error _ => Ok (listm.rev acc, input)
00:00:42 v #1159 > >         loop [[ first_result ]] rest
00:00:43 v #1160 > 00:00:42 d #47 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf7b79be2e63317244864926057e2571c9d70c219c7fa206cee8400d9e24cb87/main.spi
00:00:43 v #1161 > >
00:00:43 v #1162 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:43 v #1163 > > //// test
00:00:43 v #1164 > >
00:00:43 v #1165 > > "aaabbc"
00:00:43 v #1166 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:00:43 v #1167 > > |> resultm.get
00:00:43 v #1168 > > |> sm'.format_debug
00:00:43 v #1169 > > |> _assert_eq (
00:00:43 v #1170 > >     ([['a'; 'a'; 'a'; 'b'; 'b']], "c", { line_text = "aaabb" |>
00:00:43 v #1171 > > sm'.string_builder; position = { line = 1i32; col = 6i32 } })
00:00:43 v #1172 > >     |> sm'.format_debug
00:00:43 v #1173 > > )
00:00:43 v #1174 > >
00:00:43 v #1175 > > "bcc"
00:00:43 v #1176 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:00:43 v #1177 > > |> resultm.get
00:00:43 v #1178 > > |> sm'.format_debug
00:00:43 v #1179 > > |> _assert_eq (
00:00:43 v #1180 > >     ([['b']], "cc", { line_text = "b" |> sm'.string_builder; position = { line =
00:00:43 v #1181 > > 1i32; col = 2i32 } })
00:00:43 v #1182 > >     |> sm'.format_debug
00:00:43 v #1183 > > )
00:00:43 v #1184 > >
00:00:43 v #1185 > > "cba"
00:00:43 v #1186 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:00:43 v #1187 > > |> _assert_eq (Error "parsing.p_char / expected: 'b' / line: 1 / col:
00:00:43 v #1188 > > 1\ncba\n^\n")
00:00:43 v #1189 > 00:00:42 d #48 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b02800b4de5002ffa649049e0ed555930a90033c05aec99bf16f76bdf6b81e47/main.spi
00:00:44 v #1190 > >
00:00:44 v #1191 > > ╭─[ 909.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:44 v #1192 > > │ __assert_eq / actual: "struct (UH0_1 ('a', UH0_1 ('a', UH0_1 ('a', UH0_1     │
00:00:44 v #1193 > > │ ('b', UH0_1 ('b', UH0_0))))),                                                │
00:00:44 v #1194 > > │         "c", aaabb, 1, 6)" / expected: "struct (UH0_1 ('a', UH0_1 ('a',      │
00:00:44 v #1195 > > │ UH0_1 ('a', UH0_1 ('b', UH0_1 ('b', UH0_0))))),                              │
00:00:44 v #1196 > > │         "c", aaabb, 1, 6)"                                                   │
00:00:44 v #1197 > > │ __assert_eq / actual: "struct (UH0_1 ('b', UH0_0), "cc", b, 1, 2)" /         │
00:00:44 v #1198 > > │ expected: "struct (UH0_1 ('b', UH0_0), "cc", b, 1, 2)"                       │
00:00:44 v #1199 > > │ __assert_eq / actual: US1_1 "parsing.p_char / expected: 'b' / line: 1 / col: │
00:00:44 v #1200 > > │ 1                                                                            │
00:00:44 v #1201 > > │ cba                                                                          │
00:00:44 v #1202 > > │ ^                                                                            │
00:00:44 v #1203 > > │ " / expected: US1_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1       │
00:00:44 v #1204 > > │ cba                                                                          │
00:00:44 v #1205 > > │ ^                                                                            │
00:00:44 v #1206 > > │ "                                                                            │
00:00:44 v #1207 > > │                                                                              │
00:00:44 v #1208 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 v #1209 > >
00:00:44 v #1210 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:44 v #1211 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:44 v #1212 > > │ ### many1_strings                                                            │
00:00:44 v #1213 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 v #1214 > >
00:00:44 v #1215 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 v #1216 > > inl many1_strings p : parser string = fun input =>
00:00:44 v #1217 > >     match many1 p input with
00:00:44 v #1218 > >     | Ok (results, rest) =>
00:00:44 v #1219 > >         Ok (results |> listm.map sm'.obj_to_string |> listm'.box |> seq.of_list'
00:00:44 v #1220 > > |> sm'.concat "", rest)
00:00:44 v #1221 > >     | Error e => Error e
00:00:44 v #1222 > 00:00:43 d #49 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4db7f897dfc10a3c023fcb9fa3bfd19f4be658f2d449dbcd55459a037a50c71a/main.spi
00:00:44 v #1223 > >
00:00:44 v #1224 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 v #1225 > > //// test
00:00:44 v #1226 > >
00:00:44 v #1227 > > "aaabbc"
00:00:44 v #1228 > > |> parse (many1_strings (p_char 'a' <|> p_char 'b'))
00:00:44 v #1229 > > |> resultm.get
00:00:44 v #1230 > > |> sm'.format_debug
00:00:44 v #1231 > > |> _assert_eq (
00:00:44 v #1232 > >     ("aaabb", "c", { line_text = "aaabb" |> sm'.string_builder; position = {
00:00:44 v #1233 > > line = 1i32; col = 6i32 } })
00:00:44 v #1234 > >     |> sm'.format_debug
00:00:44 v #1235 > > )
00:00:44 v #1236 > 00:00:44 d #50 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/daf738fdc51d3ced1ed65c4ead1ca992011a5f6e7b8ca4307128d39430c34b26/main.spi
00:00:45 v #1237 > >
00:00:45 v #1238 > > ╭─[ 821.46ms - stdout ]────────────────────────────────────────────────────────╮
00:00:45 v #1239 > > │ __assert_eq / actual: "struct ("aaabb", "c", aaabb, 1, 6)" / expected:       │
00:00:45 v #1240 > > │ "struct ("aaabb", "c", aaabb, 1, 6)"                                         │
00:00:45 v #1241 > > │                                                                              │
00:00:45 v #1242 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 v #1243 > >
00:00:45 v #1244 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 v #1245 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 v #1246 > > │ ### many_strings                                                             │
00:00:45 v #1247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 v #1248 > >
00:00:45 v #1249 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 v #1250 > > inl many_strings p : parser string = fun input =>
00:00:45 v #1251 > >     match many p input with
00:00:45 v #1252 > >     | Ok (results, rest) =>
00:00:45 v #1253 > >         Ok (results |> listm.map sm'.obj_to_string |> listm'.box |> seq.of_list'
00:00:45 v #1254 > > |> sm'.concat "", rest)
00:00:45 v #1255 > >     | Error e => Ok ("", input)
00:00:45 v #1256 > 00:00:44 d #51 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d57f92da626cbabc27c7d44828518ae6ed0cc0abce74cc914333937154088cc/main.spi
00:00:45 v #1257 > >
00:00:45 v #1258 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 v #1259 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 v #1260 > > │ ### choice                                                                   │
00:00:45 v #1261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 v #1262 > >
00:00:45 v #1263 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 v #1264 > > inl choice parsers : parser _ = fun input =>
00:00:45 v #1265 > >     let rec loop = function
00:00:45 v #1266 > >         | [[]] => Error "choice / no parsers succeeded"
00:00:45 v #1267 > >         | p :: ps =>
00:00:45 v #1268 > >             match p input with
00:00:45 v #1269 > >             | Ok _ as result => result
00:00:45 v #1270 > >             | Error _ => loop ps
00:00:45 v #1271 > >     loop parsers
00:00:46 v #1272 > 00:00:45 d #52 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28f131313db64ce0ad64a3c09002c7210095e837cbeace5c2c49e2c79073f2e2/main.spi
00:00:46 v #1273 > >
00:00:46 v #1274 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 v #1275 > > //// test
00:00:46 v #1276 > >
00:00:46 v #1277 > > "bca"
00:00:46 v #1278 > > |> parse (choice [[p_char 'a'; p_char 'b'; p_char 'c']])
00:00:46 v #1279 > > |> resultm.get
00:00:46 v #1280 > > |> sm'.format_debug
00:00:46 v #1281 > > |> _assert_eq (
00:00:46 v #1282 > >     ('b', "ca", { line_text = "b" |> sm'.string_builder; position = { line =
00:00:46 v #1283 > > 1i32; col = 2i32 } })
00:00:46 v #1284 > >     |> sm'.format_debug
00:00:46 v #1285 > > )
00:00:46 v #1286 > >
00:00:46 v #1287 > > "cba"
00:00:46 v #1288 > > |> parse (choice [[p_char 'a'; p_char 'b'; p_char 'c']])
00:00:46 v #1289 > > |> resultm.get
00:00:46 v #1290 > > |> sm'.format_debug
00:00:46 v #1291 > > |> _assert_eq (
00:00:46 v #1292 > >     ('c', "ba", { line_text = "c" |> sm'.string_builder; position = { line =
00:00:46 v #1293 > > 1i32; col = 2i32 } })
00:00:46 v #1294 > >     |> sm'.format_debug
00:00:46 v #1295 > > )
00:00:46 v #1296 > 00:00:45 d #53 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73c49782a9b574ccfbabede35de38c7f648b8b006d4775e2137ac9351639aa88/main.spi
00:00:47 v #1297 > >
00:00:47 v #1298 > > ╭─[ 681.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:47 v #1299 > > │ __assert_eq / actual: "struct ('b', "ca", b, 1, 2)" / expected: "struct      │
00:00:47 v #1300 > > │ ('b', "ca", b, 1, 2)"                                                        │
00:00:47 v #1301 > > │ __assert_eq / actual: "struct ('c', "ba", c, 1, 2)" / expected: "struct      │
00:00:47 v #1302 > > │ ('c', "ba", c, 1, 2)"                                                        │
00:00:47 v #1303 > > │                                                                              │
00:00:47 v #1304 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 v #1305 > >
00:00:47 v #1306 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 v #1307 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 v #1308 > > │ ### between                                                                  │
00:00:47 v #1309 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 v #1310 > >
00:00:47 v #1311 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 v #1312 > > inl between p_open p_close p_content : parser _ = fun input =>
00:00:47 v #1313 > >     match p_open input with
00:00:47 v #1314 > >     | Ok (_, rest1) =>
00:00:47 v #1315 > >         match p_content rest1 with
00:00:47 v #1316 > >         | Ok (result, rest2) =>
00:00:47 v #1317 > >             match p_close rest2 with
00:00:47 v #1318 > >             | Ok (_, rest3) => Ok (result, rest3)
00:00:47 v #1319 > >             | Error e => Error $'$"between / expected closing delimiter / e:
00:00:47 v #1320 > > %A{!e} / input: %A{!input} / rest1: %A{!rest1} / rest2: %A{!rest2}"'
00:00:47 v #1321 > >         | Error _ => Error "between / expected content"
00:00:47 v #1322 > >     | Error e => Error e
00:00:47 v #1323 > 00:00:46 d #54 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9bb508862cd23b585b3064d144f5f7ab4db0aeb738fce76c65c1cc6c0c1157cb/main.spi
00:00:47 v #1324 > >
00:00:47 v #1325 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 v #1326 > > //// test
00:00:47 v #1327 > >
00:00:47 v #1328 > > "[[aaabb]]"
00:00:47 v #1329 > > |> parse (between (p_char '[[') (p_char ']]') (many1_chars (p_char 'a' <|>
00:00:47 v #1330 > > p_char 'b')))
00:00:47 v #1331 > > |> resultm.get
00:00:47 v #1332 > > |> sm'.format_debug
00:00:47 v #1333 > > |> _assert_eq (
00:00:47 v #1334 > >     ("aaabb", "", { line_text = "[[aaabb]]" |> sm'.string_builder; position = {
00:00:47 v #1335 > > line = 1i32; col = 8i32 } })
00:00:47 v #1336 > >     |> sm'.format_debug
00:00:47 v #1337 > > )
00:00:47 v #1338 > >
00:00:47 v #1339 > > "[[aaabb"
00:00:47 v #1340 > > |> parse (between (p_char '[[') (p_char ']]') (many1_chars (p_char 'a' <|>
00:00:47 v #1341 > > p_char 'b')))
00:00:47 v #1342 > > |> resultm.unwrap_err
00:00:47 v #1343 > > |> sm'.format_debug
00:00:47 v #1344 > > |> _assert_eq "\"between / expected closing delimiter / e: \"parsing.p_char
00:00:47 v #1345 > > unexpected end of input / s: struct ([[aaabb, 1, 7)\" / input: struct
00:00:47 v #1346 > > (\"[[aaabb\", [[aaabb, 1, 1) / rest1: struct (\"aaabb\", [[aaabb, 1, 2) / rest2:
00:00:47 v #1347 > > struct (\"\", [[aaabb, 1, 7)\""
00:00:47 v #1348 > 00:00:46 d #55 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/120c58bd61ae9ee68d2bef0754032b8ebf019351bb8c29d99d26a91877220670/main.spi
00:00:48 v #1349 > >
00:00:48 v #1350 > > ╭─[ 965.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:48 v #1351 > > │ __assert_eq / actual: "struct ("aaabb", "", [aaabb], 1, 8)" / expected:      │
00:00:48 v #1352 > > │ "struct ("aaabb", "", [aaabb], 1, 8)"                                        │
00:00:48 v #1353 > > │ __assert_eq / actual: ""between / expected closing delimiter / e:            │
00:00:48 v #1354 > > │ "parsing.p_char / unexpected end of input / s: struct ([aaabb, 1, 7)" /      │
00:00:48 v #1355 > > │ input: struct ("[aaabb", [aaabb, 1, 1) / rest1: struct ("aaabb", [aaabb, 1,  │
00:00:48 v #1356 > > │ 2) / rest2: struct ("", [aaabb, 1, 7)"" / expected: ""between / expected     │
00:00:48 v #1357 > > │ closing delimiter / e: "parsing.p_char / unexpected end of input / s: struct │
00:00:48 v #1358 > > │ ([aaabb, 1, 7)" / input: struct ("[aaabb", [aaabb, 1, 1) / rest1: struct     │
00:00:48 v #1359 > > │ ("aaabb", [aaabb, 1, 2) / rest2: struct ("", [aaabb, 1, 7)""                 │
00:00:48 v #1360 > > │                                                                              │
00:00:48 v #1361 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 v #1362 > >
00:00:48 v #1363 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 v #1364 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 v #1365 > > │ ### sep_by                                                                   │
00:00:48 v #1366 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 v #1367 > >
00:00:48 v #1368 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 v #1369 > > inl sep_by p sep : parser (list _) = fun input, s =>
00:00:48 v #1370 > >     let rec loop acc input s =
00:00:48 v #1371 > >         match p (input, s) with
00:00:48 v #1372 > >         | Error _ => Ok (acc |> listm.rev, input, s)
00:00:48 v #1373 > >         | Ok (result, rest, s) =>
00:00:48 v #1374 > >             match sep (rest, s) with
00:00:48 v #1375 > >             | Error _ => Ok ((result :: acc) |> listm.rev, rest, s)
00:00:48 v #1376 > >             | Ok (_, rest, s) => loop (result :: acc) rest s
00:00:48 v #1377 > >     loop [[]] input s
00:00:48 v #1378 > 00:00:47 d #56 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf3ddc4ed4d8b57c8aed7af00f4bd14612c67e2a5ada2c03abd5e4255db6d70d/main.spi
00:00:48 v #1379 > >
00:00:48 v #1380 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 v #1381 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 v #1382 > > │ ### span                                                                     │
00:00:48 v #1383 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 v #1384 > >
00:00:48 v #1385 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 v #1386 > > inl span pred str =
00:00:48 v #1387 > >     let rec loop i =
00:00:48 v #1388 > >         if i >= sm'.length str
00:00:48 v #1389 > >         then i
00:00:48 v #1390 > >         elif pred (str |> sm'.index i)
00:00:48 v #1391 > >         then loop (i + 1)
00:00:48 v #1392 > >         else i
00:00:48 v #1393 > >     loop 0
00:00:49 v #1394 > 00:00:48 d #57 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef6213d388f6f561f2f2215c0c8b3a836d7a2d3fe869d263cc5caafa7af5370e/main.spi
00:00:49 v #1395 > >
00:00:49 v #1396 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 v #1397 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 v #1398 > > │ ### spaces1                                                                  │
00:00:49 v #1399 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 v #1400 > >
00:00:49 v #1401 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 v #1402 > > inl spaces1 () : parser () = fun input, s =>
00:00:49 v #1403 > >     match input |> span fun c => c = ' ' with
00:00:49 v #1404 > >     | 0i32 => Error "spaces1 / expected at least one space"
00:00:49 v #1405 > >     | n => Ok ((), input |> sm'.range (am'.Start n) (am'.End id), s)
00:00:49 v #1406 > 00:00:48 d #58 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fdd73f850f00d3fc031147e77990cdc1afa4b5c263b16c48c2e00c6066dc066b/main.spi
00:00:49 v #1407 > >
00:00:49 v #1408 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 v #1409 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 v #1410 > > │ ### spaces                                                                   │
00:00:49 v #1411 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 v #1412 > >
00:00:49 v #1413 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 v #1414 > > inl spaces () : parser () = fun input, s =>
00:00:49 v #1415 > >     input
00:00:49 v #1416 > >     |> span fun c => c = ' '
00:00:49 v #1417 > >     |> fun (n : i32) => Ok ((), input |> sm'.range (am'.Start n) (am'.End id),
00:00:49 v #1418 > > s)
00:00:50 v #1419 > 00:00:49 d #59 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c125b7f53dd16dd27c9836dacd8a63e604901495b811ab32a88c2046f608d24f/main.spi
00:00:50 v #1420 > >
00:00:50 v #1421 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 v #1422 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 v #1423 > > │ ### p_digit                                                                  │
00:00:50 v #1424 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 v #1425 > >
00:00:50 v #1426 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 v #1427 > > inl p_digit () : parser char = fun input, s =>
00:00:50 v #1428 > >     match input |> sm'.index 0i32 with
00:00:50 v #1429 > >     | ('0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9') as c =>
00:00:50 v #1430 > >         Ok (c, input |> sm'.range (am'.Start 1i32) (am'.End id), s)
00:00:50 v #1431 > >     | c => Error $'$"p_digit / unexpected char: {!c}"'
00:00:50 v #1432 > 00:00:49 d #60 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5c1f01dc757d35e12b32a50d6a0979899be8d81286cbb0cfeb94e6e76a20db89/main.spi
00:00:50 v #1433 > >
00:00:50 v #1434 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 v #1435 > > //// test
00:00:50 v #1436 > >
00:00:50 v #1437 > > "1 2 3"
00:00:50 v #1438 > > |> parse (sep_by (p_digit ()) (spaces1 ()))
00:00:50 v #1439 > > |> resultm.get
00:00:50 v #1440 > > |> sm'.format_debug
00:00:50 v #1441 > > |> _assert_eq (
00:00:50 v #1442 > >     ([['1'; '2'; '3']], "", { line_text = "" |> sm'.string_builder; position = {
00:00:50 v #1443 > > col = 1i32; line = 1i32 } })
00:00:50 v #1444 > >     |> sm'.format_debug
00:00:50 v #1445 > > )
00:00:50 v #1446 > 00:00:50 d #61 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/328dd81266a276737802e46f808180647f8ff04b90a43b50926d4f0b67a5b4c2/main.spi
00:00:51 v #1447 > >
00:00:51 v #1448 > > ╭─[ 737.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:51 v #1449 > > │ __assert_eq / actual: "struct (UH0_1 ('1', UH0_1 ('2', UH0_1 ('3', UH0_0))), │
00:00:51 v #1450 > > │ "", , 1, 1)" / expected: "struct (UH0_1 ('1', UH0_1 ('2', UH0_1 ('3',        │
00:00:51 v #1451 > > │ UH0_0))), "", , 1, 1)"                                                       │
00:00:51 v #1452 > > │                                                                              │
00:00:51 v #1453 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 v #1454 > >
00:00:51 v #1455 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 v #1456 > > //// test
00:00:51 v #1457 > >
00:00:51 v #1458 > > "1 a 2"
00:00:51 v #1459 > > |> parse (sep_by (p_digit ()) (spaces1 ()))
00:00:51 v #1460 > > |> resultm.get
00:00:51 v #1461 > > |> sm'.format_debug
00:00:51 v #1462 > > |> _assert_eq (
00:00:51 v #1463 > >     ([['1']], "a 2", { line_text = "" |> sm'.string_builder; position = { col =
00:00:51 v #1464 > > 1i32; line = 1i32 } })
00:00:51 v #1465 > >     |> sm'.format_debug
00:00:51 v #1466 > > )
00:00:51 v #1467 > 00:00:50 d #62 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2747b9f3bada241d68ada8a367b439f49680dad4ad91fb8de927a9fee1a3b31a/main.spi
00:00:52 v #1468 > >
00:00:52 v #1469 > > ╭─[ 618.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:52 v #1470 > > │ __assert_eq / actual: "struct (UH0_1 ('1', UH0_0), "a 2", , 1, 1)" /         │
00:00:52 v #1471 > > │ expected: "struct (UH0_1 ('1', UH0_0), "a 2", , 1, 1)"                       │
00:00:52 v #1472 > > │                                                                              │
00:00:52 v #1473 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 v #1474 > >
00:00:52 v #1475 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 v #1476 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 v #1477 > > │ ### opt                                                                      │
00:00:52 v #1478 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 v #1479 > >
00:00:52 v #1480 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 v #1481 > > inl opt p : parser (option _) = fun input, s =>
00:00:52 v #1482 > >     match p (input, s) with
00:00:52 v #1483 > >     | Ok (result, rest, s) => Ok (Some result, rest, s)
00:00:52 v #1484 > >     | Error _ => Ok (None, input, s)
00:00:52 v #1485 > 00:00:51 d #63 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0fd65a969658fb62006e04d34fa3e62bfce0a24227f185ae96056e034074a095/main.spi
00:00:52 v #1486 > >
00:00:52 v #1487 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 v #1488 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 v #1489 > > │ ### rest_of_line                                                             │
00:00:52 v #1490 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 v #1491 > >
00:00:52 v #1492 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 v #1493 > > inl rest_of_line () : parser string = fun input, s =>
00:00:52 v #1494 > >     inl i : i32 = input |> span ((<>) '\n')
00:00:52 v #1495 > >     Ok (input |> sm'.range (am'.Start i) (am'.End id), input |> sm'.range
00:00:52 v #1496 > > (am'.Start i) (am'.End id), s)
00:00:52 v #1497 > 00:00:52 d #64 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cceec9d1fc02d33435f9dc6193ecdec2e387dfc6f5b1dd2e883ed9289438c0b7/main.spi
00:00:53 v #1498 > >
00:00:53 v #1499 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 v #1500 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 v #1501 > > │ ### eof                                                                      │
00:00:53 v #1502 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 v #1503 > >
00:00:53 v #1504 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 v #1505 > > inl eof () : parser () = fun input, s =>
00:00:53 v #1506 > >     if sm'.length input = 0i32
00:00:53 v #1507 > >     then Ok ((), input, s)
00:00:53 v #1508 > >     else Error $'$"parsing.eof / expected end of input / input: %A{!input}"'
00:00:53 v #1509 > 00:00:52 d #65 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ca277ea50de9667e94480b31bdb72fb6845d5cfc87c4a907efa811c3de86218/main.spi
00:00:53 v #1510 > 00:00:51 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 65559 }
00:00:53 v #1511 > 00:00:51 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:55 v #1512 > 00:00:53 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb to html
00:00:55 v #1513 > 00:00:53 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:55 v #1514 > 00:00:53 v #7 !   validate(nb)
00:00:55 v #1515 > 00:00:53 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:55 v #1516 > 00:00:53 v #9 !   return _pygments_highlight(
00:00:57 v #1517 > 00:00:55 v #10 ! [NbConvertApp] Writing 480745 bytes to c:\home\git\polyglot\lib\spiral\parsing.dib.html
00:00:57 v #1518 > 00:00:55 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 856 }
00:00:57 v #1519 > 00:00:55 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 856 }
00:00:57 v #1520 > 00:00:55 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/parsing.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/parsing.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:57 v #1521 > 00:00:56 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:57 v #1522 > 00:00:56 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:57 v #1523 > 00:00:56 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 66474 }
00:00:57 d #1524 runtime.execute_with_options_async / { exit_code = 0; output_length = 71926 }
00:00:57 d #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path parsing.dib --retries 3
00:00:57 d #1525 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path sm'.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path sm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:58 v #1526 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "sm'.dib", "--retries", "3"])) }
00:00:58 v #1527 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/sm'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/sm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:59 v #1528 > >
00:00:59 v #1529 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:59 v #1530 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:59 v #1531 > > │ # sm'                                                                        │
00:00:59 v #1532 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:03 v #1533 > >
00:01:03 v #1534 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:03 v #1535 > > //// test
00:01:03 v #1536 > >
00:01:03 v #1537 > > open testing
00:01:04 v #1538 > 00:01:03 d #66 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:01:05 v #1539 > >
00:01:05 v #1540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:05 v #1541 > > open rust
00:01:05 v #1542 > > open rust_operators
00:01:05 v #1543 > > open sm'_real
00:01:05 v #1544 > 00:01:04 d #67 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e360b2869ee87aef55b6d99e53149c9ba863e6ed033aeb0416f1b4348fb86f51/main.spi
00:01:05 v #1545 > >
00:01:05 v #1546 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:05 v #1547 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:05 v #1548 > > │ ## rust                                                                      │
00:01:05 v #1549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:05 v #1550 > >
00:01:05 v #1551 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:05 v #1552 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:05 v #1553 > > │ ### std_string                                                               │
00:01:05 v #1554 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:05 v #1555 > >
00:01:05 v #1556 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:05 v #1557 > > //// real
00:01:05 v #1558 > >
00:01:05 v #1559 > > nominal std_string =
00:01:05 v #1560 > >     `(
00:01:05 v #1561 > >         backend_switch `(()) `({}) {
00:01:05 v #1562 > >             Fsharp =
00:01:05 v #1563 > >                 (fun () =>
00:01:05 v #1564 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:05 v #1565 > > Fable.Core.Emit(\"std::string::String\")>]]\ntype std_string_String = class
00:01:05 v #1566 > > end\n#else\ntype std_string_String = string\n#endif\n"
00:01:05 v #1567 > >                 ) : () -> ()
00:01:05 v #1568 > >         }
00:01:05 v #1569 > >         $'' : $'std_string_String'
00:01:05 v #1570 > >     )
00:01:05 v #1571 > 00:01:04 d #68 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2fe053b4c873fd9ecb9d5139aa5055fb300b187afbe97aa05c9a0ac050ef7c26/main_real.spir
00:01:05 v #1572 > >
00:01:05 v #1573 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:05 v #1574 > > type std_string = sm'_real.std_string
00:01:06 v #1575 > 00:01:05 d #69 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ebfea074cd52f43bf9afb71d4e7567c8f54e220574c278c0eff00921900181d/main.spi
00:01:06 v #1576 > >
00:01:06 v #1577 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:06 v #1578 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:06 v #1579 > > │ ### to_string                                                                │
00:01:06 v #1580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:06 v #1581 > >
00:01:06 v #1582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:06 v #1583 > > inl to_string forall t. (x : t) : std_string =
00:01:06 v #1584 > >     !\($'$"!x.to_string()"')
00:01:06 v #1585 > 00:01:05 d #70 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/366532c47b2227631ad0dbb21cdbf06b6c2b474131a44140c6e9392ee656f2d9/main.spi
00:01:06 v #1586 > >
00:01:06 v #1587 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:06 v #1588 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:06 v #1589 > > │ ### from_std_string                                                          │
00:01:06 v #1590 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:06 v #1591 > >
00:01:06 v #1592 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:06 v #1593 > > //// real
00:01:06 v #1594 > >
00:01:06 v #1595 > > inl from_std_string (str : std_string) : string =
00:01:06 v #1596 > >     open rust
00:01:06 v #1597 > >     rust.emit_expr `std_string `string str
00:01:06 v #1598 > > ($'"fable_library_rust::String_::fromString($0)"' : string)
00:01:06 v #1599 > 00:01:06 d #71 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc103f5bc7505c13f086f3d5b00d4d463a41d342fc756e6bdf4cf2dcc34304b0/main_real.spir
00:01:07 v #1600 > >
00:01:07 v #1601 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:07 v #1602 > > inl from_std_string (str : std_string) : string =
00:01:07 v #1603 > >     real sm'_real.from_std_string str
00:01:07 v #1604 > 00:01:06 d #72 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0dd33e7648e130721a756b1659a432bd89f918082f2ba22d4d330d0c0588fde8/main.spi
00:01:07 v #1605 > >
00:01:07 v #1606 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:07 v #1607 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:07 v #1608 > > │ ## sm'                                                                       │
00:01:07 v #1609 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:07 v #1610 > >
00:01:07 v #1611 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:07 v #1612 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:07 v #1613 > > │ ### symbol_to_string                                                         │
00:01:07 v #1614 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:07 v #1615 > >
00:01:07 v #1616 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:07 v #1617 > > //// real
00:01:07 v #1618 > >
00:01:07 v #1619 > > inl symbol_to_string forall t {symbol}. : string =
00:01:07 v #1620 > >     // inl x = real_core.type_lit_to_lit `t
00:01:07 v #1621 > >     // inl x = real_core.type_to_symbol `t
00:01:07 v #1622 > >     // inl x = real_core.type_lit_to_lit `t
00:01:07 v #1623 > >     // !!!!SymbolToString (`(`t))
00:01:07 v #1624 > >     inl x = real_core.type_to_symbol `t
00:01:07 v #1625 > >     !!!!SymbolToString (x)
00:01:07 v #1626 > 00:01:06 d #73 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b10b03f36ef9d2633221cbd91294452948ecffba92445af6e551708404c26ee3/main_real.spir
00:01:07 v #1627 > >
00:01:07 v #1628 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:07 v #1629 > > inl symbol_to_string forall t {symbol}. (x : t) : string =
00:01:07 v #1630 > >     real symbol_to_string `t
00:01:08 v #1631 > 00:01:07 d #74 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68a8b8893f3aa36eafbfcc7e8a2f15e973b9eddc4044552d8c36913408b4f2d8/main.spi
00:01:08 v #1632 > >
00:01:08 v #1633 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:08 v #1634 > > //// test
00:01:08 v #1635 > >
00:01:08 v #1636 > > .test
00:01:08 v #1637 > > |> symbol_to_string
00:01:08 v #1638 > > |> _assert_eq "test"
00:01:08 v #1639 > 00:01:07 d #75 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba0be6019d637fbfcbe24d2ce64ef1e3d753d8aeb3174d85d5fbfacd36507fd9/main.spi
00:01:09 v #1640 > >
00:01:09 v #1641 > > ╭─[ 1.03s - stdout ]───────────────────────────────────────────────────────────╮
00:01:09 v #1642 > > │ __assert_eq / actual: "test" / expected: "test"                              │
00:01:09 v #1643 > > │                                                                              │
00:01:09 v #1644 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:09 v #1645 > >
00:01:09 v #1646 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:09 v #1647 > > //// test
00:01:09 v #1648 > > //// real
00:01:09 v #1649 > >
00:01:09 v #1650 > > open testing
00:01:09 v #1651 > > inl x = .test
00:01:09 v #1652 > > inl x = symbol_to_string `(`x)
00:01:09 v #1653 > > _assert_eq `string "test" x
00:01:09 v #1654 > 00:01:08 d #76 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9877b4878224b18c576ac39e1f333f710e99145d6d2f9c47f7f322814c807d4/main_real.spir
00:01:09 v #1655 > >
00:01:09 v #1656 > > ╭─[ 405.42ms - stdout ]────────────────────────────────────────────────────────╮
00:01:09 v #1657 > > │ __assert_eq / actual: "test" / expected: "test"                              │
00:01:09 v #1658 > > │                                                                              │
00:01:09 v #1659 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:09 v #1660 > >
00:01:09 v #1661 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:09 v #1662 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:09 v #1663 > > │ ### index                                                                    │
00:01:09 v #1664 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:09 v #1665 > >
00:01:09 v #1666 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:09 v #1667 > > inl index i (str : string) : char =
00:01:09 v #1668 > >     sm.index str i
00:01:09 v #1669 > 00:01:09 d #77 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3664acfc76c990f55e71a90ab0dca8191205234b87ac87b44853f98651ba3bb7/main.spi
00:01:10 v #1670 > >
00:01:10 v #1671 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:10 v #1672 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:10 v #1673 > > │ ### length                                                                   │
00:01:10 v #1674 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:10 v #1675 > >
00:01:10 v #1676 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:10 v #1677 > > inl length forall dim {int}. (input : string) : dim =
00:01:10 v #1678 > >     input |> sm.length
00:01:10 v #1679 > 00:01:09 d #78 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eb0af9330c5892e8d9bc74ceafeffc9d70a6905ad5e9d8ffafb570aecf1a6c1f/main.spi
00:01:10 v #1680 > >
00:01:10 v #1681 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:10 v #1682 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:10 v #1683 > > │ ### to_char_array                                                            │
00:01:10 v #1684 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:10 v #1685 > >
00:01:10 v #1686 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:10 v #1687 > > inl to_char_array (str : string) : array_base char =
00:01:10 v #1688 > >     am.init (str |> length) (fun i => str |> index i)
00:01:10 v #1689 > >     |> fun (a x : _ int _) => x
00:01:10 v #1690 > 00:01:10 d #79 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/217bd00c7762f28c31a57f832764c288543a3d741135783421bb99e2295a2fe4/main.spi
00:01:10 v #1691 > >
00:01:10 v #1692 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:10 v #1693 > > //// test
00:01:10 v #1694 > >
00:01:10 v #1695 > > "abc"
00:01:10 v #1696 > > |> to_char_array
00:01:10 v #1697 > > |> _assert_eq' ;[[ 'a'; 'b'; 'c' ]]
00:01:11 v #1698 > 00:01:10 d #80 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a5bc307f1df9104944a6e354b97698174424916a7c64e7fe9980397123731f3/main.spi
00:01:11 v #1699 > >
00:01:11 v #1700 > > ╭─[ 938.41ms - stdout ]────────────────────────────────────────────────────────╮
00:01:11 v #1701 > > │ __assert_eq' / actual: [|'a'; 'b'; 'c'|] / expected: [|'a'; 'b'; 'c'|]       │
00:01:11 v #1702 > > │                                                                              │
00:01:11 v #1703 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 v #1704 > >
00:01:11 v #1705 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:11 v #1706 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 v #1707 > > │ ### to_char_list                                                             │
00:01:11 v #1708 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 v #1709 > >
00:01:11 v #1710 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:11 v #1711 > > inl to_char_list (str : string) : list char =
00:01:11 v #1712 > >     listm.init (str |> length) (fun (i : i64) => str |> index i)
00:01:12 v #1713 > 00:01:11 d #81 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/634f8679420827389e42258c375742764eb9abcd20bba6764aa4dbed56a385cf/main.spi
00:01:12 v #1714 > >
00:01:12 v #1715 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:12 v #1716 > > //// test
00:01:12 v #1717 > >
00:01:12 v #1718 > > "abc"
00:01:12 v #1719 > > |> to_char_list
00:01:12 v #1720 > > |> _assert_eq [[ 'a'; 'b'; 'c' ]]
00:01:12 v #1721 > 00:01:11 d #82 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6110ea1a069db5f1e2c9dbfaf639b7f86bf535f9e90077663135813e43208ac4/main.spi
00:01:12 v #1722 > >
00:01:12 v #1723 > > ╭─[ 592.31ms - stdout ]────────────────────────────────────────────────────────╮
00:01:12 v #1724 > > │ __assert_eq / actual: UH0_1 ('a', UH0_1 ('b', UH0_1 ('c', UH0_0))) /         │
00:01:12 v #1725 > > │ expected: UH0_1 ('a', UH0_1 ('b', UH0_1 ('c', UH0_0)))                       │
00:01:12 v #1726 > > │                                                                              │
00:01:12 v #1727 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 v #1728 > >
00:01:12 v #1729 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:12 v #1730 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:12 v #1731 > > │ ### is_empty                                                                 │
00:01:12 v #1732 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 v #1733 > >
00:01:12 v #1734 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:12 v #1735 > > inl is_empty (input : string) : bool =
00:01:12 v #1736 > >     length input = 0i32
00:01:13 v #1737 > 00:01:12 d #83 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6dbdfe2ffe6ad1ac31df614bdfd0a025ebc4444158b8cf4ce9073feb380e25d7/main.spi
00:01:13 v #1738 > >
00:01:13 v #1739 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:13 v #1740 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:13 v #1741 > > │ ### slice                                                                    │
00:01:13 v #1742 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 v #1743 > >
00:01:13 v #1744 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:13 v #1745 > > inl slice from to s : string =
00:01:13 v #1746 > >     sm.slice s { from to }
00:01:13 v #1747 > 00:01:12 d #84 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9fd926919ea0a06c4376f066cea9765e97f479d59d95cd3698aa7a503181702c/main.spi
00:01:13 v #1748 > >
00:01:13 v #1749 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:13 v #1750 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:13 v #1751 > > │ ### format_debug                                                             │
00:01:13 v #1752 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 v #1753 > >
00:01:13 v #1754 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:13 v #1755 > > //// real
00:01:13 v #1756 > >
00:01:13 v #1757 > > inl format_debug forall t. (x : t) : string =
00:01:13 v #1758 > >     backend_switch `string `({}) {
00:01:13 v #1759 > >         Fsharp = (fun () => $'$"%A{!x}"' : string) : () -> string
00:01:13 v #1760 > >         Python = (fun () => $'f"{!x}"' : string) : () -> string
00:01:13 v #1761 > >     }
00:01:13 v #1762 > 00:01:13 d #85 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9221bd5e8a82924f5f14f794adf2c102e622ed3321fb45875ce9aa6f65531d4f/main_real.spir
00:01:14 v #1763 > >
00:01:14 v #1764 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:14 v #1765 > > inl format_debug forall t. (x : t) : string =
00:01:14 v #1766 > >     real format_debug `t x
00:01:14 v #1767 > 00:01:13 d #86 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f61b3a9705cea58e26be03fdbf835a3a09cc02ddf8f3b252bc8bd4b9ae45dc2/main.spi
00:01:14 v #1768 > >
00:01:14 v #1769 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:14 v #1770 > > //// test
00:01:14 v #1771 > >
00:01:14 v #1772 > > { c = "1"; a = "2"; b = "3" }
00:01:14 v #1773 > > |> format_debug
00:01:14 v #1774 > > |> _assert_eq "struct (\"1\", \"2\", \"3\")"
00:01:14 v #1775 > 00:01:14 d #87 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1933b2fe9240ad032095ce3724b1e4b61826089b226e444a7aa6f8fa954dbed6/main.spi
00:01:15 v #1776 > >
00:01:15 v #1777 > > ╭─[ 445.91ms - stdout ]────────────────────────────────────────────────────────╮
00:01:15 v #1778 > > │ __assert_eq / actual: "struct ("1", "2", "3")" / expected: "struct ("1",     │
00:01:15 v #1779 > > │ "2", "3")"                                                                   │
00:01:15 v #1780 > > │                                                                              │
00:01:15 v #1781 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:15 v #1782 > >
00:01:15 v #1783 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:15 v #1784 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:15 v #1785 > > │ ### format_pretty                                                            │
00:01:15 v #1786 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:15 v #1787 > >
00:01:15 v #1788 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:15 v #1789 > > //// real
00:01:15 v #1790 > >
00:01:15 v #1791 > > inl format_pretty forall t. (x : t) : string =
00:01:15 v #1792 > >     run_target_args `string `t (fun () => x) function
00:01:15 v #1793 > >         | Rust _ => fun x =>
00:01:15 v #1794 > >             open rust
00:01:15 v #1795 > >             inl result = rust.emit_expr `t `std_string x
00:01:15 v #1796 > > ($'"format\!(\\\"{:#?}\\\", $0)"' : string)
00:01:15 v #1797 > >             from_std_string result
00:01:15 v #1798 > >         | _ => fun _ => format_debug `t x
00:01:15 v #1799 > 00:01:14 d #88 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/410cbc720636adfef78354272fbd1e6c2584e3e506caac373357dfb603e3d0be/main_real.spir
00:01:15 v #1800 > >
00:01:15 v #1801 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:15 v #1802 > > inl format_pretty forall t. (x : t) : string =
00:01:15 v #1803 > >     real sm'_real.format_pretty `t x
00:01:15 v #1804 > 00:01:14 d #89 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb54b97d140a433129f5180d59e4bcfef0ba3dc00cae5228a9753229b2407109/main.spi
00:01:15 v #1805 > >
00:01:15 v #1806 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:15 v #1807 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:15 v #1808 > > │ ### prim                                                                     │
00:01:15 v #1809 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:15 v #1810 > >
00:01:15 v #1811 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:15 v #1812 > > inl prim x = real
00:01:15 v #1813 > >     match x with
00:01:15 v #1814 > >     | (x : i8) | (x : i16) | (x : i32) | (x : i64) => "%d", x
00:01:15 v #1815 > >     | (x : u8) | (x : u16) | (x : u32) | (x : u64) => "%u", x
00:01:15 v #1816 > >     | (x : f32) | (x : f64) => "%f", x
00:01:15 v #1817 > >     | (x : string) => "%s", x
00:01:15 v #1818 > >     | (x : char) => "%c", x
00:01:16 v #1819 > 00:01:15 d #90 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f4e5a80da1e354e176a841c6288bc183499ed6721fd8c04544982b5598e4c72/main.spi
00:01:16 v #1820 > >
00:01:16 v #1821 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:16 v #1822 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:16 v #1823 > > │ ### printable                                                                │
00:01:16 v #1824 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 v #1825 > >
00:01:16 v #1826 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:16 v #1827 > > //// real
00:01:16 v #1828 > >
00:01:16 v #1829 > > prototype printable t : t -> ()
00:01:16 v #1830 > 00:01:15 d #91 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf5ab116be773b1d48da1d7ed0061a74d361f35c3aab5b6cbd4eab3d5ef89e71/main_real.spir
00:01:16 v #1831 > >
00:01:16 v #1832 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:16 v #1833 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:16 v #1834 > > │ ### format_real                                                              │
00:01:16 v #1835 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 v #1836 > >
00:01:16 v #1837 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:16 v #1838 > > //// real
00:01:16 v #1839 > >
00:01:16 v #1840 > > let format_real forall t. (x : t) : string =
00:01:16 v #1841 > >     inl result = mut `string (join "")
00:01:16 v #1842 > >     inl rec write x =
00:01:16 v #1843 > >         inl p ((a : string), b) =
00:01:16 v #1844 > >             inl s : string =
00:01:16 v #1845 > >                 backend_switch `string `({}) {
00:01:16 v #1846 > >                     Fsharp =
00:01:16 v #1847 > >                         (fun () =>
00:01:16 v #1848 > >                             match b with
00:01:16 v #1849 > >                             | (_ : f32) | (_ : f64) => $'$"%+.6f{!b}"' : string
00:01:16 v #1850 > >                             | _ => $'$"{!b}"' : string
00:01:16 v #1851 > >                         ) : () -> string
00:01:16 v #1852 > >                     Python =
00:01:16 v #1853 > >                         (fun () =>
00:01:16 v #1854 > >                             match b with
00:01:16 v #1855 > >                             | (_ : f32) | (_ : f64) => $'"{:.6f}".format(!b)' :
00:01:16 v #1856 > > string
00:01:16 v #1857 > >                             | _ => $'f"{!b}"' : string
00:01:16 v #1858 > >                         ) : () -> string
00:01:16 v #1859 > >                 }
00:01:16 v #1860 > >             exec_unit ((fun () => result <- (+.) `string ((~*) `string result)
00:01:16 v #1861 > > s) : () -> ())
00:01:16 v #1862 > >
00:01:16 v #1863 > >         match x with // According to Bing it shouldn't matter whether these are
00:01:16 v #1864 > > %d or %lld in printf.
00:01:16 v #1865 > >         | () => ()
00:01:16 v #1866 > >         | (x : i8) | (x : i16) | (x : i32) | (x : i64) => p ("%d", x)
00:01:16 v #1867 > >         | (x : u8) | (x : u16) | (x : u32) | (x : u64) => p ("%u", x)
00:01:16 v #1868 > >         | (x : f32) | (x : f64) => p ("%f", x)
00:01:16 v #1869 > >         | (x : string) => p ("%s", x)
00:01:16 v #1870 > >         | (x : char) => p ("%c", x)
00:01:16 v #1871 > >         | (x : bool) => p ("%s", if x then "true" else "false")
00:01:16 v #1872 > >         | (a,b) => write a . write ", " . write b
00:01:16 v #1873 > >         | {} as x =>
00:01:16 v #1874 > >             write "{ "
00:01:16 v #1875 > >             inl _result =
00:01:16 v #1876 > >                 real_core.record_fold
00:01:16 v #1877 > >                     fun { state = separator key value } =>
00:01:16 v #1878 > >                         write separator
00:01:16 v #1879 > >                         write (symbol_to_string `(`key)) . write " = " . write
00:01:16 v #1880 > > value
00:01:16 v #1881 > >                         "; "
00:01:16 v #1882 > >                     () x
00:01:16 v #1883 > >             write " }"
00:01:16 v #1884 > >         | x when real_core.symbol_is x => write (symbol_to_string `(`x))
00:01:16 v #1885 > >         | x when real_core.function_is x => write (x ())
00:01:16 v #1886 > >         | x when real_core.union_is x =>
00:01:16 v #1887 > >             if real_core.prototype_has `(`x) printable then printable `(`x) x
00:01:16 v #1888 > >             else
00:01:16 v #1889 > >                 write (format_debug `(`x) x)
00:01:16 v #1890 > >                 // real_core.unbox x (fun (k, v) =>
00:01:16 v #1891 > >                 //     write k
00:01:16 v #1892 > >                 //     match v with
00:01:16 v #1893 > >                 //     | () => ()
00:01:16 v #1894 > >                 //     | _ => write "(" . write v . write ")"
00:01:16 v #1895 > >                 //     )
00:01:16 v #1896 > >         | x when real_core.nominal_is x =>
00:01:16 v #1897 > >             if real_core.prototype_has `(`x) printable then printable `(`x) x
00:01:16 v #1898 > >             // elif layout_is x then write *x // TODO: Deal with all the layout
00:01:16 v #1899 > > type cases.
00:01:16 v #1900 > >             else write (format_pretty `(`x) x)
00:01:16 v #1901 > >         | x => write (format_debug `(`x) x)
00:01:16 v #1902 > >     write x
00:01:16 v #1903 > >     (~*) `string result
00:01:16 v #1904 > 00:01:16 d #92 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70ba9863a5ad523bba598db4f094a6509281717181f6f17ce734b831fc861e8a/main_real.spir
00:01:17 v #1905 > >
00:01:17 v #1906 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:17 v #1907 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:17 v #1908 > > │ ### format                                                                   │
00:01:17 v #1909 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:17 v #1910 > >
00:01:17 v #1911 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:17 v #1912 > > inl format forall t. (x : t) : string =
00:01:17 v #1913 > >     real format_real `t x
00:01:17 v #1914 > 00:01:16 d #93 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9c8ffd8cdbe0afc10568171e4cc28d81a6d3aef8c9d62db0d5029c8a141d4bdc/main.spi
00:01:17 v #1915 > >
00:01:17 v #1916 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:17 v #1917 > > //// test
00:01:17 v #1918 > > ///! fsharp
00:01:17 v #1919 > > ////! cuda
00:01:17 v #1920 > > ////! rust
00:01:17 v #1921 > > ////! typescript
00:01:17 v #1922 > > ////! python
00:01:17 v #1923 > >
00:01:17 v #1924 > > ("1", "2", [["3"; "4"]], { b = "5"; c = "6"; a = fun () => "7" })
00:01:17 v #1925 > > |> format
00:01:17 v #1926 > > |> _assert_eq "1, 2, UH0_1 (\"3\", UH0_1 (\"4\", UH0_0)), { b = 5; c = 6; a = 7
00:01:17 v #1927 > > }"
00:01:17 v #1928 > 00:01:16 d #94 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a322b985bba660abc7c1bb8c00652c2b191720ec873ac1ebf5676d1e44f2fb56/main.spi
00:01:18 v #1929 > >
00:01:18 v #1930 > > ╭─[ 549.68ms - stdout ]────────────────────────────────────────────────────────╮
00:01:18 v #1931 > > │ __assert_eq / actual: "1, 2, UH0_1 ("3", UH0_1 ("4", UH0_0)), { b = 5; c =   │
00:01:18 v #1932 > > │ 6; a = 7 }" / expected: "1, 2, UH0_1 ("3", UH0_1 ("4", UH0_0)), { b = 5; c = │
00:01:18 v #1933 > > │ 6; a = 7 }"                                                                  │
00:01:18 v #1934 > > │                                                                              │
00:01:18 v #1935 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:18 v #1936 > >
00:01:18 v #1937 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:18 v #1938 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:18 v #1939 > > │ ### concat_array_trailing                                                    │
00:01:18 v #1940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:18 v #1941 > >
00:01:18 v #1942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:18 v #1943 > > inl concat_array_trailing (separator : string) (input : a i32 string) =
00:01:18 v #1944 > >     ("", input)
00:01:18 v #1945 > >     ||> am.fold fun acc (x : string) =>
00:01:18 v #1946 > >         $'!acc + !x + !separator + ""'
00:01:18 v #1947 > 00:01:17 d #95 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff8457f59c7770c8a6c57ce93069f256f45db757b1c99d85f913b29d396435d2/main.spi
00:01:18 v #1948 > >
00:01:18 v #1949 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:18 v #1950 > > //// test
00:01:18 v #1951 > > ///! typescript
00:01:18 v #1952 > >
00:01:18 v #1953 > > ;[[
00:01:18 v #1954 > >     "1"
00:01:18 v #1955 > >     "2"
00:01:18 v #1956 > >     "3"
00:01:18 v #1957 > > ]]
00:01:18 v #1958 > > |> fun x =>
00:01:18 v #1959 > >     inl code = (a x : _ i32 _) |> concat_array_trailing "\n"
00:01:18 v #1960 > >     code
00:01:18 v #1961 > >     |> _assert_eq "1\n2\n3\n"
00:01:18 v #1962 > 00:01:17 d #96 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4c4a0e4f1e266c90ddfba3118bc82e10ff9094f730138ed1339652c5c3527317/main.spi
00:01:31 v #1963 > >
00:01:31 v #1964 > > ╭─[ 12.91s - return value ]────────────────────────────────────────────────────╮
00:01:31 v #1965 > > │ __assert_eq / actual: 1                                                      │
00:01:31 v #1966 > > │ 2                                                                            │
00:01:31 v #1967 > > │ 3                                                                            │
00:01:31 v #1968 > > │  / expected: 1                                                               │
00:01:31 v #1969 > > │ 2                                                                            │
00:01:31 v #1970 > > │ 3                                                                            │
00:01:31 v #1971 > > │                                                                              │
00:01:31 v #1972 > > │                                                                              │
00:01:31 v #1973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:31 v #1974 > >
00:01:31 v #1975 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:31 v #1976 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:31 v #1977 > > │ ### concat_list_trailing                                                     │
00:01:31 v #1978 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:31 v #1979 > >
00:01:31 v #1980 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:31 v #1981 > > inl concat_list_trailing separator input =
00:01:31 v #1982 > >     ("", input)
00:01:31 v #1983 > >     ||> listm.fold fun acc (x : string) =>
00:01:31 v #1984 > >         $'!acc + !x + !separator + ""'
00:01:31 v #1985 > 00:01:30 d #97 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e558e5eabce98cc014d6ef9ea2111fc91ec11b3a277b10153b1c7c2f070bc6a/main.spi
00:01:31 v #1986 > >
00:01:31 v #1987 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:31 v #1988 > > //// test
00:01:31 v #1989 > > ///! rust
00:01:31 v #1990 > >
00:01:31 v #1991 > > [[
00:01:31 v #1992 > >     "1"
00:01:31 v #1993 > >     "2"
00:01:31 v #1994 > >     "3"
00:01:31 v #1995 > > ]]
00:01:31 v #1996 > > |> fun x =>
00:01:31 v #1997 > >     inl code = (x : _) |> concat_list_trailing "\n"
00:01:31 v #1998 > >     code
00:01:31 v #1999 > >     |> _assert_eq "1\n2\n3\n"
00:01:32 v #2000 > 00:01:31 d #98 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9472672d8f22343dcfaace920328c827570f8f1a4839f4064f3a89514e21b04b/main.spi
00:01:45 v #2001 > >
00:01:45 v #2002 > > ╭─[ 13.28s - return value ]────────────────────────────────────────────────────╮
00:01:45 v #2003 > > │ __assert_eq / actual: "1                                                     │
00:01:45 v #2004 > > │ 2                                                                            │
00:01:45 v #2005 > > │ 3                                                                            │
00:01:45 v #2006 > > │ " / expected: "1                                                             │
00:01:45 v #2007 > > │ 2                                                                            │
00:01:45 v #2008 > > │ 3                                                                            │
00:01:45 v #2009 > > │ "                                                                            │
00:01:45 v #2010 > > │                                                                              │
00:01:45 v #2011 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:45 v #2012 > >
00:01:45 v #2013 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:45 v #2014 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:45 v #2015 > > │ ### concat_list_heap_trailing                                                │
00:01:45 v #2016 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:45 v #2017 > >
00:01:45 v #2018 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:45 v #2019 > > inl concat_list_heap_trailing separator input =
00:01:45 v #2020 > >     inl separator = join separator
00:01:45 v #2021 > >     ("", input)
00:01:45 v #2022 > >     ||> listm.fold fun acc (x : string) =>
00:01:45 v #2023 > >         $'$"{!acc}{!x}{!separator}"'
00:01:45 v #2024 > 00:01:44 d #99 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/739f2251beb3e832265bb9be62af38b06c23c5927d055296c056a00afffc1772/main.spi
00:01:45 v #2025 > >
00:01:45 v #2026 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:45 v #2027 > > //// test
00:01:45 v #2028 > > ///! rust
00:01:45 v #2029 > >
00:01:45 v #2030 > > [[
00:01:45 v #2031 > >     "1"
00:01:45 v #2032 > >     "2"
00:01:45 v #2033 > >     "3"
00:01:45 v #2034 > > ]]
00:01:45 v #2035 > > |> fun x =>
00:01:45 v #2036 > >     inl code = (x : _) |> concat_list_heap_trailing "\n"
00:01:45 v #2037 > >     code
00:01:45 v #2038 > >     |> _assert_eq "1\n2\n3\n"
00:01:45 v #2039 > 00:01:44 d #100 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75a43dd09290dc55b0bc4965828336cf3ab148ab0d4e858b2fd91a67c6ce9f44/main.spi
00:01:58 v #2040 > >
00:01:58 v #2041 > > ╭─[ 13.44s - return value ]────────────────────────────────────────────────────╮
00:01:58 v #2042 > > │ __assert_eq / actual: "1                                                     │
00:01:58 v #2043 > > │ 2                                                                            │
00:01:58 v #2044 > > │ 3                                                                            │
00:01:58 v #2045 > > │ " / expected: "1                                                             │
00:01:58 v #2046 > > │ 2                                                                            │
00:01:58 v #2047 > > │ 3                                                                            │
00:01:58 v #2048 > > │ "                                                                            │
00:01:58 v #2049 > > │                                                                              │
00:01:58 v #2050 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 v #2051 > >
00:01:58 v #2052 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:58 v #2053 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:58 v #2054 > > │ ### ellipsis                                                                 │
00:01:58 v #2055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 v #2056 > >
00:01:58 v #2057 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:58 v #2058 > > inl ellipsis (max : i32) (s : string) =
00:01:58 v #2059 > >     if sm.length s <= max
00:01:58 v #2060 > >     then s
00:01:58 v #2061 > >     else s |> slice 0 (max - 1) |> fun x => $'!x + "..."'
00:01:59 v #2062 > 00:01:58 d #101 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11266c9c1c090d711f0683639021f40504592a8506f85420dd25671130d91f97/main.spi
00:01:59 v #2063 > >
00:01:59 v #2064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:59 v #2065 > > //// test
00:01:59 v #2066 > >
00:01:59 v #2067 > > "12345"
00:01:59 v #2068 > > |> ellipsis 2
00:01:59 v #2069 > > |> _assert_eq "12..."
00:01:59 v #2070 > >
00:01:59 v #2071 > > "12345"
00:01:59 v #2072 > > |> ellipsis 4
00:01:59 v #2073 > > |> _assert_eq "1234..."
00:01:59 v #2074 > 00:01:58 d #102 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d50f502a4636de11eb31b9d95ded900f18cb58544272200f5284702b006715c4/main.spi
00:01:59 v #2075 > >
00:01:59 v #2076 > > ╭─[ 434.01ms - stdout ]────────────────────────────────────────────────────────╮
00:01:59 v #2077 > > │ __assert_eq / actual: "12..." / expected: "12..."                            │
00:01:59 v #2078 > > │ __assert_eq / actual: "1234..." / expected: "1234..."                        │
00:01:59 v #2079 > > │                                                                              │
00:01:59 v #2080 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:59 v #2081 > >
00:01:59 v #2082 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:59 v #2083 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:59 v #2084 > > │ ## fsharp                                                                    │
00:01:59 v #2085 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:59 v #2086 > >
00:01:59 v #2087 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:59 v #2088 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:59 v #2089 > > │ ### ends_with                                                                │
00:01:59 v #2090 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:59 v #2091 > >
00:01:59 v #2092 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:59 v #2093 > > inl ends_with (value : string) (s : string) : bool =
00:01:59 v #2094 > >     $'!s.EndsWith !value '
00:01:59 v #2095 > 00:01:59 d #103 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b09b7a22a03accc408f73a25270c29bbabe592d82ba8beb4e7183d308104a4b3/main.spi
00:02:00 v #2096 > >
00:02:00 v #2097 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:00 v #2098 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:00 v #2099 > > │ ### last_index_of                                                            │
00:02:00 v #2100 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:00 v #2101 > >
00:02:00 v #2102 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:00 v #2103 > > inl last_index_of (search : string) (s : string) : i32 =
00:02:00 v #2104 > >     $'!s.LastIndexOf !search '
00:02:00 v #2105 > 00:01:59 d #104 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b54af3860ecce06798985388ef3c8891638b432654b2b2a3c6a7d44e68524e53/main.spi
00:02:00 v #2106 > >
00:02:00 v #2107 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:00 v #2108 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:00 v #2109 > > │ ### index_of                                                                 │
00:02:00 v #2110 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:00 v #2111 > >
00:02:00 v #2112 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:00 v #2113 > > inl index_of (search : string) (s : string) : i32 =
00:02:00 v #2114 > >     $'!s.IndexOf !search '
00:02:00 v #2115 > 00:01:59 d #105 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ebc7d2cf4cab539581a808391012a44034129929d3614994be197d36617e4f8a/main.spi
00:02:00 v #2116 > >
00:02:00 v #2117 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:00 v #2118 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:00 v #2119 > > │ ### replicate                                                                │
00:02:00 v #2120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:00 v #2121 > >
00:02:00 v #2122 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:00 v #2123 > > inl replicate (n : i32) (s : string) : string =
00:02:00 v #2124 > >     backend_switch {
00:02:00 v #2125 > >         Fsharp = fun () => s |> $'String.replicate' n : string
00:02:00 v #2126 > >         Python = fun () => $'!s * !n ' : string
00:02:00 v #2127 > >     }
00:02:01 v #2128 > 00:02:00 d #106 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48f614c53bd6f91fa364d14e6302e4ec2e9be46a52ac2d673d47d2e0aa2d375c/main.spi
00:02:01 v #2129 > >
00:02:01 v #2130 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:01 v #2131 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:01 v #2132 > > │ ### obj_to_string                                                            │
00:02:01 v #2133 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 v #2134 > >
00:02:01 v #2135 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:01 v #2136 > > inl obj_to_string x : string =
00:02:01 v #2137 > >     backend_switch {
00:02:01 v #2138 > >         Fsharp = fun () => x |> $'_.ToString()' : string
00:02:01 v #2139 > >         Python = fun () => $'str(!x)' : string
00:02:01 v #2140 > >     }
00:02:01 v #2141 > 00:02:00 d #107 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19ea0fbc7b77762788c35ee6e946fffb772386904c915d4ce765d53d5801cab8/main.spi
00:02:01 v #2142 > >
00:02:01 v #2143 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:01 v #2144 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:01 v #2145 > > │ ### pad_left                                                                 │
00:02:01 v #2146 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 v #2147 > >
00:02:01 v #2148 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:01 v #2149 > > inl pad_left (total_width : i32) (padding_char : char) (s : string) : string =
00:02:01 v #2150 > >     backend_switch {
00:02:01 v #2151 > >         Fsharp = fun () => $'!s.PadLeft (!total_width, !padding_char)' : string
00:02:01 v #2152 > >         Python = fun () =>
00:02:01 v #2153 > >             inl padding = padding_char |> obj_to_string |> replicate
00:02:01 v #2154 > > (total_width - length s)
00:02:01 v #2155 > >             padding +. s
00:02:01 v #2156 > >     }
00:02:02 v #2157 > 00:02:01 d #108 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19f42abc69424fca668a0701ad1f98ed7387fdbc2a586817cde9c8c5ac3b38ce/main.spi
00:02:02 v #2158 > >
00:02:02 v #2159 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:02 v #2160 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:02 v #2161 > > │ ### pad_right                                                                │
00:02:02 v #2162 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:02 v #2163 > >
00:02:02 v #2164 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:02 v #2165 > > inl pad_right (total_width : i32) (padding_char : char) (s : string) : string =
00:02:02 v #2166 > >     $'!s.PadRight (!total_width, !padding_char)'
00:02:02 v #2167 > 00:02:01 d #109 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ad0357d73c269161e938c6110b215bb6c7a6a0753ecba482eefead9bbff30d3/main.spi
00:02:02 v #2168 > >
00:02:02 v #2169 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:02 v #2170 > > //// test
00:02:02 v #2171 > >
00:02:02 v #2172 > > "123"
00:02:02 v #2173 > > |> pad_right 6 ' '
00:02:02 v #2174 > > |> _assert_eq "123   "
00:02:02 v #2175 > 00:02:02 d #110 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c19b927d469cf4b360ea5e89282f3123cdd9a2136843f2d7e7ea9f4dcbd75834/main.spi
00:02:03 v #2176 > >
00:02:03 v #2177 > > ╭─[ 459.33ms - stdout ]────────────────────────────────────────────────────────╮
00:02:03 v #2178 > > │ __assert_eq / actual: "123   " / expected: "123   "                          │
00:02:03 v #2179 > > │                                                                              │
00:02:03 v #2180 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 v #2181 > >
00:02:03 v #2182 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 v #2183 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 v #2184 > > │ ### starts_with                                                              │
00:02:03 v #2185 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 v #2186 > >
00:02:03 v #2187 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:03 v #2188 > > inl starts_with (value : string) (s : string) : bool =
00:02:03 v #2189 > >     backend_switch {
00:02:03 v #2190 > >         Fsharp = fun () => $'!s.StartsWith !value ' : bool
00:02:03 v #2191 > >         Python = fun () => $'!s.startswith(!value)' : bool
00:02:03 v #2192 > >     }
00:02:03 v #2193 > 00:02:02 d #111 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9054753cd47cb68a4a26c9a9cc724781c49e2d34ca19a0d2a8ca4a7c3bc5e1fe/main.spi
00:02:03 v #2194 > >
00:02:03 v #2195 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 v #2196 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 v #2197 > > │ ### is_white_space                                                           │
00:02:03 v #2198 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 v #2199 > >
00:02:03 v #2200 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:03 v #2201 > > inl is_white_space (c : char) : bool =
00:02:03 v #2202 > >     c |> $'System.Char.IsWhiteSpace'
00:02:03 v #2203 > 00:02:02 d #112 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f64d1eaefdfa28951688a409a95aa32975ce4aeed25abacfa5108a4e2343befc/main.spi
00:02:03 v #2204 > >
00:02:03 v #2205 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 v #2206 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 v #2207 > > │ ### substring                                                                │
00:02:03 v #2208 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 v #2209 > >
00:02:03 v #2210 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:03 v #2211 > > inl substring (start : i32) (len : i32) (str : string) : string =
00:02:03 v #2212 > >     $'!str.Substring (!start, !len)'
00:02:04 v #2213 > 00:02:03 d #113 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ef7ebbfc2b6ce4f5c8a58ef23391bb7ecee3fc377ce893c64149ac1d2029ce9/main.spi
00:02:04 v #2214 > >
00:02:04 v #2215 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:04 v #2216 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:04 v #2217 > > │ ### to_lower                                                                 │
00:02:04 v #2218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:04 v #2219 > >
00:02:04 v #2220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:04 v #2221 > > inl to_lower (input : string) : string =
00:02:04 v #2222 > >     backend_switch {
00:02:04 v #2223 > >         Fsharp = fun () => $'!input.ToLower' () : string
00:02:04 v #2224 > >         Python = fun () => $'!input.lower()' : string
00:02:04 v #2225 > >     }
00:02:04 v #2226 > 00:02:03 d #114 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb8ffaebf8a8b1c2c01f4e56f17ff257db0c15ba3373bcfa6974aa276aae318d/main.spi
00:02:04 v #2227 > >
00:02:04 v #2228 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:04 v #2229 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:04 v #2230 > > │ ### to_upper                                                                 │
00:02:04 v #2231 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:04 v #2232 > >
00:02:04 v #2233 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:04 v #2234 > > inl to_upper (input : string) : string =
00:02:04 v #2235 > >     $'!input.ToUpper' ()
00:02:04 v #2236 > 00:02:04 d #115 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ea90ef984b64d96f5469ee9ead277a242f7e0ff2334720d3ad0ad75a5e4511a4/main.spi
00:02:05 v #2237 > >
00:02:05 v #2238 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:05 v #2239 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:05 v #2240 > > │ ### char_to_upper                                                            │
00:02:05 v #2241 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:05 v #2242 > >
00:02:05 v #2243 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:05 v #2244 > > inl char_to_upper (input : char) : char =
00:02:05 v #2245 > >     $'System.Char.ToUpper !input '
00:02:05 v #2246 > 00:02:04 d #116 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b82a496d975fb8e9484a5d3d146134710699533dad80418496fbf063318d0029/main.spi
00:02:05 v #2247 > >
00:02:05 v #2248 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:05 v #2249 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:05 v #2250 > > │ ### string_builder                                                           │
00:02:05 v #2251 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:05 v #2252 > >
00:02:05 v #2253 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:05 v #2254 > > nominal string_builder = $'System.Text.StringBuilder'
00:02:05 v #2255 > >
00:02:05 v #2256 > > inl string_builder (initial : string) : string_builder =
00:02:05 v #2257 > >     initial |> $'`string_builder '
00:02:05 v #2258 > 00:02:05 d #117 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d0a4524af8243bf29a17077a05e64e28bdeb5541f38c6126c832a67d0beb332/main.spi
00:02:05 v #2259 > >
00:02:05 v #2260 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:05 v #2261 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:05 v #2262 > > │ ### builder_append                                                           │
00:02:05 v #2263 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:05 v #2264 > >
00:02:05 v #2265 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:05 v #2266 > > inl builder_append (item : string) (sb : string_builder) : string_builder =
00:02:05 v #2267 > >     ($'!sb.Append' item : string_builder) |> ignore
00:02:05 v #2268 > >     sb
00:02:06 v #2269 > 00:02:05 d #118 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/029ac04cf8897a4f23ababdd581e3a01278bde33c5ebf30e23246df0697cad8d/main.spi
00:02:06 v #2270 > >
00:02:06 v #2271 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 v #2272 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 v #2273 > > │ ### builder_replace                                                          │
00:02:06 v #2274 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 v #2275 > >
00:02:06 v #2276 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:06 v #2277 > > inl builder_replace (old : string) (new : string) (sb : string_builder) :
00:02:06 v #2278 > > string_builder =
00:02:06 v #2279 > >     ($'!sb.Replace (!old, !new)' : string_builder) |> ignore
00:02:06 v #2280 > >     sb
00:02:06 v #2281 > 00:02:05 d #119 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/262b7b784c031c374d525cff0e4351388c3605d51b75ce7f66ff7d05ddb040c2/main.spi
00:02:06 v #2282 > >
00:02:06 v #2283 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 v #2284 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 v #2285 > > │ ### builder_insert                                                           │
00:02:06 v #2286 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 v #2287 > >
00:02:06 v #2288 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:06 v #2289 > > inl builder_insert (n : i32) (s : string) (sb : string_builder) : string_builder
00:02:06 v #2290 > > =
00:02:06 v #2291 > >     ($'!sb.Insert (!n, !s)' : string_builder) |> ignore
00:02:06 v #2292 > >     sb
00:02:06 v #2293 > 00:02:06 d #120 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/79580e8ee3a739acc3337fb5bf1f8538debe7915477e0326ae3c68605ef9d294/main.spi
00:02:07 v #2294 > >
00:02:07 v #2295 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:07 v #2296 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:07 v #2297 > > │ ### builder_clear                                                            │
00:02:07 v #2298 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 v #2299 > >
00:02:07 v #2300 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:07 v #2301 > > inl builder_clear (sb : string_builder) : string_builder =
00:02:07 v #2302 > >     ($'!sb.Clear' () : string_builder) |> ignore
00:02:07 v #2303 > >     sb
00:02:07 v #2304 > 00:02:06 d #121 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f9b907ce8c037f7a39b3c5b7ecb26d1749fb9afeb5e9a1b16cc325aae21926e/main.spi
00:02:07 v #2305 > >
00:02:07 v #2306 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:07 v #2307 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:07 v #2308 > > │ ### trim                                                                     │
00:02:07 v #2309 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 v #2310 > >
00:02:07 v #2311 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:07 v #2312 > > inl trim (input : string) : string =
00:02:07 v #2313 > >     $'!input.Trim' ()
00:02:07 v #2314 > 00:02:07 d #122 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db271d4b58347d22ef56ebf83efbc8a879ef0c8dec7198a09fa5af412403a882/main.spi
00:02:08 v #2315 > >
00:02:08 v #2316 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:08 v #2317 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:08 v #2318 > > │ ### concat                                                                   │
00:02:08 v #2319 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:08 v #2320 > >
00:02:08 v #2321 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:08 v #2322 > > inl concat (a : string) (b : seq.seq' string) : string =
00:02:08 v #2323 > >     backend_switch {
00:02:08 v #2324 > >         Fsharp = fun () =>
00:02:08 v #2325 > >             b |> $'String.concat' a : string
00:02:08 v #2326 > >         Python = fun () =>
00:02:08 v #2327 > >             $'!a.join(!b)' : string
00:02:08 v #2328 > >     }
00:02:08 v #2329 > 00:02:07 d #123 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1a72a37fc21b51d507b6af3851489663e5bde0ce2a29ebdfee37c1494e526f7/main.spi
00:02:08 v #2330 > >
00:02:08 v #2331 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:08 v #2332 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:08 v #2333 > > │ ### trim_end                                                                 │
00:02:08 v #2334 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:08 v #2335 > >
00:02:08 v #2336 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:08 v #2337 > > inl trim_end (trim_chars : list char) (input : string) : string =
00:02:08 v #2338 > >     inl trim_chars = trim_chars |> listm'.box
00:02:08 v #2339 > >     backend_switch {
00:02:08 v #2340 > >         Fsharp = fun () =>
00:02:08 v #2341 > >             inl trim_chars = trim_chars |> listm'.to_array'
00:02:08 v #2342 > >             $'!input.TrimEnd !trim_chars ' : string
00:02:08 v #2343 > >         Python = fun () =>
00:02:08 v #2344 > >             inl trim_chars = trim_chars |> listm'.map obj_to_string |>
00:02:08 v #2345 > > seq.of_list' |> concat ""
00:02:08 v #2346 > >             $'!input.rstrip(!trim_chars)' : string
00:02:08 v #2347 > >     }
00:02:08 v #2348 > 00:02:07 d #124 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/accfb348a94adc2f4fd5a4d9325b5650a24cc69729bd6e1397e91760bb5047f3/main.spi
00:02:08 v #2349 > >
00:02:08 v #2350 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:08 v #2351 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:08 v #2352 > > │ ### trim_start                                                               │
00:02:08 v #2353 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:08 v #2354 > >
00:02:08 v #2355 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:08 v #2356 > > inl trim_start (trim_chars : list char) (input : string) : string =
00:02:08 v #2357 > >     inl trim_chars = trim_chars |> listm'.box
00:02:08 v #2358 > >     backend_switch {
00:02:08 v #2359 > >         Fsharp = fun () =>
00:02:08 v #2360 > >             inl trim_chars = trim_chars |> listm'.to_array'
00:02:08 v #2361 > >             $'!input.TrimStart !trim_chars ' : string
00:02:08 v #2362 > >         Python = fun () =>
00:02:08 v #2363 > >             inl trim_chars = trim_chars |> listm'.map obj_to_string |>
00:02:08 v #2364 > > seq.of_list' |> concat ""
00:02:08 v #2365 > >             $'!input.lstrip(!trim_chars)' : string
00:02:08 v #2366 > >     }
00:02:09 v #2367 > 00:02:08 d #125 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1bcecdf5350a9b430b2d5b0c7cfce73e4af9311d35daf8d74c50c40e54414221/main.spi
00:02:09 v #2368 > >
00:02:09 v #2369 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:09 v #2370 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:09 v #2371 > > │ ### length'                                                                  │
00:02:09 v #2372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:09 v #2373 > >
00:02:09 v #2374 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:09 v #2375 > > inl length' forall dim. (input : string) : dim =
00:02:09 v #2376 > >     input |> $'String.length'
00:02:09 v #2377 > 00:02:08 d #126 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d363e4b6ea753eb4a977a90c6d8c8bd437d63922bf5172f98ece28284ecad503/main.spi
00:02:09 v #2378 > >
00:02:09 v #2379 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:09 v #2380 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:09 v #2381 > > │ ### to_string any                                                            │
00:02:09 v #2382 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:09 v #2383 > >
00:02:09 v #2384 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:09 v #2385 > > instance to_string any =
00:02:09 v #2386 > >     obj_to_string
00:02:10 v #2387 > 00:02:09 d #127 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/535b1c28f448e4342ba967a37df4a73093493e283e58b42af15c938ba1f08535/main.spi
00:02:10 v #2388 > >
00:02:10 v #2389 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:10 v #2390 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:10 v #2391 > > │ ### replace                                                                  │
00:02:10 v #2392 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:10 v #2393 > >
00:02:10 v #2394 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:10 v #2395 > > inl replace (old_value : string) (new_value : string) (s : string) : string =
00:02:10 v #2396 > >     $'!s.Replace (!old_value, !new_value)'
00:02:10 v #2397 > 00:02:09 d #128 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9cdd7f1209217b449bff888f6d601531cf50033e1ece7b7c0582950b855cd4cb/main.spi
00:02:10 v #2398 > >
00:02:10 v #2399 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:10 v #2400 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:10 v #2401 > > │ ### split                                                                    │
00:02:10 v #2402 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:10 v #2403 > >
00:02:10 v #2404 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:10 v #2405 > > inl split (separator : string) (str : string) : array_base string =
00:02:10 v #2406 > >     backend_switch {
00:02:10 v #2407 > >         Fsharp = fun () => $'!str.Split !separator ' : array_base string
00:02:10 v #2408 > >         Python = fun () => $'!str.split(!separator)' : array_base string
00:02:10 v #2409 > >     }
00:02:10 v #2410 > 00:02:10 d #129 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f3b922198f202046e87bc618d83c56a9bc6dbbe011e426c94310b97041501c05/main.spi
00:02:11 v #2411 > >
00:02:11 v #2412 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 v #2413 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 v #2414 > > │ ### split_string                                                             │
00:02:11 v #2415 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 v #2416 > >
00:02:11 v #2417 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:11 v #2418 > > inl split_string (separator : array_base string) (str : string) : array_base
00:02:11 v #2419 > > string =
00:02:11 v #2420 > >     run_target_args (fun () => str, separator) function
00:02:11 v #2421 > >         | Fsharp (Native) => fun str, separator => $'!str.Split (!separator,
00:02:11 v #2422 > > System.StringSplitOptions.None)'
00:02:11 v #2423 > >         | _ => fun str, separator => str |> split ((a separator : _ int _) |>
00:02:11 v #2424 > > seq.of_array |> concat (join ""))
00:02:11 v #2425 > 00:02:10 d #130 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2fd4b02d4f71d2074285171963425a29ecc5ab3ef58b71d9bd53d014286d35c2/main.spi
00:02:11 v #2426 > >
00:02:11 v #2427 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 v #2428 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 v #2429 > > │ ### join'                                                                    │
00:02:11 v #2430 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 v #2431 > >
00:02:11 v #2432 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:11 v #2433 > > inl join' (concat : string) (s : a int string) : string =
00:02:11 v #2434 > >     $'System.String.Join (!concat, !s)'
00:02:11 v #2435 > 00:02:11 d #131 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ca254a6bac2246b6304d9ca33d71d82a7acaf481f654dd1ae749926f990fcd4/main.spi
00:02:11 v #2436 > >
00:02:11 v #2437 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 v #2438 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 v #2439 > > │ ### encoding                                                                 │
00:02:11 v #2440 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 v #2441 > >
00:02:11 v #2442 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:11 v #2443 > > nominal encoding = $'System.Text.Encoding'
00:02:12 v #2444 > 00:02:11 d #132 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd6460ff8458300546c832c63071ca136ae108b53f283175192c319a1c3ab877/main.spi
00:02:12 v #2445 > >
00:02:12 v #2446 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:12 v #2447 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:12 v #2448 > > │ ### encoding_utf8                                                            │
00:02:12 v #2449 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:12 v #2450 > >
00:02:12 v #2451 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:12 v #2452 > > inl encoding_utf8 () : encoding =
00:02:12 v #2453 > >     $'`encoding.UTF8'
00:02:12 v #2454 > 00:02:11 d #133 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/257f5ed3b9b3522a74191de7e7c7992520752d6ce1784f829df5245a7112fe24/main.spi
00:02:12 v #2455 > >
00:02:12 v #2456 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:12 v #2457 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:12 v #2458 > > │ ### utf8_get_bytes                                                           │
00:02:12 v #2459 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:12 v #2460 > >
00:02:12 v #2461 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:12 v #2462 > > inl utf8_get_bytes (s : string) : a i32 u8 =
00:02:12 v #2463 > >     s |> (encoding_utf8 () |> $'_.GetBytes')
00:02:13 v #2464 > 00:02:12 d #134 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/093bbbf6ea0bce5c04d301f055badd857483c0ffc04c16df65aa36c3dd59b696/main.spi
00:02:13 v #2465 > >
00:02:13 v #2466 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:13 v #2467 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:13 v #2468 > > │ ### byte_to_string                                                           │
00:02:13 v #2469 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:13 v #2470 > >
00:02:13 v #2471 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:13 v #2472 > > inl byte_to_string (format : string) (x : u8) : string =
00:02:13 v #2473 > >     $'!x.ToString' format
00:02:13 v #2474 > 00:02:12 d #135 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48f2b04dc215e4e66a69e4157dd4cd3719f5191e36d0e509fdfacf82515fe11a/main.spi
00:02:13 v #2475 > >
00:02:13 v #2476 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:13 v #2477 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:13 v #2478 > > │ ## rust                                                                      │
00:02:13 v #2479 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:13 v #2480 > >
00:02:13 v #2481 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:13 v #2482 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:13 v #2483 > > │ ### str                                                                      │
00:02:13 v #2484 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:13 v #2485 > >
00:02:13 v #2486 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:13 v #2487 > > nominal str =
00:02:13 v #2488 > >     `(
00:02:13 v #2489 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:13 v #2490 > > Fable.Core.Emit(\"str\")>]]\ntype Str = class end\n#else\ntype Str =
00:02:13 v #2491 > > string\n#endif\n"
00:02:13 v #2492 > >         $'' : $'Str'
00:02:13 v #2493 > >     )
00:02:13 v #2494 > 00:02:13 d #136 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/adac571fc1421f4dc5344b437176ab00546089c4a1bfbeda4c87daf0523209db/main.spi
00:02:14 v #2495 > >
00:02:14 v #2496 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:14 v #2497 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:14 v #2498 > > │ ### chars                                                                    │
00:02:14 v #2499 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:14 v #2500 > >
00:02:14 v #2501 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:14 v #2502 > > inl chars (x : rust.ref str) : rust.mut' (into_iterator char) =
00:02:14 v #2503 > >     !\\(x, $'$"$0.chars()"')
00:02:14 v #2504 > 00:02:13 d #137 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0e512a49b2d0ebcc988d431fc6219d8d0cdc457a7ea17dfa5d2d5882f0d5fd84/main.spi
00:02:14 v #2505 > >
00:02:14 v #2506 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:14 v #2507 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:14 v #2508 > > │ ### char_is_alphanumeric                                                     │
00:02:14 v #2509 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:14 v #2510 > >
00:02:14 v #2511 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:14 v #2512 > > inl char_is_alphanumeric (x : char) : bool =
00:02:14 v #2513 > >     !\\(x, $'$"$0.is_alphanumeric()"')
00:02:14 v #2514 > 00:02:13 d #138 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/350414edaf5a5499269d1dac5b7e102f5d1f7808d51e07fcd532e01f59e91664/main.spi
00:02:14 v #2515 > >
00:02:14 v #2516 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:14 v #2517 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:14 v #2518 > > │ ### byte_slice                                                               │
00:02:14 v #2519 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:14 v #2520 > >
00:02:14 v #2521 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:14 v #2522 > > inl byte_slice (s : string) : rust.ref (am'.slice u8) =
00:02:14 v #2523 > >     !\($'"b\\\"" + !s + "\\\""')
00:02:15 v #2524 > 00:02:14 d #139 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f97538f681277576c3832b5226ad8a9cedb3d9538e2776ec73539c3fe784661e/main.spi
00:02:15 v #2525 > >
00:02:15 v #2526 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:15 v #2527 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:15 v #2528 > > │ ### display                                                                  │
00:02:15 v #2529 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:15 v #2530 > >
00:02:15 v #2531 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:15 v #2532 > > nominal display t =
00:02:15 v #2533 > >     `(
00:02:15 v #2534 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:15 v #2535 > > Fable.Core.Emit(\"std::fmt::Display<$0>\")>]]\n#endif\ntype std_fmt_Display<'T>
00:02:15 v #2536 > > = class end"
00:02:15 v #2537 > >         $'' : $'std_fmt_Display<`t>'
00:02:15 v #2538 > >     )
00:02:15 v #2539 > 00:02:14 d #140 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/10174e5b84a3ece0f49540679b18ae3ffa9602a3b2b7f08e7c20d3695706d50c/main.spi
00:02:15 v #2540 > >
00:02:15 v #2541 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:15 v #2542 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:15 v #2543 > > │ ### base64_decode_error                                                      │
00:02:15 v #2544 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:15 v #2545 > >
00:02:15 v #2546 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:15 v #2547 > > nominal base64_decode_error =
00:02:15 v #2548 > >     `(
00:02:15 v #2549 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:15 v #2550 > > Fable.Core.Emit(\"base64::DecodeError\")>]]\n#endif\ntype base64_DecodeError =
00:02:15 v #2551 > > class end"
00:02:15 v #2552 > >         $'' : $'base64_DecodeError'
00:02:15 v #2553 > >     )
00:02:16 v #2554 > 00:02:15 d #141 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36af214848f8cfa7a04c1f602208e7ee8d533463c76e0cb4b04eaa13b2d0f8f4/main.spi
00:02:16 v #2555 > >
00:02:16 v #2556 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:16 v #2557 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:16 v #2558 > > │ ### borsh_io_error                                                           │
00:02:16 v #2559 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 v #2560 > >
00:02:16 v #2561 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:16 v #2562 > > nominal borsh_io_error =
00:02:16 v #2563 > >     `(
00:02:16 v #2564 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:16 v #2565 > > Fable.Core.Emit(\"borsh::io::Error\")>]]\n#endif\ntype borsh_io_Error = class
00:02:16 v #2566 > > end"
00:02:16 v #2567 > >         $'' : $'borsh_io_Error'
00:02:16 v #2568 > >     )
00:02:16 v #2569 > 00:02:15 d #142 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/628c282d6da228f2f201ce098fd5705f0c1b023bb62d028b36e579a67a66ab06/main.spi
00:02:16 v #2570 > >
00:02:16 v #2571 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:16 v #2572 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:16 v #2573 > > │ ### utf8_error                                                               │
00:02:16 v #2574 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 v #2575 > >
00:02:16 v #2576 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:16 v #2577 > > nominal utf8_error =
00:02:16 v #2578 > >     `(
00:02:16 v #2579 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:16 v #2580 > > Fable.Core.Emit(\"std::str::Utf8Error\")>]]\n#endif\ntype std_str_Utf8Error =
00:02:16 v #2581 > > class end"
00:02:16 v #2582 > >         $'' : $'std_str_Utf8Error'
00:02:16 v #2583 > >     )
00:02:16 v #2584 > 00:02:16 d #143 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/328bc4ca721f71740d272fefa59b7a11bbe3974e00e421bc204408bb33630187/main.spi
00:02:17 v #2585 > >
00:02:17 v #2586 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:17 v #2587 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:17 v #2588 > > │ ### from_utf8_error                                                          │
00:02:17 v #2589 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:17 v #2590 > >
00:02:17 v #2591 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:17 v #2592 > > nominal from_utf8_error =
00:02:17 v #2593 > >     `(
00:02:17 v #2594 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:17 v #2595 > > Fable.Core.Emit(\"std::string::FromUtf8Error\")>]]\n#endif\ntype
00:02:17 v #2596 > > std_string_FromUtf8Error = class end"
00:02:17 v #2597 > >         $'' : $'std_string_FromUtf8Error'
00:02:17 v #2598 > >     )
00:02:17 v #2599 > 00:02:16 d #144 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cff3ac7f13e49b5de598be53413589deac007f85e50035e6a53b806d71205af8/main.spi
00:02:17 v #2600 > >
00:02:17 v #2601 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:17 v #2602 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:17 v #2603 > > │ ### json_value                                                               │
00:02:17 v #2604 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:17 v #2605 > >
00:02:17 v #2606 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:17 v #2607 > > nominal json_value =
00:02:17 v #2608 > >     `(
00:02:17 v #2609 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:17 v #2610 > > Fable.Core.Emit(\"serde_json::Value\")>]]\n#endif\ntype serde_json_Value = class
00:02:17 v #2611 > > end"
00:02:17 v #2612 > >         $'' : $'serde_json_Value'
00:02:17 v #2613 > >     )
00:02:17 v #2614 > 00:02:16 d #145 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6f4761c95460665c06fe5fa4cd8647d9c9cd0326b2ef38e6841e4fe4f0e813d8/main.spi
00:02:17 v #2615 > >
00:02:17 v #2616 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:17 v #2617 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:17 v #2618 > > │ ### json_error                                                               │
00:02:17 v #2619 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:17 v #2620 > >
00:02:17 v #2621 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:17 v #2622 > > nominal json_error =
00:02:17 v #2623 > >     `(
00:02:17 v #2624 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:17 v #2625 > > Fable.Core.Emit(\"serde_json::Error\")>]]\n#endif\ntype serde_json_Error = class
00:02:17 v #2626 > > end"
00:02:17 v #2627 > >         $'' : $'serde_json_Error'
00:02:17 v #2628 > >     )
00:02:18 v #2629 > 00:02:17 d #146 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cddb48bbef74a9dc9b3c62f88a1d0a8cc001f832bd3f28b09c4006406ff35bdf/main.spi
00:02:18 v #2630 > >
00:02:18 v #2631 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:18 v #2632 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:18 v #2633 > > │ ### serde_wasm_bindgen_error                                                 │
00:02:18 v #2634 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:18 v #2635 > >
00:02:18 v #2636 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:18 v #2637 > > nominal serde_wasm_bindgen_error =
00:02:18 v #2638 > >     `(
00:02:18 v #2639 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:18 v #2640 > > Fable.Core.Emit(\"serde_wasm_bindgen::Error\")>]]\n#endif\ntype
00:02:18 v #2641 > > serde_wasm_bindgen_Error = class end"
00:02:18 v #2642 > >         $'' : $'serde_wasm_bindgen_Error'
00:02:18 v #2643 > >     )
00:02:18 v #2644 > 00:02:17 d #147 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06bcbdc07753e5b6c8a48b534e368d2a7f3b39e82960b5c510d3d1a37b5ce5bf/main.spi
00:02:18 v #2645 > >
00:02:18 v #2646 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:18 v #2647 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:18 v #2648 > > │ ### js_string                                                                │
00:02:18 v #2649 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:18 v #2650 > >
00:02:18 v #2651 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:18 v #2652 > > nominal js_string =
00:02:18 v #2653 > >     `(
00:02:18 v #2654 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:18 v #2655 > > Fable.Core.Emit(\"js_sys::JsString\")>]]\n#endif\ntype js_sys_JsString = class
00:02:18 v #2656 > > end"
00:02:18 v #2657 > >         $'' : $'js_sys_JsString'
00:02:18 v #2658 > >     )
00:02:19 v #2659 > 00:02:18 d #148 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/77a4a392e7067f9138b703175a6291ad352076ab0cf8fc7e335d3dac760baa1e/main.spi
00:02:19 v #2660 > >
00:02:19 v #2661 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:19 v #2662 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:19 v #2663 > > │ ### os_str                                                                   │
00:02:19 v #2664 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:19 v #2665 > >
00:02:19 v #2666 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:19 v #2667 > > nominal os_str =
00:02:19 v #2668 > >     `(
00:02:19 v #2669 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:19 v #2670 > > Fable.Core.Emit(\"std::ffi::OsStr\")>]]\n#endif\ntype std_ffi_OsStr = class end"
00:02:19 v #2671 > >         $'' : $'std_ffi_OsStr'
00:02:19 v #2672 > >     )
00:02:19 v #2673 > 00:02:18 d #149 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15965259301bce3c6810b4f99e16d5327034df11d90848bbe4988513f37c99ed/main.spi
00:02:19 v #2674 > >
00:02:19 v #2675 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:19 v #2676 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:19 v #2677 > > │ ### os_string                                                                │
00:02:19 v #2678 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:19 v #2679 > >
00:02:19 v #2680 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:19 v #2681 > > nominal os_string =
00:02:19 v #2682 > >     `(
00:02:19 v #2683 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:19 v #2684 > > Fable.Core.Emit(\"std::ffi::OsString\")>]]\n#endif\ntype std_ffi_OsString =
00:02:19 v #2685 > > class end"
00:02:19 v #2686 > >         $'' : $'std_ffi_OsString'
00:02:19 v #2687 > >     )
00:02:19 v #2688 > 00:02:19 d #150 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e973724ced57d9c2f766f2c8f9f373502143e606326cffee555e5d8343288a6/main.spi
00:02:19 v #2689 > >
00:02:19 v #2690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:19 v #2691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:19 v #2692 > > │ ### raw_string_literal                                                       │
00:02:19 v #2693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:19 v #2694 > >
00:02:19 v #2695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:19 v #2696 > > inl raw_string_literal (s : string) : rust.ref str =
00:02:19 v #2697 > >     !\($'"r#\\"" + !s + "\\"#"')
00:02:20 v #2698 > 00:02:19 d #151 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e045aaacbaa308e6a8bb4223a4be3113aff4ea2d44b9cc5773dc253b596effbd/main.spi
00:02:20 v #2699 > >
00:02:20 v #2700 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:20 v #2701 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:20 v #2702 > > │ ### raw_string_literal_static                                                │
00:02:20 v #2703 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:20 v #2704 > >
00:02:20 v #2705 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:20 v #2706 > > inl raw_string_literal_static (s : string) : rust.static_ref str =
00:02:20 v #2707 > >     !\($'"r#\\"" + !s + "\\"#"')
00:02:20 v #2708 > 00:02:19 d #152 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b932951fc83184819dbbf9d0df43c353e58fb1b3de2459d53763cbaf2188307d/main.spi
00:02:20 v #2709 > >
00:02:20 v #2710 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:20 v #2711 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:20 v #2712 > > │ ### (~#)                                                                     │
00:02:20 v #2713 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:20 v #2714 > >
00:02:20 v #2715 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:20 v #2716 > > inl (~#) s =
00:02:20 v #2717 > >     s |> raw_string_literal
00:02:21 v #2718 > 00:02:20 d #153 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25248935d4e3f59959876013de91020540ae180c2fce49585f7604eda8bf8b33/main.spi
00:02:21 v #2719 > >
00:02:21 v #2720 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:21 v #2721 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:21 v #2722 > > │ ### (~##)                                                                    │
00:02:21 v #2723 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:21 v #2724 > >
00:02:21 v #2725 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:21 v #2726 > > inl (~##) s =
00:02:21 v #2727 > >     s |> raw_string_literal_static
00:02:21 v #2728 > 00:02:20 d #154 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7bfe01bd8cff6994495610169940b303ea8062aa237302091315d2a21e36728a/main.spi
00:02:21 v #2729 > >
00:02:21 v #2730 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:21 v #2731 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:21 v #2732 > > │ ### include_str                                                              │
00:02:21 v #2733 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:21 v #2734 > >
00:02:21 v #2735 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:21 v #2736 > > inl include_str (path : string) : rust.ref str =
00:02:21 v #2737 > >     !\($'"include_str\!(\\\"" + !path + "\\\")"')
00:02:21 v #2738 > 00:02:21 d #155 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/532b720bcb104582ad57bb77b3dc1fc006a94b1d5ce0545c621a5cb10f0104d9/main.spi
00:02:22 v #2739 > >
00:02:22 v #2740 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:22 v #2741 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:22 v #2742 > > │ ### as_str                                                                   │
00:02:22 v #2743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:22 v #2744 > >
00:02:22 v #2745 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:22 v #2746 > > inl as_str (s : string) : rust.ref str =
00:02:22 v #2747 > >     // !\\(s, $'"fable_library_rust::String_::LrcStr::as_str(&$0)"')
00:02:22 v #2748 > >     run_target_args (fun () => s) function
00:02:22 v #2749 > >         | Rust _ => fun s => !\\(s, $'"&*$0"')
00:02:22 v #2750 > >         | _ => fun s => s |> unbox
00:02:22 v #2751 > 00:02:21 d #156 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c9be24d8d829c610a1eb688d3ba1344b7bd55f67024a0008a792b2cdaa5191cb/main.spi
00:02:22 v #2752 > >
00:02:22 v #2753 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:22 v #2754 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:22 v #2755 > > │ ### from_iter                                                                │
00:02:22 v #2756 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:22 v #2757 > >
00:02:22 v #2758 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:22 v #2759 > > inl from_iter forall (t : * -> *). (s : t char) : std_string =
00:02:22 v #2760 > >     !\\(s, $'"String::from_iter($0)"')
00:02:22 v #2761 > 00:02:22 d #157 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/03eabce34ccf2081fe094fdadf66779b6a9a87e9c9da2e0306121ada4411360b/main.spi
00:02:23 v #2762 > >
00:02:23 v #2763 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:23 v #2764 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:23 v #2765 > > │ ### ref_to_std_string                                                        │
00:02:23 v #2766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:23 v #2767 > >
00:02:23 v #2768 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:23 v #2769 > > inl ref_to_std_string (str : rust.ref str) : std_string =
00:02:23 v #2770 > >     run_target_args (fun () => str) function
00:02:23 v #2771 > >         | Rust _ => fun str => !\\(str, $'"String::from($0)"')
00:02:23 v #2772 > >         | _ => fun str => str |> unbox
00:02:23 v #2773 > 00:02:22 d #158 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/64718478b884c65b2b1ad452b3136836adb90ad45559db363e772dce4c9b0e64/main.spi
00:02:23 v #2774 > >
00:02:23 v #2775 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:23 v #2776 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:23 v #2777 > > │ ### cow_to_std_string                                                        │
00:02:23 v #2778 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:23 v #2779 > >
00:02:23 v #2780 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:23 v #2781 > > inl cow_to_std_string (str : rust.cow str) : std_string =
00:02:23 v #2782 > >     !\\(str, $'"String::from($0)"')
00:02:23 v #2783 > 00:02:22 d #159 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9c1f5e3658683ceaa00515425f3d11aecf881b06d67f5e19cc4f1e08c4f829cd/main.spi
00:02:23 v #2784 > >
00:02:23 v #2785 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:23 v #2786 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:23 v #2787 > > │ ### to_std_string                                                            │
00:02:23 v #2788 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:23 v #2789 > >
00:02:23 v #2790 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:23 v #2791 > > inl to_std_string (s : string) : std_string =
00:02:23 v #2792 > >     s |> as_str |> ref_to_std_string
00:02:24 v #2793 > 00:02:23 d #160 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/83e08046147d3aad54620377e4e729524c022f215e46364ea349cb3960851684/main.spi
00:02:24 v #2794 > >
00:02:24 v #2795 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:24 v #2796 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:24 v #2797 > > │ ### as_str_std                                                               │
00:02:24 v #2798 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:24 v #2799 > >
00:02:24 v #2800 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:24 v #2801 > > inl as_str_std (s : std_string) : rust.ref str =
00:02:24 v #2802 > >     !\\(s, $'"$0.as_str()"')
00:02:24 v #2803 > 00:02:23 d #161 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1c536259411b956b0b2db20258b698d9e34eacba866776a48660e7b9eae50138/main.spi
00:02:24 v #2804 > >
00:02:24 v #2805 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:24 v #2806 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:24 v #2807 > > │ ### into_boxed_str                                                           │
00:02:24 v #2808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:24 v #2809 > >
00:02:24 v #2810 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:24 v #2811 > > inl into_boxed_str (s : std_string) : rust.box str =
00:02:24 v #2812 > >     !\\(s, $'"$0.into_boxed_str()"')
00:02:24 v #2813 > 00:02:24 d #162 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e81f38db6e0d646ec4b8cd37ea41727d406c0531f086bfa951d296f96faba1b6/main.spi
00:02:25 v #2814 > >
00:02:25 v #2815 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:25 v #2816 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:25 v #2817 > > │ ### os_string_as_ref                                                         │
00:02:25 v #2818 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:25 v #2819 > >
00:02:25 v #2820 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:25 v #2821 > > inl os_string_as_ref (s : os_string) : rust.ref os_str =
00:02:25 v #2822 > >     !\\(s, $'"$0.as_ref()"')
00:02:25 v #2823 > 00:02:24 d #163 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6a093549f1bc24fb94ad3896e40635cc4f7b7574c87499e4f57b50d2b550d62e/main.spi
00:02:25 v #2824 > >
00:02:25 v #2825 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:25 v #2826 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:25 v #2827 > > │ ### to_os_string                                                             │
00:02:25 v #2828 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:25 v #2829 > >
00:02:25 v #2830 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:25 v #2831 > > inl to_os_string (s : rust.ref os_str) : os_string =
00:02:25 v #2832 > >     !\\(s, $'"$0.to_os_string()"')
00:02:25 v #2833 > 00:02:25 d #164 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e08514cd8a1e63f2504f7cf50634f106ed6894289496e7dc3033993e75239d6c/main.spi
00:02:26 v #2834 > >
00:02:26 v #2835 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:26 v #2836 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:26 v #2837 > > │ ### os_to_str                                                                │
00:02:26 v #2838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:26 v #2839 > >
00:02:26 v #2840 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:26 v #2841 > > inl os_to_str (s : os_string) : optionm'.option' (rust.ref str) =
00:02:26 v #2842 > >     !\\(s, $'"$0.to_str()"')
00:02:26 v #2843 > 00:02:25 d #165 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09b2b12ce8a45381a938c92f5c967d28a7a8cee796bd9a9f7e7969bf6f648dcc/main.spi
00:02:26 v #2844 > >
00:02:26 v #2845 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:26 v #2846 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:26 v #2847 > > │ ### from_os_str_ref                                                          │
00:02:26 v #2848 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:26 v #2849 > >
00:02:26 v #2850 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:26 v #2851 > > inl from_os_str_ref s =
00:02:26 v #2852 > >     s
00:02:26 v #2853 > >     |> to_os_string
00:02:26 v #2854 > >     |> os_to_str
00:02:26 v #2855 > >     |> optionm'.unwrap
00:02:26 v #2856 > >     |> ref_to_std_string
00:02:26 v #2857 > >     |> from_std_string
00:02:26 v #2858 > 00:02:25 d #166 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa57a46f3f934dbc788595fd865777e970d6b1fa004a54ba8192eb45badafa1a/main.spi
00:02:26 v #2859 > >
00:02:26 v #2860 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:26 v #2861 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:26 v #2862 > > │ ### format_custom'                                                           │
00:02:26 v #2863 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:26 v #2864 > >
00:02:26 v #2865 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:26 v #2866 > > inl format_custom' (f : string) x : std_string =
00:02:26 v #2867 > >     run_target function
00:02:26 v #2868 > >         | Rust _ => fun () =>
00:02:26 v #2869 > >             !\\(x, $'"format\!(\\\"" + !f + "\\\", $0)"')
00:02:26 v #2870 > >         | _ => fun () => null ()
00:02:27 v #2871 > 00:02:26 d #167 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a372698308ee708cdc151c128daebe11293254e1eb4df43533474be99b7311a8/main.spi
00:02:27 v #2872 > >
00:02:27 v #2873 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:27 v #2874 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:27 v #2875 > > │ ### format_debug'                                                            │
00:02:27 v #2876 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:27 v #2877 > >
00:02:27 v #2878 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:27 v #2879 > > inl format_debug' x : std_string =
00:02:27 v #2880 > >     run_target function
00:02:27 v #2881 > >         | Rust _ => fun () =>
00:02:27 v #2882 > >             !\\(x, $'"format\!(\\\"{:?}\\\", $0)"')
00:02:27 v #2883 > >         | _ => fun () => null ()
00:02:27 v #2884 > 00:02:26 d #168 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f00fdf669b931a419a80f9179650b491546acd2651b4fdb93bc2903356e40d0e/main.spi
00:02:27 v #2885 > >
00:02:27 v #2886 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:27 v #2887 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:27 v #2888 > > │ ### format'                                                                  │
00:02:27 v #2889 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:27 v #2890 > >
00:02:27 v #2891 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:27 v #2892 > > inl format' x : std_string =
00:02:27 v #2893 > >     run_target_args (fun () => x) function
00:02:27 v #2894 > >         | Rust _ => fun x =>
00:02:27 v #2895 > >             !\\(x, $'"format\!(\\\"{}\\\", $0)"')
00:02:27 v #2896 > >         | _ => fun _ => null ()
00:02:28 v #2897 > 00:02:27 d #169 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/30ba9400f163f9eaab70ce6351a79ec89e3bbf9761d92076b7969c63aa0b42ae/main.spi
00:02:28 v #2898 > >
00:02:28 v #2899 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:28 v #2900 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:28 v #2901 > > │ ### format_hex'                                                              │
00:02:28 v #2902 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:28 v #2903 > >
00:02:28 v #2904 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:28 v #2905 > > inl format_hex' x : std_string =
00:02:28 v #2906 > >     !\\(x, $'"format\!(\\\"{:02x}\\\", $0)"')
00:02:28 v #2907 > 00:02:27 d #170 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad91ebba5b5d6cb9bd0cd54c77530a417daddfbad5d754c9feca3177d2cdd828/main.spi
00:02:28 v #2908 > >
00:02:28 v #2909 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:28 v #2910 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:28 v #2911 > > │ ### format''                                                                 │
00:02:28 v #2912 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:28 v #2913 > >
00:02:28 v #2914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:28 v #2915 > > inl format'' (format : string) : std_string =
00:02:28 v #2916 > >     !\($'@@$"format\!(" + !format + ")"')
00:02:28 v #2917 > 00:02:28 d #171 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2dab8e708175ce3b8505fc68b1f88fd53d9e8b376976a4f987beb86f9f264af0/main.spi
00:02:29 v #2918 > >
00:02:29 v #2919 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:29 v #2920 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:29 v #2921 > > │ ### regex                                                                    │
00:02:29 v #2922 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:29 v #2923 > >
00:02:29 v #2924 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:29 v #2925 > > nominal regex =
00:02:29 v #2926 > >     `(
00:02:29 v #2927 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:29 v #2928 > > Fable.Core.Emit(\"regex::Regex\")>]]\n#endif\ntype regex_Regex = class end"
00:02:29 v #2929 > >         $'' : $'regex_Regex'
00:02:29 v #2930 > >     )
00:02:29 v #2931 > 00:02:28 d #172 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c2953efda770957ba3c11a3d44ac7debdc56d09e8fe155b31fe1c58b533bec57/main.spi
00:02:29 v #2932 > >
00:02:29 v #2933 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:29 v #2934 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:29 v #2935 > > │ ### regex_error                                                              │
00:02:29 v #2936 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:29 v #2937 > >
00:02:29 v #2938 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:29 v #2939 > > nominal regex_error =
00:02:29 v #2940 > >     `(
00:02:29 v #2941 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:29 v #2942 > > Fable.Core.Emit(\"regex::Error\")>]]\n#endif\ntype regex_Error = class end"
00:02:29 v #2943 > >         $'' : $'regex_Error'
00:02:29 v #2944 > >     )
00:02:29 v #2945 > 00:02:28 d #173 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/afdc67bcc2f7ebb27ca0edff5819a709681d33eef7069774220b54ee2972500c/main.spi
00:02:29 v #2946 > >
00:02:29 v #2947 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:29 v #2948 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:29 v #2949 > > │ ### new_regex                                                                │
00:02:29 v #2950 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:29 v #2951 > >
00:02:29 v #2952 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:29 v #2953 > > inl new_regex (pattern : string) : resultm.result' regex regex_error =
00:02:29 v #2954 > >     !\\(pattern, $'$"regex::Regex::new(&$0)"')
00:02:30 v #2955 > 00:02:29 d #174 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/235f14788f7143f7f717d61fc1f6048c139339574b428366df8b3d6bec264139/main.spi
00:02:30 v #2956 > >
00:02:30 v #2957 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:30 v #2958 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:30 v #2959 > > │ ### captures                                                                 │
00:02:30 v #2960 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:30 v #2961 > >
00:02:30 v #2962 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:30 v #2963 > > nominal regex_captures t =
00:02:30 v #2964 > >     `(
00:02:30 v #2965 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:30 v #2966 > > Fable.Core.Emit(\"regex::Captures<$0>\")>]]\n#endif\ntype regex_Captures<'T> =
00:02:30 v #2967 > > class end"
00:02:30 v #2968 > >         $'' : $'regex_Captures<`t>'
00:02:30 v #2969 > >     )
00:02:30 v #2970 > 00:02:29 d #175 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/300cb15e48b372c8e6076d92cddbfc0c9ac3ccd1d8d090e8f152daefe8d40ef4/main.spi
00:02:30 v #2971 > >
00:02:30 v #2972 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:30 v #2973 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:30 v #2974 > > │ ### regex_capture_matches                                                    │
00:02:30 v #2975 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:30 v #2976 > >
00:02:30 v #2977 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:30 v #2978 > > nominal regex_capture_matches =
00:02:30 v #2979 > >     `(
00:02:30 v #2980 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:30 v #2981 > > Fable.Core.Emit(\"regex::CaptureMatches\")>]]\n#endif\ntype regex_CaptureMatches
00:02:30 v #2982 > > = class end"
00:02:30 v #2983 > >         $'' : $'regex_CaptureMatches'
00:02:30 v #2984 > >     )
00:02:31 v #2985 > 00:02:30 d #176 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ba12101695598a7f7df0f2794154520f128ca31fe6e758e666a3efc4abe4ffc/main.spi
00:02:31 v #2986 > >
00:02:31 v #2987 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:31 v #2988 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:31 v #2989 > > │ ### regex_capture_names                                                      │
00:02:31 v #2990 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 v #2991 > >
00:02:31 v #2992 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:31 v #2993 > > nominal regex_capture_names =
00:02:31 v #2994 > >     `(
00:02:31 v #2995 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:31 v #2996 > > Fable.Core.Emit(\"regex::CaptureNames\")>]]\n#endif\ntype regex_CaptureNames =
00:02:31 v #2997 > > class end"
00:02:31 v #2998 > >         $'' : $'regex_CaptureNames'
00:02:31 v #2999 > >     )
00:02:31 v #3000 > >
00:02:31 v #3001 > > inl regex_capture_names (regex : regex) : regex_capture_names =
00:02:31 v #3002 > >     !\\(regex, $'$"$0.capture_names()"')
00:02:31 v #3003 > 00:02:30 d #177 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4c520e4befae45c9292384eff00f5d503325bf0f72fa40305d8592d558cef9d2/main.spi
00:02:31 v #3004 > >
00:02:31 v #3005 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:31 v #3006 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:31 v #3007 > > │ ### match'                                                                   │
00:02:31 v #3008 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 v #3009 > >
00:02:31 v #3010 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:31 v #3011 > > nominal match' =
00:02:31 v #3012 > >     `(
00:02:31 v #3013 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:31 v #3014 > > Fable.Core.Emit(\"regex::Match\")>]]\n#endif\ntype regex_Match = class end"
00:02:31 v #3015 > >         $'' : $'regex_Match'
00:02:31 v #3016 > >     )
00:02:31 v #3017 > 00:02:31 d #178 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/773c37f6f767a485dd32a40b5937c423adb1a9ccf63297524de841b4067753ea/main.spi
00:02:32 v #3018 > >
00:02:32 v #3019 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:32 v #3020 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:32 v #3021 > > │ ### regex_captures_iter                                                      │
00:02:32 v #3022 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:32 v #3023 > >
00:02:32 v #3024 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:32 v #3025 > > inl regex_captures_iter (s : rust.static_ref (rust.mut' std_string)) (regex :
00:02:32 v #3026 > > regex) : regex_capture_matches =
00:02:32 v #3027 > >     inl regex = regex |> rust.emit
00:02:32 v #3028 > >     !\\(regex, $'$"$0.captures_iter(!s)"')
00:02:32 v #3029 > 00:02:31 d #179 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90aff736ad8692d8c88ff18642bdf5ef8acfdbbd99b3496b7b96fbe3d0f8af52/main.spi
00:02:32 v #3030 > >
00:02:32 v #3031 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:32 v #3032 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:32 v #3033 > > │ ### regex_captures                                                           │
00:02:32 v #3034 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:32 v #3035 > >
00:02:32 v #3036 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:32 v #3037 > > let regex_captures (s : string) (regex : regex) : am'.vec (mapm.hash_map string
00:02:32 v #3038 > > string) =
00:02:32 v #3039 > >     // inl s = join s
00:02:32 v #3040 > >     // !\\(regex, $'$"$0.captures_iter(&*!s).map(|caps|
00:02:32 v #3041 > > $0.capture_names().map(|x| x.and_then(|n| Some((n,
00:02:32 v #3042 > > caps.name(n)?.as_str())))).flatten().collect()).collect()"')
00:02:32 v #3043 > >
00:02:32 v #3044 > >     inl s = s |> to_std_string
00:02:32 v #3045 > >     fun () =>
00:02:32 v #3046 > >         inl matches =
00:02:32 v #3047 > >             inl s = s |> rust.new_box |> rust.box_leak
00:02:32 v #3048 > >             regex |> regex_captures_iter s
00:02:32 v #3049 > >
00:02:32 v #3050 > >         (!\($'"true; let _regex_captures : Vec<_> = !matches.map(|x| { //"') :
00:02:32 v #3051 > > bool) |> ignore
00:02:32 v #3052 > >
00:02:32 v #3053 > >         inl fn (match' : rust.static_ref (rust.mut' (regex_captures
00:02:32 v #3054 > > rust.static_lifetime))) : mapm.hash_map string string =
00:02:32 v #3055 > >
00:02:32 v #3056 > >             inl names = regex |> regex_capture_names
00:02:32 v #3057 > >
00:02:32 v #3058 > >             (!\($'"true; let _regex_captures : std::collections::HashMap<_, _> =
00:02:32 v #3059 > > !names.map(|x| { //"') : bool) |> ignore
00:02:32 v #3060 > >
00:02:32 v #3061 > >             inl fn (n : string) : pair string string =
00:02:32 v #3062 > >                 inl n' = n |> rust.clone
00:02:32 v #3063 > >
00:02:32 v #3064 > >                 new_pair n' !\\(n, $'$"!match'.name(&$0).map(|x|
00:02:32 v #3065 > > x.as_str()).unwrap_or(\\\"\\\").to_string().into()"')
00:02:32 v #3066 > >
00:02:32 v #3067 > >             (!\\(fn !\($'"x.unwrap_or(\\\"\\\").to_string().into()"'), $'"true;
00:02:32 v #3068 > > $0 }).map(|x| std::sync::Arc::try_unwrap(x).unwrap_or_else(|x|
00:02:32 v #3069 > > (*x).clone())).collect()"') : bool) |> ignore
00:02:32 v #3070 > >
00:02:32 v #3071 > >             !\($'"_regex_captures"')
00:02:32 v #3072 > >
00:02:32 v #3073 > >         inl x =
00:02:32 v #3074 > >             !\($'$"x"')
00:02:32 v #3075 > >             |> rust.new_box
00:02:32 v #3076 > >             |> rust.box_leak
00:02:32 v #3077 > >
00:02:32 v #3078 > >         (!\\(fn x, $'"true; $0 }).collect::<Vec<_>>()"') : bool) |> ignore
00:02:32 v #3079 > >
00:02:32 v #3080 > >         !\($'"_regex_captures"')
00:02:32 v #3081 > >
00:02:32 v #3082 > >     |> rust.capture_move
00:02:32 v #3083 > 00:02:31 d #180 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c1fc8ccef10db3e05032449aaa3f59a5d2b15e932277f6091d35f7b6f323b5d/main.spi
00:02:32 v #3084 > >
00:02:32 v #3085 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:32 v #3086 > > //// test
00:02:32 v #3087 > > ///! rust -d regex
00:02:32 v #3088 > >
00:02:32 v #3089 > > "fable-library-ts\\.(?<a>[[\\d.]]+)$"
00:02:32 v #3090 > > |> new_regex
00:02:32 v #3091 > > |> resultm.unwrap'
00:02:32 v #3092 > > |> regex_captures "fable_modules/fable-library-ts.4.17.0"
00:02:32 v #3093 > > |> am'.vec_map (mapm.to_vec >> am'.vec_sort_by_key id)
00:02:32 v #3094 > > |> sm'.format_debug
00:02:32 v #3095 > > |> _assert_eq (
00:02:32 v #3096 > >     ;[[
00:02:32 v #3097 > >         ;[[ "", ""; "a", "4.17.0" ]]
00:02:32 v #3098 > >         |> am'.to_vec
00:02:32 v #3099 > >     ]]
00:02:32 v #3100 > >     |> am'.to_vec
00:02:32 v #3101 > >     |> sm'.format_debug
00:02:32 v #3102 > > )
00:02:33 v #3103 > 00:02:32 d #181 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7cff71944ac4fda668f4c1f11f9574cd7bfe452053e74c230976238040275dc4/main.spi
00:02:47 v #3104 > >
00:02:47 v #3105 > > ╭─[ 14.79s - return value ]────────────────────────────────────────────────────╮
00:02:47 v #3106 > > │ __assert_eq / actual: "[[("", ""), ("a", "4.17.0")]]" / expected: "[[("",    │
00:02:47 v #3107 > > │ ""), ("a", "4.17.0")]]"                                                      │
00:02:47 v #3108 > > │                                                                              │
00:02:47 v #3109 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:47 v #3110 > >
00:02:47 v #3111 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:47 v #3112 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:47 v #3113 > > │ ### replace_regex'                                                           │
00:02:47 v #3114 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:47 v #3115 > >
00:02:47 v #3116 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:47 v #3117 > > inl replace_regex' (pattern : string) (replacement : a i32 string) (s : string)
00:02:47 v #3118 > > : string =
00:02:47 v #3119 > >     run_target_args (fun () => s, pattern, replacement) function
00:02:47 v #3120 > >         | Rust (Native) => fun s, pattern, replacement =>
00:02:47 v #3121 > >             inl regex = pattern |> new_regex |> resultm.unwrap'
00:02:47 v #3122 > >             !\\((regex, #s, replacement), $'$"$0.replace_all($1, &*$2)"')
00:02:47 v #3123 > >             |> cow_to_std_string
00:02:47 v #3124 > >             |> from_std_string
00:02:47 v #3125 > >         | _ => fun _ => null ()
00:02:47 v #3126 > 00:02:47 d #182 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/915fd9728fe220164988644f926ce1fcddfafae6c59ce026a5204e6a7a2eadf8/main.spi
00:02:48 v #3127 > >
00:02:48 v #3128 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:48 v #3129 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:48 v #3130 > > │ ### serialize                                                                │
00:02:48 v #3131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:48 v #3132 > >
00:02:48 v #3133 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:48 v #3134 > > inl serialize forall t. (x : t) : resultm.result' std_string json_error =
00:02:48 v #3135 > >     !\($'"serde_json::to_string(&!x)"')
00:02:48 v #3136 > 00:02:47 d #183 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a42de5d0d8c00c22955325facf3658c52c6107221e9aa3813f14a7d89ac5ba1/main.spi
00:02:48 v #3137 > >
00:02:48 v #3138 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:48 v #3139 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:48 v #3140 > > │ ### deserialize                                                              │
00:02:48 v #3141 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:48 v #3142 > >
00:02:48 v #3143 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:48 v #3144 > > inl deserialize forall t. (json : string) : resultm.result' t std_string =
00:02:48 v #3145 > >     inl json = join json
00:02:48 v #3146 > >     inl json = json |> as_str
00:02:48 v #3147 > >     !\\(json, $'"serde_json::from_str(&$0)"')
00:02:48 v #3148 > >     |> resultm.map_error' fun (x : json_error) => x |> format'
00:02:48 v #3149 > 00:02:48 d #184 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3014bc5ff6e2782929ef76741f242da1a8d85e60f1fbae44fc6adec852cb773c/main.spi
00:02:49 v #3150 > >
00:02:49 v #3151 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:49 v #3152 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:49 v #3153 > > │ ### borsh_serialize                                                          │
00:02:49 v #3154 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:49 v #3155 > >
00:02:49 v #3156 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:49 v #3157 > > inl borsh_serialize forall t. (data : t) : am'.vec u8 =
00:02:49 v #3158 > >     (!\($'"true; let mut data = Vec::new()"') : bool) |> ignore
00:02:49 v #3159 > >     (!\\(data, $'"true; borsh::BorshSerialize::serialize(&$0, &mut
00:02:49 v #3160 > > data).unwrap()"') : bool) |> ignore
00:02:49 v #3161 > >     !\($'"data"')
00:02:49 v #3162 > 00:02:48 d #185 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c773b3657e0ab308d249530e69894ac8599293d2bdb183ae0048d3b34b6d44d8/main.spi
00:02:49 v #3163 > >
00:02:49 v #3164 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:49 v #3165 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:49 v #3166 > > │ ### borsh_deserialize                                                        │
00:02:49 v #3167 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:49 v #3168 > >
00:02:49 v #3169 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:49 v #3170 > > inl borsh_deserialize forall t. (data : array_base u8) : resultm.result' t
00:02:49 v #3171 > > std_string =
00:02:49 v #3172 > >     inl data = data |> am'.as_slice
00:02:49 v #3173 > >     (!\($'"true; let mut !data = !data"') : bool) |> ignore
00:02:49 v #3174 > >     inl result = !\($'"borsh::BorshDeserialize::deserialize(&mut !data)"')
00:02:49 v #3175 > >     result
00:02:49 v #3176 > >     |> resultm.map_error' fun (x : borsh_io_error) => x |> format'
00:02:49 v #3177 > 00:02:48 d #186 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/07afa7e2eaad6a02fa797de57d1563a6242db4ff8a337c527d1cf3e99613c9e6/main.spi
00:02:50 v #3178 > >
00:02:50 v #3179 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:50 v #3180 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:50 v #3181 > > │ ### deserialize_vec                                                          │
00:02:50 v #3182 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 v #3183 > >
00:02:50 v #3184 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:50 v #3185 > > inl deserialize_vec (value : json_value) : resultm.result' (am'.vec u8)
00:02:50 v #3186 > > std_string =
00:02:50 v #3187 > >     inl value = join value
00:02:50 v #3188 > >     !\($'"serde_json::from_value(!value)"')
00:02:50 v #3189 > >     |> resultm.map_error' fun (x : json_error) => x |> format'
00:02:50 v #3190 > 00:02:49 d #187 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c66df3f1ebba6ccc526c9f09a444927f194d1f01a64dbdc61343aa867bbde1f6/main.spi
00:02:50 v #3191 > >
00:02:50 v #3192 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:50 v #3193 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:50 v #3194 > > │ ### encode_uri_component                                                     │
00:02:50 v #3195 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 v #3196 > >
00:02:50 v #3197 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:50 v #3198 > > inl encode_uri_component (s : std_string) : js_string =
00:02:50 v #3199 > >     !\($'"js_sys::encode_uri_component(&!s)"')
00:02:50 v #3200 > 00:02:49 d #188 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4337c6a7e876c5ea8961579543b076e5481a24a4fb6222da50aa8d9cb74318da/main.spi
00:02:50 v #3201 > >
00:02:50 v #3202 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:50 v #3203 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:50 v #3204 > > │ ### strip_prefix                                                             │
00:02:50 v #3205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 v #3206 > >
00:02:50 v #3207 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:50 v #3208 > > inl strip_prefix (prefix : char) (s : std_string) : optionm'.option' (rust.ref
00:02:50 v #3209 > > str) =
00:02:50 v #3210 > >     inl s = join s
00:02:50 v #3211 > >     !\($'"!s.strip_prefix(!prefix)"')
00:02:51 v #3212 > 00:02:50 d #189 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3c3c4c65ed55c2fa6e5c54f8a9eb4f31a4b92f7589841fbefc1d251bd3bff03/main.spi
00:02:51 v #3213 > >
00:02:51 v #3214 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:51 v #3215 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:51 v #3216 > > │ ### str_from_utf8                                                            │
00:02:51 v #3217 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:51 v #3218 > >
00:02:51 v #3219 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:51 v #3220 > > inl str_from_utf8 (bytes : rust.ref (am'.slice u8)) : resultm.result' (rust.ref
00:02:51 v #3221 > > str) utf8_error =
00:02:51 v #3222 > >     !\\(bytes, $'"std::str::from_utf8($0)"')
00:02:51 v #3223 > 00:02:50 d #190 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f6f63babf51bb4d1866b0241fc5ec2f9b85ef38271d0ab35a76f857ee8782c49/main.spi
00:02:51 v #3224 > >
00:02:51 v #3225 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:51 v #3226 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:51 v #3227 > > │ ### string_from_utf8                                                         │
00:02:51 v #3228 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:51 v #3229 > >
00:02:51 v #3230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:51 v #3231 > > inl string_from_utf8 (bytes : am'.vec u8) : resultm.result' std_string
00:02:51 v #3232 > > from_utf8_error =
00:02:51 v #3233 > >     inl bytes = join bytes
00:02:51 v #3234 > >     !\\(bytes, $'"std::string::String::from_utf8($0)"')
00:02:52 v #3235 > 00:02:51 d #191 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1a3c3774a2a8a971400cf4685a442e30545908868a856eef9aef638c9c7d62d/main.spi
00:02:52 v #3236 > >
00:02:52 v #3237 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:52 v #3238 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:52 v #3239 > > │ ### base64_decode                                                            │
00:02:52 v #3240 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:52 v #3241 > >
00:02:52 v #3242 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:52 v #3243 > > inl base64_decode (s : std_string) : result std_string std_string =
00:02:52 v #3244 > >     fun () =>
00:02:52 v #3245 > >         inl s = join s
00:02:52 v #3246 > >         inl bytes : resultm.result' (am'.vec u8) base64_decode_error =
00:02:52 v #3247 > >
00:02:52 v #3248 > > !\($'"base64::Engine::decode(&base64::engine::general_purpose::STANDARD, !s)"')
00:02:52 v #3249 > >         bytes
00:02:52 v #3250 > >         |> resultm.map_error' format'
00:02:52 v #3251 > >         |> resultm.try'
00:02:52 v #3252 > >         |> string_from_utf8
00:02:52 v #3253 > >         |> resultm.map_error' format'
00:02:52 v #3254 > >     |> fun x =>
00:02:52 v #3255 > >         join x ()
00:02:52 v #3256 > >         |> resultm.unbox
00:02:52 v #3257 > 00:02:51 d #192 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b6c5fa3b94a5798bf68d70fc9f4587ae959e6b813b8f7c10e5267a40587bb952/main.spi
00:02:52 v #3258 > >
00:02:52 v #3259 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:52 v #3260 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:52 v #3261 > > │ ### encoding'                                                                │
00:02:52 v #3262 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:52 v #3263 > >
00:02:52 v #3264 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:52 v #3265 > > nominal encoding' =
00:02:52 v #3266 > >     `(
00:02:52 v #3267 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:52 v #3268 > > Fable.Core.Emit(\"encoding_rs::Encoding\")>]]\n#endif\ntype encoding_rs_Encoding
00:02:52 v #3269 > > = class end"
00:02:52 v #3270 > >         $'' : $'encoding_rs_Encoding'
00:02:52 v #3271 > >     )
00:02:52 v #3272 > 00:02:52 d #193 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2402b7c7b9ed5b56f5b203a2894621e0d482f5d51cb547953d63bf3918d2520d/main.spi
00:02:53 v #3273 > >
00:02:53 v #3274 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:53 v #3275 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:53 v #3276 > > │ ### encoding_utf8'                                                           │
00:02:53 v #3277 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:53 v #3278 > >
00:02:53 v #3279 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:53 v #3280 > > inl encoding_utf8' () : rust.ref encoding' =
00:02:53 v #3281 > >     !\($'"encoding_rs::UTF_8"')
00:02:53 v #3282 > 00:02:52 d #194 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b9e5c019169d0a3e87ef31d614fde98f96ecc8a061bd7116ed00925263d4ec67/main.spi
00:02:53 v #3283 > >
00:02:53 v #3284 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:53 v #3285 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:53 v #3286 > > │ ### encoding_1252                                                            │
00:02:53 v #3287 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:53 v #3288 > >
00:02:53 v #3289 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:53 v #3290 > > inl encoding_1252' () : rust.ref encoding' =
00:02:53 v #3291 > >     !\($'"encoding_rs::WINDOWS_1252"')
00:02:53 v #3292 > 00:02:53 d #195 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2db4d43e1ea7b1dcb6ed484a61b37d09463323c79fbf1a227b94ab9a5ea24f17/main.spi
00:02:54 v #3293 > >
00:02:54 v #3294 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:54 v #3295 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:54 v #3296 > > │ ### encoding_encode                                                          │
00:02:54 v #3297 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:54 v #3298 > >
00:02:54 v #3299 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:54 v #3300 > > inl encoding_encode' (encoding : rust.ref encoding') (text : string) : rust.cow
00:02:54 v #3301 > > (am'.slice u8) =
00:02:54 v #3302 > >     !\\((encoding, text), $'"$0.encode(&*$1).0"')
00:02:54 v #3303 > 00:02:53 d #196 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9243cdde093a471ac69fd3a39ed08e5eb1f83e8964980ef8dd038144482cae6b/main.spi
00:02:54 v #3304 > >
00:02:54 v #3305 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:54 v #3306 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:54 v #3307 > > │ ### utf8_decode                                                              │
00:02:54 v #3308 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:54 v #3309 > >
00:02:54 v #3310 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:54 v #3311 > > inl utf8_decode (data : am'.vec u8) : resultm.result' std_string (rust.cow str)
00:02:54 v #3312 > > =
00:02:54 v #3313 > >     !\($'$"encoding::Encoding::decode(encoding::all::UTF_8, &!data,
00:02:54 v #3314 > > encoding::DecoderTrap::Replace)"')
00:02:54 v #3315 > 00:02:53 d #197 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/100d192972e779dc283d7b52060679c18aeaa7ed23e7e51e0425ba96a2bc17e1/main.spi
00:02:54 v #3316 > >
00:02:54 v #3317 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:54 v #3318 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:54 v #3319 > > │ ### windows                                                                  │
00:02:54 v #3320 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:54 v #3321 > >
00:02:54 v #3322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:54 v #3323 > > nominal windows t =
00:02:54 v #3324 > >     `(
00:02:54 v #3325 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:54 v #3326 > > Fable.Core.Emit(\"std::slice::Windows<$0>\")>]]\n#endif\ntype
00:02:54 v #3327 > > std_slice_Windows<'T> = class end"
00:02:54 v #3328 > >         $'' : $'std_slice_Windows<`t>'
00:02:54 v #3329 > >     )
00:02:54 v #3330 > >
00:02:54 v #3331 > > inl windows (len : unativeint) (source : am'.vec u8) : windows u8 =
00:02:54 v #3332 > >     inl source = source |> rust.new_box |> rust.box_leak
00:02:54 v #3333 > >     // inl source' = source |> rust.clone
00:02:54 v #3334 > >     inl result = !\\(len, $'"<[[_]]>::windows(!source, $0)"')
00:02:54 v #3335 > >     // source |> rust.drop
00:02:54 v #3336 > >     result
00:02:55 v #3337 > 00:02:54 d #198 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff5b44a2cff99c0481cd8918437cd2005a9409c3f0a27b08dd4a5b7e10288109/main.spi
00:02:55 v #3338 > >
00:02:55 v #3339 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:55 v #3340 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:55 v #3341 > > │ ### any                                                                      │
00:02:55 v #3342 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:55 v #3343 > >
00:02:55 v #3344 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:55 v #3345 > > inl any forall t. (fn : string -> bool) (source : windows t) : bool =
00:02:55 v #3346 > >     (!\($'"true; let mut !source = !source"') : bool) |> ignore
00:02:55 v #3347 > >     inl fn' x =
00:02:55 v #3348 > >         x
00:02:55 v #3349 > >         |> str_from_utf8
00:02:55 v #3350 > >         |> resultm.unwrap_or' #""
00:02:55 v #3351 > >         |> ref_to_std_string
00:02:55 v #3352 > >         |> from_std_string
00:02:55 v #3353 > >         |> fn
00:02:55 v #3354 > >     !\\(fn', $'"!source.any(move |x| $0(x))"')
00:02:55 v #3355 > 00:02:54 d #199 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b567f8ec5aa2683b07849e741c741e22ad287fc174b00b0358f44cf92bf12feb/main.spi
00:02:55 v #3356 > >
00:02:55 v #3357 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:55 v #3358 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:55 v #3359 > > │ ### slice_contains                                                           │
00:02:55 v #3360 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:55 v #3361 > >
00:02:55 v #3362 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:55 v #3363 > > inl slice_contains (text : string) (source : am'.vec u8) : bool =
00:02:55 v #3364 > >     fun () =>
00:02:55 v #3365 > >         inl source = join source
00:02:55 v #3366 > >         source
00:02:55 v #3367 > >         |> windows (text |> length |> (fun x => x : i32) |> convert)
00:02:55 v #3368 > >         |> any ((=.) text)
00:02:55 v #3369 > >     |> fun x => join x ()
00:02:56 v #3370 > 00:02:55 d #200 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21c48b3820fda305ac34ba3ca180fe4488e03881c2f710f36572406c89b2bcf4/main.spi
00:02:56 v #3371 > >
00:02:56 v #3372 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:56 v #3373 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:56 v #3374 > > │ ### as_bytes                                                                 │
00:02:56 v #3375 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:56 v #3376 > >
00:02:56 v #3377 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:56 v #3378 > > inl as_bytes (text : string) : rust.ref (am'.slice u8) =
00:02:56 v #3379 > >     inl text = join text
00:02:56 v #3380 > >     !\($'"!text.as_bytes()"')
00:02:56 v #3381 > 00:02:55 d #201 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7978c439f71fe52a137946108e484bb89bedcc20fc69681d2de9a7b2b385cebc/main.spi
00:02:56 v #3382 > >
00:02:56 v #3383 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:56 v #3384 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:56 v #3385 > > │ ### into_bytes                                                               │
00:02:56 v #3386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:56 v #3387 > >
00:02:56 v #3388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:56 v #3389 > > inl into_bytes (x : std_string) : am'.vec u8 =
00:02:56 v #3390 > >     !\\(x, $'$"$0.into_bytes()"')
00:02:56 v #3391 > 00:02:56 d #202 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/850345e4973070549e730456e4e004013ab98ec1b0598a0c94586bfaf6b8fa04/main.spi
00:02:57 v #3392 > >
00:02:57 v #3393 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:57 v #3394 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:57 v #3395 > > │ ## python                                                                    │
00:02:57 v #3396 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:57 v #3397 > >
00:02:57 v #3398 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:57 v #3399 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:57 v #3400 > > │ ### encode_utf8                                                              │
00:02:57 v #3401 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:57 v #3402 > >
00:02:57 v #3403 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:57 v #3404 > > inl encode_utf8 (s : string) : string =
00:02:57 v #3405 > >     inl encoding = "utf-8"
00:02:57 v #3406 > >     backend_switch {
00:02:57 v #3407 > >         Fsharp = fun () =>
00:02:57 v #3408 > >             open python_operators
00:02:57 v #3409 > >             !\\((s, encoding), $'"$0.encode($1)"') : string
00:02:57 v #3410 > >         Python = fun () =>
00:02:57 v #3411 > >             $'!s.encode(!encoding)' : string
00:02:57 v #3412 > >     }
00:02:57 v #3413 > 00:02:56 d #203 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f5de8592f6324fe3bcf48ac6517b2d0f440c95e372036bcb59751b982f0e753/main.spi
00:02:57 v #3414 > >
00:02:57 v #3415 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:57 v #3416 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:57 v #3417 > > │ ## sm'                                                                       │
00:02:57 v #3418 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:57 v #3419 > >
00:02:57 v #3420 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:57 v #3421 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:57 v #3422 > > │ ### contains                                                                 │
00:02:57 v #3423 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:57 v #3424 > >
00:02:57 v #3425 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:57 v #3426 > > inl contains (value : string) (s : string) : bool =
00:02:57 v #3427 > >     backend_switch {
00:02:57 v #3428 > >         Fsharp = fun () => $'!s.Contains !value ' : bool
00:02:57 v #3429 > >         Python = fun () => $'!value in !s ' : bool
00:02:57 v #3430 > >     }
00:02:57 v #3431 > 00:02:57 d #204 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af36a3645d5f9d46abd1bea161843f594b9a180f2c236bfe6a095729ecc03c7e/main.spi
00:02:58 v #3432 > >
00:02:58 v #3433 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:58 v #3434 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:58 v #3435 > > │ ### to_string result t u                                                     │
00:02:58 v #3436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:58 v #3437 > >
00:02:58 v #3438 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:58 v #3439 > > instance to_string result t u = fun x =>
00:02:58 v #3440 > >     real
00:02:58 v #3441 > >         open rust
00:02:58 v #3442 > >         typecase (t * u) with
00:02:58 v #3443 > >         | string * string =>
00:02:58 v #3444 > >             match x with
00:02:58 v #3445 > >             | Ok x => x
00:02:58 v #3446 > >             | Error x => $'"sm\'.to_string result / Error: " + !x + ""' : string
00:02:58 v #3447 > >         | std_string * std_string =>
00:02:58 v #3448 > >             match x with
00:02:58 v #3449 > >             | Ok x => from_std_string x
00:02:58 v #3450 > >             | Error x => $'"sm\'.to_string result / Error: " + string !x + ""' :
00:02:58 v #3451 > > string
00:02:58 v #3452 > >         | _ => obj_to_string `u x
00:02:58 v #3453 > 00:02:57 d #205 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ea5f751bfef86807b1eb2d96ae9c9f0b2bb3f4c7dee4d3fefa3a9643467f4add/main.spi
00:02:58 v #3454 > >
00:02:58 v #3455 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:58 v #3456 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:58 v #3457 > > │ ### format_exception                                                         │
00:02:58 v #3458 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:58 v #3459 > >
00:02:58 v #3460 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:58 v #3461 > > inl format_exception (ex : exn) : string =
00:02:58 v #3462 > >     run_target function
00:02:58 v #3463 > >         | Fsharp (Native) => fun () => $'$"{!ex.GetType ()}: {!ex.Message}"'
00:02:58 v #3464 > >         | _ => fun () => ex |> format_debug
00:02:58 v #3465 > 00:02:58 d #206 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c41520806b56a32277b3602b96ed9d7c4b73e1f74ce034d3a98a33690504650/main.spi
00:02:59 v #3466 > >
00:02:59 v #3467 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:59 v #3468 > > //// test
00:02:59 v #3469 > > ///! fsharp
00:02:59 v #3470 > > ///! rust
00:02:59 v #3471 > > ///! typescript
00:02:59 v #3472 > > ///! python
00:02:59 v #3473 > >
00:02:59 v #3474 > > fun () => failwith "test"
00:02:59 v #3475 > > |> _throws
00:02:59 v #3476 > > |> optionm.value
00:02:59 v #3477 > > |> sm'.format_exception
00:02:59 v #3478 > > |> _assert_eq (run_target function
00:02:59 v #3479 > >     | Fsharp _ => fun () => "System.Exception: test"
00:02:59 v #3480 > >     | Rust _ => fun () => "Exception { message: \"test\" }"
00:02:59 v #3481 > >     | TypeScript _ => fun () => "Error: test"
00:02:59 v #3482 > >     | Python _ => fun () => "test"
00:02:59 v #3483 > >     | _ => fun () => null ()
00:02:59 v #3484 > > )
00:02:59 v #3485 > 00:02:58 d #207 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d66f6e4b53cd7cd85f555fce112ea8d41d691cc8560dcf46f3b95a28fe4be88/main.spi
00:03:18 v #3486 > >
00:03:18 v #3487 > > ╭─[ 19.39s - return value ]────────────────────────────────────────────────────╮
00:03:18 v #3488 > > │ .rs output:                                                                  │
00:03:18 v #3489 > > │ __assert_eq / actual: "Exception { message: "test" }" / expected: "Exception │
00:03:18 v #3490 > > │ { message: "test" }"                                                         │
00:03:18 v #3491 > > │                                                                              │
00:03:18 v #3492 > > │ .ts output:                                                                  │
00:03:18 v #3493 > > │ __assert_eq / actual: Error: test / expected: Error: test                    │
00:03:18 v #3494 > > │                                                                              │
00:03:18 v #3495 > > │ .py output:                                                                  │
00:03:18 v #3496 > > │ __assert_eq / actual: test / expected: test                                  │
00:03:18 v #3497 > > │                                                                              │
00:03:18 v #3498 > > │                                                                              │
00:03:18 v #3499 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:18 v #3500 > >
00:03:18 v #3501 > > ╭─[ 19.39s - stdout ]──────────────────────────────────────────────────────────╮
00:03:18 v #3502 > > │ .fsx output:                                                                 │
00:03:18 v #3503 > > │ __assert_eq / actual: "System.Exception: test" / expected:                   │
00:03:18 v #3504 > > │ "System.Exception: test"                                                     │
00:03:18 v #3505 > > │                                                                              │
00:03:18 v #3506 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:18 v #3507 > >
00:03:18 v #3508 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:18 v #3509 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:18 v #3510 > > │ ### range                                                                    │
00:03:18 v #3511 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:18 v #3512 > >
00:03:18 v #3513 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:18 v #3514 > > inl range forall t. (start : am'.range t) (end : am'.range t) s =
00:03:18 v #3515 > >     inl start, end =
00:03:18 v #3516 > >         match start, end with
00:03:18 v #3517 > >         | Start start, End fn =>
00:03:18 v #3518 > >             start, s |> length' |> fn
00:03:18 v #3519 > >         | End start_fn, End end_fn =>
00:03:18 v #3520 > >             inl len = s |> length'
00:03:18 v #3521 > >             start_fn len, end_fn len
00:03:18 v #3522 > >     s |> slice (start |> i32) (end |> i32)
00:03:18 v #3523 > 00:03:17 d #208 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/53c14d15180c8f7b477aa22b3a75451f7606f63c0504dd724d217a0b04f5f24d/main.spi
00:03:18 v #3524 > >
00:03:18 v #3525 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:18 v #3526 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:18 v #3527 > > │ ### concat_list                                                              │
00:03:18 v #3528 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:18 v #3529 > >
00:03:18 v #3530 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:18 v #3531 > > inl concat_list s list =
00:03:18 v #3532 > >     list
00:03:18 v #3533 > >     |> listm'.box
00:03:18 v #3534 > >     |> seq.of_list'
00:03:18 v #3535 > >     |> concat s
00:03:19 v #3536 > 00:03:18 d #209 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fbdfe96a20288d749768dcdb7dec125da442ddffb7577ba7e487d1ac1aeb8a5e/main.spi
00:03:19 v #3537 > >
00:03:19 v #3538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:19 v #3539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:19 v #3540 > > │ ### ellipsis_end                                                             │
00:03:19 v #3541 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:19 v #3542 > >
00:03:19 v #3543 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:19 v #3544 > > let ellipsis_end (max : i64) (s : string) =
00:03:19 v #3545 > >     inl len = sm.length s
00:03:19 v #3546 > >     if len <= max
00:03:19 v #3547 > >     then s
00:03:19 v #3548 > >     else
00:03:19 v #3549 > >         inl half = f64 max / 2
00:03:19 v #3550 > >         inl start_half = half |> math.ceil |> i64
00:03:19 v #3551 > >         inl end_half = half |> math.floor |> i64
00:03:19 v #3552 > >         inl start = s |> slice 0 (start_half - 1)
00:03:19 v #3553 > >         inl end = s |> slice (len - end_half) (len - 1)
00:03:19 v #3554 > >         (a ;[[start; "..."; end]] : _ i32 _)
00:03:19 v #3555 > >         |> seq.of_array
00:03:19 v #3556 > >         |> concat ""
00:03:19 v #3557 > 00:03:18 d #210 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/87b9f7289703f9661a9a9e0131ecb8ee23aa8657181255ead111a5ee30390705/main.spi
00:03:19 v #3558 > >
00:03:19 v #3559 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:19 v #3560 > > //// test
00:03:19 v #3561 > >
00:03:19 v #3562 > > "12345"
00:03:19 v #3563 > > |> ellipsis_end 2
00:03:19 v #3564 > > |> _assert_eq "1...5"
00:03:19 v #3565 > >
00:03:19 v #3566 > > "12345"
00:03:19 v #3567 > > |> ellipsis_end 3
00:03:19 v #3568 > > |> _assert_eq "12...5"
00:03:19 v #3569 > >
00:03:19 v #3570 > > "1234567"
00:03:19 v #3571 > > |> ellipsis_end 4
00:03:19 v #3572 > > |> _assert_eq "12...67"
00:03:20 v #3573 > 00:03:19 d #211 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/681c64af5faa99dc2eb9cf747e177fb45e8747c522acf1c9fa0a4a5452900d9e/main.spi
00:03:20 v #3574 > >
00:03:20 v #3575 > > ╭─[ 655.33ms - stdout ]────────────────────────────────────────────────────────╮
00:03:20 v #3576 > > │ __assert_eq / actual: "1...5" / expected: "1...5"                            │
00:03:20 v #3577 > > │ __assert_eq / actual: "12...5" / expected: "12...5"                          │
00:03:20 v #3578 > > │ __assert_eq / actual: "12...67" / expected: "12...67"                        │
00:03:20 v #3579 > > │                                                                              │
00:03:20 v #3580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 v #3581 > >
00:03:20 v #3582 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:20 v #3583 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:20 v #3584 > > │ ### format_ellipsis                                                          │
00:03:20 v #3585 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 v #3586 > >
00:03:20 v #3587 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:20 v #3588 > > inl format_ellipsis s =
00:03:20 v #3589 > >     s
00:03:20 v #3590 > >     |> format_debug
00:03:20 v #3591 > >     |> ellipsis_end 400
00:03:20 v #3592 > 00:03:19 d #212 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/740fc9607cb89ce6a93b117dd3e3e7d8be6aa7e0a28f2dc391cc7a903bf9a3ee/main.spi
00:03:20 v #3593 > >
00:03:20 v #3594 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:20 v #3595 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:20 v #3596 > > │ ### replace_regex                                                            │
00:03:20 v #3597 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 v #3598 > >
00:03:20 v #3599 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:20 v #3600 > > let replace_regex (pattern : string) (replacement : string) (s : string) :
00:03:20 v #3601 > > string =
00:03:20 v #3602 > >     run_target_args (fun () => s, pattern, replacement) function
00:03:20 v #3603 > >         | Fsharp (Native) => fun s, pattern, replacement =>
00:03:20 v #3604 > >             $'System.Text.RegularExpressions.Regex.Replace (!s, !pattern,
00:03:20 v #3605 > > !replacement)'
00:03:20 v #3606 > >         | Rust (Native) => fun s, pattern, replacement =>
00:03:20 v #3607 > >             inl regex = pattern |> new_regex |> resultm.unwrap'
00:03:20 v #3608 > >             inl s = join s
00:03:20 v #3609 > >             !\\((regex, s, replacement), $'$"$0.replace_all(&*$1, &*$2)"')
00:03:20 v #3610 > >             |> cow_to_std_string
00:03:20 v #3611 > >             |> from_std_string
00:03:20 v #3612 > >         | _ => fun _ => null ()
00:03:21 v #3613 > 00:03:20 d #213 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dbad90bad147707467298e30beb5e514ce659476528ba13521b36a08f04a8574/main.spi
00:03:21 v #3614 > >
00:03:21 v #3615 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:21 v #3616 > > //// test
00:03:21 v #3617 > > ///! fsharp
00:03:21 v #3618 > > ///! rust -d regex
00:03:21 v #3619 > >
00:03:21 v #3620 > > " 123"
00:03:21 v #3621 > > |> replace_regex "\\s\\w2" ""
00:03:21 v #3622 > > |> _assert_eq "3"
00:03:21 v #3623 > 00:03:20 d #214 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0987c60ed84db6aa068280b62eca7f08cacb3700632f6dcd2f8a1ff7f4faa150/main.spi
00:03:35 v #3624 > >
00:03:35 v #3625 > > ╭─[ 14.53s - return value ]────────────────────────────────────────────────────╮
00:03:35 v #3626 > > │ .rs output (rust -d regex):                                                  │
00:03:35 v #3627 > > │ __assert_eq / actual: "3" / expected: "3"                                    │
00:03:35 v #3628 > > │                                                                              │
00:03:35 v #3629 > > │                                                                              │
00:03:35 v #3630 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:35 v #3631 > >
00:03:35 v #3632 > > ╭─[ 14.54s - stdout ]──────────────────────────────────────────────────────────╮
00:03:35 v #3633 > > │ .fsx output:                                                                 │
00:03:35 v #3634 > > │ __assert_eq / actual: "3" / expected: "3"                                    │
00:03:35 v #3635 > > │                                                                              │
00:03:35 v #3636 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:35 v #3637 > >
00:03:35 v #3638 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:35 v #3639 > > //// test
00:03:35 v #3640 > > ///! rust -d regex
00:03:35 v #3641 > >
00:03:35 v #3642 > > "    let main args =\n        ()\n"
00:03:35 v #3643 > > |> replace_regex $'@@"(?P<a> *)(?P<b>let\\s+main\\s+.*?\\s*=)"'
00:03:35 v #3644 > > "$a[[<EntryPoint>]]\n$a$b"
00:03:35 v #3645 > > |> _assert_eq "    [[<EntryPoint>]]\n    let main args =\n        ()\n"
00:03:36 v #3646 > 00:03:35 d #215 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8df52490fe13d1cd9d30e7cdd81bf2b61d1f21dfca34e538b2b28ab49054504e/main.spi
00:03:50 v #3647 > >
00:03:50 v #3648 > > ╭─[ 14.33s - return value ]────────────────────────────────────────────────────╮
00:03:50 v #3649 > > │ __assert_eq / actual: "    [<EntryPoint>]                                    │
00:03:50 v #3650 > > │     let main args =                                                          │
00:03:50 v #3651 > > │         ()                                                                   │
00:03:50 v #3652 > > │ " / expected: "    [<EntryPoint>]                                            │
00:03:50 v #3653 > > │     let main args =                                                          │
00:03:50 v #3654 > > │         ()                                                                   │
00:03:50 v #3655 > > │ "                                                                            │
00:03:50 v #3656 > > │                                                                              │
00:03:50 v #3657 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:50 v #3658 > >
00:03:50 v #3659 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:50 v #3660 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:50 v #3661 > > │ ## main                                                                      │
00:03:50 v #3662 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:50 v #3663 > >
00:03:50 v #3664 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:50 v #3665 > > inl main () =
00:03:50 v #3666 > >     $'let contains x = !contains x' : ()
00:03:50 v #3667 > >     $'let ends_with x = !ends_with x' : ()
00:03:50 v #3668 > >     $'let pad_left x = !pad_left x' : ()
00:03:50 v #3669 > >     $'let pad_right x = !pad_right x' : ()
00:03:50 v #3670 > >     $'let replace x = !replace x' : ()
00:03:50 v #3671 > >     $'let replace_regex x = !replace_regex x' : ()
00:03:50 v #3672 > >     inl slice (a : i32) (b : i32) c = slice a b c
00:03:50 v #3673 > >     $'let slice x = !slice x' : ()
00:03:50 v #3674 > >     $'let split x = !split x' : ()
00:03:50 v #3675 > >     $'let split_string x = !split_string x' : ()
00:03:50 v #3676 > >     $'let starts_with x = !starts_with x' : ()
00:03:50 v #3677 > >     $'let substring x = !substring x' : ()
00:03:50 v #3678 > >     $'let to_lower x = !to_lower x' : ()
00:03:50 v #3679 > >     $'let to_upper x = !to_upper x' : ()
00:03:50 v #3680 > >     $'let trim x = !trim x' : ()
00:03:50 v #3681 > >     inl trim_end x = (a x : _ int _) |> am'.to_list' |> listm'.unbox |> trim_end
00:03:50 v #3682 > >     $'let trim_end x = !trim_end x' : ()
00:03:50 v #3683 > >     inl trim_start x = (a x : _ int _) |> am'.to_list' |> listm'.unbox |>
00:03:50 v #3684 > > trim_start
00:03:50 v #3685 > >     $'let trim_start x = !trim_start x' : ()
00:03:50 v #3686 > >     $'let ellipsis x = !ellipsis x' : ()
00:03:50 v #3687 > >     $'let ellipsis_end x = !ellipsis_end x' : ()
00:03:50 v #3688 > >     $'let format_exception x = !format_exception x' : ()
00:03:50 v #3689 > >     $'let concat_array_trailing x = !concat_array_trailing x' : ()
00:03:50 v #3690 > >     inl concat a (b : seq.seq' string) = concat a b
00:03:50 v #3691 > >     $'let concat x = !concat x' : ()
00:03:50 v #3692 > >     $'let join\' x = !join' x' : ()
00:03:50 v #3693 > >     $'let to_char_array x = !to_char_array x' : ()
00:03:50 v #3694 > 00:03:49 d #216 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fbdd2787a893cb999909187b732f635212a494e6a0ac4ec4749b151506cfe268/main.spi
00:03:50 v #3695 > >
00:03:50 v #3696 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:50 v #3697 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:50 v #3698 > > │ ## rust                                                                      │
00:03:50 v #3699 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:50 v #3700 > >
00:03:50 v #3701 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:50 v #3702 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:50 v #3703 > > │ ### to_string std_string                                                     │
00:03:50 v #3704 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:50 v #3705 > >
00:03:50 v #3706 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:50 v #3707 > > open rust
00:03:50 v #3708 > > instance to_string std_string = from_std_string
00:03:51 v #3709 > 00:03:50 d #217 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9acf487ee47e9567accf2047989421d812475874e0e6cd6fc89aad2df449919c/main.spi
00:03:51 v #3710 > 00:02:53 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 97257 }
00:03:51 v #3711 > 00:02:53 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:53 v #3712 > 00:02:55 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb to html
00:03:53 v #3713 > 00:02:55 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:03:53 v #3714 > 00:02:55 v #7 !   validate(nb)
00:03:54 v #3715 > 00:02:55 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:03:54 v #3716 > 00:02:55 v #9 !   return _pygments_highlight(
00:03:56 v #3717 > 00:02:58 v #10 ! [NbConvertApp] Writing 584519 bytes to c:\home\git\polyglot\lib\spiral\sm'.dib.html
00:03:56 v #3718 > 00:02:58 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 848 }
00:03:56 v #3719 > 00:02:58 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 848 }
00:03:56 v #3720 > 00:02:58 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/sm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/sm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:56 v #3721 > 00:02:58 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:03:56 v #3722 > 00:02:58 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:03:56 v #3723 > 00:02:58 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 98164 }
00:03:56 d #3724 runtime.execute_with_options_async / { exit_code = 0; output_length = 104766 }
00:03:56 d #4 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path sm'.dib --retries 3
00:03:56 d #3725 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path rust/rust.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path rust/rust.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:56 v #3726 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "rust/rust.dib", "--retries", "3"])) }
00:03:56 v #3727 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/rust/rust.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/rust/rust.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/rust/rust.dib" --output-path "c:/home/git/polyglot/lib/spiral/rust/rust.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:03:58 v #3728 > >
00:03:58 v #3729 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:58 v #3730 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:58 v #3731 > > │ # rust                                                                       │
00:03:58 v #3732 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:02 v #3733 > >
00:04:02 v #3734 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:02 v #3735 > > //// test
00:04:02 v #3736 > >
00:04:02 v #3737 > > open testing
00:04:03 v #3738 > 00:04:02 d #218 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:04:03 v #3739 > >
00:04:03 v #3740 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:03 v #3741 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:03 v #3742 > > │ ## rust                                                                      │
00:04:03 v #3743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:03 v #3744 > >
00:04:03 v #3745 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:03 v #3746 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:03 v #3747 > > │ ### any_base                                                                 │
00:04:03 v #3748 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:03 v #3749 > >
00:04:03 v #3750 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:03 v #3751 > > type any_base = any
00:04:03 v #3752 > 00:04:03 d #219 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff45e21a9f24ef1a85a4ca244091a65bacda275cc084dd250f4a7d05f52716dd/main.spi
00:04:04 v #3753 > >
00:04:04 v #3754 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:04 v #3755 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:04 v #3756 > > │ ### any                                                                      │
00:04:04 v #3757 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 v #3758 > >
00:04:04 v #3759 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:04 v #3760 > > nominal any =
00:04:04 v #3761 > >     `(
00:04:04 v #3762 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:04 v #3763 > > Fable.Core.Emit(\"core::any::Any\")>]]\ntype core_any_Any = class
00:04:04 v #3764 > > end\n#else\ntype core_any_Any = obj\n#endif\n"
00:04:04 v #3765 > >         $'' : $'core_any_Any'
00:04:04 v #3766 > >     )
00:04:04 v #3767 > 00:04:03 d #220 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75b7bd8453447f4bb82634c9899db2e9eda67adb340a3519c4c8520b2e8aede4/main.spi
00:04:04 v #3768 > >
00:04:04 v #3769 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:04 v #3770 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:04 v #3771 > > │ ### try                                                                      │
00:04:04 v #3772 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 v #3773 > >
00:04:04 v #3774 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:04 v #3775 > > nominal try t =
00:04:04 v #3776 > >     `(
00:04:04 v #3777 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:04 v #3778 > > Fable.Core.Emit(\"_\")>]]\n#endif\ntype core_ops_Try<'T> = class end"
00:04:04 v #3779 > >         $'' : $'core_ops_Try<`t>'
00:04:04 v #3780 > >     )
00:04:04 v #3781 > 00:04:03 d #221 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/804927534ab8f8f154f3ec8e21dc6b6097ce250a29c86f5c7d258ef81c8497f1/main.spi
00:04:04 v #3782 > >
00:04:04 v #3783 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:04 v #3784 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:04 v #3785 > > │ ### cow                                                                      │
00:04:04 v #3786 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 v #3787 > >
00:04:04 v #3788 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:04 v #3789 > > nominal cow t =
00:04:04 v #3790 > >     `(
00:04:04 v #3791 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:04 v #3792 > > Fable.Core.Emit(\"std::borrow::Cow<$0>\")>]]\n#endif\ntype std_borrow_Cow<'T> =
00:04:04 v #3793 > > class end"
00:04:04 v #3794 > >         $'' : $'std_borrow_Cow<`t>'
00:04:04 v #3795 > >     )
00:04:05 v #3796 > 00:04:04 d #222 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f571d8b4a0e12132a4ec2d78fa3609d68e3cea9dbbdcfb0ae3683b79db24526e/main.spi
00:04:05 v #3797 > >
00:04:05 v #3798 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:05 v #3799 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:05 v #3800 > > │ ### ref_cell                                                                 │
00:04:05 v #3801 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:05 v #3802 > >
00:04:05 v #3803 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:05 v #3804 > > nominal ref_cell t =
00:04:05 v #3805 > >     `(
00:04:05 v #3806 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:05 v #3807 > > Fable.Core.Emit(\"std::cell::RefCell<$0>\")>]]\n#endif\ntype
00:04:05 v #3808 > > std_cell_RefCell<'T> = class end"
00:04:05 v #3809 > >         $'' : $'std_cell_RefCell<`t>'
00:04:05 v #3810 > >     )
00:04:05 v #3811 > 00:04:04 d #223 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f72ea4ccd385d6c8063e509b3f5dd124481bac7e9cfaa1a3f299c8d1961f95d/main.spi
00:04:05 v #3812 > >
00:04:05 v #3813 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:05 v #3814 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:05 v #3815 > > │ ### cell_ref                                                                 │
00:04:05 v #3816 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:05 v #3817 > >
00:04:05 v #3818 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:05 v #3819 > > nominal cell_ref t =
00:04:05 v #3820 > >     `(
00:04:05 v #3821 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:05 v #3822 > > Fable.Core.Emit(\"std::cell::Ref<$0>\")>]]\n#endif\ntype std_cell_Ref<'T> =
00:04:05 v #3823 > > class end"
00:04:05 v #3824 > >         $'' : $'std_cell_Ref<`t>'
00:04:05 v #3825 > >     )
00:04:05 v #3826 > 00:04:05 d #224 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11e285796734727c4e4bccd787aa7945ff3740968b1ce0dce3cc6501f2060b64/main.spi
00:04:06 v #3827 > >
00:04:06 v #3828 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:06 v #3829 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:06 v #3830 > > │ ### rc                                                                       │
00:04:06 v #3831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:06 v #3832 > >
00:04:06 v #3833 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:06 v #3834 > > nominal rc t =
00:04:06 v #3835 > >     `(
00:04:06 v #3836 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:06 v #3837 > > Fable.Core.Emit(\"std::rc::Rc<$0>\")>]]\n#endif\ntype std_rc_Rc<'T> = class end"
00:04:06 v #3838 > >         $'' : $'std_rc_Rc<`t>'
00:04:06 v #3839 > >     )
00:04:06 v #3840 > 00:04:05 d #225 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1dfcbb628b1ceebee96f1d6d43bac7cb2e47f2957da5672c30de8a7538e5ae35/main.spi
00:04:06 v #3841 > >
00:04:06 v #3842 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:06 v #3843 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:06 v #3844 > > │ ### lifetime_ref                                                             │
00:04:06 v #3845 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:06 v #3846 > >
00:04:06 v #3847 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:06 v #3848 > > nominal lifetime_ref (t : * -> *) u =
00:04:06 v #3849 > >     `(
00:04:06 v #3850 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:06 v #3851 > > Fable.Core.Emit(\"$0\")>]]\n#endif\ntype LifetimeRef<'T> = class end"
00:04:06 v #3852 > >         $'' : $'LifetimeRef<`(t u)>'
00:04:06 v #3853 > >     )
00:04:06 v #3854 > 00:04:05 d #226 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/50019898d4a1c69224108236ca2e60e542d4e2414ebdf651801466dc7811d44b/main.spi
00:04:06 v #3855 > >
00:04:06 v #3856 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:06 v #3857 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:06 v #3858 > > │ ### lifetime_join                                                            │
00:04:06 v #3859 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:06 v #3860 > >
00:04:06 v #3861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:06 v #3862 > > nominal lifetime_join t u =
00:04:06 v #3863 > >     `(
00:04:06 v #3864 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"$0 +
00:04:06 v #3865 > > $1\")>]]\n#endif\ntype LifetimeJoin<'T, 'U> = class end"
00:04:06 v #3866 > >         $'' : $'LifetimeJoin<`t, `u>'
00:04:06 v #3867 > >     )
00:04:07 v #3868 > 00:04:06 d #227 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/256d657da2a8e879eaddc2a55c48ffa8b7a8338da98d3f6df08caa9eb167bfb1/main.spi
00:04:07 v #3869 > >
00:04:07 v #3870 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:07 v #3871 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:07 v #3872 > > │ ### lifetime                                                                 │
00:04:07 v #3873 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:07 v #3874 > >
00:04:07 v #3875 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:07 v #3876 > > nominal lifetime t u =
00:04:07 v #3877 > >     `(
00:04:07 v #3878 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"$0
00:04:07 v #3879 > > $1\")>]]\n#endif\ntype Lifetime<'T, 'U> = class end"
00:04:07 v #3880 > >         $'' : $'Lifetime<`t, `u>'
00:04:07 v #3881 > >     )
00:04:07 v #3882 > 00:04:06 d #228 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1be68ad119f3fb59529a5ff9f24de073dcd50d0ae271580c31dfd4010ca53333/main.spi
00:04:07 v #3883 > >
00:04:07 v #3884 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:07 v #3885 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:07 v #3886 > > │ ### static_lifetime                                                          │
00:04:07 v #3887 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:07 v #3888 > >
00:04:07 v #3889 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:07 v #3890 > > nominal static_lifetime =
00:04:07 v #3891 > >     `(
00:04:07 v #3892 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:07 v #3893 > > Fable.Core.Emit(\"'static\")>]]\n#endif\ntype StaticLifetime = class end"
00:04:07 v #3894 > >         $'' : $'StaticLifetime'
00:04:07 v #3895 > >     )
00:04:07 v #3896 > 00:04:07 d #229 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/64b9ec5afa2c8c594d5d15b44395a6ca3db726cfb1824abbc5245d2fd0960403/main.spi
00:04:08 v #3897 > >
00:04:08 v #3898 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:08 v #3899 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:08 v #3900 > > │ ### ref                                                                      │
00:04:08 v #3901 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:08 v #3902 > >
00:04:08 v #3903 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:08 v #3904 > > nominal ref t =
00:04:08 v #3905 > >     `(
00:04:08 v #3906 > >         backend_switch `(()) `({}) {
00:04:08 v #3907 > >             Fsharp =
00:04:08 v #3908 > >                 (fun () =>
00:04:08 v #3909 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:08 v #3910 > > Fable.Core.Emit(\"&$0\")>]]\ntype Ref<'T> = class end\n#else\ntype Ref<'T> =
00:04:08 v #3911 > > 'T\n#endif\n"
00:04:08 v #3912 > >                 ) : () -> ()
00:04:08 v #3913 > >         }
00:04:08 v #3914 > >         $'' : $'Ref<`t>'
00:04:08 v #3915 > >     )
00:04:08 v #3916 > 00:04:07 d #230 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/995e570e6ddab94f4771c053dbe42cf4991df08ed18e3c99c3e8afcf051f7bf6/main.spi
00:04:08 v #3917 > >
00:04:08 v #3918 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:08 v #3919 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:08 v #3920 > > │ ### static_ref                                                               │
00:04:08 v #3921 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:08 v #3922 > >
00:04:08 v #3923 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:08 v #3924 > > nominal static_ref t = ref (lifetime static_lifetime t)
00:04:08 v #3925 > 00:04:08 d #231 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94dc31912edd95b508c55af3448d8c7892945c77c4e7722879642ee8cd25e277/main.spi
00:04:09 v #3926 > >
00:04:09 v #3927 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:09 v #3928 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:09 v #3929 > > │ ### weak_rc                                                                  │
00:04:09 v #3930 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:09 v #3931 > >
00:04:09 v #3932 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:09 v #3933 > > nominal weak_rc t =
00:04:09 v #3934 > >     `(
00:04:09 v #3935 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:09 v #3936 > > Fable.Core.Emit(\"std::rc::Weak<$0>\")>]]\n#endif\ntype std_rc_Weak<'T> = class
00:04:09 v #3937 > > end"
00:04:09 v #3938 > >         $'' : $'std_rc_Weak<`t>'
00:04:09 v #3939 > >     )
00:04:09 v #3940 > 00:04:08 d #232 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e32910cf6aeb9a8431054367b731c3f320924cd9f55d159d5408d40fdfd94039/main.spi
00:04:09 v #3941 > >
00:04:09 v #3942 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:09 v #3943 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:09 v #3944 > > │ ### box                                                                      │
00:04:09 v #3945 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:09 v #3946 > >
00:04:09 v #3947 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:09 v #3948 > > nominal box t =
00:04:09 v #3949 > >     `(
00:04:09 v #3950 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:09 v #3951 > > Fable.Core.Emit(\"Box<$0>\")>]]\n#endif\ntype Box<'T> = class end"
00:04:09 v #3952 > >         $'' : $'Box<`t>'
00:04:09 v #3953 > >     )
00:04:09 v #3954 > 00:04:08 d #233 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2c5d1d84a1fed1cc3b3699d50aeed8474bf44a1a33772b16d193d5e9c6d225f0/main.spi
00:04:09 v #3955 > >
00:04:09 v #3956 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:09 v #3957 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:09 v #3958 > > │ ### mut_cell                                                                 │
00:04:09 v #3959 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:09 v #3960 > >
00:04:09 v #3961 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:09 v #3962 > > nominal mut_cell t =
00:04:09 v #3963 > >     `(
00:04:09 v #3964 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:09 v #3965 > > Fable.Core.Emit(\"MutCell<$0>\")>]]\n#endif\ntype MutCell<'T> = class end"
00:04:09 v #3966 > >         $'' : $'MutCell<`t>'
00:04:09 v #3967 > >     )
00:04:10 v #3968 > 00:04:09 d #234 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f50dd21ef5ee35a52690d798c7802cd0b437c5a2bf79d5f9e59d4137064fb91e/main.spi
00:04:10 v #3969 > >
00:04:10 v #3970 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:10 v #3971 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:10 v #3972 > > │ ### pin                                                                      │
00:04:10 v #3973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:10 v #3974 > >
00:04:10 v #3975 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:10 v #3976 > > nominal pin t =
00:04:10 v #3977 > >     `(
00:04:10 v #3978 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:10 v #3979 > > Fable.Core.Emit(\"std::pin::Pin<$0>\")>]]\n#endif\ntype std_pin_Pin<'T> = class
00:04:10 v #3980 > > end"
00:04:10 v #3981 > >         $'' : $'std_pin_Pin<`t>'
00:04:10 v #3982 > >     )
00:04:10 v #3983 > 00:04:09 d #235 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d06aeb0738fd7caee2f773a8843598a5b4d60bf0aa67f890640730efa826559/main.spi
00:04:10 v #3984 > >
00:04:10 v #3985 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:10 v #3986 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:10 v #3987 > > │ ### dyn'                                                                     │
00:04:10 v #3988 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:10 v #3989 > >
00:04:10 v #3990 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:10 v #3991 > > nominal dyn' t =
00:04:10 v #3992 > >     `(
00:04:10 v #3993 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"dyn
00:04:10 v #3994 > > $0\")>]]\n#endif\ntype Dyn<'T> = class end"
00:04:10 v #3995 > >         $'' : $'Dyn<`t>'
00:04:10 v #3996 > >     )
00:04:10 v #3997 > 00:04:10 d #236 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/605a14d352f1c07c59337a361ad2dc3c528049f79762e8a75043e060aa19389e/main.spi
00:04:11 v #3998 > >
00:04:11 v #3999 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:11 v #4000 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:11 v #4001 > > │ ### fn'                                                                      │
00:04:11 v #4002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:11 v #4003 > >
00:04:11 v #4004 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:11 v #4005 > > nominal fn' t =
00:04:11 v #4006 > >     `(
00:04:11 v #4007 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn()
00:04:11 v #4008 > > -> $0\")>]]\n#endif\ntype Fn<'T> = class end"
00:04:11 v #4009 > >         $'' : $'Fn<`t>'
00:04:11 v #4010 > >     )
00:04:11 v #4011 > 00:04:10 d #237 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f0903acbe5303da350ec3628e9499912d8ffbebf0feccddbce7e806060dcd280/main.spi
00:04:11 v #4012 > >
00:04:11 v #4013 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:11 v #4014 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:11 v #4015 > > │ ### action_fn                                                                │
00:04:11 v #4016 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:11 v #4017 > >
00:04:11 v #4018 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:11 v #4019 > > nominal action_fn t =
00:04:11 v #4020 > >     `(
00:04:11 v #4021 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:11 v #4022 > > Fable.Core.Emit(\"Fn($0)\")>]]\n#endif\ntype ActionFn<'T> = class end"
00:04:11 v #4023 > >         $'' : $'ActionFn<`t>'
00:04:11 v #4024 > >     )
00:04:11 v #4025 > 00:04:10 d #238 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d5323e3675225eb2526a6bcbcc27cb9a61b180802b1238d3acd8bd531fc0aea/main.spi
00:04:11 v #4026 > >
00:04:11 v #4027 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:11 v #4028 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:11 v #4029 > > │ ### action_fn2                                                               │
00:04:11 v #4030 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:11 v #4031 > >
00:04:11 v #4032 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:11 v #4033 > > nominal action_fn2 t u =
00:04:11 v #4034 > >     `(
00:04:11 v #4035 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:11 v #4036 > > Fable.Core.Emit(\"Fn($0, $1)\")>]]\n#endif\ntype ActionFn2<'T, 'U> = class end"
00:04:11 v #4037 > >         $'' : $'ActionFn2<`t, `u>'
00:04:11 v #4038 > >     )
00:04:12 v #4039 > 00:04:11 d #239 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/480f0677f95a67c714d8595df304e02086101355b9ef2d36829086ce4af458ea/main.spi
00:04:12 v #4040 > >
00:04:12 v #4041 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:12 v #4042 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:12 v #4043 > > │ ### fn_once                                                                  │
00:04:12 v #4044 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:12 v #4045 > >
00:04:12 v #4046 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:12 v #4047 > > nominal fn_once t =
00:04:12 v #4048 > >     `(
00:04:12 v #4049 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:12 v #4050 > > Fable.Core.Emit(\"FnOnce() -> $0\")>]]\n#endif\ntype FnOnce<'T> = class end"
00:04:12 v #4051 > >         $'' : $'FnOnce<`t>'
00:04:12 v #4052 > >     )
00:04:12 v #4053 > 00:04:11 d #240 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5e2021472f87007589fc6016109a0504fabdaed08b72d96de30615b888a67706/main.spi
00:04:12 v #4054 > >
00:04:12 v #4055 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:12 v #4056 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:12 v #4057 > > │ ### fn_unit                                                                  │
00:04:12 v #4058 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:12 v #4059 > >
00:04:12 v #4060 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:12 v #4061 > > nominal fn_unit =
00:04:12 v #4062 > >     `(
00:04:12 v #4063 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:12 v #4064 > > Fable.Core.Emit(\"Fn()\")>]]\n#endif\ntype FnUnit = class end"
00:04:12 v #4065 > >         $'' : $'FnUnit'
00:04:12 v #4066 > >     )
00:04:13 v #4067 > 00:04:12 d #241 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c347e977f24da0b5f4370691dccd9db306a0ca2161fe1ad592d03c0de5fa1286/main.spi
00:04:13 v #4068 > >
00:04:13 v #4069 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:13 v #4070 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:13 v #4071 > > │ ### func0                                                                    │
00:04:13 v #4072 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:13 v #4073 > >
00:04:13 v #4074 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:13 v #4075 > > nominal func0 t =
00:04:13 v #4076 > >     `(
00:04:13 v #4077 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:13 v #4078 > > Fable.Core.Emit(\"Func0<$0>\")>]]\n#endif\ntype Func0<'T> = class end"
00:04:13 v #4079 > >         $'' : $'Func0<`t>'
00:04:13 v #4080 > >     )
00:04:13 v #4081 > 00:04:12 d #242 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4c7075101b0fe87ba0c9072122674958792d85d4556a76d1d9512aa892ec2d57/main.spi
00:04:13 v #4082 > >
00:04:13 v #4083 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:13 v #4084 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:13 v #4085 > > │ ### func1                                                                    │
00:04:13 v #4086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:13 v #4087 > >
00:04:13 v #4088 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:13 v #4089 > > nominal func1 t u =
00:04:13 v #4090 > >     `(
00:04:13 v #4091 > >         typecase t with
00:04:13 v #4092 > >         | () => `func0 `u
00:04:13 v #4093 > >         | _ =>
00:04:13 v #4094 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:13 v #4095 > > Fable.Core.Emit(\"Func1<$0, $1>\")>]]\n#endif\ntype Func0<'T, 'U> = class end"
00:04:13 v #4096 > >             $'' : $'Func0<`t, `u>'
00:04:13 v #4097 > >     )
00:04:13 v #4098 > 00:04:13 d #243 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/684140022b844ef59939f89379f6a817714fb43572a617f4a0600523cfc488b7/main.spi
00:04:14 v #4099 > >
00:04:14 v #4100 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:14 v #4101 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:14 v #4102 > > │ ### impl                                                                     │
00:04:14 v #4103 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:14 v #4104 > >
00:04:14 v #4105 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:14 v #4106 > > nominal impl t =
00:04:14 v #4107 > >     `(
00:04:14 v #4108 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"impl
00:04:14 v #4109 > > $0\")>]]\n#endif\ntype Impl<'T> = class end"
00:04:14 v #4110 > >         $'' : $'Impl<`t>'
00:04:14 v #4111 > >     )
00:04:14 v #4112 > 00:04:13 d #244 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40dffc620f7de2ec10d67c28c8af22d41fa63f12a2cef80b0c4e9577b335b564/main.spi
00:04:14 v #4113 > >
00:04:14 v #4114 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:14 v #4115 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:14 v #4116 > > │ ### mut'                                                                     │
00:04:14 v #4117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:14 v #4118 > >
00:04:14 v #4119 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:14 v #4120 > > nominal mut' t =
00:04:14 v #4121 > >     `(
00:04:14 v #4122 > >         backend_switch `(()) `({}) {
00:04:14 v #4123 > >             Fsharp =
00:04:14 v #4124 > >                 (fun () =>
00:04:14 v #4125 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:14 v #4126 > > Fable.Core.Emit(\"mut $0\")>]]\n#endif\ntype Mut<'T> = class end"
00:04:14 v #4127 > >                 ) : () -> ()
00:04:14 v #4128 > >         }
00:04:14 v #4129 > >         $'' : $'Mut<`t>'
00:04:14 v #4130 > >     )
00:04:14 v #4131 > 00:04:13 d #245 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cbb4df4c2071d161c7ca1293c5df8b422733d7ee2e829202fd919f313bd3a9c1/main.spi
00:04:14 v #4132 > >
00:04:14 v #4133 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:14 v #4134 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:14 v #4135 > > │ ### send                                                                     │
00:04:14 v #4136 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:14 v #4137 > >
00:04:14 v #4138 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:14 v #4139 > > nominal send t =
00:04:14 v #4140 > >     `(
00:04:14 v #4141 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:14 v #4142 > > Fable.Core.Emit(\"Send\")>]]\n#endif\ntype Send<'T> = class end"
00:04:14 v #4143 > >         $'' : lifetime_join t $'Send<`t>'
00:04:14 v #4144 > >     )
00:04:15 v #4145 > 00:04:14 d #246 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/716154058236d2be7795a5bcfe5e15c4d3c316f78ecef44b7da17cb1c3eca6c1/main.spi
00:04:15 v #4146 > >
00:04:15 v #4147 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:15 v #4148 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:15 v #4149 > > │ ### emit_expr                                                                │
00:04:15 v #4150 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:15 v #4151 > >
00:04:15 v #4152 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:15 v #4153 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:04:15 v #4154 > >     $'Fable.Core.RustInterop.emitRustExpr !args !code '
00:04:15 v #4155 > 00:04:14 d #247 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/64fd1444702e253af978334f5b4266abf95d00d83e4f24deda142bf9aa8145f8/main.spi
00:04:15 v #4156 > >
00:04:15 v #4157 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:15 v #4158 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:15 v #4159 > > │ ### (~!\\)                                                                   │
00:04:15 v #4160 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:15 v #4161 > >
00:04:15 v #4162 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:15 v #4163 > > inl (~!\) forall t. (code : string) : t =
00:04:15 v #4164 > >     emit_expr () code
00:04:15 v #4165 > 00:04:15 d #248 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59dec7a4ba6de9de7e7d0c0253ba790ce846e76342ac3146158c63ee75b9dfc8/main.spi
00:04:16 v #4166 > >
00:04:16 v #4167 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:16 v #4168 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:16 v #4169 > > │ ### (~!\\\\)                                                                 │
00:04:16 v #4170 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:16 v #4171 > >
00:04:16 v #4172 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:16 v #4173 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:04:16 v #4174 > >     emit_expr args code
00:04:16 v #4175 > 00:04:15 d #249 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a69f0069f5c5dae70660ced53e10ced6bc9e1f023d6372e333811aec8ee1ffa/main.spi
00:04:16 v #4176 > >
00:04:16 v #4177 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:16 v #4178 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:16 v #4179 > > │ ### ptr                                                                      │
00:04:16 v #4180 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:16 v #4181 > >
00:04:16 v #4182 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:16 v #4183 > > nominal ptr t =
00:04:16 v #4184 > >     `(
00:04:16 v #4185 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:16 v #4186 > > Fable.Core.Emit(\"*const $0\")>]]\n#endif\ntype Ptr<'T> = class end"
00:04:16 v #4187 > >         $'' : $'Ptr<`t>'
00:04:16 v #4188 > >     )
00:04:16 v #4189 > 00:04:15 d #250 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f75907f28f09c330a88091a1fec9683e78b9fe36867b3860cfc8be6051e9e578/main.spi
00:04:16 v #4190 > >
00:04:16 v #4191 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:16 v #4192 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:16 v #4193 > > │ ### ptr_read                                                                 │
00:04:16 v #4194 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:16 v #4195 > >
00:04:16 v #4196 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:16 v #4197 > > inl ptr_read forall t. (x : ptr t) : t =
00:04:16 v #4198 > >     !\\(x, $'"std::ptr::read($0)"')
00:04:17 v #4199 > 00:04:16 d #251 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d5807592f2b600344a7cb87e896fa4071a1c767b7c516f3cd5d9e97947ef3c46/main.spi
00:04:17 v #4200 > >
00:04:17 v #4201 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:17 v #4202 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:17 v #4203 > > │ ### u128                                                                     │
00:04:17 v #4204 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:17 v #4205 > >
00:04:17 v #4206 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:17 v #4207 > > nominal u128 =
00:04:17 v #4208 > >     `(
00:04:17 v #4209 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:17 v #4210 > > Fable.Core.Emit(\"u128\")>]]\n#endif\ntype u128 = class end"
00:04:17 v #4211 > >         $'' : $'u128'
00:04:17 v #4212 > >     )
00:04:17 v #4213 > 00:04:16 d #252 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d285b544ec994ccb91c36f6ce61d423a455ce829e727c4153932c61e27dbc22/main.spi
00:04:17 v #4214 > >
00:04:17 v #4215 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:17 v #4216 > > inl u128 forall t. (x : t) : u128 =
00:04:17 v #4217 > >     !\\(x, $'"$0 as u128"')
00:04:18 v #4218 > 00:04:17 d #253 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d7722b7d361cb55210e50b2ad078c58b18f002442e8b5dc4f1bcb24353fa5b22/main.spi
00:04:18 v #4219 > >
00:04:18 v #4220 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:18 v #4221 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:18 v #4222 > > │ ### f64                                                                      │
00:04:18 v #4223 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:18 v #4224 > >
00:04:18 v #4225 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:18 v #4226 > > inl f64 forall t. (x : t) : f64 =
00:04:18 v #4227 > >     !\\(x, $'"$0 as f64"')
00:04:18 v #4228 > 00:04:17 d #254 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c150dfa2033fa43de4eeea5c9ecf45392fccea6e8913bdfe09edca0e0fbad75a/main.spi
00:04:18 v #4229 > >
00:04:18 v #4230 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:18 v #4231 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:18 v #4232 > > │ ### unwrap_0                                                                 │
00:04:18 v #4233 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:18 v #4234 > >
00:04:18 v #4235 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:18 v #4236 > > inl unwrap_0 forall (t : * -> *) u. (x : t u) : u =
00:04:18 v #4237 > >     !\\(x, $'"$0.0"')
00:04:18 v #4238 > 00:04:18 d #255 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d6c361192f45e657be938101b4c38df99a70bc8982014abe62bcb90acca557b1/main.spi
00:04:19 v #4239 > >
00:04:19 v #4240 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:19 v #4241 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:19 v #4242 > > │ ### unwrap_0_ref                                                             │
00:04:19 v #4243 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:19 v #4244 > >
00:04:19 v #4245 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:19 v #4246 > > inl unwrap_0_ref forall (t : * -> *) u. (x : ref (t u)) : ref u =
00:04:19 v #4247 > >     !\\(x, $'"&$0.0"')
00:04:19 v #4248 > 00:04:18 d #256 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ba1a3d5b0222ebb450c39935f3c73139155a94baca01b2ba6cee2c3b791c2a0/main.spi
00:04:19 v #4249 > >
00:04:19 v #4250 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:19 v #4251 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:19 v #4252 > > │ ### len                                                                      │
00:04:19 v #4253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:19 v #4254 > >
00:04:19 v #4255 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:19 v #4256 > > inl len forall t u {uint; int}. (x : t) : u =
00:04:19 v #4257 > >     !\($'$"!x.len()"')
00:04:19 v #4258 > 00:04:18 d #257 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b712c00303af3f46acca7b3a5d0d57a4e2d653b91eab5605b67cec7150204336/main.spi
00:04:19 v #4259 > >
00:04:19 v #4260 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:19 v #4261 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:19 v #4262 > > │ ### len'                                                                     │
00:04:19 v #4263 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:19 v #4264 > >
00:04:19 v #4265 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:19 v #4266 > > inl len' forall t u {uint; int}. (x : t) : u =
00:04:19 v #4267 > >     !\\(x, $'$"$0.len()"')
00:04:20 v #4268 > 00:04:19 d #258 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7c4022de81b992e5f732bd29697aa16cdad9ff0f5c509f82c3401668e58b1e4/main.spi
00:04:20 v #4269 > >
00:04:20 v #4270 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:20 v #4271 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:20 v #4272 > > │ ### emit                                                                     │
00:04:20 v #4273 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:20 v #4274 > >
00:04:20 v #4275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:20 v #4276 > > inl emit forall t. (x : t) : t =
00:04:20 v #4277 > >     !\\(x, $'"$0"')
00:04:20 v #4278 > 00:04:19 d #259 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/69aaced43472c8c308fa75125dfd3aa43fc47755b48e176a158c803353197d07/main.spi
00:04:20 v #4279 > >
00:04:20 v #4280 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:20 v #4281 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:20 v #4282 > > │ ### emit'                                                                    │
00:04:20 v #4283 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:20 v #4284 > >
00:04:20 v #4285 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:20 v #4286 > > inl emit' forall t. (x : t) : t =
00:04:20 v #4287 > >     !\\(x, $'"let !x = $0"')
00:04:20 v #4288 > >     x
00:04:20 v #4289 > 00:04:20 d #260 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8405cb1f77903b57f0974443cff00daa6acfeb6bb2b9417f2bcac2b558ff85a3/main.spi
00:04:21 v #4290 > >
00:04:21 v #4291 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:21 v #4292 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:21 v #4293 > > │ ### clone                                                                    │
00:04:21 v #4294 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:21 v #4295 > >
00:04:21 v #4296 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:21 v #4297 > > inl clone forall t. (x : t) : t =
00:04:21 v #4298 > >     !\\(x, $'"$0.clone()"')
00:04:21 v #4299 > 00:04:20 d #261 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90987b4b59b8874767ce756d2129b03395196b77f31cee8268cd8ba7182eca6c/main.spi
00:04:21 v #4300 > >
00:04:21 v #4301 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:21 v #4302 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:21 v #4303 > > │ ### dbg                                                                      │
00:04:21 v #4304 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:21 v #4305 > >
00:04:21 v #4306 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:21 v #4307 > > inl dbg forall t. (x : t) : t =
00:04:21 v #4308 > >     !\\(x, $'"dbg\!($0)"')
00:04:21 v #4309 > 00:04:20 d #262 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6f95ea38ddc9f51d1001914ff2ea9a58ac02ac24e0312e854092861c5fb44f8f/main.spi
00:04:21 v #4310 > >
00:04:21 v #4311 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:21 v #4312 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:21 v #4313 > > │ ### new_box                                                                  │
00:04:21 v #4314 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:21 v #4315 > >
00:04:21 v #4316 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:21 v #4317 > > inl new_box forall t. (x : t) : box t =
00:04:21 v #4318 > >     !\\(x, $'"Box::new($0)"')
00:04:22 v #4319 > 00:04:21 d #263 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8400482b3580b18898676fb3865ea6ec16271a28cda5e1b4721f55d390cdddf/main.spi
00:04:22 v #4320 > >
00:04:22 v #4321 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:22 v #4322 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:22 v #4323 > > │ ### new_rc                                                                   │
00:04:22 v #4324 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:22 v #4325 > >
00:04:22 v #4326 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:22 v #4327 > > inl new_rc forall t. (x : t) : rc t =
00:04:22 v #4328 > >     !\\(x, $'"std::rc::Rc::new($0)"')
00:04:22 v #4329 > 00:04:21 d #264 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f477fd9a6d8273de0c654d0ceec39d1f2c2e364f3af3026566218aa303d38aa3/main.spi
00:04:22 v #4330 > >
00:04:22 v #4331 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:22 v #4332 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:22 v #4333 > > │ ### rc_clone                                                                 │
00:04:22 v #4334 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:22 v #4335 > >
00:04:22 v #4336 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:22 v #4337 > > inl rc_clone forall t. (x : rc t) : rc t =
00:04:22 v #4338 > >     !\\(x, $'"std::rc::Rc::clone(&$0)"')
00:04:23 v #4339 > 00:04:22 d #265 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c2c7d7de667b3ba5a6df0bc43b09e85b1610eac2cc88746a01b2bd7d0e2c8df3/main.spi
00:04:23 v #4340 > >
00:04:23 v #4341 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:23 v #4342 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:23 v #4343 > > │ ### rc_unwrap_or_clone                                                       │
00:04:23 v #4344 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:23 v #4345 > >
00:04:23 v #4346 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:23 v #4347 > > inl rc_unwrap_or_clone forall t. (x : rc t) : t =
00:04:23 v #4348 > >     !\\(x, $'"std::rc::Rc::unwrap_or_clone($0)"')
00:04:23 v #4349 > 00:04:22 d #266 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b191f23c299b68896905f8dcabd62b8a303f3f2cd5b186d5af5c05fdea16886/main.spi
00:04:23 v #4350 > >
00:04:23 v #4351 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:23 v #4352 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:23 v #4353 > > │ ### rc_downgrade                                                             │
00:04:23 v #4354 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:23 v #4355 > >
00:04:23 v #4356 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:23 v #4357 > > inl rc_downgrade forall t. (x : rc t) : weak_rc t =
00:04:23 v #4358 > >     !\\(x, $'"std::rc::Rc::downgrade(&$0)"')
00:04:23 v #4359 > 00:04:23 d #267 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90e5f6c3a1b29525587fdfb90602e4219af12c84cd6182a8d03dec88902105a4/main.spi
00:04:24 v #4360 > >
00:04:24 v #4361 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:24 v #4362 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:24 v #4363 > > │ ### new_ref_cell                                                             │
00:04:24 v #4364 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 v #4365 > >
00:04:24 v #4366 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:24 v #4367 > > inl new_ref_cell forall t. (x : t) : ref_cell t =
00:04:24 v #4368 > >     !\($'"std::cell::RefCell::new(!x)"')
00:04:24 v #4369 > 00:04:23 d #268 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8545296381e46ef8a5305b847e7f5509cbe361cb1b6eedc343fedd37e95ebebd/main.spi
00:04:24 v #4370 > >
00:04:24 v #4371 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:24 v #4372 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:24 v #4373 > > │ ### ref_cell_borrow                                                          │
00:04:24 v #4374 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 v #4375 > >
00:04:24 v #4376 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:24 v #4377 > > inl ref_cell_borrow forall t. (x : rc (ref_cell t)) : cell_ref t =
00:04:24 v #4378 > >     !\\(x, $'"std::cell::RefCell::borrow(&std::rc::Rc::clone(&$0))"')
00:04:24 v #4379 > 00:04:23 d #269 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c37cdbe8496f772f1fdb4a4fc1e4505d36e6dbc783a3ece2e2ccb47198767122/main.spi
00:04:24 v #4380 > >
00:04:24 v #4381 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:24 v #4382 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:24 v #4383 > > │ ### ref_cell_borrow_mut                                                      │
00:04:24 v #4384 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 v #4385 > >
00:04:24 v #4386 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:24 v #4387 > > inl ref_cell_borrow_mut forall t. (x : rc (ref_cell t)) : mut' t =
00:04:24 v #4388 > >     !\\(x, $'"std::cell::RefCell::borrow_mut(&std::rc::Rc::clone(&$0))"')
00:04:25 v #4389 > 00:04:24 d #270 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09b9f6fb4599452d8a051997db40b0c04d34e1ddc95e243deacb9029883a4713/main.spi
00:04:25 v #4390 > >
00:04:25 v #4391 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:25 v #4392 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:25 v #4393 > > │ ### ref_leak                                                                 │
00:04:25 v #4394 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:25 v #4395 > >
00:04:25 v #4396 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:25 v #4397 > > inl ref_leak forall t. (x : cell_ref t) : ref t =
00:04:25 v #4398 > >     !\\(x, $'"std::cell::Ref::leak($0)"')
00:04:25 v #4399 > 00:04:24 d #271 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f43037826213723168bf4161598c567616c2d4a061305208c442226e5c3e6182/main.spi
00:04:25 v #4400 > >
00:04:25 v #4401 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:25 v #4402 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:25 v #4403 > > │ ### to_mut                                                                   │
00:04:25 v #4404 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:25 v #4405 > >
00:04:25 v #4406 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:25 v #4407 > > inl to_mut forall t. (x : t) : () =
00:04:25 v #4408 > >     (!\($'"true; // 1"') : bool) |> ignore
00:04:25 v #4409 > >     !\($'"let mut !x = !x"') : ()
00:04:25 v #4410 > >     // (!\($'"true; !x"') : bool) |> ignore
00:04:25 v #4411 > >     // !\($'"!x"')
00:04:25 v #4412 > >     // inl result = !\($'"!x"') : mut' t
00:04:25 v #4413 > >     // !\($'"!result"')
00:04:25 v #4414 > >     // inl result = !\($'"*/ // a"') : mut' t
00:04:25 v #4415 > >     // inl result = !\($'"!x"') : mut' t
00:04:25 v #4416 > >     // result |> fun x => $'!x |> unbox // b'
00:04:25 v #4417 > 00:04:25 d #272 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f39f7d918532606d3110dd61961e684fd655b6ebe797cf1482f329f51e7cc80e/main.spi
00:04:26 v #4418 > >
00:04:26 v #4419 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:26 v #4420 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:26 v #4421 > > │ ### ref_map                                                                  │
00:04:26 v #4422 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:26 v #4423 > >
00:04:26 v #4424 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:26 v #4425 > > inl ref_map forall t u. (fn : t -> u) (x : ref t) : ref u =
00:04:26 v #4426 > >     !\($'"!fn(!x)"')
00:04:26 v #4427 > 00:04:25 d #273 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/821043c494a01d8a7bc3cd2049715a9eb7533e83ee4f406468b344a479b85f06/main.spi
00:04:26 v #4428 > >
00:04:26 v #4429 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:26 v #4430 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:26 v #4431 > > │ ### ref_eval                                                                 │
00:04:26 v #4432 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:26 v #4433 > >
00:04:26 v #4434 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:26 v #4435 > > inl ref_eval forall t u. (fn : t -> u) (ref : ref t) : u =
00:04:26 v #4436 > >     !\\(fn, $'"$0(!ref.clone())"')
00:04:26 v #4437 > 00:04:25 d #274 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42854adf705f0c7a3406c2c368987c700922fe3b345e2ccf488882d0c0ea0fe4/main.spi
00:04:26 v #4438 > >
00:04:26 v #4439 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:26 v #4440 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:26 v #4441 > > │ ### cow_as_ref                                                               │
00:04:26 v #4442 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:26 v #4443 > >
00:04:26 v #4444 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:26 v #4445 > > inl cow_as_ref forall t. (s : cow t) : ref t =
00:04:26 v #4446 > >     !\\(s, $'"$0.as_ref()"')
00:04:27 v #4447 > 00:04:26 d #275 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad51a14952696fe30537ea5ff007ad6e7f491f7b14943ec6594ba516df584eb6/main.spi
00:04:27 v #4448 > >
00:04:27 v #4449 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:27 v #4450 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:27 v #4451 > > │ ### from_mut                                                                 │
00:04:27 v #4452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:27 v #4453 > >
00:04:27 v #4454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:27 v #4455 > > inl from_mut forall t. (x : mut' t) : t =
00:04:27 v #4456 > >     !\\(x, $'"$0"')
00:04:27 v #4457 > 00:04:26 d #276 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32ca221d7229d5d3debb6db8df387a953a9daca94cc1a0a71023876b700ea1b6/main.spi
00:04:27 v #4458 > >
00:04:27 v #4459 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:27 v #4460 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:27 v #4461 > > │ ### box_fn                                                                   │
00:04:27 v #4462 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:27 v #4463 > >
00:04:27 v #4464 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:27 v #4465 > > inl box_fn forall t. (x : () -> ()) : box t =
00:04:27 v #4466 > >     inl x = join x
00:04:27 v #4467 > >     !\($'"Box::new(move || !x())"')
00:04:27 v #4468 > 00:04:27 d #277 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ca42d911c2aed5b25f296cf16c0904dfed1ce155c8201af20f296b37fa7840b/main.spi
00:04:28 v #4469 > >
00:04:28 v #4470 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:28 v #4471 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:28 v #4472 > > │ ### box_pin                                                                  │
00:04:28 v #4473 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:28 v #4474 > >
00:04:28 v #4475 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:28 v #4476 > > inl box_pin forall t. (x : t) : pin (box t) =
00:04:28 v #4477 > >     !\\(x, $'"Box::pin($0)"')
00:04:28 v #4478 > 00:04:27 d #278 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1290b13412909dc724d713f5f613f39d2ee54d67b0c5f821004c0a86e23210d8/main.spi
00:04:28 v #4479 > >
00:04:28 v #4480 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:28 v #4481 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:28 v #4482 > > │ ### to_ref                                                                   │
00:04:28 v #4483 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:28 v #4484 > >
00:04:28 v #4485 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:28 v #4486 > > inl to_ref forall t. (x : t) : ref t =
00:04:28 v #4487 > >     !\\(x, $'"&$0"')
00:04:28 v #4488 > 00:04:27 d #279 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/178b572c6daa2daab9dfdcd8f6fb5d0e24e2e911fda12a2c05b63abaa1624b61/main.spi
00:04:29 v #4489 > >
00:04:29 v #4490 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:29 v #4491 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:29 v #4492 > > │ ### to_ref_mut                                                               │
00:04:29 v #4493 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:29 v #4494 > >
00:04:29 v #4495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:29 v #4496 > > inl to_ref_mut forall t. (x : t) : ref (mut' t) =
00:04:29 v #4497 > >     x |> to_mut
00:04:29 v #4498 > >     !\\(x, $'"&mut $0"')
00:04:29 v #4499 > 00:04:28 d #280 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fd6d860399095ed07642d8faa8a3023d21fdac7372c27758a291ce2f629d1b18/main.spi
00:04:29 v #4500 > >
00:04:29 v #4501 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:29 v #4502 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:29 v #4503 > > │ ### deref                                                                    │
00:04:29 v #4504 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:29 v #4505 > >
00:04:29 v #4506 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:29 v #4507 > > inl deref forall t. (ref : ref t) : t =
00:04:29 v #4508 > >     !\\(ref, $'"*$0"')
00:04:29 v #4509 > 00:04:28 d #281 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0b399d300808f4fb06528d1ef6125d21fba11dc4799ae75452ddad96134febe5/main.spi
00:04:29 v #4510 > >
00:04:29 v #4511 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:29 v #4512 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:29 v #4513 > > │ ### clone_deref                                                              │
00:04:29 v #4514 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:29 v #4515 > >
00:04:29 v #4516 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:29 v #4517 > > inl clone_deref forall t. (ref : ref t) : t =
00:04:29 v #4518 > >     !\\(ref, $'"$0.clone()"')
00:04:30 v #4519 > 00:04:29 d #282 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2795997fcecc626f4bc6db8c7336f7db3fb5e9e23532ba647a7b416e2232401e/main.spi
00:04:30 v #4520 > >
00:04:30 v #4521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:30 v #4522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:30 v #4523 > > │ ### from_ref                                                                 │
00:04:30 v #4524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:30 v #4525 > >
00:04:30 v #4526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:30 v #4527 > > inl from_ref forall t. (ref : ref t) : t =
00:04:30 v #4528 > >     !\($'"!ref"')
00:04:30 v #4529 > 00:04:29 d #283 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0c5e6a019d6498da0c9257d459f6f172a33f8ca8847704c4f18936c4fe74b6ff/main.spi
00:04:30 v #4530 > >
00:04:30 v #4531 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:30 v #4532 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:30 v #4533 > > │ ### from_ref_mut                                                             │
00:04:30 v #4534 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:30 v #4535 > >
00:04:30 v #4536 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:30 v #4537 > > inl from_ref_mut forall t. (ref : ref (mut' t)) : t =
00:04:30 v #4538 > >     !\($'"!ref"')
00:04:30 v #4539 > 00:04:30 d #284 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1abd671166c95f980ac3bf1ad033faa4567a55ae2ce0703a7c556b6558e1e180/main.spi
00:04:31 v #4540 > >
00:04:31 v #4541 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:31 v #4542 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:31 v #4543 > > │ ### reref                                                                    │
00:04:31 v #4544 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:31 v #4545 > >
00:04:31 v #4546 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:31 v #4547 > > inl reref forall t (u : * -> *). (x : ref (u t)) : ref t =
00:04:31 v #4548 > >     !\($'$"&*!x"')
00:04:31 v #4549 > 00:04:30 d #285 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c1e8f4845694cc49e4aef34071ab914c7c32eae37213baf1ded5c948790381c/main.spi
00:04:31 v #4550 > >
00:04:31 v #4551 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:31 v #4552 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:31 v #4553 > > │ ### into                                                                     │
00:04:31 v #4554 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:31 v #4555 > >
00:04:31 v #4556 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:31 v #4557 > > inl into forall t u. (x : t) : u =
00:04:31 v #4558 > >     !\($'"!x.into()"')
00:04:31 v #4559 > 00:04:30 d #286 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b48109e3663cb21978368932441acb1d80d494259b60b049e19639228f47fc65/main.spi
00:04:31 v #4560 > >
00:04:31 v #4561 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:31 v #4562 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:31 v #4563 > > │ ### ops_deref                                                                │
00:04:31 v #4564 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:31 v #4565 > >
00:04:31 v #4566 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:31 v #4567 > > inl ops_deref forall t. (ref : t) : t =
00:04:31 v #4568 > >     !\\(ref, $'"core::ops::Deref::deref(&$0)"')
00:04:32 v #4569 > 00:04:31 d #287 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/56c86c2080a71f58b714bdf23a0a2ec9528785885851afef9c59c6af3fc036dc/main.spi
00:04:32 v #4570 > >
00:04:32 v #4571 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:32 v #4572 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:32 v #4573 > > │ ### func0_eval                                                               │
00:04:32 v #4574 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:32 v #4575 > >
00:04:32 v #4576 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:32 v #4577 > > inl func0_eval forall t. (x : func0 t) : t =
00:04:32 v #4578 > >     !\\(x, $'"$0()"')
00:04:32 v #4579 > 00:04:31 d #288 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b79ed43f0ec3a96eb791a7c910d1a852d6ea244756bf8a282d7df8b6f7306f16/main.spi
00:04:32 v #4580 > >
00:04:32 v #4581 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:32 v #4582 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:32 v #4583 > > │ ### func0_move                                                               │
00:04:32 v #4584 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:32 v #4585 > >
00:04:32 v #4586 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:32 v #4587 > > inl func0_move forall t. (fn : func0 t) : t =
00:04:32 v #4588 > >     inl fn = join fn
00:04:32 v #4589 > >     !\($'"(move || !fn())()"')
00:04:32 v #4590 > 00:04:32 d #289 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f16abb6aaf24c394f95a7886276795efe8f4a2ddf07e3425535885400b942665/main.spi
00:04:33 v #4591 > >
00:04:33 v #4592 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:33 v #4593 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:33 v #4594 > > │ ### move                                                                     │
00:04:33 v #4595 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:33 v #4596 > >
00:04:33 v #4597 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:33 v #4598 > > inl move forall t. (fn : () -> t) : func0 t =
00:04:33 v #4599 > >     !\\(fn, $'"Func0::new(move || $0())"')
00:04:33 v #4600 > 00:04:32 d #290 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f973fec977b317d87a9850ea70f764c8ac9dcca405d6d1b0c0b8cd6f3b95d814/main.spi
00:04:33 v #4601 > >
00:04:33 v #4602 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:33 v #4603 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:33 v #4604 > > │ ### to_static_ref_unbox                                                      │
00:04:33 v #4605 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:33 v #4606 > >
00:04:33 v #4607 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:33 v #4608 > > inl to_static_ref_unbox forall t. (x : ref t) : static_ref t =
00:04:33 v #4609 > >     x |> unbox
00:04:33 v #4610 > 00:04:32 d #291 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/584520d70c3abc53f9814513b8ce9c3ca6f60c4c10abe2642343817834e76f57/main.spi
00:04:33 v #4611 > >
00:04:33 v #4612 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:33 v #4613 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:33 v #4614 > > │ ### from_static_ref_unbox                                                    │
00:04:33 v #4615 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:33 v #4616 > >
00:04:33 v #4617 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:33 v #4618 > > inl from_static_ref_unbox forall t. (x : static_ref t) : ref t =
00:04:33 v #4619 > >     x |> unbox
00:04:34 v #4620 > 00:04:33 d #292 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0a9f1fee663228ef24672231571b38fd0eaf1c3b1e28cc2aa6f13199b50426fd/main.spi
00:04:34 v #4621 > >
00:04:34 v #4622 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:34 v #4623 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:34 v #4624 > > │ ### box_leak                                                                 │
00:04:34 v #4625 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:34 v #4626 > >
00:04:34 v #4627 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:34 v #4628 > > inl box_leak forall t. (x : box t) : static_ref (mut' t) =
00:04:34 v #4629 > >     !\\(x, $'"Box::leak($0)"')
00:04:34 v #4630 > 00:04:33 d #293 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1de0e78904ac6618ed7b5c52f2295dacf52cd1e3664007183ea55fcef5aca8fa/main.spi
00:04:34 v #4631 > >
00:04:34 v #4632 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:34 v #4633 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:34 v #4634 > > │ ### drop                                                                     │
00:04:34 v #4635 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:34 v #4636 > >
00:04:34 v #4637 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:34 v #4638 > > inl drop forall t. (x : t) : () =
00:04:34 v #4639 > >     (!\\(x, $'"true; drop($0)"') : bool) |> ignore
00:04:34 v #4640 > 00:04:34 d #294 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5dc43dd3c97f342346b9dd84fcdf5e38399ec8bdb134a9118c98feb18c552e4f/main.spi
00:04:35 v #4641 > >
00:04:35 v #4642 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:35 v #4643 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:35 v #4644 > > │ ### break                                                                    │
00:04:35 v #4645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:35 v #4646 > >
00:04:35 v #4647 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:35 v #4648 > > inl break () : () =
00:04:35 v #4649 > >     (!\($'"true; break"') : bool) |> ignore
00:04:35 v #4650 > 00:04:34 d #295 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2977424876308e0bc0b69a170be96c0cf79bb81df0dd35932df39df8635686a2/main.spi
00:04:35 v #4651 > >
00:04:35 v #4652 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:35 v #4653 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:35 v #4654 > > │ ### fix_closure'                                                             │
00:04:35 v #4655 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:35 v #4656 > >
00:04:35 v #4657 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:35 v #4658 > > inl fix_closure' forall t. (depth : u8 * u8) (x : t) : string =
00:04:35 v #4659 > >     inl rec loop text (acc : string) n : string =
00:04:35 v #4660 > >         if n <= 0
00:04:35 v #4661 > >         then acc
00:04:35 v #4662 > >         else loop text (acc +. text) (n - 1)
00:04:35 v #4663 > >     inl a = depth |> fst |> loop "}" ""
00:04:35 v #4664 > >     inl b = depth |> snd |> loop "{" ""
00:04:35 v #4665 > >     inl x' : infer = $'!x '
00:04:35 v #4666 > >     run_target_args (fun () => x') function
00:04:35 v #4667 > >         | Rust _ => fun x' => !\\(x', $'$"true; let !x' = $0"') : bool
00:04:35 v #4668 > >         | _ => fun x' => $'true'
00:04:35 v #4669 > >     |> ignore
00:04:35 v #4670 > >     $'$"true; !x' " + !a + "); " + !b + " // rust.fix_closure\'"'
00:04:35 v #4671 > 00:04:35 d #296 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/16e79df9e88ec960d025e3b398392106a632ff577736f3d0638e8039602b5959/main.spi
00:04:36 v #4672 > >
00:04:36 v #4673 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:36 v #4674 > > //// test
00:04:36 v #4675 > > //// print_code
00:04:36 v #4676 > >
00:04:36 v #4677 > > fix_closure' (3, 2) 0i32
00:04:36 v #4678 > > |> _assert_eq "true; v8 }}}); {{ // rust.fix_closure'"
00:04:36 v #4679 > 00:04:35 d #297 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be7be5e9f3c6b1934f55a644a0fa27116c8c4a48655b65eca905c3d260472c14/main.spi
00:04:37 v #4680 > >
00:04:37 v #4681 > > ╭─[ 1.05s - stdout ]───────────────────────────────────────────────────────────╮
00:04:37 v #4682 > > │ let rec method1 (v0 : bool) : bool =                                         │
00:04:37 v #4683 > > │     v0                                                                       │
00:04:37 v #4684 > > │ and closure0 (v0 : string) () : unit =                                       │
00:04:37 v #4685 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:04:37 v #4686 > > │     v1 v0                                                                    │
00:04:37 v #4687 > > │ and method0 () : unit =                                                      │
00:04:37 v #4688 > > │     let v0 : string = ""                                                     │
00:04:37 v #4689 > > │     let v1 : string = "}"                                                    │
00:04:37 v #4690 > > │     let v2 : string = v0 + v1                                                │
00:04:37 v #4691 > > │     let v3 : string = v2 + v1                                                │
00:04:37 v #4692 > > │     let v4 : string = v3 + v1                                                │
00:04:37 v #4693 > > │     let v5 : string = "{"                                                    │
00:04:37 v #4694 > > │     let v6 : string = v0 + v5                                                │
00:04:37 v #4695 > > │     let v7 : string = v6 + v5                                                │
00:04:37 v #4696 > > │     let v8 : _ = 0                                                           │
00:04:37 v #4697 > > │     let v9 : unit = ()                                                       │
00:04:37 v #4698 > > │                                                                              │
00:04:37 v #4699 > > │ #if FABLE_COMPILER || WASM || CONTRACT                                       │
00:04:37 v #4700 > > │                                                                              │
00:04:37 v #4701 > > │ #if FABLE_COMPILER_RUST && !WASM && !CONTRACT                                │
00:04:37 v #4702 > > │     let v10 : string = $"true; let v8 = $0"                                  │
00:04:37 v #4703 > > │     let v11 : bool = Fable.Core.RustInterop.emitRustExpr v8 v10              │
00:04:37 v #4704 > > │     let _v9 = v11                                                            │
00:04:37 v #4705 > > │     #endif                                                                   │
00:04:37 v #4706 > > │ #if FABLE_COMPILER_RUST && WASM                                              │
00:04:37 v #4707 > > │     let v12 : string = $"true; let v8 = $0"                                  │
00:04:37 v #4708 > > │     let v13 : bool = Fable.Core.RustInterop.emitRustExpr v8 v12              │
00:04:37 v #4709 > > │     let _v9 = v13                                                            │
00:04:37 v #4710 > > │     #endif                                                                   │
00:04:37 v #4711 > > │ #if FABLE_COMPILER_RUST && CONTRACT                                          │
00:04:37 v #4712 > > │     let v14 : string = $"true; let v8 = $0"                                  │
00:04:37 v #4713 > > │     let v15 : bool = Fable.Core.RustInterop.emitRustExpr v8 v14              │
00:04:37 v #4714 > > │     let _v9 = v15                                                            │
00:04:37 v #4715 > > │     #endif                                                                   │
00:04:37 v #4716 > > │ #if FABLE_COMPILER_TYPESCRIPT                                                │
00:04:37 v #4717 > > │     let v16 : bool = true                                                    │
00:04:37 v #4718 > > │     let _v9 = v16                                                            │
00:04:37 v #4719 > > │     #endif                                                                   │
00:04:37 v #4720 > > │ #if FABLE_COMPILER_PYTHON                                                    │
00:04:37 v #4721 > > │     let v17 : bool = true                                                    │
00:04:37 v #4722 > > │     let _v9 = v17                                                            │
00:04:37 v #4723 > > │     #endif                                                                   │
00:04:37 v #4724 > > │ #else                                                                        │
00:04:37 v #4725 > > │     let v18 : bool = true                                                    │
00:04:37 v #4726 > > │     let _v9 = v18                                                            │
00:04:37 v #4727 > > │     #endif                                                                   │
00:04:37 v #4728 > > │     let v19 : bool = _v9                                                     │
00:04:37 v #4729 > > │     let v22 : string = $"true; v8 " + v4 + "); " + v7 + " //                 │
00:04:37 v #4730 > > │ rust.fix_closure'"                                                           │
00:04:37 v #4731 > > │     let v23 : bool = v22 = "true; v8 }}}); {{ // rust.fix_closure'"          │
00:04:37 v #4732 > > │     let v25 : bool =                                                         │
00:04:37 v #4733 > > │         if v23 then                                                          │
00:04:37 v #4734 > > │             true                                                             │
00:04:37 v #4735 > > │         else                                                                 │
00:04:37 v #4736 > > │             method1(v23)                                                     │
00:04:37 v #4737 > > │     let v26 : string = "__assert_eq"                                         │
00:04:37 v #4738 > > │     let v27 : string = "true; v8 }}}); {{ // rust.fix_closure'"              │
00:04:37 v #4739 > > │     let v28 : string = $"{v26} / actual: %A{v22} / expected: %A{v27}"        │
00:04:37 v #4740 > > │     let v31 : unit = ()                                                      │
00:04:37 v #4741 > > │     let v32 : (unit -> unit) = closure0(v28)                                 │
00:04:37 v #4742 > > │     let v33 : unit = (fun () -> v32 (); v31) ()                              │
00:04:37 v #4743 > > │     let v35 : bool = v25 = false                                             │
00:04:37 v #4744 > > │     if v35 then                                                              │
00:04:37 v #4745 > > │         failwith<unit> v28                                                   │
00:04:37 v #4746 > > │ method0()                                                                    │
00:04:37 v #4747 > > │                                                                              │
00:04:37 v #4748 > > │ __assert_eq / actual: "true; v8 }}}); {{ // rust.fix_closure'" / expected:   │
00:04:37 v #4749 > > │ "true; v8 }}}); {{ // rust.fix_closure'"                                     │
00:04:37 v #4750 > > │                                                                              │
00:04:37 v #4751 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:37 v #4752 > >
00:04:37 v #4753 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:37 v #4754 > > //// test
00:04:37 v #4755 > > //// print_code
00:04:37 v #4756 > >
00:04:37 v #4757 > > fix_closure' (0, 0) ()
00:04:37 v #4758 > > |> _assert_eq "true; v0 );  // rust.fix_closure'"
00:04:37 v #4759 > 00:04:36 d #298 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b18be6108d2cee4cab91c49a6057ea5a8c8d8d9edae2a76c9df885ca07d7adf4/main.spi
00:04:37 v #4760 > >
00:04:37 v #4761 > > ╭─[ 409.52ms - stdout ]────────────────────────────────────────────────────────╮
00:04:37 v #4762 > > │ let rec method1 (v0 : bool) : bool =                                         │
00:04:37 v #4763 > > │     v0                                                                       │
00:04:37 v #4764 > > │ and closure0 (v0 : string) () : unit =                                       │
00:04:37 v #4765 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:04:37 v #4766 > > │     v1 v0                                                                    │
00:04:37 v #4767 > > │ and method0 () : unit =                                                      │
00:04:37 v #4768 > > │     let v0 : _ = ()                                                          │
00:04:37 v #4769 > > │     let v1 : unit = ()                                                       │
00:04:37 v #4770 > > │                                                                              │
00:04:37 v #4771 > > │ #if FABLE_COMPILER || WASM || CONTRACT                                       │
00:04:37 v #4772 > > │                                                                              │
00:04:37 v #4773 > > │ #if FABLE_COMPILER_RUST && !WASM && !CONTRACT                                │
00:04:37 v #4774 > > │     let v2 : string = $"true; let v0 = $0"                                   │
00:04:37 v #4775 > > │     let v3 : bool = Fable.Core.RustInterop.emitRustExpr v0 v2                │
00:04:37 v #4776 > > │     let _v1 = v3                                                             │
00:04:37 v #4777 > > │     #endif                                                                   │
00:04:37 v #4778 > > │ #if FABLE_COMPILER_RUST && WASM                                              │
00:04:37 v #4779 > > │     let v4 : string = $"true; let v0 = $0"                                   │
00:04:37 v #4780 > > │     let v5 : bool = Fable.Core.RustInterop.emitRustExpr v0 v4                │
00:04:37 v #4781 > > │     let _v1 = v5                                                             │
00:04:37 v #4782 > > │     #endif                                                                   │
00:04:37 v #4783 > > │ #if FABLE_COMPILER_RUST && CONTRACT                                          │
00:04:37 v #4784 > > │     let v6 : string = $"true; let v0 = $0"                                   │
00:04:37 v #4785 > > │     let v7 : bool = Fable.Core.RustInterop.emitRustExpr v0 v6                │
00:04:37 v #4786 > > │     let _v1 = v7                                                             │
00:04:37 v #4787 > > │     #endif                                                                   │
00:04:37 v #4788 > > │ #if FABLE_COMPILER_TYPESCRIPT                                                │
00:04:37 v #4789 > > │     let v8 : bool = true                                                     │
00:04:37 v #4790 > > │     let _v1 = v8                                                             │
00:04:37 v #4791 > > │     #endif                                                                   │
00:04:37 v #4792 > > │ #if FABLE_COMPILER_PYTHON                                                    │
00:04:37 v #4793 > > │     let v9 : bool = true                                                     │
00:04:37 v #4794 > > │     let _v1 = v9                                                             │
00:04:37 v #4795 > > │     #endif                                                                   │
00:04:37 v #4796 > > │ #else                                                                        │
00:04:37 v #4797 > > │     let v10 : bool = true                                                    │
00:04:37 v #4798 > > │     let _v1 = v10                                                            │
00:04:37 v #4799 > > │     #endif                                                                   │
00:04:37 v #4800 > > │     let v11 : bool = _v1                                                     │
00:04:37 v #4801 > > │     let v14 : string = ""                                                    │
00:04:37 v #4802 > > │     let v15 : string = $"true; v0 " + v14 + "); " + v14 + " //               │
00:04:37 v #4803 > > │ rust.fix_closure'"                                                           │
00:04:37 v #4804 > > │     let v16 : bool = v15 = "true; v0 );  // rust.fix_closure'"               │
00:04:37 v #4805 > > │     let v18 : bool =                                                         │
00:04:37 v #4806 > > │         if v16 then                                                          │
00:04:37 v #4807 > > │             true                                                             │
00:04:37 v #4808 > > │         else                                                                 │
00:04:37 v #4809 > > │             method1(v16)                                                     │
00:04:37 v #4810 > > │     let v19 : string = "__assert_eq"                                         │
00:04:37 v #4811 > > │     let v20 : string = "true; v0 );  // rust.fix_closure'"                   │
00:04:37 v #4812 > > │     let v21 : string = $"{v19} / actual: %A{v15} / expected: %A{v20}"        │
00:04:37 v #4813 > > │     let v24 : unit = ()                                                      │
00:04:37 v #4814 > > │     let v25 : (unit -> unit) = closure0(v21)                                 │
00:04:37 v #4815 > > │     let v26 : unit = (fun () -> v25 (); v24) ()                              │
00:04:37 v #4816 > > │     let v28 : bool = v18 = false                                             │
00:04:37 v #4817 > > │     if v28 then                                                              │
00:04:37 v #4818 > > │         failwith<unit> v21                                                   │
00:04:37 v #4819 > > │ method0()                                                                    │
00:04:37 v #4820 > > │                                                                              │
00:04:37 v #4821 > > │ __assert_eq / actual: "true; v0 );  // rust.fix_closure'" / expected: "true; │
00:04:37 v #4822 > > │ v0 );  // rust.fix_closure'"                                                 │
00:04:37 v #4823 > > │                                                                              │
00:04:37 v #4824 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:37 v #4825 > >
00:04:37 v #4826 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:37 v #4827 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:37 v #4828 > > │ ### fix_closure                                                              │
00:04:37 v #4829 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:37 v #4830 > >
00:04:37 v #4831 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:37 v #4832 > > inl fix_closure depth x =
00:04:37 v #4833 > >     inl code = fix_closure' depth x
00:04:37 v #4834 > >     (!\code : bool) |> ignore
00:04:37 v #4835 > 00:04:36 d #299 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc6d99abae56c72c5563e8bc33b3118d07f9d94148b8fb41971b5a3708e91aa4/main.spi
00:04:37 v #4836 > >
00:04:37 v #4837 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:37 v #4838 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:37 v #4839 > > │ ### loop                                                                     │
00:04:37 v #4840 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:37 v #4841 > >
00:04:37 v #4842 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:37 v #4843 > > inl loop (depth : i32) (fn : () -> ()) : () =
00:04:37 v #4844 > >     (!\($'"true; loop { // rust.loop"') : bool) |> ignore
00:04:37 v #4845 > >     fn ()
00:04:37 v #4846 > >
00:04:37 v #4847 > >     listm.init depth id
00:04:37 v #4848 > >     |> listm.iter fun n =>
00:04:37 v #4849 > >         (!\($'"true; } // rust.loop"') : bool) |> ignore
00:04:37 v #4850 > >
00:04:37 v #4851 > >     (!\($'"true; } // rust.loop"') : bool) |> ignore
00:04:37 v #4852 > >
00:04:37 v #4853 > >     listm.init depth id
00:04:37 v #4854 > >     |> listm.iter fun n =>
00:04:37 v #4855 > >         (!\($'"true; { // rust.loop"') : bool) |> ignore
00:04:38 v #4856 > 00:04:37 d #300 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6fd35b0729042424733638a219d3ca023d7febfa51e720f5c95726d964985af3/main.spi
00:04:38 v #4857 > >
00:04:38 v #4858 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:38 v #4859 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:38 v #4860 > > │ ### capture                                                                  │
00:04:38 v #4861 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:38 v #4862 > >
00:04:38 v #4863 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:38 v #4864 > > inl capture forall t. (fn : () -> t) : t =
00:04:38 v #4865 > >     (!\($'"true; let _capture = (|| { //"') : bool) |> ignore
00:04:38 v #4866 > >     (!\\(fn (), $'"true; $0 })()"') : bool) |> ignore
00:04:38 v #4867 > >     !\($'"_capture"')
00:04:38 v #4868 > 00:04:37 d #301 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a183d21c6bfa405a873a45906953e305103298d662cef7a731743f829dbe67ae/main.spi
00:04:38 v #4869 > >
00:04:38 v #4870 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:38 v #4871 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:38 v #4872 > > │ ### capture_move                                                             │
00:04:38 v #4873 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:38 v #4874 > >
00:04:38 v #4875 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:38 v #4876 > > inl capture_move forall t. (fn : () -> t) : t =
00:04:38 v #4877 > >     (!\($'"true; let _capture_move = (move || { //"') : bool) |> ignore
00:04:38 v #4878 > >     (!\\(fn (), $'"true; $0 })()"') : bool) |> ignore
00:04:38 v #4879 > >     !\($'"_capture_move"')
00:04:38 v #4880 > 00:04:38 d #302 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86001e87b507b112c12c5532d563715c94df4a35f7390d4dae265ad5eac9acde/main.spi
00:04:39 v #4881 > >
00:04:39 v #4882 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:39 v #4883 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:39 v #4884 > > │ ### type_emit                                                                │
00:04:39 v #4885 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:39 v #4886 > >
00:04:39 v #4887 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:39 v #4888 > > nominal type_emit t =
00:04:39 v #4889 > >     `(
00:04:39 v #4890 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"*/ $0
00:04:39 v #4891 > > /*\")>]]\n#endif\ntype TypeEmit<'T> = class end"
00:04:39 v #4892 > >         $'' : $'TypeEmit<`t>'
00:04:39 v #4893 > >     )
00:04:39 v #4894 > 00:04:38 d #303 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d6ab733cda041febb7e756143bb2c3374d235aaa32ef4b8d203e20bde61d4afe/main.spi
00:04:39 v #4895 > >
00:04:39 v #4896 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:39 v #4897 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:39 v #4898 > > │ ### partial_eq_wrapper                                                       │
00:04:39 v #4899 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:39 v #4900 > >
00:04:39 v #4901 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:39 v #4902 > > nominal partial_eq_wrapper t =
00:04:39 v #4903 > >     `(
00:04:39 v #4904 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:39 v #4905 > > Fable.Core.Emit(\"PartialEqWrapper<$0>\")>]]\n#endif\ntype PartialEqWrapper<'T>
00:04:39 v #4906 > > = class end"
00:04:39 v #4907 > >         $'' : $'PartialEqWrapper<`t>'
00:04:39 v #4908 > >     )
00:04:39 v #4909 > 00:04:38 d #304 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f7e8ca29a151b4fe57c3fb8c6458802b10e9e0e8af4c24b64ceb2b1f612a3387/main.spi
00:04:39 v #4910 > >
00:04:39 v #4911 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:39 v #4912 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:39 v #4913 > > │ ### new_partial_eq_wrapper                                                   │
00:04:39 v #4914 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:39 v #4915 > >
00:04:39 v #4916 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:39 v #4917 > > inl new_partial_eq_wrapper forall t.
00:04:39 v #4918 > >     (eq_fn : ref (partial_eq_wrapper t) -> ref (partial_eq_wrapper t) -> bool)
00:04:39 v #4919 > >     (x : t)
00:04:39 v #4920 > >     : partial_eq_wrapper t
00:04:39 v #4921 > >     =
00:04:39 v #4922 > >     inl struct () =
00:04:39 v #4923 > >         !\($'"} //"') : ()
00:04:39 v #4924 > >
00:04:39 v #4925 > >         !\($'"#[[derive( //"') : ()
00:04:39 v #4926 > >         !\($'"  Debug, //"') : ()
00:04:39 v #4927 > >         !\($'"  Clone, //"') : ()
00:04:39 v #4928 > >         !\($'")]] //"') : ()
00:04:39 v #4929 > >         !\($'"pub struct PartialEqWrapper<T>(T); /*"') : ()
00:04:39 v #4930 > >
00:04:39 v #4931 > >         !\($'"*/ impl PartialEq for PartialEqWrapper< /*"') : ()
00:04:39 v #4932 > >         (null () : type_emit t) |> ignore
00:04:39 v #4933 > >         !\($'"*/ > { //"') : ()
00:04:39 v #4934 > >
00:04:39 v #4935 > >         !\($'"fn eq(&self, other: &Self) -> bool { //"') : ()
00:04:39 v #4936 > >
00:04:39 v #4937 > >         inl self : ref (partial_eq_wrapper t) = !\($'$"self"')
00:04:39 v #4938 > >         inl other : ref (partial_eq_wrapper t) = !\($'$"other"')
00:04:39 v #4939 > >
00:04:39 v #4940 > >         self
00:04:39 v #4941 > >         |> eq_fn other
00:04:39 v #4942 > >         |> fun x => !\($'$"!x //"')
00:04:39 v #4943 > >
00:04:39 v #4944 > >         !\($'"} } } fn _main() { { { //"') : ()
00:04:39 v #4945 > >
00:04:39 v #4946 > >     $'let _!struct = true' : ()
00:04:39 v #4947 > >
00:04:39 v #4948 > >     !\\(x, $'"PartialEqWrapper($0)"')
00:04:40 v #4949 > 00:04:39 d #305 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6f559bebf360f12b85b129ca11b23bfa51a576adf6baeb27f8035bf75c40694a/main.spi
00:04:40 v #4950 > >
00:04:40 v #4951 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:40 v #4952 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:40 v #4953 > > │ ### clone_wrapper                                                            │
00:04:40 v #4954 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:40 v #4955 > >
00:04:40 v #4956 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:40 v #4957 > > nominal clone_wrapper t =
00:04:40 v #4958 > >     `(
00:04:40 v #4959 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:40 v #4960 > > Fable.Core.Emit(\"CloneWrapper<$0>\")>]]\n#endif\ntype CloneWrapper<'T> = class
00:04:40 v #4961 > > end"
00:04:40 v #4962 > >         $'' : $'CloneWrapper<`t>'
00:04:40 v #4963 > >     )
00:04:40 v #4964 > 00:04:39 d #306 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b019006253fd1c4a226cecef865ea076cf5399b0da71c8a41e9695364b55274f/main.spi
00:04:40 v #4965 > >
00:04:40 v #4966 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:40 v #4967 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:40 v #4968 > > │ ### new_clone_wrapper                                                        │
00:04:40 v #4969 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:40 v #4970 > >
00:04:40 v #4971 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:40 v #4972 > > inl new_clone_wrapper forall t.
00:04:40 v #4973 > >     (clone_fn : ref (clone_wrapper t) -> ref (clone_wrapper t))
00:04:40 v #4974 > >     (x : t)
00:04:40 v #4975 > >     : clone_wrapper t
00:04:40 v #4976 > >     =
00:04:40 v #4977 > >     inl struct () =
00:04:40 v #4978 > >         !\($'"} //"') : ()
00:04:40 v #4979 > >
00:04:40 v #4980 > >         !\($'"#[[derive( //"') : ()
00:04:40 v #4981 > >         !\($'"  Debug, //"') : ()
00:04:40 v #4982 > >         !\($'")]] //"') : ()
00:04:40 v #4983 > >         !\($'"pub struct CloneWrapper<T>(T); /*"') : ()
00:04:40 v #4984 > >
00:04:40 v #4985 > >         !\($'"*/ impl Clone for CloneWrapper< /*"') : ()
00:04:40 v #4986 > >         (null () : type_emit t) |> ignore
00:04:40 v #4987 > >         !\($'"*/ > { //"') : ()
00:04:40 v #4988 > >
00:04:40 v #4989 > >         !\($'"fn clone(&self) -> Self { //"') : ()
00:04:40 v #4990 > >
00:04:40 v #4991 > >         inl self : ref (clone_wrapper t) = !\($'$"self"')
00:04:40 v #4992 > >
00:04:40 v #4993 > >         self
00:04:40 v #4994 > >         |> clone_fn
00:04:40 v #4995 > >         |> fun x => !\($'$"!x.clone() //"')
00:04:40 v #4996 > >
00:04:40 v #4997 > >         !\($'"} } } fn _main() { { { //"') : ()
00:04:40 v #4998 > >
00:04:40 v #4999 > >     $'let _!struct = true' : ()
00:04:40 v #5000 > >
00:04:40 v #5001 > >     !\\(x, $'"CloneWrapper($0)"')
00:04:40 v #5002 > 00:04:40 d #307 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f17e53b978a951f947c77e2f7411dcaa84b4807e14ec72093047d8f5225a5c31/main.spi
00:04:41 v #5003 > >
00:04:41 v #5004 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:41 v #5005 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:41 v #5006 > > │ ### concat                                                                   │
00:04:41 v #5007 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:41 v #5008 > >
00:04:41 v #5009 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:41 v #5010 > > inl concat forall (t : * -> *) u. (x : t (t u)) : t u =
00:04:41 v #5011 > >     !\($'$"!x.concat()"')
00:04:41 v #5012 > 00:04:40 d #308 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f011cba66bd2970739556282d31c0497ce537cb93d0812e17037c5890833eb8/main.spi
00:04:41 v #5013 > 00:00:44 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 61397 }
00:04:41 v #5014 > 00:00:44 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/rust/rust.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/rust/rust.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:04:43 v #5015 > 00:00:46 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/rust/rust.dib.ipynb to html
00:04:43 v #5016 > 00:00:46 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:04:43 v #5017 > 00:00:46 v #7 !   validate(nb)
00:04:43 v #5018 > 00:00:47 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:04:43 v #5019 > 00:00:47 v #9 !   return _pygments_highlight(
00:04:44 v #5020 > 00:00:48 v #10 ! [NbConvertApp] Writing 444093 bytes to c:\home\git\polyglot\lib\spiral\rust\rust.dib.html
00:04:45 v #5021 > 00:00:48 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 860 }
00:04:45 v #5022 > 00:00:48 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 860 }
00:04:45 v #5023 > 00:00:48 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/rust.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/rust.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:04:45 v #5024 > 00:00:48 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:04:45 v #5025 > 00:00:48 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:04:45 v #5026 > 00:00:48 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 62316 }
00:04:45 d #5027 runtime.execute_with_options_async / { exit_code = 0; output_length = 67298 }
00:04:45 d #5 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path rust/rust.dib --retries 3
00:04:45 d #5028 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path rust/testing.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path rust/testing.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:04:45 v #5029 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "rust/testing.dib", "--retries", "3"])) }
00:04:45 v #5030 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/rust/testing.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/rust/testing.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/rust/testing.dib" --output-path "c:/home/git/polyglot/lib/spiral/rust/testing.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:04:47 v #5031 > >
00:04:47 v #5032 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:47 v #5033 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:47 v #5034 > > │ # rust/testing                                                               │
00:04:47 v #5035 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:50 v #5036 > >
00:04:50 v #5037 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:50 v #5038 > > open rust.rust_operators
00:04:51 v #5039 > 00:04:50 d #309 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40daf77a2acec5ac15e1cf56631d4105f4f565759117828320eb559038e65549/main.spi
00:04:52 v #5040 > >
00:04:52 v #5041 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:52 v #5042 > > //// test
00:04:52 v #5043 > >
00:04:52 v #5044 > > open testing
00:04:52 v #5045 > 00:04:51 d #310 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc76f360fd664f6988ee1c6bc1dc43132802e524aab226e74a21329193e410ca/main.spi
00:04:52 v #5046 > >
00:04:52 v #5047 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:52 v #5048 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:52 v #5049 > > │ ### run_tests'                                                               │
00:04:52 v #5050 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:52 v #5051 > >
00:04:52 v #5052 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:52 v #5053 > > inl run_tests' tests =
00:04:52 v #5054 > >     (!\($'"true; () //"') : bool) |> ignore
00:04:52 v #5055 > >
00:04:52 v #5056 > >     inl fields = reflection.get_record_fields tests
00:04:52 v #5057 > >
00:04:52 v #5058 > >     fields
00:04:52 v #5059 > >     |> listm.iter fun name, (fn : string -> ()) =>
00:04:52 v #5060 > >         !\($'"} /* /*"')
00:04:52 v #5061 > >         (!\($'$"*/ #[[test]] fn " + !name + "() { //"') : bool) |> ignore
00:04:52 v #5062 > >         fn name
00:04:52 v #5063 > >
00:04:52 v #5064 > >     fields
00:04:52 v #5065 > >     |> listm.iter fun _ =>
00:04:52 v #5066 > >         !\($'"{ //"') : ()
00:04:52 v #5067 > 00:04:52 d #311 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/105ed1301241e214476cd187b06f043286375fece65e991edf9ef1372cc6ec3e/main.spi
00:04:53 v #5068 > >
00:04:53 v #5069 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:53 v #5070 > > //// test
00:04:53 v #5071 > >
00:04:53 v #5072 > > inl run test =
00:04:53 v #5073 > >     if env.get_environment_variable "TEST" = "1"
00:04:53 v #5074 > >     then ()
00:04:53 v #5075 > >     else
00:04:53 v #5076 > >         runtime.execution_options fun x => { x with
00:04:53 v #5077 > >             command = "cargo test -- --show-output"
00:04:53 v #5078 > >             working_directory = file_system.get_source_directory () |> Some |>
00:04:53 v #5079 > > optionm'.box
00:04:53 v #5080 > >             environment_variables = ;[[ "TEST", "1" ]]
00:04:53 v #5081 > >         }
00:04:53 v #5082 > >         |> runtime.execute_with_options
00:04:53 v #5083 > >         |> fun exit_code, result =>
00:04:53 v #5084 > >             exit_code |> _assert_eq 0i32
00:04:53 v #5085 > >             result |> _assert sm'.contains "test result: ok. 1 passed; 0 failed;
00:04:53 v #5086 > > 0 ignored;"
00:04:53 v #5087 > >
00:04:53 v #5088 > >     $'let tests () = !test ()' : ()
00:04:53 v #5089 > 00:04:52 d #312 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f0e1ca1c3eb951de17904cc70bf018081de3f42495f59470339c79d6d422ba2/main.spi
00:04:53 v #5090 > >
00:04:53 v #5091 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:53 v #5092 > > //// test
00:04:53 v #5093 > > ///! rust -d encoding_rs encoding_rs_io
00:04:53 v #5094 > >
00:04:53 v #5095 > > fun () =>
00:04:53 v #5096 > >     run_tests' {
00:04:53 v #5097 > >         a = _assert_eq "a"
00:04:53 v #5098 > >     }
00:04:53 v #5099 > > |> run
00:04:53 v #5100 > 00:04:52 d #313 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0e9a551184e47dfbf054499b8cbf622183e02b80b077ba4a83c224795e4c7007/main.spi
00:05:17 v #5101 > >
00:05:17 v #5102 > > ╭─[ 23.97s - return value ]────────────────────────────────────────────────────╮
00:05:17 v #5103 > > │ 00:00:00 d #1 runtime.execute_with_options / { file_name = cargo;      │
00:05:17 v #5104 > > │ arguments = ["test", "--", "--show-output"]; options = { command = cargo     │
00:05:17 v #5105 > > │ test -- --show-output; cancellation_token = None; environment_variables =    │
00:05:17 v #5106 > > │ Array(MutCell([("TEST", "1")])); on_line = None; stdin = None; trace = true; │
00:05:17 v #5107 > > │ working_directory = Some(                                                    │
00:05:17 v #5108 > > │                                                                              │
00:05:17 v #5109 > > │ "c:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\8ea │
00:05:17 v #5110 > > │ a22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2e84b",              │
00:05:17 v #5111 > > │ ) } }                                                                        │
00:05:17 v #5112 > > │ 00:00:00 v #2 !    Compiling                                           │
00:05:17 v #5113 > > │ spiral_builder_8eaa22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2e │
00:05:17 v #5114 > > │ 84b v0.0.1                                                                   │
00:05:17 v #5115 > > │ (C:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\8ea │
00:05:17 v #5116 > > │ a22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2e84b)               │
00:05:17 v #5117 > > │ 00:00:01 v #3 !     Finished `test` profile [unoptimized + debuginfo]  │
00:05:17 v #5118 > > │ target(s) in 1.43s                                                           │
00:05:17 v #5119 > > │ 00:00:01 v #4 !      Running unittests spiral_builder.rs               │
00:05:17 v #5120 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:05:17 v #5121 > > │ \spiral_builder_8eaa22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2 │
00:05:17 v #5122 > > │ e84b-0e3e9c29ca07fb4c.exe)                                                   │
00:05:17 v #5123 > > │ 00:00:01 v #5 >                                                        │
00:05:17 v #5124 > > │ 00:00:01 v #6 > running 1 test                                         │
00:05:17 v #5125 > > │ 00:00:01 v #7 > test module_7c7cec46::Spiral_builder::a ... ok         │
00:05:17 v #5126 > > │ 00:00:01 v #8 >                                                        │
00:05:17 v #5127 > > │ 00:00:01 v #9 > successes:                                             │
00:05:17 v #5128 > > │ 00:00:01 v #10 >                                                       │
00:05:17 v #5129 > > │ 00:00:01 v #11 > ---- module_7c7cec46::Spiral_builder::a stdout ----   │
00:05:17 v #5130 > > │ 00:00:01 v #12 > __assert_eq / actual: "a" / expected: "a"             │
00:05:17 v #5131 > > │ 00:00:01 v #13 >                                                       │
00:05:17 v #5132 > > │ 00:00:01 v #14 >                                                       │
00:05:17 v #5133 > > │ 00:00:01 v #15 > successes:                                            │
00:05:17 v #5134 > > │ 00:00:01 v #16 >     module_7c7cec46::Spiral_builder::a                │
00:05:17 v #5135 > > │ 00:00:01 v #17 >                                                       │
00:05:17 v #5136 > > │ 00:00:01 v #18 > test result: ok. 1 passed; 0 failed; 0 ignored; 0     │
00:05:17 v #5137 > > │ measured; 0 filtered out; finished in 0.00s                                  │
00:05:17 v #5138 > > │ 00:00:01 v #19 >                                                       │
00:05:17 v #5139 > > │ 00:00:01 v #20 runtime.execute_with_options / result / { exit_code =   │
00:05:17 v #5140 > > │ 0; std_trace_length = 879 }                                                  │
00:05:17 v #5141 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:05:17 v #5142 > > │ __assert / actual: "test result: ok. 1 passed; 0 failed; 0 ignored;" /       │
00:05:17 v #5143 > > │ expected: "   Compiling                                                  │
00:05:17 v #5144 > > │ spiral_builder_8eaa22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2e │
00:05:17 v #5145 > > │ 84b v0.0.1                                                                   │
00:05:17 v #5146 > > │ (C:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\8ea │
00:05:17 v #5147 > > │ a22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2e84b)             │
00:05:17 v #5148 > > │     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.43s[ │
00:05:17 v #5149 > > │ 0m                                                                           │
00:05:17 v #5150 > > │      Running unittests spiral_builder.rs                                 │
00:05:17 v #5151 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:05:17 v #5152 > > │ \spiral_builder_8eaa22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2 │
00:05:17 v #5153 > > │ e84b-0e3e9c29ca07fb4c.exe)                                                 │
00:05:17 v #5154 > > │                                                                              │
00:05:17 v #5155 > > │ running 1 test                                                               │
00:05:17 v #5156 > > │ test module_7c7cec46::Spiral_builder::a ... ok                               │
00:05:17 v #5157 > > │                                                                              │
00:05:17 v #5158 > > │ successes:                                                                   │
00:05:17 v #5159 > > │                                                                              │
00:05:17 v #5160 > > │ ---- module_7c7cec46::Spiral_builder::a stdout ----                          │
00:05:17 v #5161 > > │ __assert_eq / actual: "a" / expected: "a"                                    │
00:05:17 v #5162 > > │                                                                              │
00:05:17 v #5163 > > │                                                                              │
00:05:17 v #5164 > > │ successes:                                                                   │
00:05:17 v #5165 > > │     module_7c7cec46::Spiral_builder::a                                       │
00:05:17 v #5166 > > │                                                                              │
00:05:17 v #5167 > > │ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │
00:05:17 v #5168 > > │ finished in 0.00s                                                            │
00:05:17 v #5169 > > │ "                                                                            │
00:05:17 v #5170 > > │                                                                              │
00:05:17 v #5171 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:17 v #5172 > >
00:05:17 v #5173 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:17 v #5174 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:17 v #5175 > > │ ### run_tests                                                                │
00:05:17 v #5176 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:17 v #5177 > >
00:05:17 v #5178 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:17 v #5179 > > inl run_tests tests : () =
00:05:17 v #5180 > >     real
00:05:17 v #5181 > >         inl tests =
00:05:17 v #5182 > >             real_core.record_map
00:05:17 v #5183 > >                 fun { key value } =>
00:05:17 v #5184 > >                     (fun _ => value ()) : string -> ()
00:05:17 v #5185 > >                 tests
00:05:17 v #5186 > >         run_tests' `(`tests) tests
00:05:17 v #5187 > 00:05:16 d #314 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c0a8a4137142fd0e96ac70424822b278ad4c145e3bd6bc2ed72ae424a4a762ad/main.spi
00:05:17 v #5188 > >
00:05:17 v #5189 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:17 v #5190 > > //// test
00:05:17 v #5191 > > ///! rust -d encoding_rs encoding_rs_io
00:05:17 v #5192 > >
00:05:17 v #5193 > > fun () =>
00:05:17 v #5194 > >     run_tests {
00:05:17 v #5195 > >         a = fun () => "a" |> _assert_eq "a"
00:05:17 v #5196 > >     }
00:05:17 v #5197 > > |> run
00:05:17 v #5198 > 00:05:17 d #315 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/87c035b85d79eb695b9749e8e38ad41da46f17fba2f8ea498f62d33a7aa73448/main.spi
00:05:23 v #5199 > >
00:05:23 v #5200 > > ╭─[ 5.54s - return value ]─────────────────────────────────────────────────────╮
00:05:23 v #5201 > > │ 00:00:00 d #1 runtime.execute_with_options / { file_name = cargo;      │
00:05:23 v #5202 > > │ arguments = ["test", "--", "--show-output"]; options = { command = cargo     │
00:05:23 v #5203 > > │ test -- --show-output; cancellation_token = None; environment_variables =    │
00:05:23 v #5204 > > │ Array(MutCell([("TEST", "1")])); on_line = None; stdin = None; trace = true; │
00:05:23 v #5205 > > │ working_directory = Some(                                                    │
00:05:23 v #5206 > > │                                                                              │
00:05:23 v #5207 > > │ "c:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\8ea │
00:05:23 v #5208 > > │ a22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2e84b",              │
00:05:23 v #5209 > > │ ) } }                                                                        │
00:05:23 v #5210 > > │ 00:00:00 v #2 !    Compiling                                           │
00:05:23 v #5211 > > │ spiral_builder_8eaa22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2e │
00:05:23 v #5212 > > │ 84b v0.0.1                                                                   │
00:05:23 v #5213 > > │ (C:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\8ea │
00:05:23 v #5214 > > │ a22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2e84b)               │
00:05:23 v #5215 > > │ 00:00:00 v #3 !     Finished `test` profile [unoptimized + debuginfo]  │
00:05:23 v #5216 > > │ target(s) in 0.84s                                                           │
00:05:23 v #5217 > > │ 00:00:00 v #4 !      Running unittests spiral_builder.rs               │
00:05:23 v #5218 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:05:23 v #5219 > > │ \spiral_builder_8eaa22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2 │
00:05:23 v #5220 > > │ e84b-0e3e9c29ca07fb4c.exe)                                                   │
00:05:23 v #5221 > > │ 00:00:00 v #5 >                                                        │
00:05:23 v #5222 > > │ 00:00:00 v #6 > running 1 test                                         │
00:05:23 v #5223 > > │ 00:00:00 v #7 > test module_7c7cec46::Spiral_builder::a ... ok         │
00:05:23 v #5224 > > │ 00:00:00 v #8 >                                                        │
00:05:23 v #5225 > > │ 00:00:00 v #9 > successes:                                             │
00:05:23 v #5226 > > │ 00:00:00 v #10 >                                                       │
00:05:23 v #5227 > > │ 00:00:00 v #11 > ---- module_7c7cec46::Spiral_builder::a stdout ----   │
00:05:23 v #5228 > > │ 00:00:00 v #12 > __assert_eq / actual: "a" / expected: "a"             │
00:05:23 v #5229 > > │ 00:00:00 v #13 >                                                       │
00:05:23 v #5230 > > │ 00:00:00 v #14 >                                                       │
00:05:23 v #5231 > > │ 00:00:00 v #15 > successes:                                            │
00:05:23 v #5232 > > │ 00:00:00 v #16 >     module_7c7cec46::Spiral_builder::a                │
00:05:23 v #5233 > > │ 00:00:00 v #17 >                                                       │
00:05:23 v #5234 > > │ 00:00:00 v #18 > test result: ok. 1 passed; 0 failed; 0 ignored; 0     │
00:05:23 v #5235 > > │ measured; 0 filtered out; finished in 0.00s                                  │
00:05:23 v #5236 > > │ 00:00:00 v #19 >                                                       │
00:05:23 v #5237 > > │ 00:00:00 v #20 runtime.execute_with_options / result / { exit_code =   │
00:05:23 v #5238 > > │ 0; std_trace_length = 879 }                                                  │
00:05:23 v #5239 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:05:23 v #5240 > > │ __assert / actual: "test result: ok. 1 passed; 0 failed; 0 ignored;" /       │
00:05:23 v #5241 > > │ expected: "   Compiling                                                  │
00:05:23 v #5242 > > │ spiral_builder_8eaa22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2e │
00:05:23 v #5243 > > │ 84b v0.0.1                                                                   │
00:05:23 v #5244 > > │ (C:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\8ea │
00:05:23 v #5245 > > │ a22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2e84b)             │
00:05:23 v #5246 > > │     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.84s[ │
00:05:23 v #5247 > > │ 0m                                                                           │
00:05:23 v #5248 > > │      Running unittests spiral_builder.rs                                 │
00:05:23 v #5249 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:05:23 v #5250 > > │ \spiral_builder_8eaa22bdfe2400c3749733be79a3418e8590a070ff431b93564d7268ede2 │
00:05:23 v #5251 > > │ e84b-0e3e9c29ca07fb4c.exe)                                                 │
00:05:23 v #5252 > > │                                                                              │
00:05:23 v #5253 > > │ running 1 test                                                               │
00:05:23 v #5254 > > │ test module_7c7cec46::Spiral_builder::a ... ok                               │
00:05:23 v #5255 > > │                                                                              │
00:05:23 v #5256 > > │ successes:                                                                   │
00:05:23 v #5257 > > │                                                                              │
00:05:23 v #5258 > > │ ---- module_7c7cec46::Spiral_builder::a stdout ----                          │
00:05:23 v #5259 > > │ __assert_eq / actual: "a" / expected: "a"                                    │
00:05:23 v #5260 > > │                                                                              │
00:05:23 v #5261 > > │                                                                              │
00:05:23 v #5262 > > │ successes:                                                                   │
00:05:23 v #5263 > > │     module_7c7cec46::Spiral_builder::a                                       │
00:05:23 v #5264 > > │                                                                              │
00:05:23 v #5265 > > │ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │
00:05:23 v #5266 > > │ finished in 0.00s                                                            │
00:05:23 v #5267 > > │ "                                                                            │
00:05:23 v #5268 > > │                                                                              │
00:05:23 v #5269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:23 v #5270 > >
00:05:23 v #5271 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:23 v #5272 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:23 v #5273 > > │ ### run_tests_log                                                            │
00:05:23 v #5274 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:23 v #5275 > >
00:05:23 v #5276 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:23 v #5277 > > inl run_tests_log tests : () =
00:05:23 v #5278 > >     real
00:05:23 v #5279 > >         inl tests =
00:05:23 v #5280 > >             real_core.record_map
00:05:23 v #5281 > >                 fun { key value } =>
00:05:23 v #5282 > >                     (fun _ => value false) : () -> ()
00:05:23 v #5283 > >                 tests
00:05:23 v #5284 > >         run_tests `(`tests) tests
00:05:23 v #5285 > 00:05:22 d #316 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5c191e9dceaa00f0ff37cd79a74a7b13113d61f43feea0b3b6bd9426924bff88/main.spi
00:05:23 v #5286 > >
00:05:23 v #5287 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:23 v #5288 > > //// test
00:05:23 v #5289 > > ///! rust -d encoding_rs encoding_rs_io
00:05:23 v #5290 > >
00:05:23 v #5291 > > fun () =>
00:05:23 v #5292 > >     run_tests_log {
00:05:23 v #5293 > >         a = _assert_eq false
00:05:23 v #5294 > >     }
00:05:23 v #5295 > > |> run
00:05:23 v #5296 > 00:05:23 d #317 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1cbea181319c214a65d518562fa1be56a193abede0f930e9b0e5eb9987744262/main.spi
00:05:47 v #5297 > >
00:05:47 v #5298 > > ╭─[ 23.73s - return value ]────────────────────────────────────────────────────╮
00:05:47 v #5299 > > │ 00:00:00 d #1 runtime.execute_with_options / { file_name = cargo;      │
00:05:47 v #5300 > > │ arguments = ["test", "--", "--show-output"]; options = { command = cargo     │
00:05:47 v #5301 > > │ test -- --show-output; cancellation_token = None; environment_variables =    │
00:05:47 v #5302 > > │ Array(MutCell([("TEST", "1")])); on_line = None; stdin = None; trace = true; │
00:05:47 v #5303 > > │ working_directory = Some(                                                    │
00:05:47 v #5304 > > │                                                                              │
00:05:47 v #5305 > > │ "c:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\690 │
00:05:47 v #5306 > > │ a74bff8c881ccf615640aa05f68a83e5e30e0d777d139e361874e34ee0a60",              │
00:05:47 v #5307 > > │ ) } }                                                                        │
00:05:47 v #5308 > > │ 00:00:00 v #2 !    Compiling                                           │
00:05:47 v #5309 > > │ spiral_builder_690a74bff8c881ccf615640aa05f68a83e5e30e0d777d139e361874e34ee0 │
00:05:47 v #5310 > > │ a60 v0.0.1                                                                   │
00:05:47 v #5311 > > │ (C:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\690 │
00:05:47 v #5312 > > │ a74bff8c881ccf615640aa05f68a83e5e30e0d777d139e361874e34ee0a60)               │
00:05:47 v #5313 > > │ 00:00:01 v #3 !     Finished `test` profile [unoptimized + debuginfo]  │
00:05:47 v #5314 > > │ target(s) in 1.44s                                                           │
00:05:47 v #5315 > > │ 00:00:01 v #4 !      Running unittests spiral_builder.rs               │
00:05:47 v #5316 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:05:47 v #5317 > > │ \spiral_builder_690a74bff8c881ccf615640aa05f68a83e5e30e0d777d139e361874e34ee │
00:05:47 v #5318 > > │ 0a60-2a6198e0cf20c17b.exe)                                                   │
00:05:47 v #5319 > > │ 00:00:01 v #5 >                                                        │
00:05:47 v #5320 > > │ 00:00:01 v #6 > running 1 test                                         │
00:05:47 v #5321 > > │ 00:00:01 v #7 > test module_cff1306b::Spiral_builder::a ... ok         │
00:05:47 v #5322 > > │ 00:00:01 v #8 >                                                        │
00:05:47 v #5323 > > │ 00:00:01 v #9 > successes:                                             │
00:05:47 v #5324 > > │ 00:00:01 v #10 >                                                       │
00:05:47 v #5325 > > │ 00:00:01 v #11 > ---- module_cff1306b::Spiral_builder::a stdout ----   │
00:05:47 v #5326 > > │ 00:00:01 v #12 > __assert_eq / actual: false / expected: false         │
00:05:47 v #5327 > > │ 00:00:01 v #13 >                                                       │
00:05:47 v #5328 > > │ 00:00:01 v #14 >                                                       │
00:05:47 v #5329 > > │ 00:00:01 v #15 > successes:                                            │
00:05:47 v #5330 > > │ 00:00:01 v #16 >     module_cff1306b::Spiral_builder::a                │
00:05:47 v #5331 > > │ 00:00:01 v #17 >                                                       │
00:05:47 v #5332 > > │ 00:00:01 v #18 > test result: ok. 1 passed; 0 failed; 0 ignored; 0     │
00:05:47 v #5333 > > │ measured; 0 filtered out; finished in 0.00s                                  │
00:05:47 v #5334 > > │ 00:00:01 v #19 >                                                       │
00:05:47 v #5335 > > │ 00:00:01 v #20 runtime.execute_with_options / result / { exit_code =   │
00:05:47 v #5336 > > │ 0; std_trace_length = 883 }                                                  │
00:05:47 v #5337 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:05:47 v #5338 > > │ __assert / actual: "test result: ok. 1 passed; 0 failed; 0 ignored;" /       │
00:05:47 v #5339 > > │ expected: "   Compiling                                                  │
00:05:47 v #5340 > > │ spiral_builder_690a74bff8c881ccf615640aa05f68a83e5e30e0d777d139e361874e34ee0 │
00:05:47 v #5341 > > │ a60 v0.0.1                                                                   │
00:05:47 v #5342 > > │ (C:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\690 │
00:05:47 v #5343 > > │ a74bff8c881ccf615640aa05f68a83e5e30e0d777d139e361874e34ee0a60)             │
00:05:47 v #5344 > > │     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.44s[ │
00:05:47 v #5345 > > │ 0m                                                                           │
00:05:47 v #5346 > > │      Running unittests spiral_builder.rs                                 │
00:05:47 v #5347 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:05:47 v #5348 > > │ \spiral_builder_690a74bff8c881ccf615640aa05f68a83e5e30e0d777d139e361874e34ee │
00:05:47 v #5349 > > │ 0a60-2a6198e0cf20c17b.exe)                                                 │
00:05:47 v #5350 > > │                                                                              │
00:05:47 v #5351 > > │ running 1 test                                                               │
00:05:47 v #5352 > > │ test module_cff1306b::Spiral_builder::a ... ok                               │
00:05:47 v #5353 > > │                                                                              │
00:05:47 v #5354 > > │ successes:                                                                   │
00:05:47 v #5355 > > │                                                                              │
00:05:47 v #5356 > > │ ---- module_cff1306b::Spiral_builder::a stdout ----                          │
00:05:47 v #5357 > > │ __assert_eq / actual: false / expected: false                                │
00:05:47 v #5358 > > │                                                                              │
00:05:47 v #5359 > > │                                                                              │
00:05:47 v #5360 > > │ successes:                                                                   │
00:05:47 v #5361 > > │     module_cff1306b::Spiral_builder::a                                       │
00:05:47 v #5362 > > │                                                                              │
00:05:47 v #5363 > > │ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │
00:05:47 v #5364 > > │ finished in 0.00s                                                            │
00:05:47 v #5365 > > │ "                                                                            │
00:05:47 v #5366 > > │                                                                              │
00:05:47 v #5367 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:47 v #5368 > 00:01:02 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 21197 }
00:05:47 v #5369 > 00:01:02 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/rust/testing.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/rust/testing.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:49 v #5370 > 00:01:03 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/rust/testing.dib.ipynb to html
00:05:49 v #5371 > 00:01:03 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:05:49 v #5372 > 00:01:03 v #7 !   validate(nb)
00:05:49 v #5373 > 00:01:04 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:05:49 v #5374 > 00:01:04 v #9 !   return _pygments_highlight(
00:05:50 v #5375 > 00:01:04 v #10 ! [NbConvertApp] Writing 298043 bytes to c:\home\git\polyglot\lib\spiral\rust\testing.dib.html
00:05:50 v #5376 > 00:01:04 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 866 }
00:05:50 v #5377 > 00:01:04 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 866 }
00:05:50 v #5378 > 00:01:04 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:50 v #5379 > 00:01:04 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:05:50 v #5380 > 00:01:04 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:05:50 v #5381 > 00:01:04 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 22122 }
00:05:50 d #5382 runtime.execute_with_options_async / { exit_code = 0; output_length = 25399 }
00:05:50 d #6 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path rust/testing.dib --retries 3
00:05:50 d #5383 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path rust/near.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path rust/near.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:50 v #5384 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "rust/near.dib", "--retries", "3"])) }
00:05:50 v #5385 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/rust/near.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/rust/near.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/rust/near.dib" --output-path "c:/home/git/polyglot/lib/spiral/rust/near.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:05:52 v #5386 > >
00:05:52 v #5387 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:52 v #5388 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:52 v #5389 > > │ # near                                                                       │
00:05:52 v #5390 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:56 v #5391 > >
00:05:56 v #5392 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:56 v #5393 > > open rust
00:05:56 v #5394 > > open rust.rust_operators
00:05:56 v #5395 > 00:05:56 d #318 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8266c97ee08f99dd628d38d34dfdec325b2e42739e161f0fc981fa7038e52f8e/main.spi
00:05:57 v #5396 > >
00:05:57 v #5397 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:57 v #5398 > > //// test
00:05:57 v #5399 > >
00:05:57 v #5400 > > open testing
00:05:57 v #5401 > 00:05:56 d #319 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a3a626ef4bf9b0298d493c0dd1473daff6ca9f38ef5fc9c1e506770f76e69687/main.spi
00:05:57 v #5402 > >
00:05:57 v #5403 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:57 v #5404 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:57 v #5405 > > │ ## near                                                                      │
00:05:57 v #5406 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:57 v #5407 > >
00:05:57 v #5408 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:57 v #5409 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:57 v #5410 > > │ ### vector                                                                   │
00:05:57 v #5411 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:57 v #5412 > >
00:05:57 v #5413 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:57 v #5414 > > nominal vector t =
00:05:57 v #5415 > >     `(
00:05:57 v #5416 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:57 v #5417 > > Fable.Core.Emit(\"near_sdk::store::vec::Vector<$0>\")>]]\n#endif\ntype
00:05:57 v #5418 > > near_sdk_store_vec_Vector<'T> = class end"
00:05:57 v #5419 > >         $'' : $'near_sdk_store_vec_Vector<`t>'
00:05:57 v #5420 > >     )
00:05:58 v #5421 > 00:05:57 d #320 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1de1eb4772d6f8e4b24ae2fb71e94ab3e2a9c2de0f24ba1a197bd2ae88540c89/main.spi
00:05:58 v #5422 > >
00:05:58 v #5423 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:58 v #5424 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:58 v #5425 > > │ ### lookup_map                                                               │
00:05:58 v #5426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:58 v #5427 > >
00:05:58 v #5428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:58 v #5429 > > nominal lookup_map k v =
00:05:58 v #5430 > >     `(
00:05:58 v #5431 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:58 v #5432 > > Fable.Core.Emit(\"near_sdk::store::LookupMap<$0, $1>\")>]]\n#endif\ntype
00:05:58 v #5433 > > near_sdk_store_LookupMap<'K, 'V> = class end"
00:05:58 v #5434 > >         $'' : $'near_sdk_store_LookupMap<`k, `v>'
00:05:58 v #5435 > >     )
00:05:58 v #5436 > 00:05:57 d #321 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0473848df3a95f73a512ef8bfd6aa514a90ea4f045c68b57aea2297af16642f4/main.spi
00:05:58 v #5437 > >
00:05:58 v #5438 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:58 v #5439 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:58 v #5440 > > │ ### iterable_set                                                             │
00:05:58 v #5441 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:58 v #5442 > >
00:05:58 v #5443 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:58 v #5444 > > nominal iterable_set t =
00:05:58 v #5445 > >     `(
00:05:58 v #5446 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:58 v #5447 > > Fable.Core.Emit(\"near_sdk::store::IterableSet<$0>\")>]]\n#endif\ntype
00:05:58 v #5448 > > near_sdk_store_IterableSet<'T> = class end"
00:05:58 v #5449 > >         $'' : $'near_sdk_store_IterableSet<`t>'
00:05:58 v #5450 > >     )
00:05:58 v #5451 > 00:05:58 d #322 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7e4e9d214c0e042d0ad3092e62c1213e3928a92a01dbc524cc57bc864a33f8fd/main.spi
00:05:59 v #5452 > >
00:05:59 v #5453 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:59 v #5454 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:59 v #5455 > > │ ### account_id                                                               │
00:05:59 v #5456 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:59 v #5457 > >
00:05:59 v #5458 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:59 v #5459 > > nominal account_id =
00:05:59 v #5460 > >     `(
00:05:59 v #5461 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:59 v #5462 > > Fable.Core.Emit(\"near_sdk::AccountId\")>]]\n#endif\ntype near_sdk_AccountId =
00:05:59 v #5463 > > class end"
00:05:59 v #5464 > >         $'' : $'near_sdk_AccountId'
00:05:59 v #5465 > >     )
00:05:59 v #5466 > 00:05:58 d #323 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/60ba7e8a31a1655b1725774d262e69e56d589eea85dc7e60bfe271e50bc64e5b/main.spi
00:05:59 v #5467 > >
00:05:59 v #5468 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:59 v #5469 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:59 v #5470 > > │ ### new_lookup_map                                                           │
00:05:59 v #5471 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:59 v #5472 > >
00:05:59 v #5473 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:59 v #5474 > > inl new_lookup_map prefix =
00:05:59 v #5475 > >     !\($'"near_sdk::store::LookupMap::new(!prefix)"')
00:05:59 v #5476 > 00:05:58 d #324 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/96a8cb90c812f85bae4a3f6eaaa2d5c3764077520414caa1cfd8aae34ac28722/main.spi
00:05:59 v #5477 > >
00:05:59 v #5478 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:59 v #5479 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:59 v #5480 > > │ ### new_iterable_set                                                         │
00:05:59 v #5481 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:59 v #5482 > >
00:05:59 v #5483 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:59 v #5484 > > inl new_iterable_set prefix =
00:05:59 v #5485 > >     !\($'"near_sdk::store::IterableSet::new(!prefix)"')
00:05:59 v #5486 > 00:05:59 d #325 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/57dd587b63078da2329e800700b628a607b057a15840eee5af78d874c383f528/main.spi
00:06:00 v #5487 > >
00:06:00 v #5488 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:00 v #5489 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:00 v #5490 > > │ ### new_vector                                                               │
00:06:00 v #5491 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:00 v #5492 > >
00:06:00 v #5493 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:00 v #5494 > > inl new_vector prefix =
00:06:00 v #5495 > >     !\\(prefix, $'"near_sdk::store::vec::Vector::new($0)"')
00:06:00 v #5496 > 00:05:59 d #326 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0463c781d9a0585507feff6140ae88fd2d70dabbb37191effe8171ae4c9ce445/main.spi
00:06:00 v #5497 > >
00:06:00 v #5498 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:00 v #5499 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:00 v #5500 > > │ ### vector_extend                                                            │
00:06:00 v #5501 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:00 v #5502 > >
00:06:00 v #5503 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:00 v #5504 > > inl vector_extend forall t. (vec : am'.vec t) (vector : rust.ref (rust.mut'
00:06:00 v #5505 > > (vector t))) : () =
00:06:00 v #5506 > >     (!\\(vec, $'"true; !vector.extend($0); //"') : bool) |> ignore
00:06:00 v #5507 > 00:06:00 d #327 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e665d6aac8bb5cb91eaac3b9c0f7e946a5824f63d9e2d6dcb4e72865a62c39f7/main.spi
00:06:01 v #5508 > >
00:06:01 v #5509 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:01 v #5510 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:01 v #5511 > > │ ### vector_to_vec                                                            │
00:06:01 v #5512 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 v #5513 > >
00:06:01 v #5514 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:01 v #5515 > > inl vector_to_vec forall (t : * -> *) u. (vector : t (vector u)) : am'.vec u =
00:06:01 v #5516 > >     !\($'$"!vector.iter().map(|x| *x).collect::<Vec<_>>()"')
00:06:01 v #5517 > 00:06:00 d #328 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5549cc7577e1b9c5d665d30fdacbd04756f7b12afc2ea9a6a7d7b0e5a9c2e6cb/main.spi
00:06:01 v #5518 > >
00:06:01 v #5519 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:01 v #5520 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:01 v #5521 > > │ ### keccak512                                                                │
00:06:01 v #5522 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 v #5523 > >
00:06:01 v #5524 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:01 v #5525 > > inl keccak512 (entropy : am'.vec u8) : am'.vec u8 =
00:06:01 v #5526 > >     !\\(entropy, $'$"near_sdk::env::keccak512(&$0)"')
00:06:01 v #5527 > 00:06:00 d #329 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eae4e252486708721e8812e14b7cdaff8f7c44dfb115c8218f3ec9d996023aa9/main.spi
00:06:01 v #5528 > >
00:06:01 v #5529 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:01 v #5530 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:01 v #5531 > > │ ### log                                                                      │
00:06:01 v #5532 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 v #5533 > >
00:06:01 v #5534 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:01 v #5535 > > inl log text : () =
00:06:01 v #5536 > >     (!\\(text, $'$"true; near_sdk::log\!(\\\"{{}}\\\", $0)"') : bool) |> ignore
00:06:02 v #5537 > 00:06:01 d #330 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8711b419c2df63c9cb7ec6cd8147179116087dbcccde9c67f0b6216d8d42eea8/main.spi
00:06:02 v #5538 > >
00:06:02 v #5539 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:02 v #5540 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:02 v #5541 > > │ ### panic_str                                                                │
00:06:02 v #5542 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:02 v #5543 > >
00:06:02 v #5544 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:02 v #5545 > > inl panic_str (text : string) : () =
00:06:02 v #5546 > >     (!\\(text, $'$"true; near_sdk::env::panic_str(&*$0); //"') : bool) |> ignore
00:06:02 v #5547 > 00:06:01 d #331 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4cfadf27362bcd7e8dabc389dd3fdcf73e4b76d3b740230e864d43e85a60bc94/main.spi
00:06:02 v #5548 > >
00:06:02 v #5549 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:02 v #5550 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:02 v #5551 > > │ ### lookup_get                                                               │
00:06:02 v #5552 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:02 v #5553 > >
00:06:02 v #5554 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:02 v #5555 > > inl lookup_get forall k v.
00:06:02 v #5556 > >     (key : k)
00:06:02 v #5557 > >     (map : rust.ref (rust.mut' (lookup_map k v)))
00:06:02 v #5558 > >     : optionm'.option' (rust.ref v)
00:06:02 v #5559 > >     =
00:06:02 v #5560 > >     !\\(key, $'$"!map.get(&$0)"')
00:06:03 v #5561 > 00:06:02 d #332 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00e8fcb805cd701836b165f625ee127f6650c041cb1b3c684cde40adbf1ffab5/main.spi
00:06:03 v #5562 > >
00:06:03 v #5563 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:03 v #5564 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:03 v #5565 > > │ ### lookup_insert                                                            │
00:06:03 v #5566 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:03 v #5567 > >
00:06:03 v #5568 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:03 v #5569 > > inl lookup_insert forall k v.
00:06:03 v #5570 > >     (key : k)
00:06:03 v #5571 > >     (value : v)
00:06:03 v #5572 > >     (map : rust.ref (rust.mut' (lookup_map k v)))
00:06:03 v #5573 > >     : ()
00:06:03 v #5574 > >     =
00:06:03 v #5575 > >     (!\\((key, value), $'$"true; !map.insert(&$0, $1); //"') : bool) |> ignore
00:06:03 v #5576 > 00:06:02 d #333 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/01c99e2e93abd1552fcdd0c844668c487106009a891cc8f872f06d5d59033f42/main.spi
00:06:03 v #5577 > >
00:06:03 v #5578 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:03 v #5579 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:03 v #5580 > > │ ### iterable_set_insert                                                      │
00:06:03 v #5581 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:03 v #5582 > >
00:06:03 v #5583 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:03 v #5584 > > inl iterable_set_insert forall t.
00:06:03 v #5585 > >     (x : t)
00:06:03 v #5586 > >     (set : rust.ref (rust.mut' (iterable_set t)))
00:06:03 v #5587 > >     : bool
00:06:03 v #5588 > >     =
00:06:03 v #5589 > >     !\\(x, $'$"!set.insert($0)"')
00:06:03 v #5590 > 00:06:03 d #334 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/24936f183469f84d71d86430cc4b7918ff7caf2db50ce0987e642db5b6cdc8fa/main.spi
00:06:04 v #5591 > >
00:06:04 v #5592 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:04 v #5593 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:04 v #5594 > > │ ### iterable_set_remove                                                      │
00:06:04 v #5595 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:04 v #5596 > >
00:06:04 v #5597 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:04 v #5598 > > inl iterable_set_remove forall t.
00:06:04 v #5599 > >     (x : rust.ref t)
00:06:04 v #5600 > >     (set : rust.ref (rust.mut' (iterable_set t)))
00:06:04 v #5601 > >     : bool
00:06:04 v #5602 > >     =
00:06:04 v #5603 > >     !\\(x, $'$"!set.remove($0)"')
00:06:04 v #5604 > 00:06:03 d #335 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2257dc91c646a442b861e71d805faeaf1f70636824f6e7a2314e3f1261aadde5/main.spi
00:06:04 v #5605 > >
00:06:04 v #5606 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:04 v #5607 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:04 v #5608 > > │ ### iterable_set_contains                                                    │
00:06:04 v #5609 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:04 v #5610 > >
00:06:04 v #5611 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:04 v #5612 > > inl iterable_set_contains forall t.
00:06:04 v #5613 > >     (x : rust.ref t)
00:06:04 v #5614 > >     (set : rust.ref (rust.mut' (iterable_set t)))
00:06:04 v #5615 > >     : bool
00:06:04 v #5616 > >     =
00:06:04 v #5617 > >     !\\(x, $'$"!set.contains($0)"')
00:06:04 v #5618 > 00:06:03 d #336 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14a10659cf58397bcac9c81b316965867aca56980a9937acdcd723787d7adf32/main.spi
00:06:04 v #5619 > >
00:06:04 v #5620 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:04 v #5621 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:04 v #5622 > > │ ### near_token                                                               │
00:06:04 v #5623 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:04 v #5624 > >
00:06:04 v #5625 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:04 v #5626 > > nominal near_token =
00:06:04 v #5627 > >     `(
00:06:04 v #5628 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:04 v #5629 > > Fable.Core.Emit(\"near_token::NearToken\")>]]\n#endif\ntype near_token_NearToken
00:06:04 v #5630 > > = class end"
00:06:04 v #5631 > >         $'' : $'near_token_NearToken'
00:06:04 v #5632 > >     )
00:06:05 v #5633 > 00:06:04 d #337 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9c58339f82ebe7e0b86f6e3a46a988a0fefc5ddd75f954d864148301281d216/main.spi
00:06:05 v #5634 > >
00:06:05 v #5635 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:05 v #5636 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:05 v #5637 > > │ ### near_token_sdk                                                           │
00:06:05 v #5638 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:05 v #5639 > >
00:06:05 v #5640 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:05 v #5641 > > nominal near_token_sdk =
00:06:05 v #5642 > >     `(
00:06:05 v #5643 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:05 v #5644 > > Fable.Core.Emit(\"near_sdk::NearToken\")>]]\n#endif\ntype near_sdk_NearToken =
00:06:05 v #5645 > > class end"
00:06:05 v #5646 > >         $'' : $'near_sdk_NearToken'
00:06:05 v #5647 > >     )
00:06:05 v #5648 > 00:06:04 d #338 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26db9a7bc0523de45de80bd4ff237c7481cfee7ca405482488c45e37eb96b358/main.spi
00:06:05 v #5649 > >
00:06:05 v #5650 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:05 v #5651 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:05 v #5652 > > │ ### random_seed                                                              │
00:06:05 v #5653 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:05 v #5654 > >
00:06:05 v #5655 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:05 v #5656 > > inl random_seed () : am'.vec u8 =
00:06:05 v #5657 > >     !\($'$"near_sdk::env::random_seed()"')
00:06:05 v #5658 > 00:06:05 d #339 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cb49eb4fbff9851f35df4ade332205bd1e7574cc13f47209c5f6447935d7a9e2/main.spi
00:06:06 v #5659 > >
00:06:06 v #5660 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:06 v #5661 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:06 v #5662 > > │ ### block_timestamp                                                          │
00:06:06 v #5663 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:06 v #5664 > >
00:06:06 v #5665 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:06 v #5666 > > inl block_timestamp () : u64 =
00:06:06 v #5667 > >     !\($'$"near_sdk::env::block_timestamp()"')
00:06:06 v #5668 > 00:06:05 d #340 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/da6ed4917592df8f559210f2cc80aea1365a6298433154fe6825299f1a8a3d3d/main.spi
00:06:06 v #5669 > >
00:06:06 v #5670 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:06 v #5671 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:06 v #5672 > > │ ### block_height                                                             │
00:06:06 v #5673 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:06 v #5674 > >
00:06:06 v #5675 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:06 v #5676 > > inl block_height () : u64 =
00:06:06 v #5677 > >     !\($'$"near_sdk::env::block_height()"')
00:06:06 v #5678 > 00:06:05 d #341 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cb78de043f33ee91b5aae0be72fff9ff102088bf51c40ce33d31ec7a8b3153d1/main.spi
00:06:06 v #5679 > >
00:06:06 v #5680 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:06 v #5681 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:06 v #5682 > > │ ### epoch_height                                                             │
00:06:06 v #5683 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:06 v #5684 > >
00:06:06 v #5685 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:06 v #5686 > > inl epoch_height () : u64 =
00:06:06 v #5687 > >     !\($'$"near_sdk::env::epoch_height()"')
00:06:07 v #5688 > 00:06:06 d #342 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13df1216ce2688098b5ea1d349ab1cb84bbb34ae632017477c80bd01172dfa15/main.spi
00:06:07 v #5689 > >
00:06:07 v #5690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:07 v #5691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:07 v #5692 > > │ ### account_balance                                                          │
00:06:07 v #5693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:07 v #5694 > >
00:06:07 v #5695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:07 v #5696 > > inl account_balance () : near_token =
00:06:07 v #5697 > >     !\($'$"near_sdk::env::account_balance()"')
00:06:07 v #5698 > 00:06:06 d #343 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6dbac99db4fe9db1d9650e66447ef9aa31f2874a52ced145d89f0baa82a85f44/main.spi
00:06:07 v #5699 > >
00:06:07 v #5700 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:07 v #5701 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:07 v #5702 > > │ ### predecessor_account_id                                                   │
00:06:07 v #5703 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:07 v #5704 > >
00:06:07 v #5705 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:07 v #5706 > > inl predecessor_account_id () : account_id =
00:06:07 v #5707 > >     !\($'$"near_sdk::env::predecessor_account_id()"')
00:06:07 v #5708 > 00:06:07 d #344 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a4cb06f9d67cc4e9b2edc9e9b9329d6683dfaa08381c4c58365570fd63d06b3/main.spi
00:06:08 v #5709 > >
00:06:08 v #5710 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:08 v #5711 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:08 v #5712 > > │ ### signer_account_id                                                        │
00:06:08 v #5713 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:08 v #5714 > >
00:06:08 v #5715 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:08 v #5716 > > inl signer_account_id () : account_id =
00:06:08 v #5717 > >     !\($'$"near_sdk::env::signer_account_id()"')
00:06:08 v #5718 > 00:06:07 d #345 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d602d2cb03b23fc14d5f420d6cc35db037df1711abc080ef4161cc78ebbe0eb6/main.spi
00:06:08 v #5719 > >
00:06:08 v #5720 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:08 v #5721 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:08 v #5722 > > │ ### as_yoctonear                                                             │
00:06:08 v #5723 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:08 v #5724 > >
00:06:08 v #5725 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:08 v #5726 > > inl as_yoctonear forall t. (gas : t) : rust.u128 =
00:06:08 v #5727 > >     !\\(gas, $'"$0.as_yoctonear()"')
00:06:08 v #5728 > 00:06:08 d #346 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1932519dbd9076982a2ee3edf40661bca60d4655246fbb62c791e4ef95671c9e/main.spi
00:06:09 v #5729 > >
00:06:09 v #5730 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:09 v #5731 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:09 v #5732 > > │ ### near_price_in_usd                                                        │
00:06:09 v #5733 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:09 v #5734 > >
00:06:09 v #5735 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:09 v #5736 > > inl near_price_in_usd () =
00:06:09 v #5737 > >     6.68f64
00:06:09 v #5738 > 00:06:08 d #347 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55ea73a9fc80029b9b7b612be4867456ff157924660ca8d50ce9b64c66f773d1/main.spi
00:06:09 v #5739 > >
00:06:09 v #5740 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:09 v #5741 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:09 v #5742 > > │ ### gas_to_usd                                                               │
00:06:09 v #5743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:09 v #5744 > >
00:06:09 v #5745 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:09 v #5746 > > inl gas_to_usd (gas : u64) =
00:06:09 v #5747 > >     (gas |> f64) / 10_000_000_000_000_000 * near_price_in_usd ()
00:06:09 v #5748 > 00:06:08 d #348 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a29d1d2a303c8aa892a8f6578d9742c500991a5418a3ef03960fc982aa5804a3/main.spi
00:06:09 v #5749 > >
00:06:09 v #5750 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:09 v #5751 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:09 v #5752 > > │ ### tokens_to_usd                                                            │
00:06:09 v #5753 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:09 v #5754 > >
00:06:09 v #5755 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:09 v #5756 > > inl tokens_to_usd (tokens : rust.u128) =
00:06:09 v #5757 > >     (tokens |> rust.f64) / 1_000_000_000_000_000_000_000_000 * near_price_in_usd
00:06:09 v #5758 > > ()
00:06:10 v #5759 > 00:06:09 d #349 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1073b6507d4e1494a52051ef04db70bad221a099a96a8ee51654fd7ab94d436/main.spi
00:06:10 v #5760 > 00:00:19 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 17158 }
00:06:10 v #5761 > 00:00:19 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/rust/near.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/rust/near.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:11 v #5762 > 00:00:21 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/rust/near.dib.ipynb to html
00:06:11 v #5763 > 00:00:21 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:06:11 v #5764 > 00:00:21 v #7 !   validate(nb)
00:06:12 v #5765 > 00:00:21 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:06:12 v #5766 > 00:00:21 v #9 !   return _pygments_highlight(
00:06:12 v #5767 > 00:00:22 v #10 ! [NbConvertApp] Writing 322926 bytes to c:\home\git\polyglot\lib\spiral\rust\near.dib.html
00:06:12 v #5768 > 00:00:22 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 860 }
00:06:12 v #5769 > 00:00:22 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 860 }
00:06:12 v #5770 > 00:00:22 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/near.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/near.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:13 v #5771 > 00:00:22 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:06:13 v #5772 > 00:00:22 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:06:13 v #5773 > 00:00:22 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 18077 }
00:06:13 d #5774 runtime.execute_with_options_async / { exit_code = 0; output_length = 21355 }
00:06:13 d #7 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path rust/near.dib --retries 3
00:06:13 d #5775 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path rust/near_workspaces.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path rust/near_workspaces.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:13 v #5776 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "rust/near_workspaces.dib", "--retries", "3"])) }
00:06:13 v #5777 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib" --output-path "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:06:15 v #5778 > >
00:06:15 v #5779 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:15 v #5780 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:15 v #5781 > > │ # near_workspaces                                                            │
00:06:15 v #5782 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:18 v #5783 > >
00:06:18 v #5784 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:18 v #5785 > > open rust
00:06:18 v #5786 > > open rust.rust_operators
00:06:19 v #5787 > 00:06:18 d #350 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8266c97ee08f99dd628d38d34dfdec325b2e42739e161f0fc981fa7038e52f8e/main.spi
00:06:20 v #5788 > >
00:06:20 v #5789 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:20 v #5790 > > //// test
00:06:20 v #5791 > >
00:06:20 v #5792 > > open testing
00:06:20 v #5793 > 00:06:19 d #351 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a3a626ef4bf9b0298d493c0dd1473daff6ca9f38ef5fc9c1e506770f76e69687/main.spi
00:06:20 v #5794 > >
00:06:20 v #5795 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:20 v #5796 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:20 v #5797 > > │ ## near                                                                      │
00:06:20 v #5798 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:20 v #5799 > >
00:06:20 v #5800 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:20 v #5801 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:20 v #5802 > > │ ### near_token_workspaces                                                    │
00:06:20 v #5803 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:20 v #5804 > >
00:06:20 v #5805 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:20 v #5806 > > nominal near_token_workspaces =
00:06:20 v #5807 > >     `(
00:06:20 v #5808 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:20 v #5809 > > Fable.Core.Emit(\"near_workspaces::types::NearToken\")>]]\n#endif\ntype
00:06:20 v #5810 > > near_workspaces_types_NearToken = class end"
00:06:20 v #5811 > >         $'' : $'near_workspaces_types_NearToken'
00:06:20 v #5812 > >     )
00:06:20 v #5813 > 00:06:20 d #352 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a4a332bdeea41610f8e67abddabba318f44135f8b4b7a923ffa311659ec58431/main.spi
00:06:20 v #5814 > >
00:06:20 v #5815 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:20 v #5816 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:20 v #5817 > > │ ### gas                                                                      │
00:06:20 v #5818 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:20 v #5819 > >
00:06:20 v #5820 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:20 v #5821 > > nominal gas =
00:06:20 v #5822 > >     `(
00:06:20 v #5823 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:20 v #5824 > > Fable.Core.Emit(\"near_workspaces::types::Gas\")>]]\n#endif\ntype
00:06:20 v #5825 > > near_workspaces_types_Gas = class end"
00:06:20 v #5826 > >         $'' : $'near_workspaces_types_Gas'
00:06:20 v #5827 > >     )
00:06:21 v #5828 > 00:06:20 d #353 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48e9f1253388bea09b65b4440d4232a7fa9af23f3be8ec90231d292e1c9c198b/main.spi
00:06:21 v #5829 > >
00:06:21 v #5830 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:21 v #5831 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:21 v #5832 > > │ ### near_workspaces_error                                                    │
00:06:21 v #5833 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:21 v #5834 > >
00:06:21 v #5835 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:21 v #5836 > > nominal near_workspaces_error =
00:06:21 v #5837 > >     `(
00:06:21 v #5838 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:21 v #5839 > > Fable.Core.Emit(\"near_workspaces::error::Error\")>]]\n#endif\ntype
00:06:21 v #5840 > > near_workspaces_error_Error = class end"
00:06:21 v #5841 > >         $'' : $'near_workspaces_error_Error'
00:06:21 v #5842 > >     )
00:06:21 v #5843 > 00:06:20 d #354 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/80ef4ae3b6f508c2aa6173b6b9c9c4b19f5c45c049cf8568652b0e1337d509fa/main.spi
00:06:21 v #5844 > >
00:06:21 v #5845 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:21 v #5846 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:21 v #5847 > > │ ### sandbox                                                                  │
00:06:21 v #5848 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:21 v #5849 > >
00:06:21 v #5850 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:21 v #5851 > > nominal sandbox =
00:06:21 v #5852 > >     `(
00:06:21 v #5853 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:21 v #5854 > > Fable.Core.Emit(\"near_workspaces::network::Sandbox\")>]]\n#endif\ntype
00:06:21 v #5855 > > near_workspaces_network_Sandbox = class end"
00:06:21 v #5856 > >         $'' : $'near_workspaces_network_Sandbox'
00:06:21 v #5857 > >     )
00:06:21 v #5858 > 00:06:21 d #355 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a2e16fc7b880673d89cb7d121890a0fd56e2941212cdc7be5178d6e644f52655/main.spi
00:06:22 v #5859 > >
00:06:22 v #5860 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:22 v #5861 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:22 v #5862 > > │ ### worker                                                                   │
00:06:22 v #5863 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:22 v #5864 > >
00:06:22 v #5865 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:22 v #5866 > > nominal worker t =
00:06:22 v #5867 > >     `(
00:06:22 v #5868 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:22 v #5869 > > Fable.Core.Emit(\"near_workspaces::Worker<$0>\")>]]\n#endif\ntype
00:06:22 v #5870 > > near_workspaces_Worker<'T> = class end"
00:06:22 v #5871 > >         $'' : $'near_workspaces_Worker<`t>'
00:06:22 v #5872 > >     )
00:06:22 v #5873 > 00:06:21 d #356 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b8613a9562c163ec7ac5d759b2cee4c07d1649a10a47e166481a80b8a57e32f7/main.spi
00:06:22 v #5874 > >
00:06:22 v #5875 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:22 v #5876 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:22 v #5877 > > │ ### contract                                                                 │
00:06:22 v #5878 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:22 v #5879 > >
00:06:22 v #5880 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:22 v #5881 > > nominal contract =
00:06:22 v #5882 > >     `(
00:06:22 v #5883 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:22 v #5884 > > Fable.Core.Emit(\"near_workspaces::Contract\")>]]\n#endif\ntype
00:06:22 v #5885 > > near_workspaces_Contract = class end"
00:06:22 v #5886 > >         $'' : $'near_workspaces_Contract'
00:06:22 v #5887 > >     )
00:06:22 v #5888 > 00:06:22 d #357 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ee4a144eff80ffafbdd88b7ac3a9cce88327134129ae7d492fe88116de200a36/main.spi
00:06:23 v #5889 > >
00:06:23 v #5890 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:23 v #5891 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:23 v #5892 > > │ ### call_transaction                                                         │
00:06:23 v #5893 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:23 v #5894 > >
00:06:23 v #5895 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:23 v #5896 > > nominal call_transaction =
00:06:23 v #5897 > >     `(
00:06:23 v #5898 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:23 v #5899 > > Fable.Core.Emit(\"near_workspaces::operations::CallTransaction\")>]]\n#endif\nty
00:06:23 v #5900 > > pe near_workspaces_operations_CallTransaction = class end"
00:06:23 v #5901 > >         $'' : $'near_workspaces_operations_CallTransaction'
00:06:23 v #5902 > >     )
00:06:23 v #5903 > 00:06:22 d #358 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eadbc08362cd332026ed6472a96740623d4b349d2a75c465e9bfb14fd8a8978d/main.spi
00:06:23 v #5904 > >
00:06:23 v #5905 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:23 v #5906 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:23 v #5907 > > │ ### execution_final_result                                                   │
00:06:23 v #5908 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:23 v #5909 > >
00:06:23 v #5910 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:23 v #5911 > > nominal execution_final_result =
00:06:23 v #5912 > >     `(
00:06:23 v #5913 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:23 v #5914 > > Fable.Core.Emit(\"near_workspaces::result::ExecutionFinalResult\")>]]\n#endif\nt
00:06:23 v #5915 > > ype near_workspaces_result_ExecutionFinalResult = class end"
00:06:23 v #5916 > >         $'' : $'near_workspaces_result_ExecutionFinalResult'
00:06:23 v #5917 > >     )
00:06:23 v #5918 > 00:06:22 d #359 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e6ad89c204a2e3f1c2943b00b3104ab6a8263eb1967b2bc2b0bc7577b28809f6/main.spi
00:06:23 v #5919 > >
00:06:23 v #5920 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:23 v #5921 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:23 v #5922 > > │ ### execution_result                                                         │
00:06:23 v #5923 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:23 v #5924 > >
00:06:23 v #5925 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:23 v #5926 > > nominal execution_result t =
00:06:23 v #5927 > >     `(
00:06:23 v #5928 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:23 v #5929 > > Fable.Core.Emit(\"near_workspaces::result::ExecutionResult<$0>\")>]]\n#endif\nty
00:06:23 v #5930 > > pe near_workspaces_result_ExecutionResult<'T> = class end"
00:06:23 v #5931 > >         $'' : $'near_workspaces_result_ExecutionResult<`t>'
00:06:23 v #5932 > >     )
00:06:24 v #5933 > 00:06:23 d #360 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8325db069108fb48de770c6c4275a89eeb6c7ddfe18341497d2dad2b5d2db72b/main.spi
00:06:24 v #5934 > >
00:06:24 v #5935 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:24 v #5936 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:24 v #5937 > > │ ### execution_success                                                        │
00:06:24 v #5938 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:24 v #5939 > >
00:06:24 v #5940 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:24 v #5941 > > nominal execution_success =
00:06:24 v #5942 > >     `(
00:06:24 v #5943 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:24 v #5944 > > Fable.Core.Emit(\"near_workspaces::result::ExecutionSuccess\")>]]\n#endif\ntype
00:06:24 v #5945 > > near_workspaces_result_ExecutionSuccess = class end"
00:06:24 v #5946 > >         $'' : $'near_workspaces_result_ExecutionSuccess'
00:06:24 v #5947 > >     )
00:06:24 v #5948 > 00:06:23 d #361 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3063a31ff7830a84131992d42169435791395fe637e1d96fc1ef7dc4e133717b/main.spi
00:06:24 v #5949 > >
00:06:24 v #5950 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:24 v #5951 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:24 v #5952 > > │ ### execution_failure                                                        │
00:06:24 v #5953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:24 v #5954 > >
00:06:24 v #5955 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:24 v #5956 > > nominal execution_failure =
00:06:24 v #5957 > >     `(
00:06:24 v #5958 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:24 v #5959 > > Fable.Core.Emit(\"near_workspaces::result::ExecutionFailure\")>]]\n#endif\ntype
00:06:24 v #5960 > > near_workspaces_result_ExecutionFailure = class end"
00:06:24 v #5961 > >         $'' : $'near_workspaces_result_ExecutionFailure'
00:06:24 v #5962 > >     )
00:06:24 v #5963 > 00:06:23 d #362 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6c307e93023aea5efa803ba7becfb388622fe504592b136f31cd63f104aa1e99/main.spi
00:06:24 v #5964 > >
00:06:24 v #5965 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:24 v #5966 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:24 v #5967 > > │ ### execution_outcome                                                        │
00:06:24 v #5968 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:24 v #5969 > >
00:06:24 v #5970 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:24 v #5971 > > nominal execution_outcome =
00:06:24 v #5972 > >     `(
00:06:24 v #5973 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:24 v #5974 > > Fable.Core.Emit(\"near_workspaces::result::ExecutionOutcome\")>]]\n#endif\ntype
00:06:24 v #5975 > > near_workspaces_result_ExecutionOutcome = class end"
00:06:24 v #5976 > >         $'' : $'near_workspaces_result_ExecutionOutcome'
00:06:24 v #5977 > >     )
00:06:25 v #5978 > 00:06:24 d #363 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f43e816363b2657098cb719ad993b36ad50504ecd9a73d87f224dd5b5f27b4ae/main.spi
00:06:25 v #5979 > >
00:06:25 v #5980 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:25 v #5981 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:25 v #5982 > > │ ### sandbox_worker                                                           │
00:06:25 v #5983 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:25 v #5984 > >
00:06:25 v #5985 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:25 v #5986 > > inl sandbox_worker () : resultm.result' (worker sandbox) near_workspaces_error =
00:06:25 v #5987 > >     !\($'"near_workspaces::sandbox().await"')
00:06:25 v #5988 > 00:06:24 d #364 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f188cdaf339d959328fc063ede22b0a0cee671798acb236d6f9e80e3a37e6cad/main.spi
00:06:25 v #5989 > >
00:06:25 v #5990 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:25 v #5991 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:25 v #5992 > > │ ### dev_deploy                                                               │
00:06:25 v #5993 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:25 v #5994 > >
00:06:25 v #5995 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:25 v #5996 > > inl dev_deploy
00:06:25 v #5997 > >     (wasm : am'.vec u8)
00:06:25 v #5998 > >     (worker : worker sandbox)
00:06:25 v #5999 > >     : async.future_pin (resultm.result' contract near_workspaces_error)
00:06:25 v #6000 > >     =
00:06:25 v #6001 > >     inl worker = worker |> rust.emit
00:06:25 v #6002 > >     !\\(wasm, $'"Box::pin(!worker.dev_deploy(&$0))"')
00:06:26 v #6003 > 00:06:25 d #365 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06b40c0ef4590f33f6ca1a3a08001fd63d13b29170998866fae0bd014b1b5d17/main.spi
00:06:26 v #6004 > >
00:06:26 v #6005 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:26 v #6006 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:26 v #6007 > > │ ### call                                                                     │
00:06:26 v #6008 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:26 v #6009 > >
00:06:26 v #6010 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:26 v #6011 > > inl call (fn_name : string) (contract : contract) : call_transaction =
00:06:26 v #6012 > >     !\\((contract, fn_name), $'"$0.call(&*$1)"')
00:06:26 v #6013 > 00:06:25 d #366 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df18111f48c21781cf7f1bcab524485371f1619e272bb407fde8033481404325/main.spi
00:06:26 v #6014 > >
00:06:26 v #6015 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:26 v #6016 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:26 v #6017 > > │ ### logs                                                                     │
00:06:26 v #6018 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:26 v #6019 > >
00:06:26 v #6020 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:26 v #6021 > > inl logs (result : execution_final_result) : am'.vec (rust.ref sm'.str) =
00:06:26 v #6022 > >     !\($'"!result.logs()"')
00:06:26 v #6023 > 00:06:26 d #367 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5622e8165ce5c57224c9800f14385778fb5d886d1dfcdf37a656709ec137a3f0/main.spi
00:06:27 v #6024 > >
00:06:27 v #6025 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:27 v #6026 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:27 v #6027 > > │ ### into_result                                                              │
00:06:27 v #6028 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:27 v #6029 > >
00:06:27 v #6030 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:27 v #6031 > > inl into_result
00:06:27 v #6032 > >     (result : execution_final_result)
00:06:27 v #6033 > >     : resultm.result' execution_success execution_failure
00:06:27 v #6034 > >     =
00:06:27 v #6035 > >     !\\(result, $'"$0.into_result()"')
00:06:27 v #6036 > 00:06:26 d #368 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ce4ac2e773da7172ded3786db119b853521688dc4bbdb45632e180220da9f1f/main.spi
00:06:27 v #6037 > >
00:06:27 v #6038 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:27 v #6039 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:27 v #6040 > > │ ### receipt_failures                                                         │
00:06:27 v #6041 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:27 v #6042 > >
00:06:27 v #6043 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:27 v #6044 > > inl receipt_failures (result : execution_final_result) : am'.vec (rust.ref
00:06:27 v #6045 > > execution_outcome) =
00:06:27 v #6046 > >     inl result = join result
00:06:27 v #6047 > >     !\($'"!result.receipt_failures()"')
00:06:27 v #6048 > 00:06:26 d #369 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0afda3bb1840496aa5f57f2131b5cfafaf2cd05b011dbf2d9247eaf61c11782c/main.spi
00:06:27 v #6049 > >
00:06:27 v #6050 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:27 v #6051 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:27 v #6052 > > │ ### receipt_outcomes                                                         │
00:06:27 v #6053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:27 v #6054 > >
00:06:27 v #6055 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:27 v #6056 > > inl receipt_outcomes (result : execution_final_result) : am'.vec
00:06:27 v #6057 > > execution_outcome =
00:06:27 v #6058 > >     inl result = join result
00:06:27 v #6059 > >     inl result : rust.ref (am'.slice execution_outcome) =
00:06:27 v #6060 > > !\($'"!result.receipt_outcomes()"')
00:06:27 v #6061 > >     result |> rust.into
00:06:28 v #6062 > 00:06:27 d #370 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0bd6b14f0f2af5b6b2c8567eb0bc77a41fe1a12e473a551aa35832838cde0302/main.spi
00:06:28 v #6063 > >
00:06:28 v #6064 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:28 v #6065 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:28 v #6066 > > │ ### json                                                                     │
00:06:28 v #6067 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:28 v #6068 > >
00:06:28 v #6069 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:28 v #6070 > > inl json (result : execution_final_result) : resultm.result' sm'.std_string
00:06:28 v #6071 > > near_workspaces_error =
00:06:28 v #6072 > >     !\\(result, $'"$0.json()"')
00:06:28 v #6073 > 00:06:27 d #371 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4db01e44ba90c81988f2b2b35cd1d5365875bc910793f9c615b5f0c2e66e1cfa/main.spi
00:06:28 v #6074 > >
00:06:28 v #6075 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:28 v #6076 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:28 v #6077 > > │ ### borsh                                                                    │
00:06:28 v #6078 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:28 v #6079 > >
00:06:28 v #6080 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:28 v #6081 > > inl borsh (result : execution_final_result) : resultm.result' sm'.std_string
00:06:28 v #6082 > > near_workspaces_error =
00:06:28 v #6083 > >     !\\(result, $'"$0.borsh()"')
00:06:29 v #6084 > 00:06:28 d #372 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dbb1f9aa1914bc743a731e45f7cd4d574b8db9fd9f68107a577e8bb1403e784b/main.spi
00:06:29 v #6085 > >
00:06:29 v #6086 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:29 v #6087 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:29 v #6088 > > │ ### total_gas_burnt                                                          │
00:06:29 v #6089 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:29 v #6090 > >
00:06:29 v #6091 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:29 v #6092 > > inl total_gas_burnt (result : execution_final_result) : gas =
00:06:29 v #6093 > >     !\\(result, $'"$0.total_gas_burnt"')
00:06:29 v #6094 > 00:06:28 d #373 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d92c56e75ab304261903e78388554422d50d6e27708a5fc61bb851e4641d1b24/main.spi
00:06:29 v #6095 > >
00:06:29 v #6096 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:29 v #6097 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:29 v #6098 > > │ ### as_gas                                                                   │
00:06:29 v #6099 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:29 v #6100 > >
00:06:29 v #6101 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:29 v #6102 > > inl as_gas (gas : gas) : u64 =
00:06:29 v #6103 > >     !\\(gas, $'"$0.as_gas()"')
00:06:29 v #6104 > 00:06:29 d #374 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0c3f47af93f3f84fcfbe274c06b202eb54bd9120ca21be9029ae850a3edc16cb/main.spi
00:06:30 v #6105 > >
00:06:30 v #6106 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:30 v #6107 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:30 v #6108 > > │ ### outcomes                                                                 │
00:06:30 v #6109 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:30 v #6110 > >
00:06:30 v #6111 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:30 v #6112 > > inl outcomes (result : execution_final_result) : am'.vec (rust.ref
00:06:30 v #6113 > > execution_outcome) =
00:06:30 v #6114 > >     inl result = result |> rust.emit
00:06:30 v #6115 > >     !\($'"!result.outcomes()"')
00:06:30 v #6116 > 00:06:29 d #375 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2766fec13b8a6f0dfac82069362c1b70f6324a39d7e8c2c65dd1d76311d6e638/main.spi
00:06:30 v #6117 > >
00:06:30 v #6118 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:30 v #6119 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:30 v #6120 > > │ ### is_success                                                               │
00:06:30 v #6121 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:30 v #6122 > >
00:06:30 v #6123 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:30 v #6124 > > inl is_success (outcome : execution_outcome) : bool =
00:06:30 v #6125 > >     !\\(outcome, $'"$0.is_success()"')
00:06:30 v #6126 > 00:06:29 d #376 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb42326daa42a9eedeb6e63903d879764fc6ce8efedc51e47096be167bca5da2/main.spi
00:06:30 v #6127 > >
00:06:30 v #6128 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:30 v #6129 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:30 v #6130 > > │ ### gas_burnt                                                                │
00:06:30 v #6131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:30 v #6132 > >
00:06:30 v #6133 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:30 v #6134 > > inl gas_burnt (outcome : execution_outcome) : gas =
00:06:30 v #6135 > >     !\\(outcome, $'"$0.gas_burnt"')
00:06:31 v #6136 > 00:06:30 d #377 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6f89b39bfad4c7775076e9db8a1ea0d7e62d5ba16d758fed870e40d0237cf310/main.spi
00:06:31 v #6137 > >
00:06:31 v #6138 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:31 v #6139 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:31 v #6140 > > │ ### tokens_burnt                                                             │
00:06:31 v #6141 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:31 v #6142 > >
00:06:31 v #6143 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:31 v #6144 > > inl tokens_burnt (outcome : execution_outcome) : near_token_workspaces =
00:06:31 v #6145 > >     !\\(outcome, $'"$0.tokens_burnt"')
00:06:31 v #6146 > 00:06:30 d #378 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce341022e5378a7e84440385df40c4dd4e0505564d3e8dcc17e5420a5c7d8554/main.spi
00:06:31 v #6147 > >
00:06:31 v #6148 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:31 v #6149 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:31 v #6150 > > │ ### transact                                                                 │
00:06:31 v #6151 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:31 v #6152 > >
00:06:31 v #6153 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:31 v #6154 > > inl transact
00:06:31 v #6155 > >     (call : call_transaction)
00:06:31 v #6156 > >     : async.future_pin (resultm.result' execution_final_result
00:06:31 v #6157 > > near_workspaces_error)
00:06:31 v #6158 > >     =
00:06:31 v #6159 > >     !\($'"Box::pin(!call.transact())"')
00:06:31 v #6160 > 00:06:31 d #379 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c3d88db71624599fcefff2197641cdab45e060e2f6e1bf8ead45c2ac53e79885/main.spi
00:06:32 v #6161 > >
00:06:32 v #6162 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:32 v #6163 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:32 v #6164 > > │ ### gas                                                                      │
00:06:32 v #6165 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:32 v #6166 > >
00:06:32 v #6167 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:32 v #6168 > > inl gas
00:06:32 v #6169 > >     (gas : gas)
00:06:32 v #6170 > >     (call : call_transaction)
00:06:32 v #6171 > >     : call_transaction
00:06:32 v #6172 > >     =
00:06:32 v #6173 > >     !\($'"!call.gas(!gas)"')
00:06:32 v #6174 > 00:06:31 d #380 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00749df98a0c0c55f98a20913895077c981a0d42f7fe26883ef27fe9661c7844/main.spi
00:06:32 v #6175 > >
00:06:32 v #6176 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:32 v #6177 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:32 v #6178 > > │ ### from_tgas                                                                │
00:06:32 v #6179 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:32 v #6180 > >
00:06:32 v #6181 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:32 v #6182 > > inl from_tgas
00:06:32 v #6183 > >     (tgas : i32)
00:06:32 v #6184 > >     : gas
00:06:32 v #6185 > >     =
00:06:32 v #6186 > >     !\($'"near_workspaces::types::Gas::from_tgas(!tgas)"')
00:06:32 v #6187 > 00:06:32 d #381 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/45dc2872ed4411bcbe15c9076ca0391bd2ad936b2ea90b30b8a30eb0ede639a1/main.spi
00:06:33 v #6188 > >
00:06:33 v #6189 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:33 v #6190 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:33 v #6191 > > │ ### print_usd                                                                │
00:06:33 v #6192 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:33 v #6193 > >
00:06:33 v #6194 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:33 v #6195 > > inl print_usd retry (result : execution_final_result) =
00:06:33 v #6196 > >     inl total_gas_burnt = result |> total_gas_burnt |> as_gas
00:06:33 v #6197 > >     inl total_gas_burnt_usd = total_gas_burnt |> near.gas_to_usd
00:06:33 v #6198 > >
00:06:33 v #6199 > >     trace Info
00:06:33 v #6200 > >         fun () => "near_workspaces.print_usd"
00:06:33 v #6201 > >         fun () => { retry total_gas_burnt_usd total_gas_burnt }
00:06:33 v #6202 > >
00:06:33 v #6203 > >     result
00:06:33 v #6204 > >     |> outcomes
00:06:33 v #6205 > >     |> iter.into_iter
00:06:33 v #6206 > >     |> iter.cloned
00:06:33 v #6207 > >     |> iter.for_each fun outcome =>
00:06:33 v #6208 > >         inl is_success = outcome |> is_success
00:06:33 v #6209 > >
00:06:33 v #6210 > >         inl gas_burnt = outcome |> gas_burnt |> as_gas
00:06:33 v #6211 > >         inl gas_burnt_usd = gas_burnt |> near.gas_to_usd
00:06:33 v #6212 > >
00:06:33 v #6213 > >         inl tokens_burnt = outcome |> tokens_burnt |> near.as_yoctonear
00:06:33 v #6214 > >         inl tokens_burnt_usd = tokens_burnt |> near.tokens_to_usd
00:06:33 v #6215 > >
00:06:33 v #6216 > >         trace Info
00:06:33 v #6217 > >             fun () => "near_workspaces.print_usd / outcome"
00:06:33 v #6218 > >             fun () => { is_success gas_burnt_usd tokens_burnt_usd gas_burnt
00:06:33 v #6219 > > tokens_burnt }
00:06:33 v #6220 > 00:06:32 d #382 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ac1258a384a964f29b6f221dae23982139ced413543759dd41edb15292a76e2/main.spi
00:06:33 v #6221 > 00:00:20 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 20065 }
00:06:33 v #6222 > 00:00:20 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:34 v #6223 > 00:00:21 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.ipynb to html
00:06:34 v #6224 > 00:00:21 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:06:34 v #6225 > 00:00:21 v #7 !   validate(nb)
00:06:35 v #6226 > 00:00:22 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:06:35 v #6227 > 00:00:22 v #9 !   return _pygments_highlight(
00:06:36 v #6228 > 00:00:22 v #10 ! [NbConvertApp] Writing 329820 bytes to c:\home\git\polyglot\lib\spiral\rust\near_workspaces.dib.html
00:06:36 v #6229 > 00:00:22 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 882 }
00:06:36 v #6230 > 00:00:22 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 882 }
00:06:36 v #6231 > 00:00:22 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:36 v #6232 > 00:00:23 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:06:36 v #6233 > 00:00:23 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:06:36 v #6234 > 00:00:23 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 21006 }
00:06:36 d #6235 runtime.execute_with_options_async / { exit_code = 0; output_length = 24519 }
00:06:36 d #8 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path rust/near_workspaces.dib --retries 3
00:06:36 d #6236 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path testing.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path testing.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:36 v #6237 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "testing.dib", "--retries", "3"])) }
00:06:36 v #6238 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/testing.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/testing.dib" --output-path "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:06:38 v #6239 > >
00:06:38 v #6240 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:38 v #6241 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:38 v #6242 > > │ # testing                                                                    │
00:06:38 v #6243 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:38 v #6244 > >
00:06:38 v #6245 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:38 v #6246 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:38 v #6247 > > │ ## testing                                                                   │
00:06:38 v #6248 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:38 v #6249 > >
00:06:38 v #6250 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:38 v #6251 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:38 v #6252 > > │ ### testing_trace                                                            │
00:06:38 v #6253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:42 v #6254 > >
00:06:42 v #6255 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:42 v #6256 > > union testing_trace =
00:06:42 v #6257 > >     | Console
00:06:42 v #6258 > >     | Trace
00:06:42 v #6259 > >     | TraceRaw
00:06:42 v #6260 > >     | Silent
00:06:42 v #6261 > 00:06:41 d #383 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd031ce47be9199f940836c7bb2f3a3f8da66fe1eb0950bd3ad622437e0186ee/main.spi
00:06:43 v #6262 > >
00:06:43 v #6263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:43 v #6264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:43 v #6265 > > │ ### __expect                                                                 │
00:06:43 v #6266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:43 v #6267 > >
00:06:43 v #6268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:43 v #6269 > > inl rec __expect fn trace' name b a =
00:06:43 v #6270 > >     inl result = fn a b
00:06:43 v #6271 > >     inl result =
00:06:43 v #6272 > >         result || join result
00:06:43 v #6273 > >     inl get_raw_text () =
00:06:43 v #6274 > >         backend_switch {
00:06:43 v #6275 > >             Fsharp = fun () => $'$"{!name} / actual: %A{!a} / expected: %A{!b}"'
00:06:43 v #6276 > > : string
00:06:43 v #6277 > >             Python = fun () => $'f"{!name} / actual: {!a} / expected: {!b}"' :
00:06:43 v #6278 > > string
00:06:43 v #6279 > >         }
00:06:43 v #6280 > >     match trace' with
00:06:43 v #6281 > >     | Console =>
00:06:43 v #6282 > >         inl text = get_raw_text ()
00:06:43 v #6283 > >         text |> console.write_line
00:06:43 v #6284 > >         text
00:06:43 v #6285 > >     | Trace =>
00:06:43 v #6286 > >         trace Info (fun () => name) fun () => { actual = a; expected = b }
00:06:43 v #6287 > >         get_raw_text ()
00:06:43 v #6288 > >     | TraceRaw =>
00:06:43 v #6289 > >         inl text = get_raw_text ()
00:06:43 v #6290 > >         trace_raw Info fun () => text
00:06:43 v #6291 > >         text
00:06:43 v #6292 > >     | Silent => reflection.nameof { __expect }
00:06:43 v #6293 > >     |> assert result
00:06:43 v #6294 > 00:06:42 d #384 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92c84dd2a11071b6443c19592ff2e92b38fb0efbfdc9c755a1ea03c6cafd2a78/main.spi
00:06:43 v #6295 > >
00:06:43 v #6296 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:43 v #6297 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:43 v #6298 > > │ ### __assert_approx_eq                                                       │
00:06:43 v #6299 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:43 v #6300 > >
00:06:43 v #6301 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:43 v #6302 > > inl rec __assert_approx_eq trace e b a =
00:06:43 v #6303 > >     __expect
00:06:43 v #6304 > >         (fun a b => abs (b - a) < (e |> optionm.defaultWith 0.00000001))
00:06:43 v #6305 > >         trace
00:06:43 v #6306 > >         (reflection.nameof { __assert_approx_eq })
00:06:43 v #6307 > >         b
00:06:43 v #6308 > >         a
00:06:43 v #6309 > >
00:06:43 v #6310 > > inl _assert_approx_eq e b a =
00:06:43 v #6311 > >     __assert_approx_eq Console e b a
00:06:43 v #6312 > 00:06:43 d #385 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/545675e8002d755958b5429890e7f54da150c30452656aad2e8252768a6ef2e9/main.spi
00:06:43 v #6313 > >
00:06:43 v #6314 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:43 v #6315 > > //// test
00:06:43 v #6316 > > ///! fsharp
00:06:43 v #6317 > > ///! cuda
00:06:43 v #6318 > > ///! rust
00:06:43 v #6319 > > ///! typescript
00:06:43 v #6320 > > ///! python
00:06:43 v #6321 > >
00:06:43 v #6322 > > 12.345f64
00:06:43 v #6323 > > |> _assert_approx_eq (Some 0.0001f64) 12.345f64
00:06:44 v #6324 > 00:06:43 d #386 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a92d6398607d8d75364062693c61d5a7d3ff52d0ef5440084b32d8ca7952819/main.spi
00:06:44 v #6325 > 00:06:43 d #387 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc3b4e2f265902631ddd73339121bef29bfd86135cf1fd8aca6422d96bf02394/main.spi
00:07:03 v #6326 > >
00:07:03 v #6327 > > ╭─[ 19.76s - return value ]────────────────────────────────────────────────────╮
00:07:03 v #6328 > > │ .py output (Cuda):                                                           │
00:07:03 v #6329 > > │ __assert_approx_eq / actual: 12.345 / expected: 12.345                       │
00:07:03 v #6330 > > │                                                                              │
00:07:03 v #6331 > > │ .rs output:                                                                  │
00:07:03 v #6332 > > │ __assert_approx_eq / actual: 12.345 / expected: 12.345                       │
00:07:03 v #6333 > > │                                                                              │
00:07:03 v #6334 > > │ .ts output:                                                                  │
00:07:03 v #6335 > > │ __assert_approx_eq / actual: 12.345 / expected: 12.345                       │
00:07:03 v #6336 > > │                                                                              │
00:07:03 v #6337 > > │ .py output:                                                                  │
00:07:03 v #6338 > > │ __assert_approx_eq / actual: 12.345 / expected: 12.345                       │
00:07:03 v #6339 > > │                                                                              │
00:07:03 v #6340 > > │                                                                              │
00:07:03 v #6341 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:03 v #6342 > >
00:07:03 v #6343 > > ╭─[ 19.76s - stdout ]──────────────────────────────────────────────────────────╮
00:07:03 v #6344 > > │ .fsx output:                                                                 │
00:07:03 v #6345 > > │ __assert_approx_eq / actual: 12.345 / expected: 12.345                       │
00:07:03 v #6346 > > │                                                                              │
00:07:03 v #6347 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:03 v #6348 > >
00:07:03 v #6349 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:03 v #6350 > > //// test
00:07:03 v #6351 > > //// print_code
00:07:03 v #6352 > >
00:07:03 v #6353 > > 1f64
00:07:03 v #6354 > > |> __assert_approx_eq Console (Some 3) 2
00:07:03 v #6355 > 00:07:03 d #388 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4c7071cdbeda6bcd5ab7d77cd9f18aa43b017ca3457c030af83d20796c294dd4/main.spi
00:07:04 v #6356 > >
00:07:04 v #6357 > > ╭─[ 448.78ms - stdout ]────────────────────────────────────────────────────────╮
00:07:04 v #6358 > > │ let rec closure0 (v0 : string) () : unit =                                   │
00:07:04 v #6359 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:07:04 v #6360 > > │     v1 v0                                                                    │
00:07:04 v #6361 > > │ and method0 () : unit =                                                      │
00:07:04 v #6362 > > │     let v0 : string = "__assert_approx_eq"                                   │
00:07:04 v #6363 > > │     let v1 : string = $"{v0} / actual: %A{1.0} / expected: %A{2.0}"          │
00:07:04 v #6364 > > │     let v4 : unit = ()                                                       │
00:07:04 v #6365 > > │     let v5 : (unit -> unit) = closure0(v1)                                   │
00:07:04 v #6366 > > │     let v6 : unit = (fun () -> v5 (); v4) ()                                 │
00:07:04 v #6367 > > │     ()                                                                       │
00:07:04 v #6368 > > │ method0()                                                                    │
00:07:04 v #6369 > > │                                                                              │
00:07:04 v #6370 > > │ __assert_approx_eq / actual: 1.0 / expected: 2.0                             │
00:07:04 v #6371 > > │                                                                              │
00:07:04 v #6372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:04 v #6373 > >
00:07:04 v #6374 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:04 v #6375 > > //// test
00:07:04 v #6376 > > //// print_code
00:07:04 v #6377 > >
00:07:04 v #6378 > > (dyn 1f64)
00:07:04 v #6379 > > |> _assert_approx_eq (Some 3) 2
00:07:04 v #6380 > 00:07:03 d #389 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1916a197bcb5a5b1c417f4db82eec778dc4126dbe5aa1992742d19af28d3fbe1/main.spi
00:07:04 v #6381 > >
00:07:04 v #6382 > > ╭─[ 557.66ms - stdout ]────────────────────────────────────────────────────────╮
00:07:04 v #6383 > > │ let rec method1 (v0 : bool) : bool =                                         │
00:07:04 v #6384 > > │     v0                                                                       │
00:07:04 v #6385 > > │ and closure0 (v0 : string) () : unit =                                       │
00:07:04 v #6386 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:07:04 v #6387 > > │     v1 v0                                                                    │
00:07:04 v #6388 > > │ and method0 () : unit =                                                      │
00:07:04 v #6389 > > │     let v0 : float = 1.0                                                     │
00:07:04 v #6390 > > │     let v1 : float = 2.0 - v0                                                │
00:07:04 v #6391 > > │     let v2 : float =  -v1                                                    │
00:07:04 v #6392 > > │     let v3 : bool = v1 >= v2                                                 │
00:07:04 v #6393 > > │     let v4 : float =                                                         │
00:07:04 v #6394 > > │         if v3 then                                                           │
00:07:04 v #6395 > > │             v1                                                               │
00:07:04 v #6396 > > │         else                                                                 │
00:07:04 v #6397 > > │             v2                                                               │
00:07:04 v #6398 > > │     let v5 : bool = v4 < 3.0                                                 │
00:07:04 v #6399 > > │     let v7 : bool =                                                          │
00:07:04 v #6400 > > │         if v5 then                                                           │
00:07:04 v #6401 > > │             true                                                             │
00:07:04 v #6402 > > │         else                                                                 │
00:07:04 v #6403 > > │             method1(v5)                                                      │
00:07:04 v #6404 > > │     let v8 : string = "__assert_approx_eq"                                   │
00:07:04 v #6405 > > │     let v9 : string = $"{v8} / actual: %A{v0} / expected: %A{2.0}"           │
00:07:04 v #6406 > > │     let v12 : unit = ()                                                      │
00:07:04 v #6407 > > │     let v13 : (unit -> unit) = closure0(v9)                                  │
00:07:04 v #6408 > > │     let v14 : unit = (fun () -> v13 (); v12) ()                              │
00:07:04 v #6409 > > │     let v16 : bool = v7 = false                                              │
00:07:04 v #6410 > > │     if v16 then                                                              │
00:07:04 v #6411 > > │         failwith<unit> v9                                                    │
00:07:04 v #6412 > > │ method0()                                                                    │
00:07:04 v #6413 > > │                                                                              │
00:07:04 v #6414 > > │ __assert_approx_eq / actual: 1.0 / expected: 2.0                             │
00:07:04 v #6415 > > │                                                                              │
00:07:04 v #6416 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:04 v #6417 > >
00:07:04 v #6418 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:04 v #6419 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:04 v #6420 > > │ ### __assert_eq                                                              │
00:07:04 v #6421 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:04 v #6422 > >
00:07:04 v #6423 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:04 v #6424 > > inl rec __assert_eq trace b a =
00:07:04 v #6425 > >     __expect (=) trace (reflection.nameof { __assert_eq }) b a
00:07:04 v #6426 > >
00:07:04 v #6427 > > inl _assert_eq b a =
00:07:04 v #6428 > >     __assert_eq Console b a
00:07:04 v #6429 > 00:07:04 d #390 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ea01eeb838d3ad7663d848f9e70388dbe4d50dc23b21246d22b63f9f946fd155/main.spi
00:07:05 v #6430 > >
00:07:05 v #6431 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:05 v #6432 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:05 v #6433 > > │ ### __assert_eq'                                                             │
00:07:05 v #6434 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:05 v #6435 > >
00:07:05 v #6436 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:05 v #6437 > > inl rec __assert_eq' trace b a =
00:07:05 v #6438 > >     __expect (=.) trace (reflection.nameof { __assert_eq' }) b a
00:07:05 v #6439 > >
00:07:05 v #6440 > > inl _assert_eq' b a =
00:07:05 v #6441 > >     __assert_eq' Console b a
00:07:05 v #6442 > 00:07:04 d #391 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/578ec35b4c98304f0ddcb790da3da66ff085439c514d61cc154f4bea9cb8e750/main.spi
00:07:05 v #6443 > >
00:07:05 v #6444 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:05 v #6445 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:05 v #6446 > > │ ### __assert_ne                                                              │
00:07:05 v #6447 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:05 v #6448 > >
00:07:05 v #6449 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:05 v #6450 > > inl rec __assert_ne trace b a =
00:07:05 v #6451 > >     __expect (<>.) trace (reflection.nameof { __assert_ne }) b a
00:07:05 v #6452 > >
00:07:05 v #6453 > > inl _assert_ne b a =
00:07:05 v #6454 > >     __assert_ne Console b a
00:07:05 v #6455 > 00:07:05 d #392 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ed63d0d907f1fbc3e5b6c9fc2aab8b5b2cebcfca95db7e2faf58f75c6c491ab/main.spi
00:07:06 v #6456 > >
00:07:06 v #6457 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:06 v #6458 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:06 v #6459 > > │ ### __assert_gt                                                              │
00:07:06 v #6460 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:06 v #6461 > >
00:07:06 v #6462 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:06 v #6463 > > inl rec __assert_gt trace b a =
00:07:06 v #6464 > >     __expect (>) trace (reflection.nameof { __assert_gt }) b a
00:07:06 v #6465 > >
00:07:06 v #6466 > > inl _assert_gt b a =
00:07:06 v #6467 > >     __assert_gt Console b a
00:07:06 v #6468 > 00:07:05 d #393 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/efcce450978b8d7ba2fd260de46b0cacae862939e8ddd5f25006da419352755a/main.spi
00:07:06 v #6469 > >
00:07:06 v #6470 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:06 v #6471 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:06 v #6472 > > │ ### __assert_ge                                                              │
00:07:06 v #6473 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:06 v #6474 > >
00:07:06 v #6475 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:06 v #6476 > > inl rec __assert_ge trace b a =
00:07:06 v #6477 > >     __expect (>=) trace (reflection.nameof { __assert_ge }) b a
00:07:06 v #6478 > >
00:07:06 v #6479 > > inl _assert_ge b a =
00:07:06 v #6480 > >     __assert_ge Console b a
00:07:06 v #6481 > 00:07:05 d #394 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9af26a883a14ae0fa5c464b257068df8fc24b86c5a975ac8ce39332bf404c0db/main.spi
00:07:06 v #6482 > >
00:07:06 v #6483 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:06 v #6484 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:06 v #6485 > > │ ### __assert_lt                                                              │
00:07:06 v #6486 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:06 v #6487 > >
00:07:06 v #6488 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:06 v #6489 > > inl rec __assert_lt trace b a =
00:07:06 v #6490 > >     __expect (<) trace (reflection.nameof { __assert_lt }) b a
00:07:06 v #6491 > >
00:07:06 v #6492 > > inl _assert_lt b a =
00:07:06 v #6493 > >     __assert_lt Console b a
00:07:07 v #6494 > 00:07:06 d #395 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ead7cfe3f86343a371eb76438f4d527cc996e7816182b7effb60c139ef705730/main.spi
00:07:07 v #6495 > >
00:07:07 v #6496 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:07 v #6497 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:07 v #6498 > > │ ### __assert_le                                                              │
00:07:07 v #6499 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:07 v #6500 > >
00:07:07 v #6501 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:07 v #6502 > > inl rec __assert_le trace b a =
00:07:07 v #6503 > >     __expect (<=) trace (reflection.nameof { __assert_le }) b a
00:07:07 v #6504 > >
00:07:07 v #6505 > > inl _assert_le b a =
00:07:07 v #6506 > >     __assert_le Console b a
00:07:07 v #6507 > 00:07:06 d #396 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21daf0447f21063ad2b755a517f0305a13c754541fc9652a497340e29dd2dc50/main.spi
00:07:07 v #6508 > >
00:07:07 v #6509 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:07 v #6510 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:07 v #6511 > > │ ### __assert                                                                 │
00:07:07 v #6512 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:07 v #6513 > >
00:07:07 v #6514 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:07 v #6515 > > inl rec __assert fn trace b a =
00:07:07 v #6516 > >     __expect fn trace (reflection.nameof { __assert }) a b
00:07:07 v #6517 > >
00:07:07 v #6518 > > inl _assert fn b a =
00:07:07 v #6519 > >     __assert fn Console b a
00:07:07 v #6520 > 00:07:07 d #397 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8d0447e9f948ceda995cdc9c049223f1ac0dfd89c98b82438e31ffaeff34e93/main.spi
00:07:08 v #6521 > >
00:07:08 v #6522 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:08 v #6523 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:08 v #6524 > > │ ### __assert_between                                                         │
00:07:08 v #6525 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:08 v #6526 > >
00:07:08 v #6527 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:08 v #6528 > > inl rec __assert_between trace a b actual =
00:07:08 v #6529 > >     inl assert_between actual (a, b) =
00:07:08 v #6530 > >         __assert_ge Silent a actual
00:07:08 v #6531 > >         __assert_le Silent b actual
00:07:08 v #6532 > >         true
00:07:08 v #6533 > >     __expect assert_between trace (reflection.nameof { __assert_between }) (a,
00:07:08 v #6534 > > b) actual
00:07:08 v #6535 > >
00:07:08 v #6536 > > inl _assert_between a b actual =
00:07:08 v #6537 > >     __assert_between Console a b actual
00:07:08 v #6538 > 00:07:07 d #398 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a28d507bbebdb96158365e4f5953c0691c4b5e68cf0d1ed25133072476e92b89/main.spi
00:07:08 v #6539 > >
00:07:08 v #6540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:08 v #6541 > > inl rec _assert_fn fn list =
00:07:08 v #6542 > >     list
00:07:08 v #6543 > >     |> listm.rev
00:07:08 v #6544 > >     |> listm.map fun input, expected => join
00:07:08 v #6545 > >         input
00:07:08 v #6546 > >         |> fn
00:07:08 v #6547 > >         |> resultm.get
00:07:08 v #6548 > >         |> fun x =>
00:07:08 v #6549 > >             inl expected' = join expected
00:07:08 v #6550 > >             inl name = reflection.nameof { _assert_fn }
00:07:08 v #6551 > >             try
00:07:08 v #6552 > >                 fun () =>
00:07:08 v #6553 > >                     console.write_line ""
00:07:08 v #6554 > >                     trace Verbose
00:07:08 v #6555 > >                         fun () => name
00:07:08 v #6556 > >                         fun () => { input }
00:07:08 v #6557 > >                     x
00:07:08 v #6558 > >                     |> _assert_eq' expected'
00:07:08 v #6559 > >                     true
00:07:08 v #6560 > >                 fun ex =>
00:07:08 v #6561 > >                     trace Critical
00:07:08 v #6562 > >                         fun () =>
00:07:08 v #6563 > >                             $'$"{!name} / error"'
00:07:08 v #6564 > >                         fun () => { ex expected }
00:07:08 v #6565 > >                     Some false
00:07:08 v #6566 > >             |> optionm.value
00:07:08 v #6567 > >     |> listm'.filter not
00:07:08 v #6568 > >     |> function
00:07:08 v #6569 > >         | [[]] => ()
00:07:08 v #6570 > >         | x => failwith $'$"{!x}"'
00:07:08 v #6571 > 00:07:07 d #399 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fcbd090e43bb96cfdab1dbc55490809f32651b787b88a4585206fe297767a81b/main.spi
00:07:08 v #6572 > >
00:07:08 v #6573 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:08 v #6574 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:08 v #6575 > > │ ## fsharp                                                                    │
00:07:08 v #6576 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:08 v #6577 > >
00:07:08 v #6578 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:08 v #6579 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:08 v #6580 > > │ ### __assert_contains                                                        │
00:07:08 v #6581 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:08 v #6582 > >
00:07:08 v #6583 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:08 v #6584 > > inl rec __assert_contains forall t u. (trace : testing_trace) (b : t) (a : u) :
00:07:08 v #6585 > > () =
00:07:08 v #6586 > >     __expect
00:07:08 v #6587 > >         fun a b =>
00:07:08 v #6588 > >             a
00:07:08 v #6589 > >             |> $'List.ofSeq'
00:07:08 v #6590 > >             |> fun x => x : listm'.list' t
00:07:08 v #6591 > >             |> $'List.tryFind' ((=) b)
00:07:08 v #6592 > >             |> optionm'.unbox
00:07:08 v #6593 > >             |> fun (x : option t) => x <> None
00:07:08 v #6594 > >         trace
00:07:08 v #6595 > >         // TODO: forall nameof (Cannot dyn a forall into a runtime var.)
00:07:08 v #6596 > >         // Metavars that are not part of the enclosing function's signature are
00:07:08 v #6597 > > not allowed. They need to be values.
00:07:08 v #6598 > >         // Got: {__assert_contains : testing_trace -> _ -> _ -> ()} -> string
00:07:08 v #6599 > >         // (reflection.nameof { __assert_contains })
00:07:08 v #6600 > >         "__assert_contains"
00:07:08 v #6601 > >         b
00:07:08 v #6602 > >         a
00:07:08 v #6603 > >
00:07:08 v #6604 > > inl _assert_contains b a =
00:07:08 v #6605 > >     __assert_contains Console b a
00:07:09 v #6606 > 00:07:08 d #400 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0cd1d2eb96fc792b9ad8c71b3641883ece7e6dde911b8b66a2d01f4b3fdeed67/main.spi
00:07:09 v #6607 > >
00:07:09 v #6608 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:09 v #6609 > > //// test
00:07:09 v #6610 > >
00:07:09 v #6611 > > ;[[ "a"; "b"; "c" ]]
00:07:09 v #6612 > > |> _assert_contains "b"
00:07:09 v #6613 > 00:07:08 d #401 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/02aa783381c0491256c8bce6f087ae0463866454acd07707a7e296ce4de22118/main.spi
00:07:10 v #6614 > >
00:07:10 v #6615 > > ╭─[ 930.20ms - stdout ]────────────────────────────────────────────────────────╮
00:07:10 v #6616 > > │ __assert_contains / actual: [|"a"; "b"; "c"|] / expected: "b"                │
00:07:10 v #6617 > > │                                                                              │
00:07:10 v #6618 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:10 v #6619 > >
00:07:10 v #6620 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:10 v #6621 > > //// test
00:07:10 v #6622 > >
00:07:10 v #6623 > > "abcd"
00:07:10 v #6624 > > |> _assert_contains 'b'
00:07:10 v #6625 > 00:07:09 d #402 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/43364a062e8fe6a688466810bcc616282747355372de031eff5ee77a0e851e62/main.spi
00:07:10 v #6626 > >
00:07:10 v #6627 > > ╭─[ 470.44ms - stdout ]────────────────────────────────────────────────────────╮
00:07:10 v #6628 > > │ __assert_contains / actual: "abcd" / expected: 'b'                           │
00:07:10 v #6629 > > │                                                                              │
00:07:10 v #6630 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:10 v #6631 > >
00:07:10 v #6632 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:10 v #6633 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:10 v #6634 > > │ ### _throws                                                                  │
00:07:10 v #6635 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:10 v #6636 > >
00:07:10 v #6637 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:10 v #6638 > > inl _throws (fn : () -> ()) : option exn =
00:07:10 v #6639 > >     inl none = None : option exn
00:07:10 v #6640 > >     inl some (s : exn) = Some s
00:07:10 v #6641 > >     $'try !fn (); !none with ex -> ex |> !some '
00:07:10 v #6642 > 00:07:10 d #403 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d5dc0a8240da45b2242e68742cb94a9375ad32279529d701ecaef757d49f9983/main.spi
00:07:11 v #6643 > >
00:07:11 v #6644 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:11 v #6645 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:11 v #6646 > > │ ### print_and_return                                                         │
00:07:11 v #6647 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:11 v #6648 > >
00:07:11 v #6649 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:11 v #6650 > > inl rec print_and_return x =
00:07:11 v #6651 > >     inl name = reflection.nameof { print_and_return }
00:07:11 v #6652 > >     $'printfn $"{!name} / x: {!x}"'
00:07:11 v #6653 > >     x
00:07:11 v #6654 > 00:07:10 d #404 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/355100d0ef289014a8a6100fb4dd3816c0660473cc0ee8af211d413e85e12fd6/main.spi
00:07:11 v #6655 > 00:00:35 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 18916 }
00:07:11 v #6656 > 00:00:35 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:13 v #6657 > 00:00:36 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/testing.dib.ipynb to html
00:07:13 v #6658 > 00:00:36 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:07:13 v #6659 > 00:00:36 v #7 !   validate(nb)
00:07:13 v #6660 > 00:00:37 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:07:13 v #6661 > 00:00:37 v #9 !   return _pygments_highlight(
00:07:14 v #6662 > 00:00:37 v #10 ! [NbConvertApp] Writing 318533 bytes to c:\home\git\polyglot\lib\spiral\testing.dib.html
00:07:14 v #6663 > 00:00:37 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 856 }
00:07:14 v #6664 > 00:00:37 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 856 }
00:07:14 v #6665 > 00:00:37 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:14 v #6666 > 00:00:38 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:07:14 v #6667 > 00:00:38 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:07:14 v #6668 > 00:00:38 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 19831 }
00:07:14 d #6669 runtime.execute_with_options_async / { exit_code = 0; output_length = 23195 }
00:07:14 d #9 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path testing.dib --retries 3
00:07:14 d #6670 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path guid.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path guid.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:14 v #6671 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "guid.dib", "--retries", "3"])) }
00:07:14 v #6672 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/guid.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/guid.dib" --output-path "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:07:16 v #6673 > >
00:07:16 v #6674 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:16 v #6675 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:16 v #6676 > > │ # guid                                                                       │
00:07:16 v #6677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:20 v #6678 > >
00:07:20 v #6679 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:20 v #6680 > > //// test
00:07:20 v #6681 > >
00:07:20 v #6682 > > open testing
00:07:20 v #6683 > 00:07:20 d #405 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:07:21 v #6684 > >
00:07:21 v #6685 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:21 v #6686 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:21 v #6687 > > │ ## guid                                                                      │
00:07:21 v #6688 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:21 v #6689 > >
00:07:21 v #6690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:21 v #6691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:21 v #6692 > > │ ### guid                                                                     │
00:07:21 v #6693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:21 v #6694 > >
00:07:21 v #6695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:21 v #6696 > > nominal guid_python =
00:07:21 v #6697 > >     `(
00:07:21 v #6698 > >         global "import uuid"
00:07:21 v #6699 > >         $'' : $'uuid.UUID'
00:07:21 v #6700 > >     )
00:07:21 v #6701 > > type guid_switch =
00:07:21 v #6702 > >     {
00:07:21 v #6703 > >         Fsharp : $'System.Guid'
00:07:21 v #6704 > >         Python : guid_python
00:07:21 v #6705 > >     }
00:07:21 v #6706 > > nominal guid = $'backend_switch `(guid_switch)'
00:07:21 v #6707 > 00:07:20 d #406 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76f39c2d3bb155a3e49cc7814ea62906913b7ef6d73d63733323d3f176bbcd8e/main.spi
00:07:21 v #6708 > >
00:07:21 v #6709 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:21 v #6710 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:21 v #6711 > > │ ### new_guid                                                                 │
00:07:21 v #6712 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:21 v #6713 > >
00:07:21 v #6714 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:21 v #6715 > > inl new_guid (x : string) : guid =
00:07:21 v #6716 > >     x |> convert
00:07:22 v #6717 > 00:07:21 d #407 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/01d0cb264dec434da1d6d41bde7f4bfcbd45b373e83a133a6851f76e8489b81c/main.spi
00:07:22 v #6718 > >
00:07:22 v #6719 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:22 v #6720 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:22 v #6721 > > │ ### new_raw_guid                                                             │
00:07:22 v #6722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:22 v #6723 > >
00:07:22 v #6724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:22 v #6725 > > inl new_raw_guid () : guid =
00:07:22 v #6726 > >     backend_switch {
00:07:22 v #6727 > >         Fsharp = fun () => $'System.Guid.NewGuid' () : guid
00:07:22 v #6728 > >         Python = fun () => $'uuid.uuid4()' : guid
00:07:22 v #6729 > >     }
00:07:22 v #6730 > 00:07:21 d #408 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4581c26dc5a5bb3dffc1b00d3d164cbaa472cbdcaad2a170f0dc05fcb25973fa/main.spi
00:07:22 v #6731 > >
00:07:22 v #6732 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:22 v #6733 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:22 v #6734 > > │ ### hash_guid                                                                │
00:07:22 v #6735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:22 v #6736 > >
00:07:22 v #6737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:22 v #6738 > > type hash_guid = guid
00:07:22 v #6739 > >
00:07:22 v #6740 > > let hash_guid (~hash : string) : hash_guid =
00:07:22 v #6741 > >     run_target function
00:07:22 v #6742 > >         | Rust (Contract) => fun () => null ()
00:07:22 v #6743 > >         | _ => fun () =>
00:07:22 v #6744 > >             inl hash = hash |> sm'.pad_left 32i32 '0'
00:07:22 v #6745 > >             backend_switch {
00:07:22 v #6746 > >                 Fsharp = fun () =>
00:07:22 v #6747 > >                     $'`hash_guid
00:07:22 v #6748 > > $"{!hash.[[0..7]]}-{!hash.[[8..11]]}-{!hash.[[12..15]]}-{!hash.[[16..19]]}-{!has
00:07:22 v #6749 > > h.[[20..31]]}"' : hash_guid
00:07:22 v #6750 > >                 Python = fun () =>
00:07:22 v #6751 > > $'f"{!hash[[0:8]]}-{!hash[[8:12]]}-{!hash[[12:16]]}-{!hash[[16:20]]}-{!hash[[20:
00:07:22 v #6752 > > 32]]}"' : hash_guid
00:07:22 v #6753 > >             }
00:07:22 v #6754 > 00:07:22 d #409 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14de12f0a51462c69996aa1670a6623acbb48dbc08c6e23caf4f26b57897ed42/main.spi
00:07:23 v #6755 > >
00:07:23 v #6756 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:23 v #6757 > > //// test
00:07:23 v #6758 > > ///! fsharp
00:07:23 v #6759 > > ///! cuda
00:07:23 v #6760 > > ///! rust
00:07:23 v #6761 > > ///! typescript
00:07:23 v #6762 > > ///! python
00:07:23 v #6763 > >
00:07:23 v #6764 > > ""
00:07:23 v #6765 > > |> hash_guid
00:07:23 v #6766 > > |> _assert_eq' (new_guid "00000000-0000-0000-0000-000000000000")
00:07:23 v #6767 > >
00:07:23 v #6768 > > "123456789012345678901234567890123"
00:07:23 v #6769 > > |> hash_guid
00:07:23 v #6770 > > |> _assert_eq' (new_guid "12345678-9012-3456-7890-123456789012")
00:07:23 v #6771 > 00:07:22 d #410 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/029223bcab6fd474a1c6ded9d32f89c5c5ccb7725726d0dd4eb4f806d1ed0361/main.spi
00:07:23 v #6772 > 00:07:22 d #411 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a624d9e41158d1eaf1cae26c62273d35a36788b40f4a6aaa020223dfd3e93b6/main.spi
00:07:44 v #6773 > >
00:07:44 v #6774 > > ╭─[ 21.55s - return value ]────────────────────────────────────────────────────╮
00:07:44 v #6775 > > │                                                                              │
00:07:44 v #6776 > > │ .py output (Cuda):                                                           │
00:07:44 v #6777 > > │ __assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:      │
00:07:44 v #6778 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:07:44 v #6779 > > │ __assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:      │
00:07:44 v #6780 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:07:44 v #6781 > > │                                                                              │
00:07:44 v #6782 > > │                                                                              │
00:07:44 v #6783 > > │ .rs output:                                                                  │
00:07:44 v #6784 > > │ __assert_eq' / actual: Guid(00000000-0000-0000-0000-000000000000) /          │
00:07:44 v #6785 > > │ expected: Guid(00000000-0000-0000-0000-000000000000)                         │
00:07:44 v #6786 > > │ __assert_eq' / actual: Guid(12345678-9012-3456-7890-123456789012) /          │
00:07:44 v #6787 > > │ expected: Guid(12345678-9012-3456-7890-123456789012)                         │
00:07:44 v #6788 > > │                                                                              │
00:07:44 v #6789 > > │                                                                              │
00:07:44 v #6790 > > │ .ts output:                                                                  │
00:07:44 v #6791 > > │ __assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:      │
00:07:44 v #6792 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:07:44 v #6793 > > │ __assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:      │
00:07:44 v #6794 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:07:44 v #6795 > > │                                                                              │
00:07:44 v #6796 > > │                                                                              │
00:07:44 v #6797 > > │ .py output:                                                                  │
00:07:44 v #6798 > > │ __assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:      │
00:07:44 v #6799 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:07:44 v #6800 > > │ __assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:      │
00:07:44 v #6801 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:07:44 v #6802 > > │                                                                              │
00:07:44 v #6803 > > │                                                                              │
00:07:44 v #6804 > > │                                                                              │
00:07:44 v #6805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:44 v #6806 > >
00:07:44 v #6807 > > ╭─[ 21.56s - stdout ]──────────────────────────────────────────────────────────╮
00:07:44 v #6808 > > │ .fsx output:                                                                 │
00:07:44 v #6809 > > │ __assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:      │
00:07:44 v #6810 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:07:44 v #6811 > > │ __assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:      │
00:07:44 v #6812 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:07:44 v #6813 > > │                                                                              │
00:07:44 v #6814 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:44 v #6815 > >
00:07:44 v #6816 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:44 v #6817 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:44 v #6818 > > │ ## main                                                                      │
00:07:44 v #6819 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:44 v #6820 > >
00:07:44 v #6821 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:44 v #6822 > > inl main () =
00:07:44 v #6823 > >     $'let new_guid x = !new_guid x' : ()
00:07:44 v #6824 > >     $'let hash_guid x = !hash_guid x' : ()
00:07:44 v #6825 > >     $'let new_raw_guid x = !new_raw_guid x' : ()
00:07:44 v #6826 > 00:07:44 d #412 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/50e870ed3113fa38d48999c67f0885e6d6f6e39278589a7e78ac83294059b436/main.spi
00:07:45 v #6827 > 00:00:30 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 7553 }
00:07:45 v #6828 > 00:00:30 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:46 v #6829 > 00:00:32 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/guid.dib.ipynb to html
00:07:46 v #6830 > 00:00:32 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:07:46 v #6831 > 00:00:32 v #7 !   validate(nb)
00:07:47 v #6832 > 00:00:32 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:07:47 v #6833 > 00:00:32 v #9 !   return _pygments_highlight(
00:07:47 v #6834 > 00:00:33 v #10 ! [NbConvertApp] Writing 284778 bytes to c:\home\git\polyglot\lib\spiral\guid.dib.html
00:07:47 v #6835 > 00:00:33 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 850 }
00:07:47 v #6836 > 00:00:33 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 850 }
00:07:47 v #6837 > 00:00:33 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/guid.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/guid.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:48 v #6838 > 00:00:33 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:07:48 v #6839 > 00:00:33 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:07:48 v #6840 > 00:00:33 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 8462 }
00:07:48 d #6841 runtime.execute_with_options_async / { exit_code = 0; output_length = 11301 }
00:07:48 d #10 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path guid.dib --retries 3
00:07:48 d #6842 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path async.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path async.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:48 v #6843 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "async.dib", "--retries", "3"])) }
00:07:48 v #6844 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/async.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/async.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/async.dib" --output-path "c:/home/git/polyglot/lib/spiral/async.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:07:50 v #6845 > >
00:07:50 v #6846 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:50 v #6847 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:50 v #6848 > > │ # async                                                                      │
00:07:50 v #6849 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:53 v #6850 > >
00:07:53 v #6851 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:53 v #6852 > > //// test
00:07:53 v #6853 > >
00:07:53 v #6854 > > open testing
00:07:54 v #6855 > 00:07:53 d #413 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:07:55 v #6856 > >
00:07:55 v #6857 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:55 v #6858 > > open rust
00:07:55 v #6859 > > open rust_operators
00:07:55 v #6860 > 00:07:54 d #414 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/99d3bf64d597281af4b0797a894e23c32802a4d97ba91164826ac21a270d370b/main.spi
00:07:55 v #6861 > >
00:07:55 v #6862 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:55 v #6863 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:55 v #6864 > > │ ## rust                                                                      │
00:07:55 v #6865 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:55 v #6866 > >
00:07:55 v #6867 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:55 v #6868 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:55 v #6869 > > │ ### future                                                                   │
00:07:55 v #6870 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:55 v #6871 > >
00:07:55 v #6872 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:55 v #6873 > > nominal future t =
00:07:55 v #6874 > >     `(
00:07:55 v #6875 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:07:55 v #6876 > > Fable.Core.Emit(\"std::future::Future<Output = $0>\")>]]\n#endif\ntype
00:07:55 v #6877 > > std_future_Future<'T> = class end"
00:07:55 v #6878 > >         $'' : $'std_future_Future<`t>'
00:07:55 v #6879 > >     )
00:07:55 v #6880 > 00:07:54 d #415 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7f5e8afc44eacb2c784de51e56574af62ce18271eae341164d4a53c7ea6e5ede/main.spi
00:07:55 v #6881 > >
00:07:55 v #6882 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:55 v #6883 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:55 v #6884 > > │ ### future_pin                                                               │
00:07:55 v #6885 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:55 v #6886 > >
00:07:55 v #6887 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:55 v #6888 > > type future_pin t = rust.pin (rust.box (rust.dyn' (future t)))
00:07:56 v #6889 > 00:07:55 d #416 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/abbdb87c07dba5bf75a7b3938b3b0c68e0f916b188f7a8dfaabfa40757a93d79/main.spi
00:07:56 v #6890 > >
00:07:56 v #6891 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:56 v #6892 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:56 v #6893 > > │ ### future_pin_send                                                          │
00:07:56 v #6894 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:56 v #6895 > >
00:07:56 v #6896 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:56 v #6897 > > type future_pin_send t = rust.pin (rust.box (rust.send (rust.dyn' (future t))))
00:07:56 v #6898 > 00:07:55 d #417 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e581cea090484d20882cb9ce6ab3c42c975b42f3e6612c3f1951bb4a45cb4e9f/main.spi
00:07:56 v #6899 > >
00:07:56 v #6900 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:56 v #6901 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:56 v #6902 > > │ ### block_on_tokio                                                           │
00:07:56 v #6903 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:56 v #6904 > >
00:07:56 v #6905 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:56 v #6906 > > inl block_on_tokio forall t. (fn : future_pin t) : t =
00:07:56 v #6907 > >     inl runtime : infer =
00:07:56 v #6908 > >
00:07:56 v #6909 > > !\($'$"tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap()
00:07:56 v #6910 > > "')
00:07:56 v #6911 > >     !\\(fn, $'"!runtime.handle().block_on($0)"')
00:07:57 v #6912 > 00:07:56 d #418 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d98326b11a5778e2b6d39f95a4b1ac19691896ac079ba59e2c874732c0bc87a/main.spi
00:07:57 v #6913 > >
00:07:57 v #6914 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:57 v #6915 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:57 v #6916 > > │ ### block_on_futures_lite                                                    │
00:07:57 v #6917 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:57 v #6918 > >
00:07:57 v #6919 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:57 v #6920 > > inl block_on_futures_lite forall t. (fn : future_pin t) : t =
00:07:57 v #6921 > >     !\\(fn, $'"futures_lite::future::block_on($0)"')
00:07:57 v #6922 > 00:07:56 d #419 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b73c1c697f31bbf27120e67e5ec51ff3d1f898fdeb34fdee8daae7ce51983f20/main.spi
00:07:57 v #6923 > >
00:07:57 v #6924 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:57 v #6925 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:57 v #6926 > > │ ### block_on_futures                                                         │
00:07:57 v #6927 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:57 v #6928 > >
00:07:57 v #6929 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:57 v #6930 > > inl block_on_futures forall t. (fn : future_pin t) : t =
00:07:57 v #6931 > >     !\\(fn, $'"futures::executor::block_on($0)"')
00:07:57 v #6932 > 00:07:57 d #420 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ea7ac4a26682d888f83fbf6f128d3528d17a1adca845ecd02ed9b2705f899211/main.spi
00:07:58 v #6933 > >
00:07:58 v #6934 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:58 v #6935 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:58 v #6936 > > │ ### block_on_async_std                                                       │
00:07:58 v #6937 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:58 v #6938 > >
00:07:58 v #6939 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:58 v #6940 > > inl block_on_async_std forall t. (fn : future_pin t) : t =
00:07:58 v #6941 > >     !\\(fn, $'"async_std::task::block_on($0)"')
00:07:58 v #6942 > 00:07:57 d #421 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0530e1e1fe6b2b4eeb72fc905239e398c4731aeaa0bd3259178e468fabb9041b/main.spi
00:07:58 v #6943 > >
00:07:58 v #6944 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:58 v #6945 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:58 v #6946 > > │ ### block_on_tokio_send                                                      │
00:07:58 v #6947 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:58 v #6948 > >
00:07:58 v #6949 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:58 v #6950 > > inl block_on_tokio_send forall t. (fn : future_pin_send t) : t =
00:07:58 v #6951 > >     !\($'"tokio::runtime::block_on(!fn)"')
00:07:58 v #6952 > 00:07:57 d #422 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c34d3450c9e5236a8a3016e6c9f318d43f39520d82cd0ba98c7e458f5e17782f/main.spi
00:07:58 v #6953 > >
00:07:58 v #6954 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:58 v #6955 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:58 v #6956 > > │ ### stream_ext_tokio                                                         │
00:07:58 v #6957 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:58 v #6958 > >
00:07:58 v #6959 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:58 v #6960 > > nominal stream_ext_tokio =
00:07:58 v #6961 > >     `(
00:07:58 v #6962 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:07:58 v #6963 > > Fable.Core.Emit(\"tokio_stream::StreamExt\")>]]\n#endif\ntype
00:07:58 v #6964 > > tokio_stream_StreamExt = class end"
00:07:58 v #6965 > >         $'' : $'tokio_stream_StreamExt'
00:07:58 v #6966 > >     )
00:07:59 v #6967 > 00:07:58 d #423 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/79456f5d09138b0bbd79ac6cb42954b21b92a48e697057c3e419aa9ba9c7bd9d/main.spi
00:07:59 v #6968 > >
00:07:59 v #6969 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:59 v #6970 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:59 v #6971 > > │ ### join_handle_tokio                                                        │
00:07:59 v #6972 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:59 v #6973 > >
00:07:59 v #6974 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:59 v #6975 > > nominal join_handle_tokio t =
00:07:59 v #6976 > >     `(
00:07:59 v #6977 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:07:59 v #6978 > > Fable.Core.Emit(\"tokio::task::JoinHandle<$0>\")>]]\n#endif\ntype
00:07:59 v #6979 > > tokio_task_JoinHandle<'T> = class end"
00:07:59 v #6980 > >         $'' : $'tokio_task_JoinHandle<`t>'
00:07:59 v #6981 > >     )
00:07:59 v #6982 > 00:07:58 d #424 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e4f08a2688eeb8e2533a58872264e636e4cc1034180001646e419632d061e34/main.spi
00:07:59 v #6983 > >
00:07:59 v #6984 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:59 v #6985 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:59 v #6986 > > │ ### stream_collect_tokio                                                     │
00:07:59 v #6987 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:59 v #6988 > >
00:07:59 v #6989 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:59 v #6990 > > inl stream_collect_tokio forall t u.
00:07:59 v #6991 > >     (stream : t)
00:07:59 v #6992 > >     : future_pin (am'.vec u)
00:07:59 v #6993 > >     =
00:07:59 v #6994 > >     !\($'"Box::pin(tokio_stream::StreamExt::collect(!stream))"')
00:07:59 v #6995 > 00:07:59 d #425 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b160327c517f983dc8209c97c56aed692fd3f866e9b1111a4a6bf31f8224f965/main.spi
00:08:00 v #6996 > >
00:08:00 v #6997 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:00 v #6998 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:00 v #6999 > > │ ### stream_collect_futures                                                   │
00:08:00 v #7000 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:00 v #7001 > >
00:08:00 v #7002 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:00 v #7003 > > inl stream_collect_futures forall t u.
00:08:00 v #7004 > >     (stream : t)
00:08:00 v #7005 > >     : future_pin (am'.vec u)
00:08:00 v #7006 > >     =
00:08:00 v #7007 > >     !\($'"Box::pin(futures::stream::StreamExt::collect(!stream))"')
00:08:00 v #7008 > 00:07:59 d #426 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a7aa9e7d0db92b1118a2f32d56adce5ac0735202d668323754dc2f4cea7b107/main.spi
00:08:00 v #7009 > >
00:08:00 v #7010 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:00 v #7011 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:00 v #7012 > > │ ### stream_next_tokio                                                        │
00:08:00 v #7013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:00 v #7014 > >
00:08:00 v #7015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:00 v #7016 > > inl stream_next_tokio forall t u.
00:08:00 v #7017 > >     (stream : t)
00:08:00 v #7018 > >     : future_pin (optionm'.option' u)
00:08:00 v #7019 > >     =
00:08:00 v #7020 > >     !\($'"let mut !stream = !stream"')
00:08:00 v #7021 > >     !\($'"Box::pin(tokio_stream::StreamExt::next(&mut !stream))"')
00:08:00 v #7022 > 00:07:59 d #427 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00b18d772d0959091f02608950dc1dfb903110b1da304fc2a53619715c842395/main.spi
00:08:00 v #7023 > >
00:08:00 v #7024 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:00 v #7025 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:00 v #7026 > > │ ### stream_filter_map_tokio                                                  │
00:08:00 v #7027 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:00 v #7028 > >
00:08:00 v #7029 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:00 v #7030 > > inl stream_filter_map_tokio forall t u v.
00:08:00 v #7031 > >     (fn : u -> optionm'.option' v)
00:08:00 v #7032 > >     (stream : t)
00:08:00 v #7033 > >     : infer' v
00:08:00 v #7034 > >     =
00:08:00 v #7035 > >     inl fn = join fn
00:08:00 v #7036 > >     !\($'"tokio_stream::StreamExt::filter_map(!stream, |x| !fn(x))"')
00:08:01 v #7037 > 00:08:00 d #428 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b0f53d4a7fe4226e7a7b746413df780b328383ce5b291923681f057b7ebc0648/main.spi
00:08:01 v #7038 > >
00:08:01 v #7039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:01 v #7040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:01 v #7041 > > │ ### stream_filter_map_futures                                                │
00:08:01 v #7042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:01 v #7043 > >
00:08:01 v #7044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:01 v #7045 > > inl stream_filter_map_futures forall t u v.
00:08:01 v #7046 > >     (fn : u -> optionm'.option' v)
00:08:01 v #7047 > >     (stream : t)
00:08:01 v #7048 > >     : infer' v
00:08:01 v #7049 > >     =
00:08:01 v #7050 > >     inl fn = join fn
00:08:01 v #7051 > >     !\($'"futures::stream::StreamExt::filter_map(!stream, |x| async { !fn(x)
00:08:01 v #7052 > > })"')
00:08:01 v #7053 > 00:08:00 d #429 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b1ad544bc02f33940ac21ccfb5fa45a242fa0197baacf0edcf01587c7f2a07a8/main.spi
00:08:01 v #7054 > >
00:08:01 v #7055 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:01 v #7056 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:01 v #7057 > > │ ### spawn_tokio                                                              │
00:08:01 v #7058 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:01 v #7059 > >
00:08:01 v #7060 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:01 v #7061 > > inl spawn_tokio forall t. (fn : future_pin_send t) : join_handle_tokio t =
00:08:01 v #7062 > >     !\($'"tokio::runtime::spawn(!fn)"')
00:08:01 v #7063 > 00:08:01 d #430 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4acb24f10105fca5416dfc2213a7e0b62032c70a3beaacbe63c99c85ec417ec5/main.spi
00:08:02 v #7064 > >
00:08:02 v #7065 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:02 v #7066 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:02 v #7067 > > │ ### try_join_all                                                             │
00:08:02 v #7068 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:02 v #7069 > >
00:08:02 v #7070 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:02 v #7071 > > nominal try_join_all t =
00:08:02 v #7072 > >     `(
00:08:02 v #7073 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:02 v #7074 > > Fable.Core.Emit(\"futures::future::TryJoinAll<$0>\")>]]\n#endif\ntype
00:08:02 v #7075 > > futures_future_TryJoinAll<'T> = class end"
00:08:02 v #7076 > >         $'' : $'futures_future_TryJoinAll<`t>'
00:08:02 v #7077 > >     )
00:08:02 v #7078 > >
00:08:02 v #7079 > > inl try_join_all forall t. (x : am'.vec (future_pin (resultm.result' t
00:08:02 v #7080 > > sm'.std_string))) : try_join_all (future_pin (resultm.result' t sm'.std_string))
00:08:02 v #7081 > > =
00:08:02 v #7082 > >     inl x = join x
00:08:02 v #7083 > >     !\($'"futures::future::try_join_all(!x)"')
00:08:02 v #7084 > 00:08:01 d #431 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e4a5d5351ee92fd345b328c7f86ce82990bb136e1c24c511206722898a3f415/main.spi
00:08:02 v #7085 > >
00:08:02 v #7086 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:02 v #7087 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:02 v #7088 > > │ ### fuse_tokio                                                               │
00:08:02 v #7089 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:02 v #7090 > >
00:08:02 v #7091 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:02 v #7092 > > nominal fuse_tokio t =
00:08:02 v #7093 > >     `(
00:08:02 v #7094 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:02 v #7095 > > Fable.Core.Emit(\"tokio::prelude::stream::Fuse<$0>\")>]]\n#endif\ntype
00:08:02 v #7096 > > tokio_prelude_stream_Fuse<'T> = class end"
00:08:02 v #7097 > >         $'' : $'tokio_prelude_stream_Fuse<`t>'
00:08:02 v #7098 > >     )
00:08:02 v #7099 > 00:08:02 d #432 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c425e70bbf32280b1589add513eaf029cc36e8205f71db07a9862e52fc64112e/main.spi
00:08:03 v #7100 > >
00:08:03 v #7101 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:03 v #7102 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:03 v #7103 > > │ ### fuse'                                                                    │
00:08:03 v #7104 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:03 v #7105 > >
00:08:03 v #7106 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:03 v #7107 > > type fuse' t = fuse_tokio t
00:08:03 v #7108 > 00:08:02 d #433 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf65ff972b734db335a817a2f8467404b29ffd5d841fac4f1019c3c30656f9b1/main.spi
00:08:03 v #7109 > >
00:08:03 v #7110 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:03 v #7111 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:03 v #7112 > > │ ### future_fuse                                                              │
00:08:03 v #7113 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:03 v #7114 > >
00:08:03 v #7115 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:03 v #7116 > > inl future_fuse forall t. (x : future_pin t) : fuse' (future_pin t) =
00:08:03 v #7117 > >     !\($'"futures::future::FutureExt::fuse(!x)"')
00:08:03 v #7118 > 00:08:02 d #434 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47f8013738319957420f0d1d23a13fc06e2dec6b40940a398ab6a07ef757332d/main.spi
00:08:03 v #7119 > >
00:08:03 v #7120 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:03 v #7121 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:03 v #7122 > > │ ### join_all                                                                 │
00:08:03 v #7123 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:03 v #7124 > >
00:08:03 v #7125 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:03 v #7126 > > nominal join_all t =
00:08:03 v #7127 > >     `(
00:08:03 v #7128 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:03 v #7129 > > Fable.Core.Emit(\"futures::future::JoinAll<$0>\")>]]\n#endif\ntype
00:08:03 v #7130 > > futures_future_JoinAll<'T> = class end"
00:08:03 v #7131 > >         $'' : $'futures_future_JoinAll<`t>'
00:08:03 v #7132 > >     )
00:08:03 v #7133 > >
00:08:03 v #7134 > > inl join_all forall t. (x : am'.vec (future_pin t)) : join_all (future_pin t) =
00:08:03 v #7135 > >     inl x = join x
00:08:03 v #7136 > >     !\($'"futures::future::join_all(!x)"')
00:08:04 v #7137 > 00:08:03 d #435 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/98295f928cb554e424314bfacc46bb02c54557515af80556cf5cf31c9d1a5b01/main.spi
00:08:04 v #7138 > >
00:08:04 v #7139 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:04 v #7140 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:04 v #7141 > > │ ### join_all_send                                                            │
00:08:04 v #7142 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:04 v #7143 > >
00:08:04 v #7144 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:04 v #7145 > > inl join_all_send forall t. (x : am'.vec (future_pin_send t)) : join_all
00:08:04 v #7146 > > (future_pin_send t) =
00:08:04 v #7147 > >     inl x = join x
00:08:04 v #7148 > >     !\($'"futures::future::join_all(!x)"')
00:08:04 v #7149 > 00:08:03 d #436 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/019ce5b7be58bc68d3aa6a1ac022bf51715fec15677a7ede2f319e99e4874c86/main.spi
00:08:04 v #7150 > >
00:08:04 v #7151 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:04 v #7152 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:04 v #7153 > > │ ### join_handle'                                                             │
00:08:04 v #7154 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:04 v #7155 > >
00:08:04 v #7156 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:04 v #7157 > > type join_handle' t = join_handle_tokio t
00:08:04 v #7158 > 00:08:04 d #437 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8eff0664c9c1d303ca997bac80e3126677b4912d2b4b55fd404b2b02f00f3872/main.spi
00:08:05 v #7159 > >
00:08:05 v #7160 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:05 v #7161 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:05 v #7162 > > │ ### await_handle                                                             │
00:08:05 v #7163 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:05 v #7164 > >
00:08:05 v #7165 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:05 v #7166 > > inl await_handle forall t. (x : join_handle' t) : t =
00:08:05 v #7167 > >     !\($'"!x.await"')
00:08:05 v #7168 > 00:08:04 d #438 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/212fab971dd5288d2a9960cf672f2b04e9db39b318fd4cb4283cf75189b8d6ed/main.spi
00:08:05 v #7169 > >
00:08:05 v #7170 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:05 v #7171 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:05 v #7172 > > │ ### await_all                                                                │
00:08:05 v #7173 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:05 v #7174 > >
00:08:05 v #7175 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:05 v #7176 > > inl await_all forall t. (x : join_all (future_pin t)) : am'.vec t =
00:08:05 v #7177 > >     !\($'"!x.await"')
00:08:05 v #7178 > 00:08:05 d #439 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9710beeb8137d5a8ba9834fb575797ad984cff4daa755f5ada9b40a2101fbf86/main.spi
00:08:06 v #7179 > >
00:08:06 v #7180 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:06 v #7181 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:06 v #7182 > > │ ### await_all_send                                                           │
00:08:06 v #7183 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:06 v #7184 > >
00:08:06 v #7185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:06 v #7186 > > inl await_all_send forall t. (x : join_all (future_pin_send t)) : am'.vec t =
00:08:06 v #7187 > >     !\($'"!x.await"')
00:08:06 v #7188 > 00:08:05 d #440 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/46b244a433b752644bd88eb185ee19182b4c65960b3d6823116b7b273b597aad/main.spi
00:08:06 v #7189 > >
00:08:06 v #7190 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:06 v #7191 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:06 v #7192 > > │ ### try_await_all                                                            │
00:08:06 v #7193 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:06 v #7194 > >
00:08:06 v #7195 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:06 v #7196 > > inl try_await_all forall t. (x : try_join_all (future_pin (resultm.result' t
00:08:06 v #7197 > > sm'.std_string))) : resultm.result' (am'.vec t) sm'.std_string =
00:08:06 v #7198 > >     !\($'"!x.await"')
00:08:06 v #7199 > 00:08:05 d #441 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffc8bf2625e23428bc1d364f459b1f89c2a6781865c5db299cdbad31c65f08fb/main.spi
00:08:06 v #7200 > >
00:08:06 v #7201 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:06 v #7202 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:06 v #7203 > > │ ### try_await_all_send                                                       │
00:08:06 v #7204 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:06 v #7205 > >
00:08:06 v #7206 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:06 v #7207 > > inl try_await_all_send forall t. (x : try_join_all (future_pin_send
00:08:06 v #7208 > > (resultm.result' t sm'.std_string))) : resultm.result' (am'.vec t)
00:08:06 v #7209 > > sm'.std_string =
00:08:06 v #7210 > >     !\($'"!x.await"')
00:08:07 v #7211 > 00:08:06 d #442 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/226384612a2d36268ff461647ad781fb5d44652079adeb95f4f1265eec20f17b/main.spi
00:08:07 v #7212 > >
00:08:07 v #7213 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:07 v #7214 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:07 v #7215 > > │ ### await                                                                    │
00:08:07 v #7216 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:07 v #7217 > >
00:08:07 v #7218 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:07 v #7219 > > inl await forall t. (x : future_pin t) : t =
00:08:07 v #7220 > >     !\($'"!x.await"')
00:08:07 v #7221 > 00:08:06 d #443 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/46e94b8678d052ac39dde419e1e52c231868792646887b919e5e1d0c6df93481/main.spi
00:08:07 v #7222 > >
00:08:07 v #7223 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:07 v #7224 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:07 v #7225 > > │ ### await                                                                    │
00:08:07 v #7226 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:07 v #7227 > >
00:08:07 v #7228 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:07 v #7229 > > inl await_send forall t. (x : future_pin_send t) : t =
00:08:07 v #7230 > >     !\($'"!x.await"')
00:08:07 v #7231 > 00:08:07 d #444 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/753cebe4d1af713c373d58f22e2a3620d9caec3af74847e335cb319e012502a2/main.spi
00:08:08 v #7232 > >
00:08:08 v #7233 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:08 v #7234 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:08 v #7235 > > │ ### into_iter                                                                │
00:08:08 v #7236 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:08 v #7237 > >
00:08:08 v #7238 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:08 v #7239 > > nominal into_iter t =
00:08:08 v #7240 > >     `(
00:08:08 v #7241 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:08 v #7242 > > Fable.Core.Emit(\"rayon::vec::IntoIter<$0>\")>]]\n#endif\ntype
00:08:08 v #7243 > > rayon_vec_IntoIter<'T> = class end"
00:08:08 v #7244 > >         $'' : $'rayon_vec_IntoIter<`t>'
00:08:08 v #7245 > >     )
00:08:08 v #7246 > 00:08:07 d #445 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/63ffafc177a5c1ddba75e6e851c4f4aca708f53a5ce9a673b8fe583c89c84e26/main.spi
00:08:08 v #7247 > >
00:08:08 v #7248 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:08 v #7249 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:08 v #7250 > > │ ### into_par_iter                                                            │
00:08:08 v #7251 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:08 v #7252 > >
00:08:08 v #7253 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:08 v #7254 > > inl into_par_iter forall t. (x : am'.vec t) : into_iter t =
00:08:08 v #7255 > >     !\\(x, $'"rayon::iter::IntoParallelIterator::into_par_iter($0)"')
00:08:08 v #7256 > 00:08:07 d #446 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b2d35a2dbab944f5aee82c898d45db47f40a1f19fd5c30e4aee88dbe9a21dee9/main.spi
00:08:08 v #7257 > >
00:08:08 v #7258 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:08 v #7259 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:08 v #7260 > > │ ### par_iter                                                                 │
00:08:08 v #7261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:08 v #7262 > >
00:08:08 v #7263 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:08 v #7264 > > inl par_iter forall t. (x : am'.vec t) : into_iter t =
00:08:08 v #7265 > >     !\($'"rayon::iter::IntoParallelIterator::par_iter(!x)"')
00:08:09 v #7266 > 00:08:08 d #447 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a88da08d698830c6b4b7cf4890aa1706e684b15d57e433f33b8b4c2cf0d72244/main.spi
00:08:09 v #7267 > >
00:08:09 v #7268 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:09 v #7269 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:09 v #7270 > > │ ### iter_map                                                                 │
00:08:09 v #7271 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:09 v #7272 > >
00:08:09 v #7273 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:09 v #7274 > > nominal iter_map t u =
00:08:09 v #7275 > >     `(
00:08:09 v #7276 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:09 v #7277 > > Fable.Core.Emit(\"rayon::iter::Map<$0, _>\")>]]\n#endif\ntype rayon_iter_Map<'T>
00:08:09 v #7278 > > = class end"
00:08:09 v #7279 > >         $'' : $'rayon_iter_Map<`t>'
00:08:09 v #7280 > >     )
00:08:09 v #7281 > 00:08:08 d #448 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a66eeae5391cb5e8eb45c5de5ae60ca778b66d2622460f4367f7a0b6383de1d/main.spi
00:08:09 v #7282 > >
00:08:09 v #7283 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:09 v #7284 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:09 v #7285 > > │ ### par_map                                                                  │
00:08:09 v #7286 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:09 v #7287 > >
00:08:09 v #7288 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:09 v #7289 > > inl par_map forall t u. (fn : t -> u) (ar : into_iter t) : iter_map (into_iter
00:08:09 v #7290 > > t) u =
00:08:09 v #7291 > >     !\\((ar, fn), $'"rayon::iter::ParallelIterator::map($0, |x| $1(x))"')
00:08:10 v #7292 > 00:08:09 d #449 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55e75f81d160aa4f9de9bc86524caf9fd75efd02f786b80d0c1f0f4acf8baad3/main.spi
00:08:10 v #7293 > >
00:08:10 v #7294 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:10 v #7295 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:10 v #7296 > > │ ### par_collect                                                              │
00:08:10 v #7297 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:10 v #7298 > >
00:08:10 v #7299 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:10 v #7300 > > inl par_collect forall t u. (iter : iter_map (into_iter t) u) : am'.vec u =
00:08:10 v #7301 > >     !\\(iter, $'"rayon::iter::ParallelIterator::collect($0)"')
00:08:10 v #7302 > 00:08:09 d #450 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/097d345ec4382384dde08088cba381d19d872eced66bf4e1ad9db022fb751e52/main.spi
00:08:10 v #7303 > >
00:08:10 v #7304 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:10 v #7305 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:10 v #7306 > > │ ### try_join_all_iter                                                        │
00:08:10 v #7307 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:10 v #7308 > >
00:08:10 v #7309 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:10 v #7310 > > inl try_join_all_iter forall t. (x : am'.vec (future_pin_send (resultm.result' t
00:08:10 v #7311 > > sm'.std_string))) : try_join_all (future_pin_send (resultm.result' t
00:08:10 v #7312 > > sm'.std_string)) =
00:08:10 v #7313 > >     inl x = join x
00:08:10 v #7314 > >     !\($'"futures::future::try_join_all(!x)"')
00:08:10 v #7315 > 00:08:10 d #451 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/102cc13b6dca73bd6cc305dea61455c4b25bda92a4f28340a1d5827dc8e1f8b2/main.spi
00:08:11 v #7316 > >
00:08:11 v #7317 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:11 v #7318 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:11 v #7319 > > │ ### future_init                                                              │
00:08:11 v #7320 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:11 v #7321 > >
00:08:11 v #7322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:11 v #7323 > > inl future_init forall t. (move : bool) (x : () -> t) : infer' t =
00:08:11 v #7324 > >     if move
00:08:11 v #7325 > >     then (!\($'"true; let __future_init = Box::pin(async move { //"') : bool) |>
00:08:11 v #7326 > > ignore
00:08:11 v #7327 > >     else (!\($'"true; let __future_init = Box::pin(async { //"') : bool) |>
00:08:11 v #7328 > > ignore
00:08:11 v #7329 > >
00:08:11 v #7330 > >     inl is_unit : bool =
00:08:11 v #7331 > >         real
00:08:11 v #7332 > >             typecase t with
00:08:11 v #7333 > >             | () => true
00:08:11 v #7334 > >             | _ => false
00:08:11 v #7335 > >
00:08:11 v #7336 > >     inl x' = x ()
00:08:11 v #7337 > >     inl x' = join x'
00:08:11 v #7338 > >
00:08:11 v #7339 > >     inl depth =
00:08:11 v #7340 > >         if is_unit
00:08:11 v #7341 > >         then 2, 1
00:08:11 v #7342 > >         else 1, 0
00:08:11 v #7343 > >
00:08:11 v #7344 > >     x' |> rust.fix_closure depth
00:08:11 v #7345 > >
00:08:11 v #7346 > >     !\($'"__future_init"')
00:08:11 v #7347 > 00:08:10 d #452 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5e6eb0d21a3b155858fda94a23d6f9bf5e019ead3312b6f9d129bbfffb440c9a/main.spi
00:08:11 v #7348 > >
00:08:11 v #7349 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:11 v #7350 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:11 v #7351 > > │ ### new_future                                                               │
00:08:11 v #7352 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:11 v #7353 > >
00:08:11 v #7354 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:11 v #7355 > > inl new_future forall t. (x : () -> t) : future_pin t =
00:08:11 v #7356 > >     inl result = future_init false x
00:08:11 v #7357 > >     !\($'"!result"')
00:08:11 v #7358 > 00:08:10 d #453 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/608f47895d31ea3f7f4c93a9430d18de363e3b7fa6bba340f9fd21556f1f63ab/main.spi
00:08:11 v #7359 > >
00:08:11 v #7360 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:11 v #7361 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:11 v #7362 > > │ ### new_future_move                                                          │
00:08:11 v #7363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:11 v #7364 > >
00:08:11 v #7365 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:11 v #7366 > > inl new_future_move forall t. (x : () -> t) : future_pin t =
00:08:11 v #7367 > >     inl result = future_init true x
00:08:11 v #7368 > >     !\($'"!result"')
00:08:12 v #7369 > 00:08:11 d #454 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4231834092eca3ca5d8645211dfb534690eb3fd549b7c9af614005a0dd07dfe4/main.spi
00:08:12 v #7370 > >
00:08:12 v #7371 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:12 v #7372 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:12 v #7373 > > │ ### new_future_send                                                          │
00:08:12 v #7374 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:12 v #7375 > >
00:08:12 v #7376 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:12 v #7377 > > inl new_future_send forall t. (x : () -> t) : future_pin_send t =
00:08:12 v #7378 > >     inl result = future_init false x
00:08:12 v #7379 > >     !\($'"!result"')
00:08:12 v #7380 > 00:08:11 d #455 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/07279fa563fd26018a721435831b3f91bfe0c67b02f5b14e0a66cdda715d6fc2/main.spi
00:08:12 v #7381 > >
00:08:12 v #7382 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:12 v #7383 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:12 v #7384 > > │ ### new_future_move_send                                                     │
00:08:12 v #7385 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:12 v #7386 > >
00:08:12 v #7387 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:12 v #7388 > > inl new_future_move_send forall t. (x : () -> t) : future_pin_send t =
00:08:12 v #7389 > >     inl result = future_init true x
00:08:12 v #7390 > >     !\($'"!result"')
00:08:13 v #7391 > 00:08:12 d #456 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0fd045c8a722facdf310266e62daa55b824ff333265379a8f4a168a8a0fe8ff4/main.spi
00:08:13 v #7392 > >
00:08:13 v #7393 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:13 v #7394 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:13 v #7395 > > │ ## fsharp                                                                    │
00:08:13 v #7396 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:13 v #7397 > >
00:08:13 v #7398 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:13 v #7399 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:13 v #7400 > > │ ### async                                                                    │
00:08:13 v #7401 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:13 v #7402 > >
00:08:13 v #7403 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:13 v #7404 > > nominal async t = $'Async<`t>'
00:08:13 v #7405 > 00:08:12 d #457 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb55df13b6261f3a2fde0f0aae84ec5d7e7d7c2bb25ecae698edf54f44d977f3/main.spi
00:08:13 v #7406 > >
00:08:13 v #7407 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:13 v #7408 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:13 v #7409 > > │ ### task                                                                     │
00:08:13 v #7410 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:13 v #7411 > >
00:08:13 v #7412 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:13 v #7413 > > nominal task t =
00:08:13 v #7414 > >     `(
00:08:13 v #7415 > >         typecase t with
00:08:13 v #7416 > >         | () => $'' : $'System.Threading.Tasks.Task'
00:08:13 v #7417 > >         | _ => $'' : $'System.Threading.Tasks.Task<`t>'
00:08:13 v #7418 > >     )
00:08:13 v #7419 > 00:08:13 d #458 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7a12835d28693ef27961d2c6f282108d5ac753c2dc2b5b7e839ddc7d01803f29/main.spi
00:08:13 v #7420 > >
00:08:13 v #7421 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:13 v #7422 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:13 v #7423 > > │ ### new_async_unit                                                           │
00:08:13 v #7424 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:13 v #7425 > >
00:08:13 v #7426 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:13 v #7427 > > inl new_async_unit forall t. (fn : () -> ()) : async t =
00:08:13 v #7428 > >     run_target function
00:08:13 v #7429 > >         | Fsharp (Native) => fun () =>
00:08:13 v #7430 > >             inl result : optionm'.option' (async t) = optionm'.none' ()
00:08:13 v #7431 > >             $'let mutable _!result = !result '
00:08:13 v #7432 > >             $'async {'
00:08:13 v #7433 > >             fn ()
00:08:13 v #7434 > >             real
00:08:13 v #7435 > >                 typecase t with
00:08:13 v #7436 > >                 | () => $'()' : ()
00:08:13 v #7437 > >                 | _ => ()
00:08:13 v #7438 > >             $'}'
00:08:13 v #7439 > >             $'|> fun x -> _!result <- Some x'
00:08:13 v #7440 > >             $'match _!result with Some x -> x | None -> failwith
00:08:13 v #7441 > > "async.new_async_unit / _!result=None"'
00:08:13 v #7442 > >         | _ => fun () => null ()
00:08:14 v #7443 > 00:08:13 d #459 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47636278e3d076db76d9ef8d6167c179642396157e4ccabca7dedc3d56e5f7a7/main.spi
00:08:14 v #7444 > >
00:08:14 v #7445 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:14 v #7446 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:14 v #7447 > > │ ### new_async                                                                │
00:08:14 v #7448 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:14 v #7449 > >
00:08:14 v #7450 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:14 v #7451 > > inl new_async forall t. (fn : () -> t) : async t =
00:08:14 v #7452 > >     new_async_unit (fn >> ignore)
00:08:14 v #7453 > 00:08:13 d #460 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/de3d81f9c8327d82c7726c7e408f740fca1035c444e3c9c678ac15bdc29230a5/main.spi
00:08:14 v #7454 > >
00:08:14 v #7455 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:14 v #7456 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:14 v #7457 > > │ ### new_task                                                                 │
00:08:14 v #7458 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:14 v #7459 > >
00:08:14 v #7460 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:14 v #7461 > > inl new_task forall t. (fn : () -> t) : task t =
00:08:14 v #7462 > >     run_target function
00:08:14 v #7463 > >         | Fsharp (Native) => fun () =>
00:08:14 v #7464 > >             inl result : optionm'.option' (task t) = optionm'.none' ()
00:08:14 v #7465 > >             $'let mutable _!result = !result '
00:08:14 v #7466 > >             $'task {'
00:08:14 v #7467 > >             fn () |> ignore
00:08:14 v #7468 > >             $'}'
00:08:14 v #7469 > >             $'|> fun x -> _!result <- Some x'
00:08:14 v #7470 > >             $'match _!result with Some x -> x | None -> failwith "async.new_task
00:08:14 v #7471 > > / _!result=None"'
00:08:14 v #7472 > >         | _ => fun () => null ()
00:08:15 v #7473 > 00:08:14 d #461 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36c462cbc7595016a407f9b02d10134d41a9fd1e7155b520f74a97c931c345fa/main.spi
00:08:15 v #7474 > >
00:08:15 v #7475 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:15 v #7476 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:15 v #7477 > > │ ### await_task                                                               │
00:08:15 v #7478 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:15 v #7479 > >
00:08:15 v #7480 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:15 v #7481 > > inl await_task forall t. (a : task t) : async t =
00:08:15 v #7482 > >     run_target function
00:08:15 v #7483 > >         | Fsharp (Native) => fun () =>
00:08:15 v #7484 > >             a |> $'Async.AwaitTask'
00:08:15 v #7485 > >         | _ => fun () => null ()
00:08:15 v #7486 > 00:08:14 d #462 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ac836c26d805d058a9158fc7df01591410e4ef357b2604cb0e045b0ef09b75c/main.spi
00:08:15 v #7487 > >
00:08:15 v #7488 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:15 v #7489 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:15 v #7490 > > │ ### ignore                                                                   │
00:08:15 v #7491 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:15 v #7492 > >
00:08:15 v #7493 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:15 v #7494 > > inl ignore forall t. (a : async t) : async () =
00:08:15 v #7495 > >     run_target function
00:08:15 v #7496 > >         | Fsharp (Native) => fun () =>
00:08:15 v #7497 > >             a |> $'Async.Ignore'
00:08:15 v #7498 > >         | _ => fun () => null ()
00:08:15 v #7499 > 00:08:15 d #463 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/938f5e55f695371b29677d13175d76cfef10615ec5ac6152f9681ab8cf4ca3a8/main.spi
00:08:16 v #7500 > >
00:08:16 v #7501 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:16 v #7502 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:16 v #7503 > > │ ### run_synchronously                                                        │
00:08:16 v #7504 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:16 v #7505 > >
00:08:16 v #7506 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:16 v #7507 > > inl run_synchronously forall t. (a : async t) : t =
00:08:16 v #7508 > >     run_target function
00:08:16 v #7509 > >         | Fsharp (Native) => fun () =>
00:08:16 v #7510 > >             a |> $'Async.RunSynchronously'
00:08:16 v #7511 > >         | _ => fun () => null ()
00:08:16 v #7512 > 00:08:15 d #464 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6c330b46bba705ff7b39a61493261e3d1926d7f0d47b4d86557ba61ab04b0e27/main.spi
00:08:16 v #7513 > >
00:08:16 v #7514 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:16 v #7515 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:16 v #7516 > > │ ### start                                                                    │
00:08:16 v #7517 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:16 v #7518 > >
00:08:16 v #7519 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:16 v #7520 > > inl start (a : async ()) : () =
00:08:16 v #7521 > >     run_target function
00:08:16 v #7522 > >         | Fsharp (Native) => fun () =>
00:08:16 v #7523 > >             a |> $'Async.Start'
00:08:16 v #7524 > >         | _ => fun () => null ()
00:08:16 v #7525 > 00:08:15 d #465 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/023ce56527eb42811aa4a5e415c78945c14541c552209fafaf8640c716e76e23/main.spi
00:08:16 v #7526 > >
00:08:16 v #7527 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:16 v #7528 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:16 v #7529 > > │ ### start_child                                                              │
00:08:16 v #7530 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:16 v #7531 > >
00:08:16 v #7532 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:16 v #7533 > > inl start_child forall t. (a : async t) : async (async t) =
00:08:16 v #7534 > >     run_target function
00:08:16 v #7535 > >         | Fsharp (Native) => fun () =>
00:08:16 v #7536 > >             a |> $'Async.StartChild'
00:08:16 v #7537 > >         | _ => fun () => null ()
00:08:17 v #7538 > 00:08:16 d #466 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6c0124fcc99a5c3445fd4421a6f3ceff2d4f5023f0db296cd2cd1e12cc43ce80/main.spi
00:08:17 v #7539 > >
00:08:17 v #7540 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:17 v #7541 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:17 v #7542 > > │ ### start_child_timeout                                                      │
00:08:17 v #7543 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:17 v #7544 > >
00:08:17 v #7545 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:17 v #7546 > > inl start_child_timeout forall t. (timeout : i32) (a : async t) : async (async
00:08:17 v #7547 > > t) =
00:08:17 v #7548 > >     run_target function
00:08:17 v #7549 > >         | Fsharp (Native) => fun () =>
00:08:17 v #7550 > >             $'Async.StartChild (!a, !timeout)'
00:08:17 v #7551 > >         | _ => fun () => null ()
00:08:17 v #7552 > 00:08:16 d #467 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f29ae9b15c24078cc2cc5b51c2ea3f4bf64c1a61ee20a9210596db44fc9d88ed/main.spi
00:08:17 v #7553 > >
00:08:17 v #7554 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:17 v #7555 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:17 v #7556 > > │ ### start_immediate                                                          │
00:08:17 v #7557 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:17 v #7558 > >
00:08:17 v #7559 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:17 v #7560 > > inl start_immediate forall t. (a : async t) : () =
00:08:17 v #7561 > >     run_target function
00:08:17 v #7562 > >         | Fsharp (Native) => fun () =>
00:08:17 v #7563 > >             a |> $'Async.StartImmediate'
00:08:17 v #7564 > >         | _ => fun () => null ()
00:08:17 v #7565 > 00:08:17 d #468 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9705b66059b1dbc555d506efb133649af61eb6ee04a02df13b7b62a962f59808/main.spi
00:08:18 v #7566 > >
00:08:18 v #7567 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:18 v #7568 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:18 v #7569 > > │ ### task_canceled_exception                                                  │
00:08:18 v #7570 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:18 v #7571 > >
00:08:18 v #7572 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:18 v #7573 > > nominal task_canceled_exception =
00:08:18 v #7574 > > $'System.Threading.Tasks.TaskCanceledException'
00:08:18 v #7575 > 00:08:17 d #469 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1c62c546425bfa4a96744518a4771052f3166aa56ec40ebcd1cb7d5cde85af8/main.spi
00:08:18 v #7576 > >
00:08:18 v #7577 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:18 v #7578 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:18 v #7579 > > │ ### sleep                                                                    │
00:08:18 v #7580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:18 v #7581 > >
00:08:18 v #7582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:18 v #7583 > > inl sleep (ms : i32) : async () =
00:08:18 v #7584 > >     run_target function
00:08:18 v #7585 > >         | Fsharp (Native) => fun () =>
00:08:18 v #7586 > >             ms |> $'Async.Sleep'
00:08:18 v #7587 > >         | _ => fun () => null ()
00:08:18 v #7588 > 00:08:17 d #470 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8f2d08fa1e1c2124641d244719f2ca0a1a441f1d84ede3666ded97b72e8fe2a/main.spi
00:08:18 v #7589 > >
00:08:18 v #7590 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:18 v #7591 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:18 v #7592 > > │ ### do                                                                       │
00:08:18 v #7593 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:18 v #7594 > >
00:08:18 v #7595 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:18 v #7596 > > inl do (a : async ()) : () =
00:08:18 v #7597 > >     $'do\! !a '
00:08:19 v #7598 > 00:08:18 d #471 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/33beaef409c69e15ee2204a02c570a27bb8f5e63b651d79446bc9c31e849b22d/main.spi
00:08:19 v #7599 > >
00:08:19 v #7600 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:19 v #7601 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:19 v #7602 > > │ ### let'                                                                     │
00:08:19 v #7603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:19 v #7604 > >
00:08:19 v #7605 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:19 v #7606 > > inl let' forall t. (a : async t) : t =
00:08:19 v #7607 > >     $'let\! !a = !a '
00:08:19 v #7608 > >     $'!a '
00:08:19 v #7609 > 00:08:18 d #472 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2528bb60e5dae10496041f26c7364250fe1efd32a6a5200758262c522f083eaa/main.spi
00:08:19 v #7610 > >
00:08:19 v #7611 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:19 v #7612 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:19 v #7613 > > │ ### return_await                                                             │
00:08:19 v #7614 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:19 v #7615 > >
00:08:19 v #7616 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:19 v #7617 > > inl return_await forall t. (a : async t) : () =
00:08:19 v #7618 > >     $'return\! !a '
00:08:19 v #7619 > 00:08:19 d #473 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/88a3b8a4934a8a3dcf7277bb0cfa972051647923eff2a4f8bdea1b2e3fcc528c/main.spi
00:08:20 v #7620 > >
00:08:20 v #7621 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:20 v #7622 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:20 v #7623 > > │ ### return_await'                                                            │
00:08:20 v #7624 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:20 v #7625 > >
00:08:20 v #7626 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:20 v #7627 > > inl return_await' forall t. (a : async t) : t =
00:08:20 v #7628 > >     $'return\! !a '
00:08:20 v #7629 > 00:08:19 d #474 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d8083c07c5c17a354f2f643160a4ca459246c0a985d1b337aeb6e89d7cde66a6/main.spi
00:08:20 v #7630 > >
00:08:20 v #7631 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:20 v #7632 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:20 v #7633 > > │ ### map                                                                      │
00:08:20 v #7634 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:20 v #7635 > >
00:08:20 v #7636 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:20 v #7637 > > inl map forall t u. (fn : t -> u) (a : async t) : async u =
00:08:20 v #7638 > >     fun () =>
00:08:20 v #7639 > >         inl x = a |> let'
00:08:20 v #7640 > >         fn x |> return
00:08:20 v #7641 > >     |> new_async_unit
00:08:20 v #7642 > 00:08:19 d #475 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9011b4cf7ddc004bc80abb12c195bd891dbc60eddb1e0b455e905b9c4c48e3fc/main.spi
00:08:20 v #7643 > >
00:08:20 v #7644 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:20 v #7645 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:20 v #7646 > > │ ### catch'                                                                   │
00:08:20 v #7647 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:20 v #7648 > >
00:08:20 v #7649 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:20 v #7650 > > inl catch' forall t e. (a : async t) : async (choice2' t e) =
00:08:20 v #7651 > >     run_target function
00:08:20 v #7652 > >         | Fsharp (Native) => fun () =>
00:08:20 v #7653 > >             a |> $'Async.Catch'
00:08:20 v #7654 > >         | _ => fun () => null ()
00:08:21 v #7655 > 00:08:20 d #476 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8e11c4fb7481503130959f691b8fe4316a2400b2c5257fb111168b687f048a2/main.spi
00:08:21 v #7656 > >
00:08:21 v #7657 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:21 v #7658 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:21 v #7659 > > │ ### catch                                                                    │
00:08:21 v #7660 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:21 v #7661 > >
00:08:21 v #7662 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:21 v #7663 > > inl catch forall t e. (a : async t) : async (result t e) =
00:08:21 v #7664 > >     a
00:08:21 v #7665 > >     |> catch'
00:08:21 v #7666 > >     |> map choice2_unbox
00:08:21 v #7667 > >     |> map function
00:08:21 v #7668 > >         | C1of2 result => Ok result
00:08:21 v #7669 > >         | C2of2 ex => Error ex
00:08:21 v #7670 > 00:08:20 d #477 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6e1049d12a14dafbf79015b1f20fdf5b6567526545b8a45f1fc5bf61d66928ed/main.spi
00:08:21 v #7671 > >
00:08:21 v #7672 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:21 v #7673 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:21 v #7674 > > │ ### run_with_timeout_async                                                   │
00:08:21 v #7675 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:21 v #7676 > >
00:08:21 v #7677 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:21 v #7678 > > inl run_with_timeout_async forall t. (timeout : i32) (fn : async t) : async
00:08:21 v #7679 > > (option t) =
00:08:21 v #7680 > >     run_target function
00:08:21 v #7681 > >         | Fsharp (Native) => fun () =>
00:08:21 v #7682 > >             fun () =>
00:08:21 v #7683 > >                 inl child = fn |> start_child_timeout timeout |> let'
00:08:21 v #7684 > >                 child
00:08:21 v #7685 > >                 |> catch
00:08:21 v #7686 > >                 |> map function
00:08:21 v #7687 > >                     | Ok result => Some result
00:08:21 v #7688 > >                     | Error ex when ex |> sm'.format_debug |> sm'.contains
00:08:21 v #7689 > > "System.TimeoutException" =>
00:08:21 v #7690 > >                         trace Verbose
00:08:21 v #7691 > >                             fun () => "async.run_with_timeout_async"
00:08:21 v #7692 > >                             fun () => { timeout }
00:08:21 v #7693 > >                         None
00:08:21 v #7694 > >                     | Error (ex : exn) =>
00:08:21 v #7695 > >                         trace Critical
00:08:21 v #7696 > >                             fun () => "async.run_with_timeout_async**"
00:08:21 v #7697 > >                             fun () => { timeout ex = ex |> sm'.format_exception
00:08:21 v #7698 > > }
00:08:21 v #7699 > >                         None
00:08:21 v #7700 > >                 |> return_await
00:08:21 v #7701 > >             |> new_async_unit
00:08:21 v #7702 > >         | _ => fun () => null ()
00:08:21 v #7703 > 00:08:21 d #478 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f63b5dd657eab4b1d4606d7bcacda447e060403de7beea2268f8a58cefc2d9c/main.spi
00:08:22 v #7704 > >
00:08:22 v #7705 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:22 v #7706 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:22 v #7707 > > │ ### run_with_timeout                                                         │
00:08:22 v #7708 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:22 v #7709 > >
00:08:22 v #7710 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:22 v #7711 > > inl run_with_timeout timeout fn =
00:08:22 v #7712 > >     fn
00:08:22 v #7713 > >     |> run_with_timeout_async timeout
00:08:22 v #7714 > >     |> run_synchronously
00:08:22 v #7715 > 00:08:21 d #479 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c3529829c8e7c17e0b65983994111c5e3c18dda0999c5ee0a42231697cd33f90/main.spi
00:08:22 v #7716 > >
00:08:22 v #7717 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:22 v #7718 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:22 v #7719 > > │ ### cancellation_token                                                       │
00:08:22 v #7720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:22 v #7721 > >
00:08:22 v #7722 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:22 v #7723 > > inl cancellation_token () : async threading.cancellation_token =
00:08:22 v #7724 > >     $'Async.CancellationToken'
00:08:22 v #7725 > 00:08:21 d #480 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40f8017dcb74948f56b7f8dc0e0fe506e310a0869c4971a4ef7c15e829cacf7f/main.spi
00:08:23 v #7726 > >
00:08:23 v #7727 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:23 v #7728 > > inl default_cancellation_token () : threading.cancellation_token =
00:08:23 v #7729 > >     $'Async.DefaultCancellationToken'
00:08:23 v #7730 > 00:08:22 d #481 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d644f47c094c8f945f7d60497674f44b66a71b72de80fca84bd0ca8beef12c97/main.spi
00:08:23 v #7731 > >
00:08:23 v #7732 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:23 v #7733 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:23 v #7734 > > │ ### merge_cancellation_token_with_default_async                              │
00:08:23 v #7735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:23 v #7736 > >
00:08:23 v #7737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:23 v #7738 > > inl merge_cancellation_token_with_default_async
00:08:23 v #7739 > >     (token : threading.cancellation_token)
00:08:23 v #7740 > >     : async threading.cancellation_token
00:08:23 v #7741 > >     =
00:08:23 v #7742 > >     run_target function
00:08:23 v #7743 > >         | Fsharp (Native) => fun () =>
00:08:23 v #7744 > >             fun () =>
00:08:23 v #7745 > >                 inl ct = cancellation_token () |> let'
00:08:23 v #7746 > >                 inl dct = default_cancellation_token ()
00:08:23 v #7747 > >                 inl cts = threading.create_linked_token_source ;[[ ct; dct;
00:08:23 v #7748 > > token ]]
00:08:23 v #7749 > >                 cts |> threading.cancellation_source_token |> return
00:08:23 v #7750 > >             |> new_async_unit
00:08:23 v #7751 > >         | _ => fun () => null ()
00:08:23 v #7752 > 00:08:22 d #482 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5df86286f231d323acf428e70b1f90ea61c4a1dd9c08f012bcd0c389a7f22697/main.spi
00:08:23 v #7753 > >
00:08:23 v #7754 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:23 v #7755 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:23 v #7756 > > │ ### with_trace_level                                                         │
00:08:23 v #7757 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:23 v #7758 > >
00:08:23 v #7759 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:23 v #7760 > > inl with_trace_level forall t. level fn : _ t = new_async fun () =>
00:08:23 v #7761 > >     inl trace_state = get_trace_state_or_init None
00:08:23 v #7762 > >     inl old_trace_level = *trace_state.level
00:08:23 v #7763 > >     inl trace_level = trace_state.level
00:08:23 v #7764 > >     try_finally
00:08:23 v #7765 > >         fun () =>
00:08:23 v #7766 > >             trace_level <- level
00:08:23 v #7767 > >             fn |> return_await
00:08:23 v #7768 > >         fun () =>
00:08:23 v #7769 > >             trace_level <- old_trace_level
00:08:24 v #7770 > 00:08:23 d #483 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae609072d1ebd027257f74b0de7dd626d5d26c7ca145f83cf9636c5ca216f1d2/main.spi
00:08:24 v #7771 > >
00:08:24 v #7772 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:24 v #7773 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:24 v #7774 > > │ ### value_task                                                               │
00:08:24 v #7775 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:24 v #7776 > >
00:08:24 v #7777 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:24 v #7778 > > nominal value_task = $'System.Threading.Tasks.ValueTask'
00:08:24 v #7779 > 00:08:23 d #484 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b59aaa375e19277c3734dc5b189f1a7bc69f84cf51d8e72bcc35e46f5c0fc773/main.spi
00:08:24 v #7780 > >
00:08:24 v #7781 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:24 v #7782 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:24 v #7783 > > │ ### value_task_as_task                                                       │
00:08:24 v #7784 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:24 v #7785 > >
00:08:24 v #7786 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:24 v #7787 > > inl value_task_as_task (task : value_task) : task () =
00:08:24 v #7788 > >     $'!task.AsTask' ()
00:08:24 v #7789 > 00:08:24 d #485 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/96bd19690463d14e0bdc98f2f2fc407275f4c5d3bd3cef58b8b7508fd8d6c57e/main.spi
00:08:25 v #7790 > >
00:08:25 v #7791 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:25 v #7792 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:25 v #7793 > > │ ### await_value_task_unit                                                    │
00:08:25 v #7794 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:25 v #7795 > >
00:08:25 v #7796 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:25 v #7797 > > inl await_value_task_unit (task : value_task) : async () =
00:08:25 v #7798 > >     task |> value_task_as_task |> await_task
00:08:25 v #7799 > 00:08:24 d #486 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aee243b7021c71a662ed8025c6a92bc38bedd6060d26c9e6079bea22e8f0a1f9/main.spi
00:08:25 v #7800 > >
00:08:25 v #7801 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:25 v #7802 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:25 v #7803 > > │ ## main                                                                      │
00:08:25 v #7804 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:25 v #7805 > >
00:08:25 v #7806 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:25 v #7807 > > inl main () =
00:08:25 v #7808 > >     $'let merge_cancellation_token_with_default_async x =
00:08:25 v #7809 > > !merge_cancellation_token_with_default_async x' : ()
00:08:25 v #7810 > 00:08:25 d #487 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70704c9042f34a75f29debea2cb94b41ad531353f713cbb79129615ef53497e6/main.spi
00:08:26 v #7811 > 00:00:38 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 43944 }
00:08:26 v #7812 > 00:00:38 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/async.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/async.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:08:28 v #7813 > 00:00:40 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/async.dib.ipynb to html
00:08:28 v #7814 > 00:00:40 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:08:28 v #7815 > 00:00:40 v #7 !   validate(nb)
00:08:29 v #7816 > 00:00:40 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:08:29 v #7817 > 00:00:40 v #9 !   return _pygments_highlight(
00:08:30 v #7818 > 00:00:41 v #10 ! [NbConvertApp] Writing 411277 bytes to c:\home\git\polyglot\lib\spiral\async.dib.html
00:08:30 v #7819 > 00:00:41 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 852 }
00:08:30 v #7820 > 00:00:41 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 852 }
00:08:30 v #7821 > 00:00:41 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/async.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/async.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:08:30 v #7822 > 00:00:42 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:08:30 v #7823 > 00:00:42 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:08:30 v #7824 > 00:00:42 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 44855 }
00:08:30 d #7825 runtime.execute_with_options_async / { exit_code = 0; output_length = 49195 }
00:08:30 d #11 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path async.dib --retries 3
00:08:30 d #7826 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path runtime.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path runtime.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:08:30 v #7827 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "runtime.dib", "--retries", "3"])) }
00:08:30 v #7828 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/runtime.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/runtime.dib" --output-path "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:08:32 v #7829 > >
00:08:32 v #7830 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:32 v #7831 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:32 v #7832 > > │ # runtime                                                                    │
00:08:32 v #7833 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:36 v #7834 > >
00:08:36 v #7835 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:36 v #7836 > > open rust
00:08:36 v #7837 > > open rust_operators
00:08:36 v #7838 > > open sm'_operators
00:08:36 v #7839 > 00:08:36 d #488 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/716b2cbc01f0892070ff03319dda7eb0fc1abfbf67f5f9829054763c3a57496f/main.spi
00:08:37 v #7840 > >
00:08:37 v #7841 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:37 v #7842 > > //// test
00:08:37 v #7843 > >
00:08:37 v #7844 > > open testing
00:08:37 v #7845 > > open file_system_operators
00:08:37 v #7846 > 00:08:36 d #489 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d24ad30630ddeaa6eba453adab5944b53d355403facbf5a79fbe25dd4950d90/main.spi
00:08:37 v #7847 > >
00:08:37 v #7848 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:37 v #7849 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:37 v #7850 > > │ ## runtime                                                                   │
00:08:37 v #7851 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:37 v #7852 > >
00:08:37 v #7853 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:37 v #7854 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:37 v #7855 > > │ ### split_args                                                               │
00:08:37 v #7856 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:37 v #7857 > >
00:08:37 v #7858 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:37 v #7859 > > let split_args (args : string) : result (array_base string) string =
00:08:37 v #7860 > >     open parsing
00:08:37 v #7861 > >     inl esc = [[ '\\'; '`' ]]
00:08:37 v #7862 > >     inl quotes = [[ '"' ]]
00:08:37 v #7863 > >     inl special = esc ++ quotes
00:08:37 v #7864 > >     inl p_esc_char c =
00:08:37 v #7865 > >         p_char c >>. any_char () |>> fun c' => $'$"{!c}{!c'}"'
00:08:37 v #7866 > >     inl p_word = special |> none_of |>> sm'.obj_to_string
00:08:37 v #7867 > >     inl p_plain = special ++ [[ ' ' ]] |> none_of |> many1_chars
00:08:37 v #7868 > >     inl p_text = p_word |> many1_strings
00:08:37 v #7869 > >     inl p_esc = esc |> listm.map p_esc_char |> choice
00:08:37 v #7870 > >     inl p_quoted = (p_word <|> p_esc) |> many |>> sm'.concat_list ""
00:08:37 v #7871 > >     inl p_quoted_all = p_quoted |> between (p_char '"') (p_char '"')
00:08:37 v #7872 > >     inl p_esc_root = p_esc >>% "" >>. (p_word |> many) |>> sm'.concat_list ""
00:08:37 v #7873 > >     inl p_content = p_plain <|> p_quoted_all <|> p_esc_root
00:08:37 v #7874 > >     inl p_args = spaces1 () |> sep_by p_content
00:08:37 v #7875 > >     args
00:08:37 v #7876 > >     |> parse p_args
00:08:37 v #7877 > >     |> resultm.map (fst >> listm'.box >> listm'.to_array')
00:08:38 v #7878 > 00:08:37 d #490 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5d40014332e4a8f9d0b9be3c2136439bcde653275e7703420e0a70e7be09393c/main.spi
00:08:38 v #7879 > >
00:08:38 v #7880 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:38 v #7881 > > //// test
00:08:38 v #7882 > > ///! fsharp
00:08:38 v #7883 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:08:38 v #7884 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:08:38 v #7885 > > ///! rust
00:08:38 v #7886 > > ///! typescript
00:08:38 v #7887 > > ///! python
00:08:38 v #7888 > >
00:08:38 v #7889 > > [[
00:08:38 v #7890 > >     "a b c",
00:08:38 v #7891 > >     ;[[ "a"; "b"; "c" ]]
00:08:38 v #7892 > >
00:08:38 v #7893 > >     "e f \"g h\" i",
00:08:38 v #7894 > >     ;[[ "e"; "f"; "g h"; "i" ]]
00:08:38 v #7895 > >
00:08:38 v #7896 > >     "\"j k\" \"l\" \"m\"",
00:08:38 v #7897 > >     ;[[ "j k"; "l"; "m" ]]
00:08:38 v #7898 > >
00:08:38 v #7899 > >     "s -t \"u \`\"v\`\" w\"",
00:08:38 v #7900 > >     ;[[ "s"; "-t"; "u \`\"v\`\" w" ]]
00:08:38 v #7901 > >
00:08:38 v #7902 > >     "n -o \"p \\\"q\\\" r\"",
00:08:38 v #7903 > >     ;[[ "n"; "-o"; "p \\\"q\\\" r" ]]
00:08:38 v #7904 > >
00:08:38 v #7905 > >     "r -s \"t \\\"u\\\"\"",
00:08:38 v #7906 > >     ;[[ "r"; "-s"; "t \\\"u\\\"" ]]
00:08:38 v #7907 > >
00:08:38 v #7908 > >     $'$"x -y \\\"$z -a \'(b=\\\\\\"c-id=)[[a-fA-F0-9]]{{8}}\', {{ \`$_[[1]] +
00:08:38 v #7909 > > \`$d++ }}\\\""',
00:08:38 v #7910 > >     ;[[ "x"; "-y"; "$z -a '(b=\\\"c-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$d++ }"
00:08:38 v #7911 > > ]]
00:08:38 v #7912 > >
00:08:38 v #7913 > >     "e -f \"$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }\"",
00:08:38 v #7914 > >     ;[[ "e"; "-f"; "$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }"
00:08:38 v #7915 > > ]]
00:08:38 v #7916 > >
00:08:38 v #7917 > >     $'$"--l \\\\\\"\'\'\' m \'\'\'\\\\\\" "',
00:08:38 v #7918 > >     ;[[ "--l"; "''' m '''" ]]
00:08:38 v #7919 > >
00:08:38 v #7920 > >     $'$"n --o --p q --r \\\"s:/t u/v.w\\\" --x \\\"y:/z.a\\\" --b c.d
00:08:38 v #7921 > > \\\"\\\\e{{f-g}}\\\" h.i \\\"j (k)\\\""',
00:08:38 v #7922 > >     ;[[ "n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; "y:/z.a"; "--b";
00:08:38 v #7923 > > "c.d"; "\\e{f-g}"; "h.i"; "j (k)" ]]
00:08:38 v #7924 > >
00:08:38 v #7925 > >     $'\@$"l ""m n:\\o.p"""',
00:08:38 v #7926 > >     ;[[ "l"; "m n:\\o.p" ]]
00:08:38 v #7927 > > ]]
00:08:38 v #7928 > > |> _assert_fn split_args
00:08:38 v #7929 > 00:08:37 d #491 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f703d3953f21ffa14671a46708821eb2b7f67abe1632faeebf99088b1028cdee/main.spi
00:09:06 v #7930 > >
00:09:06 v #7931 > > ╭─[ 28.22s - return value ]────────────────────────────────────────────────────╮
00:09:06 v #7932 > > │                                                                              │
00:09:06 v #7933 > > │ .rs output:                                                                  │
00:09:06 v #7934 > > │                                                                              │
00:09:06 v #7935 > > │ 00:00:00 v #1 _assert_fn / { input = a b c }                           │
00:09:06 v #7936 > > │ __assert_eq' / actual: Array(MutCell(["a", "b", "c"])) / expected:           │
00:09:06 v #7937 > > │ Array(MutCell(["a", "b", "c"]))                                              │
00:09:06 v #7938 > > │                                                                              │
00:09:06 v #7939 > > │ 00:00:00 v #2 _assert_fn / { input = e f "g h" i }                     │
00:09:06 v #7940 > > │ __assert_eq' / actual: Array(MutCell(["e", "f", "g h", "i"])) / expected:    │
00:09:06 v #7941 > > │ Array(MutCell(["e", "f", "g h", "i"]))                                       │
00:09:06 v #7942 > > │                                                                              │
00:09:06 v #7943 > > │ 00:00:00 v #3 _assert_fn / { input = "j k" "l" "m" }                   │
00:09:06 v #7944 > > │ __assert_eq' / actual: Array(MutCell(["j k", "l", "m"])) / expected:         │
00:09:06 v #7945 > > │ Array(MutCell(["j k", "l", "m"]))                                            │
00:09:06 v #7946 > > │                                                                              │
00:09:06 v #7947 > > │ 00:00:00 v #4 _assert_fn / { input = s -t "u `"v`" w" }                │
00:09:06 v #7948 > > │ __assert_eq' / actual: Array(MutCell(["s", "-t", "u `"v`" w"])) / expected:  │
00:09:06 v #7949 > > │ Array(MutCell(["s", "-t", "u `"v`" w"]))                                     │
00:09:06 v #7950 > > │                                                                              │
00:09:06 v #7951 > > │ 00:00:00 v #5 _assert_fn / { input = n -o "p \"q\" r" }                │
00:09:06 v #7952 > > │ __assert_eq' / actual: Array(MutCell(["n", "-o", "p \"q\" r"])) / expected:  │
00:09:06 v #7953 > > │ Array(MutCell(["n", "-o", "p \"q\" r"]))                                     │
00:09:06 v #7954 > > │                                                                              │
00:09:06 v #7955 > > │ 00:00:00 v #6 _assert_fn / { input = r -s "t \"u\"" }                  │
00:09:06 v #7956 > > │ __assert_eq' / actual: Array(MutCell(["r", "-s", "t \"u\""])) / expected:    │
00:09:06 v #7957 > > │ Array(MutCell(["r", "-s", "t \"u\""]))                                       │
00:09:06 v #7958 > > │                                                                              │
00:09:06 v #7959 > > │ 00:00:00 v #7 _assert_fn / { input = x -y "$z -a '(b=\"c-id=)[         │
00:09:06 v #7960 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                                        │
00:09:06 v #7961 > > │ __assert_eq' / actual: Array(MutCell(["x", "-y", "$z -a '(b=\"c-id=)[        │
00:09:06 v #7962 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }"])) / expected: Array(MutCell(["x", "-y", │
00:09:06 v #7963 > > │ "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }"]))                   │
00:09:06 v #7964 > > │                                                                              │
00:09:06 v #7965 > > │ 00:00:00 v #8 _assert_fn / { input = e -f "$g -h '(i=`"j-id=)[         │
00:09:06 v #7966 > > │ a-fA-F0-9]{8}', { `$_[1] + `$k++ }" }                                        │
00:09:06 v #7967 > > │ __assert_eq' / a...t_fn / { input = n -o "p \"q\" r" }                       │
00:09:06 v #7968 > > │ __assert_eq' / actual: ['n', '-o', 'p \\"q\\" r'] / expected: ['n', '-o', 'p │
00:09:06 v #7969 > > │ \\"q\\" r']                                                                  │
00:09:06 v #7970 > > │                                                                              │
00:09:06 v #7971 > > │ 00:00:00 v #6 _assert_fn / { input = r -s "t \"u\"" }                   │
00:09:06 v #7972 > > │ __assert_eq' / actual: ['r', '-s', 't \\"u\\"'] / expected: ['r', '-s', 't   │
00:09:06 v #7973 > > │ \\"u\\"']                                                                    │
00:09:06 v #7974 > > │                                                                              │
00:09:06 v #7975 > > │ 00:00:00 v #7 _assert_fn / { input = x -y "$z -a '(b=\"c-id=)[          │
00:09:06 v #7976 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                                        │
00:09:06 v #7977 > > │ __assert_eq' / actual: ['x', '-y', '$z -a \'(b=\\"c-id=)[a-fA-F0-9]{8}\', {  │
00:09:06 v #7978 > > │ `$_[1] + `$d++ }'] / expected: ['x', '-y', '$z -a \'(b=\\"c-id=)[            │
00:09:06 v #7979 > > │ a-fA-F0-9]{8}\', { `$_[1] + `$d++ }']                                        │
00:09:06 v #7980 > > │                                                                              │
00:09:06 v #7981 > > │ 00:00:00 v #8 _assert_fn / { input = e -f "$g -h '(i=`"j-id=)[          │
00:09:06 v #7982 > > │ a-fA-F0-9]{8}', { `$_[1] + `$k++ }" }                                        │
00:09:06 v #7983 > > │ __assert_eq' / actual: ['e', '-f', '$g -h \'(i=`"j-id=)[a-fA-F0-9]{8}\', {   │
00:09:06 v #7984 > > │ `$_[1] + `$k++ }'] / expected: ['e', '-f', '$g -h \'(i=`"j-id=)[             │
00:09:06 v #7985 > > │ a-fA-F0-9]{8}\', { `$_[1] + `$k++ }']                                        │
00:09:06 v #7986 > > │                                                                              │
00:09:06 v #7987 > > │ 00:00:00 v #9 _assert_fn / { input = --l \"''' m '''\"  }               │
00:09:06 v #7988 > > │ __assert_eq' / actual: ['--l', "''' m '''"] / expected: ['--l', "''' m '''"] │
00:09:06 v #7989 > > │                                                                              │
00:09:06 v #7990 > > │ 00:00:00 v #10 _assert_fn / { input = n --o --p q --r "s:/t u/v.w" --x  │
00:09:06 v #7991 > > │ "y:/z.a" --b c.d "\e{f-g}" h.i "j (k)" }                                     │
00:09:06 v #7992 > > │ __assert_eq' / actual: ['n', '--o', '--p', 'q', '--r', 's:/t u/v.w', '--x',  │
00:09:06 v #7993 > > │ 'y:/z.a', '--b', 'c.d', '\\e{f-g}', 'h.i', 'j (k)'] / expected: ['n', '--o', │
00:09:06 v #7994 > > │ '--p', 'q', '--r', 's:/t u/v.w', '--x', 'y:/z.a', '--b', 'c.d', '\\e{f-g}',  │
00:09:06 v #7995 > > │ 'h.i', 'j (k)']                                                              │
00:09:06 v #7996 > > │                                                                              │
00:09:06 v #7997 > > │ 00:00:00 v #11 _assert_fn / { input = l "m n:\o.p" }                    │
00:09:06 v #7998 > > │ __assert_eq' / actual: ['l', 'm n:\\o.p'] / expected: ['l', 'm n:\\o.p']     │
00:09:06 v #7999 > > │                                                                              │
00:09:06 v #8000 > > │                                                                              │
00:09:06 v #8001 > > │                                                                              │
00:09:06 v #8002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:06 v #8003 > >
00:09:06 v #8004 > > ╭─[ 28.24s - stdout ]──────────────────────────────────────────────────────────╮
00:09:06 v #8005 > > │ .fsx output:                                                                 │
00:09:06 v #8006 > > │                                                                              │
00:09:06 v #8007 > > │ 00:00:00 v #1 _assert_fn / { input = a b c }                            │
00:09:06 v #8008 > > │ __assert_eq' / actual: [|"a"; "b"; "c"|] / expected: [|"a"; "b"; "c"|]       │
00:09:06 v #8009 > > │                                                                              │
00:09:06 v #8010 > > │ 00:00:00 v #2 _assert_fn / { input = e f "g h" i }                      │
00:09:06 v #8011 > > │ __assert_eq' / actual: [|"e"; "f"; "g h"; "i"|] / expected: [|"e"; "f"; "g   │
00:09:06 v #8012 > > │ h"; "i"|]                                                                    │
00:09:06 v #8013 > > │                                                                              │
00:09:06 v #8014 > > │ 00:00:00 v #3 _assert_fn / { input = "j k" "l" "m" }                    │
00:09:06 v #8015 > > │ __assert_eq' / actual: [|"j k"; "l"; "m"|] / expected: [|"j k"; "l"; "m"|]   │
00:09:06 v #8016 > > │                                                                              │
00:09:06 v #8017 > > │ 00:00:00 v #4 _assert_fn / { input = s -t "u `"v`" w" }                 │
00:09:06 v #8018 > > │ __assert_eq' / actual: [|"s"; "-t"; "u `"v`" w"|] / expected: [|"s"; "-t";   │
00:09:06 v #8019 > > │ "u `"v`" w"|]                                                                │
00:09:06 v #8020 > > │                                                                              │
00:09:06 v #8021 > > │ 00:00:00 v #5 _assert_fn / { input = n -o "p \"q\" r" }                 │
00:09:06 v #8022 > > │ __assert_eq' / actual: [|"n"; "-o"; "p \"q\" r"|] / expected: [|"n"; "-o";   │
00:09:06 v #8023 > > │ "p \"q\" r"|]                                                                │
00:09:06 v #8024 > > │                                                                              │
00:09:06 v #8025 > > │ 00:00:00 v #6 _assert_fn / { input = r -s "t \"u\"" }                   │
00:09:06 v #8026 > > │ __assert_eq' / actual: [|"r"; "-s"; "t \"u\""|] / expected: [|"r"; "-s"; "t  │
00:09:06 v #8027 > > │ \"u\""|]                                                                     │
00:09:06 v #8028 > > │                                                                              │
00:09:06 v #8029 > > │ 00:00:00 v #7 _assert_fn / { input = x -y "$z -a '(b=\"c-id=)[          │
00:09:06 v #8030 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                                        │
00:09:06 v #8031 > > │ __assert_eq' / actual: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', {    │
00:09:06 v #8032 > > │ `$_[1] + `$d++ }"|] / expected: [|"x"; "-y"; "$z -a '(b=\"c-id=)[            │
00:09:06 v #8033 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }"|]                                        │
00:09:06 v #8034 > > │                                                                              │
00:09:06 v #8035 > > │ 00:00:00 v #8 _assert_fn / { input = e -f "$g -h '(i=`"j-id=)[          │
00:09:06 v #8036 > > │ a-fA-F0-9]{8}', { `$_[1] + `$k++ }" }                                        │
00:09:06 v #8037 > > │ __assert_eq' / actual: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', {    │
00:09:06 v #8038 > > │ `$_[1] + `$k++ }"|] / expected: [|"e"; "-f"; "$g -h '(i=`"j-id=)[            │
00:09:06 v #8039 > > │ a-fA-F0-9]{8}', { `$_[1] + `$k++ }"|]                                        │
00:09:06 v #8040 > > │                                                                              │
00:09:06 v #8041 > > │ 00:00:00 v #9 _assert_fn / { input = --l \"''' m '''\"  }               │
00:09:06 v #8042 > > │ __assert_eq' / actual: [|"--l"; "''' m '''"|] / expected: [|"--l"; "''' m    │
00:09:06 v #8043 > > │ '''"|]                                                                       │
00:09:06 v #8044 > > │                                                                              │
00:09:06 v #8045 > > │ 00:00:00 v #10 _assert_fn / { input = n --o --p q --r "s:/t u/v.w" --x  │
00:09:06 v #8046 > > │ "y:/z.a" --b c.d "\e{f-g}" h.i "j (k)" }                                     │
00:09:06 v #8047 > > │ __assert_eq' / actual: [|"n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; │
00:09:06 v #8048 > > │ "y:/z.a"; "--b"; "c.d";                                                      │
00:09:06 v #8049 > > │   "\e{f-g}"; "h.i"; "j (k)"|] / expected: [|"n"; "--o"; "--p"; "q"; "--r";   │
00:09:06 v #8050 > > │ "s:/t u/v.w"; "--x"; "y:/z.a"; "--b"; "c.d";                                 │
00:09:06 v #8051 > > │   "\e{f-g}"; "h.i"; "j (k)"|]                                                │
00:09:06 v #8052 > > │                                                                              │
00:09:06 v #8053 > > │ 00:00:00 v #11 _assert_fn / { input = l "m n:\o.p" }                    │
00:09:06 v #8054 > > │ __assert_eq' / actual: [|"l"; "m n:\o.p"|] / expected: [|"l"; "m n:\o.p"|]   │
00:09:06 v #8055 > > │                                                                              │
00:09:06 v #8056 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:06 v #8057 > >
00:09:06 v #8058 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:06 v #8059 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:06 v #8060 > > │ ### split_command                                                            │
00:09:06 v #8061 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:06 v #8062 > >
00:09:06 v #8063 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:06 v #8064 > > let split_command (command : string) : result (string * option string) string =
00:09:06 v #8065 > >     open parsing
00:09:06 v #8066 > >     inl quotes = [[ '"'; '\'' ]]
00:09:06 v #8067 > >     inl p_quoted_char = quotes |> listm.map p_char |> choice
00:09:06 v #8068 > >     inl normalize = function '\\' => '/' | c => c
00:09:06 v #8069 > >     inl p_quoted = quotes |> none_of |>> normalize |> many_chars |> between
00:09:06 v #8070 > > p_quoted_char p_quoted_char
00:09:06 v #8071 > >     inl p_unquoted = quotes ++ [[ ' ' ]] |> none_of |>> normalize |> many1_chars
00:09:06 v #8072 > >     inl p_path = p_quoted <|> p_unquoted <|> eof () >>% "" .>> spaces ()
00:09:06 v #8073 > >     inl p_args = p_char ' ' |> opt >>. (any_char () |> many1_chars)
00:09:06 v #8074 > >     inl p_command = p_path .>>. (p_args |> opt)
00:09:06 v #8075 > >     command
00:09:06 v #8076 > >     |> parse p_command
00:09:06 v #8077 > >     |> resultm.map fst
00:09:06 v #8078 > 00:09:05 d #492 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2dc95e4a8dde2b3cc617b993333018403ac25c869f9592bc3211edac1699948f/main.spi
00:09:06 v #8079 > >
00:09:06 v #8080 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:06 v #8081 > > //// test
00:09:06 v #8082 > > ///! fsharp
00:09:06 v #8083 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:09:06 v #8084 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:09:06 v #8085 > > ///! rust
00:09:06 v #8086 > > ///! typescript
00:09:06 v #8087 > > ///! python
00:09:06 v #8088 > >
00:09:06 v #8089 > > [[
00:09:06 v #8090 > >     "",
00:09:06 v #8091 > >     ("", None)
00:09:06 v #8092 > >
00:09:06 v #8093 > >     "/a/b/c",
00:09:06 v #8094 > >     ("/a/b/c", None)
00:09:06 v #8095 > >
00:09:06 v #8096 > >     "d e.f",
00:09:06 v #8097 > >     ("d", Some "e.f")
00:09:06 v #8098 > >
00:09:06 v #8099 > >     $'"""..\\..\\g.h i.j k.l"""',
00:09:06 v #8100 > >     ("../../g.h", Some "i.j k.l")
00:09:06 v #8101 > >
00:09:06 v #8102 > >     $'\@"m:\\n\\o.p ""q.r s.t"""',
00:09:06 v #8103 > >     ("m:/n/o.p", Some $'\@"""q.r s.t"""')
00:09:06 v #8104 > >
00:09:06 v #8105 > >     $'\@"""..\\..\\u v\\w.x"" ""y z.a"" b.c"',
00:09:06 v #8106 > >     ("../../u v/w.x", Some $'\@"""y z.a"" b.c"')
00:09:06 v #8107 > >
00:09:06 v #8108 > >     $'\@"""..\\..\\d e.f"" -g \\\\""h i\\\\"""',
00:09:06 v #8109 > >     ("../../d e.f", Some $'\@"-g \\\\""h i\\\\"""')
00:09:06 v #8110 > >
00:09:06 v #8111 > >     $'\@"..\\..\\j k.l -m \\\\""n o\\\\"""',
00:09:06 v #8112 > >     ("../../j", Some $'\@"k.l -m \\\\""n o\\\\"""')
00:09:06 v #8113 > > ]]
00:09:06 v #8114 > > |> _assert_fn split_command
00:09:07 v #8115 > 00:09:06 d #493 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90dee2b05dfb2cac61bac49c743366139a397548d8b778bbf8d00ccb683b0fe1/main.spi
00:09:35 v #8116 > >
00:09:35 v #8117 > > ╭─[ 28.32s - return value ]────────────────────────────────────────────────────╮
00:09:35 v #8118 > > │                                                                              │
00:09:35 v #8119 > > │ .rs output:                                                                  │
00:09:35 v #8120 > > │                                                                              │
00:09:35 v #8121 > > │ 00:00:00 v #1 _assert_fn / { input =  }                                │
00:09:35 v #8122 > > │ __assert_eq' / actual: ("", US1_1) / expected: ("", US1_1)                   │
00:09:35 v #8123 > > │                                                                              │
00:09:35 v #8124 > > │ 00:00:00 v #2 _assert_fn / { input = /a/b/c }                          │
00:09:35 v #8125 > > │ __assert_eq' / actual: ("/a/b/c", US1_1) / expected: ("/a/b/c", US1_1)       │
00:09:35 v #8126 > > │                                                                              │
00:09:35 v #8127 > > │ 00:00:00 v #3 _assert_fn / { input = d e.f }                           │
00:09:35 v #8128 > > │ __assert_eq' / actual: ("d", US1_0("e.f")) / expected: ("d", US1_0("e.f"))   │
00:09:35 v #8129 > > │                                                                              │
00:09:35 v #8130 > > │ 00:00:00 v #4 _assert_fn / { input = ..\..\g.h i.j k.l }               │
00:09:35 v #8131 > > │ __assert_eq' / actual: ("../../g.h", US1_0("i.j k.l")) / expected:           │
00:09:35 v #8132 > > │ ("../../g.h", US1_0("i.j k.l"))                                              │
00:09:35 v #8133 > > │                                                                              │
00:09:35 v #8134 > > │ 00:00:00 v #5 _assert_fn / { input = m:\n\o.p "q.r s.t" }              │
00:09:35 v #8135 > > │ __assert_eq' / actual: ("m:/n/o.p", US1_0(""q.r s.t"")) / expected:          │
00:09:35 v #8136 > > │ ("m:/n/o.p", US1_0(""q.r s.t""))                                             │
00:09:35 v #8137 > > │                                                                              │
00:09:35 v #8138 > > │ 00:00:00 v #6 _assert_fn / { input = "..\..\u v\w.x" "y z.a" b.c }     │
00:09:35 v #8139 > > │ __assert_eq' / actual: ("../../u v/w.x", US1_0(""y z.a" b.c")) / expected:   │
00:09:35 v #8140 > > │ ("../../u v/w.x", US1_0(""y z.a" b.c"))                                      │
00:09:35 v #8141 > > │                                                                              │
00:09:35 v #8142 > > │ 00:00:00 v #7 _assert_fn / { input = "..\..\d e.f" -g \\"h i\\" }      │
00:09:35 v #8143 > > │ __assert_eq' / actual: ("../../d e.f", US1_0("-g \\"h i\\"")) / expected:    │
00:09:35 v #8144 > > │ ("../../d e.f", US1_0("-g \\"h i\\""))                                       │
00:09:35 v #8145 > > │                                                                              │
00:09:35 v #8146 > > │ 00:00:00 v #8 _assert_fn / { input = ..\..\j k.l -m \\"n o\\" }        │
00:09:35 v #8147 > > │ __assert_eq' / actual: ("../../j", US1_0("k.l -m \\"n o\\"")) / expected:    │
00:09:35 v #8148 > > │ ("../../j", US1_0("k.l -m \\"n o\\""))                                       │
00:09:35 v #8149 > > │                                                                              │
00:09:35 v #8150 > > │                                                                              │
00:09:35 v #8151 > > │ .ts output:                                                                  │
00:09:35 v #8152 > > │                                                                              │
00:09:35 v #8153 > > │ 00:00:00 v #1 _assert_fn / { input =  }                                 │
00:09:35 v #8154 > > │ __assert_eq' / actual: ,US1_1 / expected: ,US1_1                             │
00:09:35 v #8155 > > │                                                                              │
00:09:35 v #8156 > > │ 00:00:00 v #2 _assert_fn / { input = /a/b/c }                           │
00:09:35 v #8157 > > │ __assert_eq' / actual: /a/b/c,US1_1 / ex..../../d e.f,US1_0 (-g \\"h i\\")   │
00:09:35 v #8158 > > │                                                                              │
00:09:35 v #8159 > > │ 00:00:00 v #8 _assert_fn / { input = ..\..\j k.l -m \\"n o\\" }         │
00:09:35 v #8160 > > │ __assert_eq' / actual: ../../j,US1_0 (k.l -m \\"n o\\") / expected:          │
00:09:35 v #8161 > > │ ../../j,US1_0 (k.l -m \\"n o\\")                                             │
00:09:35 v #8162 > > │                                                                              │
00:09:35 v #8163 > > │                                                                              │
00:09:35 v #8164 > > │ .py output:                                                                  │
00:09:35 v #8165 > > │                                                                              │
00:09:35 v #8166 > > │ 00:00:00 v #1 _assert_fn / { input =  }                                 │
00:09:35 v #8167 > > │ __assert_eq' / actual: ('', US1_1) / expected: ('', US1_1)                   │
00:09:35 v #8168 > > │                                                                              │
00:09:35 v #8169 > > │ 00:00:00 v #2 _assert_fn / { input = /a/b/c }                           │
00:09:35 v #8170 > > │ __assert_eq' / actual: ('/a/b/c', US1_1) / expected: ('/a/b/c', US1_1)       │
00:09:35 v #8171 > > │                                                                              │
00:09:35 v #8172 > > │ 00:00:00 v #3 _assert_fn / { input = d e.f }                            │
00:09:35 v #8173 > > │ __assert_eq' / actual: ('d', US1_0 "e.f") / expected: ('d', US1_0 "e.f")     │
00:09:35 v #8174 > > │                                                                              │
00:09:35 v #8175 > > │ 00:00:00 v #4 _assert_fn / { input = ..\..\g.h i.j k.l }                │
00:09:35 v #8176 > > │ __assert_eq' / actual: ('../../g.h', US1_0 ("i.j k.l")) / expected:          │
00:09:35 v #8177 > > │ ('../../g.h', US1_0 ("i.j k.l"))                                             │
00:09:35 v #8178 > > │                                                                              │
00:09:35 v #8179 > > │ 00:00:00 v #5 _assert_fn / { input = m:\n\o.p "q.r s.t" }               │
00:09:35 v #8180 > > │ __assert_eq' / actual: ('m:/n/o.p', US1_0 (""q.r s.t"")) / expected:         │
00:09:35 v #8181 > > │ ('m:/n/o.p', US1_0 (""q.r s.t""))                                            │
00:09:35 v #8182 > > │                                                                              │
00:09:35 v #8183 > > │ 00:00:00 v #6 _assert_fn / { input = "..\..\u v\w.x" "y z.a" b.c }      │
00:09:35 v #8184 > > │ __assert_eq' / actual: ('../../u v/w.x', US1_0 (""y z.a" b.c")) / expected:  │
00:09:35 v #8185 > > │ ('../../u v/w.x', US1_0 (""y z.a" b.c"))                                     │
00:09:35 v #8186 > > │                                                                              │
00:09:35 v #8187 > > │ 00:00:00 v #7 _assert_fn / { input = "..\..\d e.f" -g \\"h i\\" }       │
00:09:35 v #8188 > > │ __assert_eq' / actual: ('../../d e.f', US1_0 ("-g \\"h i\\"")) / expected:   │
00:09:35 v #8189 > > │ ('../../d e.f', US1_0 ("-g \\"h i\\""))                                      │
00:09:35 v #8190 > > │                                                                              │
00:09:35 v #8191 > > │ 00:00:00 v #8 _assert_fn / { input = ..\..\j k.l -m \\"n o\\" }         │
00:09:35 v #8192 > > │ __assert_eq' / actual: ('../../j', US1_0 ("k.l -m \\"n o\\"")) / expected:   │
00:09:35 v #8193 > > │ ('../../j', US1_0 ("k.l -m \\"n o\\""))                                      │
00:09:35 v #8194 > > │                                                                              │
00:09:35 v #8195 > > │                                                                              │
00:09:35 v #8196 > > │                                                                              │
00:09:35 v #8197 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:35 v #8198 > >
00:09:35 v #8199 > > ╭─[ 28.33s - stdout ]──────────────────────────────────────────────────────────╮
00:09:35 v #8200 > > │ .fsx output:                                                                 │
00:09:35 v #8201 > > │                                                                              │
00:09:35 v #8202 > > │ 00:00:00 v #1 _assert_fn / { input =  }                                 │
00:09:35 v #8203 > > │ __assert_eq' / actual: struct ("", US1_1) / expected: struct ("", US1_1)     │
00:09:35 v #8204 > > │                                                                              │
00:09:35 v #8205 > > │ 00:00:00 v #2 _assert_fn / { input = /a/b/c }                           │
00:09:35 v #8206 > > │ __assert_eq' / actual: struct ("/a/b/c", US1_1) / expected: struct           │
00:09:35 v #8207 > > │ ("/a/b/c", US1_1)                                                            │
00:09:35 v #8208 > > │                                                                              │
00:09:35 v #8209 > > │ 00:00:00 v #3 _assert_fn / { input = d e.f }                            │
00:09:35 v #8210 > > │ __assert_eq' / actual: struct ("d", US1_0 "e.f") / expected: struct ("d",    │
00:09:35 v #8211 > > │ US1_0 "e.f")                                                                 │
00:09:35 v #8212 > > │                                                                              │
00:09:35 v #8213 > > │ 00:00:00 v #4 _assert_fn / { input = ..\..\g.h i.j k.l }                │
00:09:35 v #8214 > > │ __assert_eq' / actual: struct ("../../g.h", US1_0 "i.j k.l") / expected:     │
00:09:35 v #8215 > > │ struct ("../../g.h", US1_0 "i.j k.l")                                        │
00:09:35 v #8216 > > │                                                                              │
00:09:35 v #8217 > > │ 00:00:00 v #5 _assert_fn / { input = m:\n\o.p "q.r s.t" }               │
00:09:35 v #8218 > > │ __assert_eq' / actual: struct ("m:/n/o.p", US1_0 ""q.r s.t"") / expected:    │
00:09:35 v #8219 > > │ struct ("m:/n/o.p", US1_0 ""q.r s.t"")                                       │
00:09:35 v #8220 > > │                                                                              │
00:09:35 v #8221 > > │ 00:00:00 v #6 _assert_fn / { input = "..\..\u v\w.x" "y z.a" b.c }      │
00:09:35 v #8222 > > │ __assert_eq' / actual: struct ("../../u v/w.x", US1_0 ""y z.a" b.c") /       │
00:09:35 v #8223 > > │ expected: struct ("../../u v/w.x", US1_0 ""y z.a" b.c")                      │
00:09:35 v #8224 > > │                                                                              │
00:09:35 v #8225 > > │ 00:00:00 v #7 _assert_fn / { input = "..\..\d e.f" -g \\"h i\\" }       │
00:09:35 v #8226 > > │ __assert_eq' / actual: struct ("../../d e.f", US1_0 "-g \\"h i\\"") /        │
00:09:35 v #8227 > > │ expected: struct ("../../d e.f", US1_0 "-g \\"h i\\"")                       │
00:09:35 v #8228 > > │                                                                              │
00:09:35 v #8229 > > │ 00:00:00 v #8 _assert_fn / { input = ..\..\j k.l -m \\"n o\\" }         │
00:09:35 v #8230 > > │ __assert_eq' / actual: struct ("../../j", US1_0 "k.l -m \\"n o\\"") /        │
00:09:35 v #8231 > > │ expected: struct ("../../j", US1_0 "k.l -m \\"n o\\"")                       │
00:09:35 v #8232 > > │                                                                              │
00:09:35 v #8233 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:35 v #8234 > >
00:09:35 v #8235 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:35 v #8236 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:35 v #8237 > > │ ### execution_line                                                           │
00:09:35 v #8238 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:35 v #8239 > >
00:09:35 v #8240 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:35 v #8241 > > type execution_line =
00:09:35 v #8242 > >     {
00:09:35 v #8243 > >         process_id : int
00:09:35 v #8244 > >         line : string
00:09:35 v #8245 > >         error : bool
00:09:35 v #8246 > >     }
00:09:35 v #8247 > 00:09:34 d #494 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6fc197aa3949aab6f08a05e4f138dc26c961811a53c13f3e115be7ba6bcca35e/main.spi
00:09:35 v #8248 > >
00:09:35 v #8249 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:35 v #8250 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:35 v #8251 > > │ ## rust                                                                      │
00:09:35 v #8252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:35 v #8253 > >
00:09:35 v #8254 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:35 v #8255 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:35 v #8256 > > │ ### process_child                                                            │
00:09:35 v #8257 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:35 v #8258 > >
00:09:35 v #8259 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:35 v #8260 > > nominal process_child =
00:09:35 v #8261 > >     `(
00:09:35 v #8262 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:35 v #8263 > > Fable.Core.Emit(\"std::process::Child\")>]]\n#endif\ntype std_process_Child =
00:09:35 v #8264 > > class end"
00:09:35 v #8265 > >         $'' : $'std_process_Child'
00:09:35 v #8266 > >     )
00:09:35 v #8267 > 00:09:34 d #495 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce13e3fb59bd28f7571aadc71841d8afcebb02d9ae83b74a9ca0260407cea773/main.spi
00:09:35 v #8268 > >
00:09:35 v #8269 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:35 v #8270 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:35 v #8271 > > │ ### process_child_stdin                                                      │
00:09:35 v #8272 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:35 v #8273 > >
00:09:35 v #8274 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:35 v #8275 > > nominal process_child_stdin =
00:09:35 v #8276 > >     `(
00:09:35 v #8277 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:35 v #8278 > > Fable.Core.Emit(\"std::process::ChildStdin\")>]]\n#endif\ntype
00:09:35 v #8279 > > std_process_ChildStdin = class end"
00:09:35 v #8280 > >         $'' : $'std_process_ChildStdin'
00:09:35 v #8281 > >     )
00:09:35 v #8282 > >
00:09:35 v #8283 > > inl process_child_stdin
00:09:35 v #8284 > >     (child : rust.ref (rust.mut' process_child))
00:09:35 v #8285 > >     : rust.ref (rust.mut' (optionm'.option' process_child_stdin))
00:09:35 v #8286 > >     =
00:09:35 v #8287 > >     !\\(child, $'"&mut $0.stdin"')
00:09:36 v #8288 > 00:09:35 d #496 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11e52c2775bdcb312c4753c97b2356cf8e2733aee973aff0060e8766909b2517/main.spi
00:09:36 v #8289 > >
00:09:36 v #8290 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:36 v #8291 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:36 v #8292 > > │ ## runtime                                                                   │
00:09:36 v #8293 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:36 v #8294 > >
00:09:36 v #8295 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:36 v #8296 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:36 v #8297 > > │ ### execution_options                                                        │
00:09:36 v #8298 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:36 v #8299 > >
00:09:36 v #8300 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:36 v #8301 > > type execution_options =
00:09:36 v #8302 > >     {
00:09:36 v #8303 > >         command : string
00:09:36 v #8304 > >         cancellation_token : optionm'.option' threading.cancellation_token
00:09:36 v #8305 > >         environment_variables : array_base (string * string)
00:09:36 v #8306 > >         on_line : optionm'.option' (execution_line -> async.async ())
00:09:36 v #8307 > >         stdin : optionm'.option' (threading.arc (threading.mutex
00:09:36 v #8308 > > process_child_stdin) -> ())
00:09:36 v #8309 > >         trace : bool
00:09:36 v #8310 > >         working_directory : optionm'.option' string
00:09:36 v #8311 > >     }
00:09:36 v #8312 > >
00:09:36 v #8313 > > inl execution_options (fn : execution_options -> execution_options) :
00:09:36 v #8314 > > execution_options =
00:09:36 v #8315 > >     {
00:09:36 v #8316 > >         command = ""
00:09:36 v #8317 > >         cancellation_token = None |> optionm'.box
00:09:36 v #8318 > >         environment_variables = ;[[]]
00:09:36 v #8319 > >         on_line = None |> optionm'.box
00:09:36 v #8320 > >         stdin = None |> optionm'.box
00:09:36 v #8321 > >         trace = true
00:09:36 v #8322 > >         working_directory = None |> optionm'.box
00:09:36 v #8323 > >     }
00:09:36 v #8324 > >     |> fn
00:09:36 v #8325 > 00:09:35 d #497 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40e20dcc001cdb4b3754096201f3f5bf2b72d9d9ff9bf2801971efdb2b5d1099/main.spi
00:09:36 v #8326 > >
00:09:36 v #8327 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:36 v #8328 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:36 v #8329 > > │ ## rust                                                                      │
00:09:36 v #8330 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:36 v #8331 > >
00:09:36 v #8332 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:36 v #8333 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:36 v #8334 > > │ ### process_child_stderr                                                     │
00:09:36 v #8335 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:36 v #8336 > >
00:09:36 v #8337 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:36 v #8338 > > nominal process_child_stderr =
00:09:36 v #8339 > >     `(
00:09:36 v #8340 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:36 v #8341 > > Fable.Core.Emit(\"std::process::ChildStderr\")>]]\n#endif\ntype
00:09:36 v #8342 > > std_process_ChildStderr = class end"
00:09:36 v #8343 > >         $'' : $'std_process_ChildStderr'
00:09:36 v #8344 > >     )
00:09:36 v #8345 > >
00:09:36 v #8346 > > inl process_child_stderr
00:09:36 v #8347 > >     (child : rust.ref (rust.mut' process_child))
00:09:36 v #8348 > >     : rust.ref (rust.mut' (optionm'.option' process_child_stderr))
00:09:36 v #8349 > >     =
00:09:36 v #8350 > >     !\\(child, $'"&mut $0.stderr"')
00:09:36 v #8351 > 00:09:36 d #498 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ed292533334895ce2049d176b3ab7ef82dc37ba4ede1fa04fb709a6087c49b09/main.spi
00:09:37 v #8352 > >
00:09:37 v #8353 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:37 v #8354 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:37 v #8355 > > │ ### process_child_stdout                                                     │
00:09:37 v #8356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:37 v #8357 > >
00:09:37 v #8358 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:37 v #8359 > > nominal process_child_stdout =
00:09:37 v #8360 > >     `(
00:09:37 v #8361 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:37 v #8362 > > Fable.Core.Emit(\"std::process::ChildStdout\")>]]\n#endif\ntype
00:09:37 v #8363 > > std_process_ChildStdout = class end"
00:09:37 v #8364 > >         $'' : $'std_process_ChildStdout'
00:09:37 v #8365 > >     )
00:09:37 v #8366 > >
00:09:37 v #8367 > > inl process_child_stdout
00:09:37 v #8368 > >     (child : rust.ref (rust.mut' process_child))
00:09:37 v #8369 > >     : rust.ref (rust.mut' (optionm'.option' process_child_stdout))
00:09:37 v #8370 > >     =
00:09:37 v #8371 > >     !\\(child, $'"&mut $0.stdout"')
00:09:37 v #8372 > 00:09:36 d #499 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d5ac33189c99b28a66b71b2703a8d6134d395ceb060e5cb904d66651c9045c24/main.spi
00:09:37 v #8373 > >
00:09:37 v #8374 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:37 v #8375 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:37 v #8376 > > │ ### process_command                                                          │
00:09:37 v #8377 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:37 v #8378 > >
00:09:37 v #8379 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:37 v #8380 > > nominal process_command =
00:09:37 v #8381 > >     `(
00:09:37 v #8382 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:37 v #8383 > > Fable.Core.Emit(\"std::process::Command\")>]]\n#endif\ntype std_process_Command
00:09:37 v #8384 > > = class end"
00:09:37 v #8385 > >         $'' : $'std_process_Command'
00:09:37 v #8386 > >     )
00:09:37 v #8387 > 00:09:37 d #500 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/58d749aaf18f511cf2dcf87239a80c6ce656d4dd3f272960de9d94b98ac6df02/main.spi
00:09:38 v #8388 > >
00:09:38 v #8389 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:38 v #8390 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:38 v #8391 > > │ ### process_stdio                                                            │
00:09:38 v #8392 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:38 v #8393 > >
00:09:38 v #8394 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:38 v #8395 > > nominal process_stdio =
00:09:38 v #8396 > >     `(
00:09:38 v #8397 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:38 v #8398 > > Fable.Core.Emit(\"std::process::Stdio\")>]]\n#endif\ntype std_process_Stdio =
00:09:38 v #8399 > > class end"
00:09:38 v #8400 > >         $'' : $'std_process_Stdio'
00:09:38 v #8401 > >     )
00:09:38 v #8402 > 00:09:37 d #501 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ce8752bfbdbd5d59bcb39920c0eaee14f4b282829e912a75ec1bb6969010dbc/main.spi
00:09:38 v #8403 > >
00:09:38 v #8404 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:38 v #8405 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:38 v #8406 > > │ ### process_output                                                           │
00:09:38 v #8407 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:38 v #8408 > >
00:09:38 v #8409 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:38 v #8410 > > nominal process_output =
00:09:38 v #8411 > >     `(
00:09:38 v #8412 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:38 v #8413 > > Fable.Core.Emit(\"std::process::Output\")>]]\n#endif\ntype std_process_Output =
00:09:38 v #8414 > > class end"
00:09:38 v #8415 > >         $'' : $'std_process_Output'
00:09:38 v #8416 > >     )
00:09:38 v #8417 > 00:09:37 d #502 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/20b4e8a2570137a97d3a3e3a4218b4279f31f52180482108a6e62b93cab99111/main.spi
00:09:38 v #8418 > >
00:09:38 v #8419 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:38 v #8420 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:38 v #8421 > > │ ### process_exit_status                                                      │
00:09:38 v #8422 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:38 v #8423 > >
00:09:38 v #8424 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:38 v #8425 > > nominal process_exit_status =
00:09:38 v #8426 > >     `(
00:09:38 v #8427 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:38 v #8428 > > Fable.Core.Emit(\"std::process::ExitStatus\")>]]\n#endif\ntype
00:09:38 v #8429 > > std_process_ExitStatus = class end"
00:09:38 v #8430 > >         $'' : $'std_process_ExitStatus'
00:09:38 v #8431 > >     )
00:09:39 v #8432 > 00:09:38 d #503 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4826bd2331d676e8226f7bed250de770966ed5d948056eee3d6d8f57bbd91512/main.spi
00:09:39 v #8433 > >
00:09:39 v #8434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:39 v #8435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:39 v #8436 > > │ ### process_output_status                                                    │
00:09:39 v #8437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:39 v #8438 > >
00:09:39 v #8439 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:39 v #8440 > > inl process_output_status (output : process_output) : process_exit_status =
00:09:39 v #8441 > >     !\\(output, $'"$0.status"')
00:09:39 v #8442 > 00:09:38 d #504 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c6876282c6cb8611228ee51f60e786f145186309a3af06e5102c91ba20ca8ece/main.spi
00:09:39 v #8443 > >
00:09:39 v #8444 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:39 v #8445 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:39 v #8446 > > │ ### process_exit_status_code                                                 │
00:09:39 v #8447 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:39 v #8448 > >
00:09:39 v #8449 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:39 v #8450 > > inl process_exit_status_code (status : process_exit_status) : optionm'.option'
00:09:39 v #8451 > > i32 =
00:09:39 v #8452 > >     !\\(status, $'"$0.code()"')
00:09:40 v #8453 > 00:09:39 d #505 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/876ffcd5526c778580fe97a0c45803ecac350ee049bcffb34e513479f4e5c951/main.spi
00:09:40 v #8454 > >
00:09:40 v #8455 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:40 v #8456 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:40 v #8457 > > │ ### stdin_write_all                                                          │
00:09:40 v #8458 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:40 v #8459 > >
00:09:40 v #8460 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:40 v #8461 > > inl stdin_write_all (stdin : threading.mutex_guard process_child_stdin) (text :
00:09:40 v #8462 > > string) : () =
00:09:40 v #8463 > >     inl stream = text |> sm'.as_bytes
00:09:40 v #8464 > >     inl stdin = join stdin
00:09:40 v #8465 > >     (!\($'"true; let mut !stdin = !stdin"') : bool) |> ignore
00:09:40 v #8466 > >     (!\\(stdin, $'"true; std::io::Write::write_all(&mut *$0,
00:09:40 v #8467 > > !stream).unwrap()"') : bool) |> ignore
00:09:40 v #8468 > 00:09:39 d #506 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce51878441e493b899de656774facfef2d44ea3a2d670e2d1783945d01d53607/main.spi
00:09:40 v #8469 > >
00:09:40 v #8470 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:40 v #8471 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:40 v #8472 > > │ ### stdin_flush                                                              │
00:09:40 v #8473 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:40 v #8474 > >
00:09:40 v #8475 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:40 v #8476 > > inl stdin_flush (stdin : threading.mutex_guard process_child_stdin) : () =
00:09:40 v #8477 > >     inl stdin = join stdin
00:09:40 v #8478 > >     (!\($'"true; let mut !stdin = !stdin"') : bool) |> ignore
00:09:40 v #8479 > >     (!\\(stdin, $'"true; std::io::Write::flush(&mut *$0).unwrap()"') : bool) |>
00:09:40 v #8480 > > ignore
00:09:40 v #8481 > 00:09:40 d #507 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/17a4e6782393e5b83ce005abfd7de18996c8ccdb35ffa35c486c8350c2f08314/main.spi
00:09:41 v #8482 > >
00:09:41 v #8483 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:41 v #8484 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:41 v #8485 > > │ ### new_process_command                                                      │
00:09:41 v #8486 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:41 v #8487 > >
00:09:41 v #8488 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:41 v #8489 > > inl new_process_command (file_name : string) : process_command =
00:09:41 v #8490 > >     !\\(file_name, $'"std::process::Command::new(&*$0)"')
00:09:41 v #8491 > 00:09:40 d #508 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cb850a2131fa101969ccd72757ab3c7333298d7cda71e550b3798eed1ab9cca/main.spi
00:09:41 v #8492 > >
00:09:41 v #8493 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:41 v #8494 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:41 v #8495 > > │ ### process_stdio_piped                                                      │
00:09:41 v #8496 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:41 v #8497 > >
00:09:41 v #8498 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:41 v #8499 > > inl process_stdio_piped () : process_stdio =
00:09:41 v #8500 > >     !\($'"std::process::Stdio::piped()"')
00:09:41 v #8501 > 00:09:40 d #509 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fbb1b349250d3be5e90e74e222c7e2b4382cbdb8cc42143ca493e23717916963/main.spi
00:09:41 v #8502 > >
00:09:41 v #8503 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:41 v #8504 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:41 v #8505 > > │ ### process_command_args                                                     │
00:09:41 v #8506 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:41 v #8507 > >
00:09:41 v #8508 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:41 v #8509 > > inl process_command_args (args : am'.vec sm'.std_string) (c : process_command) :
00:09:41 v #8510 > > rust.ref (rust.mut' process_command) =
00:09:41 v #8511 > >     (!\($'"true; let mut !c = !c"') : bool) |> ignore
00:09:41 v #8512 > >     !\\((c, args), $'"std::process::Command::args(&mut $0, &*$1)"')
00:09:42 v #8513 > 00:09:41 d #510 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8233f34a2b3ff4befe43b6d952ea3951d142b61a091ba40cbafdc98b4c934bb9/main.spi
00:09:42 v #8514 > >
00:09:42 v #8515 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:42 v #8516 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:42 v #8517 > > │ ### process_command_stdout                                                   │
00:09:42 v #8518 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:42 v #8519 > >
00:09:42 v #8520 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:42 v #8521 > > inl process_command_stdout (stdio : process_stdio) (c : rust.ref (rust.mut'
00:09:42 v #8522 > > process_command)) : rust.ref (rust.mut' process_command) =
00:09:42 v #8523 > >     !\\(c, $'"std::process::Command::stdout($0, std::process::Stdio::piped())"')
00:09:42 v #8524 > 00:09:41 d #511 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/895532c7375b1a837df89df9927695ecec6a0b62de7971df80dbb0151bd2e8c6/main.spi
00:09:42 v #8525 > >
00:09:42 v #8526 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:42 v #8527 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:42 v #8528 > > │ ### process_command_stderr                                                   │
00:09:42 v #8529 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:42 v #8530 > >
00:09:42 v #8531 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:42 v #8532 > > inl process_command_stderr (stdio : process_stdio) (c : rust.ref (rust.mut'
00:09:42 v #8533 > > process_command)) : rust.ref (rust.mut' process_command) =
00:09:42 v #8534 > >     !\\(c, $'"std::process::Command::stderr($0, std::process::Stdio::piped())"')
00:09:43 v #8535 > 00:09:42 d #512 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/08702c5cb5eb6c9f8d7a4d380b5eddc5eb01b08a9cd369d73b2cf0148a949c5b/main.spi
00:09:43 v #8536 > >
00:09:43 v #8537 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:43 v #8538 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:43 v #8539 > > │ ### process_command_stdin                                                    │
00:09:43 v #8540 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:43 v #8541 > >
00:09:43 v #8542 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:43 v #8543 > > inl process_command_stdin (stdio : process_stdio) (c : rust.ref (rust.mut'
00:09:43 v #8544 > > process_command)) : rust.ref (rust.mut' process_command) =
00:09:43 v #8545 > >     !\\(c, $'"std::process::Command::stdin($0, std::process::Stdio::piped())"')
00:09:43 v #8546 > 00:09:42 d #513 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1fdcb4146d3947a5e21dea454ae2365c8f7a7ea55e32d887e9f8a7087cae2c4/main.spi
00:09:43 v #8547 > >
00:09:43 v #8548 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:43 v #8549 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:43 v #8550 > > │ ### process_command_current_dir                                              │
00:09:43 v #8551 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:43 v #8552 > >
00:09:43 v #8553 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:43 v #8554 > > inl process_command_current_dir
00:09:43 v #8555 > >     (dir : string)
00:09:43 v #8556 > >     (c : rust.ref (rust.mut' process_command))
00:09:43 v #8557 > >     : rust.ref (rust.mut' process_command)
00:09:43 v #8558 > >     =
00:09:43 v #8559 > >     !\\(dir, $'"std::process::Command::current_dir(!c, &*$0)"')
00:09:43 v #8560 > 00:09:43 d #514 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f6cbb6009ca61ed690584d4ddfd5c29a217fb4843493ddb9513bd1b55b1f77d/main.spi
00:09:44 v #8561 > >
00:09:44 v #8562 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:44 v #8563 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:44 v #8564 > > │ ### process_command_env                                                      │
00:09:44 v #8565 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:44 v #8566 > >
00:09:44 v #8567 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:44 v #8568 > > inl process_command_env
00:09:44 v #8569 > >     (key : string)
00:09:44 v #8570 > >     (value : string)
00:09:44 v #8571 > >     (c : rust.ref (rust.mut' process_command))
00:09:44 v #8572 > >     : rust.ref (rust.mut' process_command)
00:09:44 v #8573 > >     =
00:09:44 v #8574 > >     !\\((key, value), $'"std::process::Command::env(!c, &*$0, &*$1)"')
00:09:44 v #8575 > 00:09:43 d #515 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/95c60003ccabf76e3e7339fff328bec9c789debdd16e6ad723a343ea2d102125/main.spi
00:09:44 v #8576 > >
00:09:44 v #8577 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:44 v #8578 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:44 v #8579 > > │ ### process_command_spawn                                                    │
00:09:44 v #8580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:44 v #8581 > >
00:09:44 v #8582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:44 v #8583 > > inl process_command_spawn
00:09:44 v #8584 > >     (c : rust.ref (rust.mut' process_command))
00:09:44 v #8585 > >     : resultm.result' process_child stream.io_error
00:09:44 v #8586 > >     =
00:09:44 v #8587 > >     !\\(c, $'"std::process::Command::spawn($0)"')
00:09:44 v #8588 > 00:09:43 d #516 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73cba28e62e2036c4cfc9a4d65d4b52c3b06bbaa80b36c9b3807f82afa0a06d1/main.spi
00:09:44 v #8589 > >
00:09:44 v #8590 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:44 v #8591 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:44 v #8592 > > │ ### child_wait_with_output                                                   │
00:09:44 v #8593 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:44 v #8594 > >
00:09:44 v #8595 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:44 v #8596 > > inl child_wait_with_output
00:09:44 v #8597 > >     (child : process_child)
00:09:44 v #8598 > >     : resultm.result' process_output stream.io_error
00:09:44 v #8599 > >     =
00:09:44 v #8600 > >     !\\(child, $'"$0.wait_with_output()"')
00:09:45 v #8601 > 00:09:44 d #517 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/642f7469a7f3a1d4a45f1ec1c707651b77b428e17f8a3ae6f57dd7ab48b7d0d0/main.spi
00:09:45 v #8602 > >
00:09:45 v #8603 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:45 v #8604 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:45 v #8605 > > │ ### stdio_line                                                               │
00:09:45 v #8606 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:45 v #8607 > >
00:09:45 v #8608 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:45 v #8609 > > inl stdio_line
00:09:45 v #8610 > >     (stdio : result () ())
00:09:45 v #8611 > >     (trace' : bool)
00:09:45 v #8612 > >     (channel_sender : threading.arc (threading.mutex (threading.channel_sender
00:09:45 v #8613 > > sm'.std_string)))
00:09:45 v #8614 > >     (line : resultm.result' sm'.std_string stream.io_error)
00:09:45 v #8615 > >     : resultm.result' () sm'.std_string
00:09:45 v #8616 > >     =
00:09:45 v #8617 > >     inl highlight text =
00:09:45 v #8618 > >         $'$"\\u001b[[4;7m{!text}\\u001b[[0m"'
00:09:45 v #8619 > >     inl line =
00:09:45 v #8620 > >         match
00:09:45 v #8621 > >             line
00:09:45 v #8622 > >             |> resultm.map_error' sm'.format'
00:09:45 v #8623 > >             |> resultm.unbox'
00:09:45 v #8624 > >         with
00:09:45 v #8625 > >         | Ok line =>
00:09:45 v #8626 > >             inl line =
00:09:45 v #8627 > >                 line
00:09:45 v #8628 > >                 |> sm'.from_std_string
00:09:45 v #8629 > >                 // |> sm'.as_bytes
00:09:45 v #8630 > >                 // |> am'.slice_to_vec
00:09:45 v #8631 > >                 |> sm'.encoding_encode' (sm'.encoding_utf8' ())
00:09:45 v #8632 > >                 |> rust.cow_as_ref
00:09:45 v #8633 > >                 |> sm'.str_from_utf8
00:09:45 v #8634 > >                 // |> sm'.utf8_decode
00:09:45 v #8635 > >                 |> resultm.unwrap'
00:09:45 v #8636 > >                 |> sm'.ref_to_std_string
00:09:45 v #8637 > >                 // String::from_utf8_lossy(line.as_bytes()).into()
00:09:45 v #8638 > >             inl line_log = line |> sm'.from_std_string
00:09:45 v #8639 > >             inl text =
00:09:45 v #8640 > >                 match stdio with
00:09:45 v #8641 > >                 | Ok () => $'$"> {!line_log}"'
00:09:45 v #8642 > >                 | Error () => $'$"\! {!line_log}"'
00:09:45 v #8643 > >             if trace'
00:09:45 v #8644 > >             then trace Verbose (fun () => text) id
00:09:45 v #8645 > >             else text |> console.write_line
00:09:45 v #8646 > >             match stdio with
00:09:45 v #8647 > >             | Ok () => line
00:09:45 v #8648 > >             | Error () => line |> highlight |> sm'.to_std_string
00:09:45 v #8649 > >         | Error e =>
00:09:45 v #8650 > >             trace Critical
00:09:45 v #8651 > >                 fun () => "runtime.stdio_line"
00:09:45 v #8652 > >                 fun () => { trace' e }
00:09:45 v #8653 > >             e |> highlight |> sm'.to_std_string
00:09:45 v #8654 > >     channel_sender
00:09:45 v #8655 > >     |> threading.arc_mutex_lock
00:09:45 v #8656 > >     |> resultm.unwrap'
00:09:45 v #8657 > >     |> threading.mutex_guard_ref
00:09:45 v #8658 > >     |> threading.channel_send line
00:09:45 v #8659 > >     |> resultm.map_error' sm'.format'
00:09:45 v #8660 > 00:09:44 d #518 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3edf121162793496160b2b49236f242e5125a8f1e99a92cf23e16244c71a7628/main.spi
00:09:45 v #8661 > >
00:09:45 v #8662 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:45 v #8663 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:45 v #8664 > > │ ### command                                                                  │
00:09:45 v #8665 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:45 v #8666 > >
00:09:45 v #8667 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:45 v #8668 > > nominal command =
00:09:45 v #8669 > >     `(
00:09:45 v #8670 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:45 v #8671 > > Fable.Core.Emit(\"clap::Command\")>]]\n#endif\ntype clap_Command = class end"
00:09:45 v #8672 > >         $'' : $'clap_Command'
00:09:45 v #8673 > >     )
00:09:46 v #8674 > 00:09:45 d #519 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/afe99f84c83ef08eedc870d0e0e4ec051a86bda552702b55dfb4f40f2d43c556/main.spi
00:09:46 v #8675 > >
00:09:46 v #8676 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:46 v #8677 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:46 v #8678 > > │ ### new_command                                                              │
00:09:46 v #8679 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:46 v #8680 > >
00:09:46 v #8681 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:46 v #8682 > > inl new_command (s : rust.static_ref sm'.str) : command =
00:09:46 v #8683 > >     !\\(s, $'"clap::Command::new($0)"')
00:09:46 v #8684 > 00:09:45 d #520 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e5801ff1952647da3f4ab5958353896c1a8607929c43e01e51e15c72faa140b9/main.spi
00:09:46 v #8685 > >
00:09:46 v #8686 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:46 v #8687 > > //// test
00:09:46 v #8688 > > ///! rust -d clap
00:09:46 v #8689 > >
00:09:46 v #8690 > > ##"command"
00:09:46 v #8691 > > |> new_command
00:09:46 v #8692 > > |> sm'.format_pretty
00:09:46 v #8693 > > |> _assert sm'.contains "\"command\""
00:09:46 v #8694 > 00:09:46 d #521 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2353af38fd1fdb94fdc5dc66ab5558108bab620ec56890e8ef665b4fccaab4d7/main.spi
00:10:00 v #8695 > >
00:10:00 v #8696 > > ╭─[ 14.20s - return value ]────────────────────────────────────────────────────╮
00:10:00 v #8697 > > │ __assert / actual: ""command"" / expected: "Command {                        │
00:10:00 v #8698 > > │     name: "command",                                                         │
00:10:00 v #8699 > > │     long_flag: None,                                                         │
00:10:00 v #8700 > > │     short_flag: None,                                                        │
00:10:00 v #8701 > > │     display_name: None,                                                      │
00:10:00 v #8702 > > │     bin_name: None,                                                          │
00:10:00 v #8703 > > │     author: None,                                                            │
00:10:00 v #8704 > > │     version: None,                                                           │
00:10:00 v #8705 > > │     long_version: None,                                                      │
00:10:00 v #8706 > > │     about: None,                                                             │
00:10:00 v #8707 > > │     long_about: None,                                                        │
00:10:00 v #8708 > > │     before_help: None,                                                       │
00:10:00 v #8709 > > │     before_long_help: None,                                                  │
00:10:00 v #8710 > > │     after_help: None,                                                        │
00:10:00 v #8711 > > │     after_long_help: None,                                                   │
00:10:00 v #8712 > > │     aliases: [],                                                             │
00:10:00 v #8713 > > │     short_flag_aliases: [],                                                  │
00:10:00 v #8714 > > │     long_flag_aliases: [],                                                   │
00:10:00 v #8715 > > │     usage_str: None,                                                         │
00:10:00 v #8716 > > │     usage_name: None,                                                        │
00:10:00 v #8717 > > │     help_str: None,                                                          │
00:10:00 v #8718 > > │     disp_ord: None,                                                          │
00:10:00 v #8719 > > │     template: None,                                                          │
00:10:00 v #8720 > > │     settings: AppFlags(                                                      │
00:10:00 v #8721 > > │         0,                                                                   │
00:10:00 v #8722 > > │     ),                                                                       │
00:10:00 v #8723 > > │     g_settings: AppFlags(                                                    │
00:10:00 v #8724 > > │         0,                                                                   │
00:10:00 v #8725 > > │     ),                                                                       │
00:10:00 v #8726 > > │     args: MKeyMap {                                                          │
00:10:00 v #8727 > > │         args: [],                                                            │
00:10:00 v #8728 > > │         keys: [],                                                            │
00:10:00 v #8729 > > │     },                                                                       │
00:10:00 v #8730 > > │     subcommands: [],                                                         │
00:10:00 v #8731 > > │     groups: [],                                                              │
00:10:00 v #8732 > > │     current_help_heading: None,                                              │
00:10:00 v #8733 > > │     current_disp_ord: Some(                                                  │
00:10:00 v #8734 > > │         0,                                                                   │
00:10:00 v #8735 > > │     ),                                                                       │
00:10:00 v #8736 > > │     subcommand_value_name: None,                                             │
00:10:00 v #8737 > > │     subcommand_heading: None,                                                │
00:10:00 v #8738 > > │     external_value_parser: None,                                             │
00:10:00 v #8739 > > │     long_help_exists: false,                                                 │
00:10:00 v #8740 > > │     deferred: None,                                                          │
00:10:00 v #8741 > > │     app_ext: Extensions {                                                    │
00:10:00 v #8742 > > │         extensions: FlatMap {                                                │
00:10:00 v #8743 > > │             keys: [],                                                        │
00:10:00 v #8744 > > │             values: [],                                                      │
00:10:00 v #8745 > > │         },                                                                   │
00:10:00 v #8746 > > │     },                                                                       │
00:10:00 v #8747 > > │ }"                                                                           │
00:10:00 v #8748 > > │                                                                              │
00:10:00 v #8749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:00 v #8750 > >
00:10:00 v #8751 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:00 v #8752 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:00 v #8753 > > │ ### arg                                                                      │
00:10:00 v #8754 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:00 v #8755 > >
00:10:00 v #8756 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:00 v #8757 > > nominal arg =
00:10:00 v #8758 > >     `(
00:10:00 v #8759 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:10:00 v #8760 > > Fable.Core.Emit(\"clap::Arg\")>]]\n#endif\ntype clap_Arg = class end"
00:10:00 v #8761 > >         $'' : $'clap_Arg'
00:10:00 v #8762 > >     )
00:10:01 v #8763 > 00:10:00 d #522 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3616d8a725f309ecdcad808fd135e23ca092a3f0199f92f9b2fbd22dd8c0c4c8/main.spi
00:10:01 v #8764 > >
00:10:01 v #8765 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:01 v #8766 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:01 v #8767 > > │ ### new_arg                                                                  │
00:10:01 v #8768 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:01 v #8769 > >
00:10:01 v #8770 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:01 v #8771 > > inl new_arg (s : rust.static_ref sm'.str) : arg =
00:10:01 v #8772 > >     !\\(s, $'"clap::Arg::new($0)"')
00:10:01 v #8773 > 00:10:00 d #523 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f3533b9ddf9adcdd7f16df775b634bfdd88fcacb3322e4725077d34942fac62/main.spi
00:10:01 v #8774 > >
00:10:01 v #8775 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:01 v #8776 > > //// test
00:10:01 v #8777 > > ///! rust -d clap
00:10:01 v #8778 > >
00:10:01 v #8779 > > ##"arg"
00:10:01 v #8780 > > |> new_arg
00:10:01 v #8781 > > |> sm'.format_pretty
00:10:01 v #8782 > > |> _assert sm'.contains "\"arg\""
00:10:01 v #8783 > 00:10:01 d #524 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cb26501b2baeec8a574ff3fdd5a35a511e4c9a48cb7c11d8b0240dee5e6170a8/main.spi
00:10:15 v #8784 > >
00:10:15 v #8785 > > ╭─[ 13.70s - return value ]────────────────────────────────────────────────────╮
00:10:15 v #8786 > > │ __assert / actual: ""arg"" / expected: "Arg {                                │
00:10:15 v #8787 > > │     id: "arg",                                                               │
00:10:15 v #8788 > > │     help: None,                                                              │
00:10:15 v #8789 > > │     long_help: None,                                                         │
00:10:15 v #8790 > > │     action: None,                                                            │
00:10:15 v #8791 > > │     value_parser: None,                                                      │
00:10:15 v #8792 > > │     blacklist: [],                                                           │
00:10:15 v #8793 > > │     settings: ArgFlags(                                                      │
00:10:15 v #8794 > > │         0,                                                                   │
00:10:15 v #8795 > > │     ),                                                                       │
00:10:15 v #8796 > > │     overrides: [],                                                           │
00:10:15 v #8797 > > │     groups: [],                                                              │
00:10:15 v #8798 > > │     requires: [],                                                            │
00:10:15 v #8799 > > │     r_ifs: [],                                                               │
00:10:15 v #8800 > > │     r_unless: [],                                                            │
00:10:15 v #8801 > > │     short: None,                                                             │
00:10:15 v #8802 > > │     long: None,                                                              │
00:10:15 v #8803 > > │     aliases: [],                                                             │
00:10:15 v #8804 > > │     short_aliases: [],                                                       │
00:10:15 v #8805 > > │     disp_ord: None,                                                          │
00:10:15 v #8806 > > │     val_names: [],                                                           │
00:10:15 v #8807 > > │     num_vals: None,                                                          │
00:10:15 v #8808 > > │     val_delim: None,                                                         │
00:10:15 v #8809 > > │     default_vals: [],                                                        │
00:10:15 v #8810 > > │     default_vals_ifs: [],                                                    │
00:10:15 v #8811 > > │     terminator: None,                                                        │
00:10:15 v #8812 > > │     index: None,                                                             │
00:10:15 v #8813 > > │     help_heading: None,                                                      │
00:10:15 v #8814 > > │     default_missing_vals: [],                                                │
00:10:15 v #8815 > > │     ext: Extensions {                                                        │
00:10:15 v #8816 > > │         extensions: FlatMap {                                                │
00:10:15 v #8817 > > │             keys: [],                                                        │
00:10:15 v #8818 > > │             values: [],                                                      │
00:10:15 v #8819 > > │         },                                                                   │
00:10:15 v #8820 > > │     },                                                                       │
00:10:15 v #8821 > > │ }"                                                                           │
00:10:15 v #8822 > > │                                                                              │
00:10:15 v #8823 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:15 v #8824 > >
00:10:15 v #8825 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:15 v #8826 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:15 v #8827 > > │ ### command_arg                                                              │
00:10:15 v #8828 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:15 v #8829 > >
00:10:15 v #8830 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:15 v #8831 > > inl command_arg (arg : arg) (command : command) : command =
00:10:15 v #8832 > >     !\\((command, arg), $'"clap::Command::arg($0, $1)"')
00:10:15 v #8833 > 00:10:14 d #525 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/66c3af092934e74606c30449a685d8d41168343085941387212e7b1d9e4e1a97/main.spi
00:10:15 v #8834 > >
00:10:15 v #8835 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:15 v #8836 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:15 v #8837 > > │ ### arg_required                                                             │
00:10:15 v #8838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:15 v #8839 > >
00:10:15 v #8840 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:15 v #8841 > > inl arg_required (value : bool) (arg : arg) : arg =
00:10:15 v #8842 > >     !\\((arg, value), $'"$0.required($1)"')
00:10:16 v #8843 > 00:10:15 d #526 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ca3afbf2156a55fe3088dac1c32c62a63e3632edf56d6642d25a0d00cd5d4a6d/main.spi
00:10:16 v #8844 > >
00:10:16 v #8845 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:16 v #8846 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:16 v #8847 > > │ ### arg_require_equals                                                       │
00:10:16 v #8848 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:16 v #8849 > >
00:10:16 v #8850 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:16 v #8851 > > inl arg_require_equals (value : bool) (arg : arg) : arg =
00:10:16 v #8852 > >     !\\((arg, value), $'"$0.require_equals($1)"')
00:10:16 v #8853 > 00:10:15 d #527 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/433e18fd533b843e4496b12cb85986ef197df3210741bc3842b3f9ca972c0c21/main.spi
00:10:16 v #8854 > >
00:10:16 v #8855 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:16 v #8856 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:16 v #8857 > > │ ### arg_default_value                                                        │
00:10:16 v #8858 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:16 v #8859 > >
00:10:16 v #8860 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:16 v #8861 > > inl arg_default_value (value : string) (arg : arg) : arg =
00:10:16 v #8862 > >     inl value = #value
00:10:16 v #8863 > >     !\\((arg, value), $'"$0.default_value($1)"')
00:10:16 v #8864 > 00:10:16 d #528 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/849772165325eba4cf744461ff344bfeb02898b2e1634d552d6fcbcf3f3688aa/main.spi
00:10:17 v #8865 > >
00:10:17 v #8866 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:17 v #8867 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:17 v #8868 > > │ ### arg_default_missing_value                                                │
00:10:17 v #8869 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:17 v #8870 > >
00:10:17 v #8871 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:17 v #8872 > > inl arg_default_missing_value (value : string) (arg : arg) : arg =
00:10:17 v #8873 > >     inl value = #value
00:10:17 v #8874 > >     !\\((arg, value), $'"$0.default_missing_value($1)"')
00:10:17 v #8875 > 00:10:16 d #529 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14aebf7198d7a1148725fbcecfbf248d585e6c83e0c7407e85bd8a423087d748/main.spi
00:10:17 v #8876 > >
00:10:17 v #8877 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:17 v #8878 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:17 v #8879 > > │ ### arg_overrides_with                                                       │
00:10:17 v #8880 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:17 v #8881 > >
00:10:17 v #8882 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:17 v #8883 > > inl arg_overrides_with (value : string) (arg : arg) : arg =
00:10:17 v #8884 > >     inl value = #value
00:10:17 v #8885 > >     !\\((arg, value), $'"$0.overrides_with($1)"')
00:10:17 v #8886 > 00:10:17 d #530 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc8f6203f658eca3b967998b56050cd9b2248cc6428e5e38633c3e0082aa9cf4/main.spi
00:10:18 v #8887 > >
00:10:18 v #8888 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:18 v #8889 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:18 v #8890 > > │ ### arg_short                                                                │
00:10:18 v #8891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:18 v #8892 > >
00:10:18 v #8893 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:18 v #8894 > > inl arg_short (value : char) (arg : arg) : arg =
00:10:18 v #8895 > >     !\\((arg, value), $'"$0.short($1)"')
00:10:18 v #8896 > 00:10:17 d #531 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59fd55ce64e4973b2737d63738105644f2c2bc9dfe86084d60278793bbe2a4c1/main.spi
00:10:18 v #8897 > >
00:10:18 v #8898 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:18 v #8899 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:18 v #8900 > > │ ### arg_long                                                                 │
00:10:18 v #8901 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:18 v #8902 > >
00:10:18 v #8903 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:18 v #8904 > > inl arg_long (value : rust.static_ref sm'.str) (arg : arg) : arg =
00:10:18 v #8905 > >     !\\((arg, value), $'"$0.long($1)"')
00:10:18 v #8906 > 00:10:17 d #532 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5f47fa02294f14c0b3534a060586bdfc355f6823640bab2fd4d72e6875a4f753/main.spi
00:10:18 v #8907 > >
00:10:18 v #8908 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:18 v #8909 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:18 v #8910 > > │ ### arg_value_names                                                          │
00:10:18 v #8911 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:18 v #8912 > >
00:10:18 v #8913 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:18 v #8914 > > inl arg_value_names (values : array_base (rust.static_ref sm'.str)) (arg : arg)
00:10:18 v #8915 > > : arg =
00:10:18 v #8916 > >     inl values = values |> am'.to_vec
00:10:18 v #8917 > >     !\\((arg, values), $'"$0.value_names($1)"')
00:10:19 v #8918 > 00:10:18 d #533 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c7e73b4d8750692075daf2d0358c06bec8c935cc1cdfd58c4809aa5547d5fc97/main.spi
00:10:19 v #8919 > >
00:10:19 v #8920 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:19 v #8921 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:19 v #8922 > > │ ### arg_num_args                                                             │
00:10:19 v #8923 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:19 v #8924 > >
00:10:19 v #8925 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:19 v #8926 > > inl arg_num_args (value : i32) (arg : arg) : arg =
00:10:19 v #8927 > >     !\\((arg, value), $'"$0.num_args($1)"')
00:10:19 v #8928 > 00:10:18 d #534 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8d74634aa589ac90fe16aa3f7da9e259685566dc14f24880c38be2c54ad7afa/main.spi
00:10:19 v #8929 > >
00:10:19 v #8930 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:19 v #8931 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:19 v #8932 > > │ ### value_range                                                              │
00:10:19 v #8933 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:19 v #8934 > >
00:10:19 v #8935 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:19 v #8936 > > nominal value_range =
00:10:19 v #8937 > >     `(
00:10:19 v #8938 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:10:19 v #8939 > > Fable.Core.Emit(\"clap::builder::ValueRange\")>]]\n#endif\ntype
00:10:19 v #8940 > > clap_builder_ValueRange = class end"
00:10:19 v #8941 > >         $'' : $'clap_builder_ValueRange'
00:10:19 v #8942 > >     )
00:10:19 v #8943 > 00:10:19 d #535 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6ebfd9f7d814f95daef987fa562f3b278253b50a4b625406ef51b9e7f2f086e2/main.spi
00:10:20 v #8944 > >
00:10:20 v #8945 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:20 v #8946 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:20 v #8947 > > │ ### new_value_range                                                          │
00:10:20 v #8948 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:20 v #8949 > >
00:10:20 v #8950 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:20 v #8951 > > inl new_value_range inclusive start end : value_range =
00:10:20 v #8952 > >     inl len = 0i32 |> convert
00:10:20 v #8953 > >     inl start, end =
00:10:20 v #8954 > >         open am'
00:10:20 v #8955 > >         match start, end with
00:10:20 v #8956 > >         | Start start, End fn =>
00:10:20 v #8957 > >             start, len |> fn
00:10:20 v #8958 > >         | End start_fn, End end_fn =>
00:10:20 v #8959 > >             start_fn len, end_fn len
00:10:20 v #8960 > >     inl inclusive =
00:10:20 v #8961 > >         if inclusive
00:10:20 v #8962 > >         then "="
00:10:20 v #8963 > >         else ""
00:10:20 v #8964 > >     match start, end with
00:10:20 v #8965 > >     | start, end when end =. len => !\\(start,
00:10:20 v #8966 > > $'"clap::builder::ValueRange::new($0..)"')
00:10:20 v #8967 > >     | start, end => !\\((start, end), $'"clap::builder::ValueRange::new($0.." +
00:10:20 v #8968 > > !inclusive + "$1)"')
00:10:20 v #8969 > 00:10:19 d #536 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a73ea4de8874e8a5f5a3ee9335d577e4424c5e1467fcd5b665e5d2889b706be3/main.spi
00:10:20 v #8970 > >
00:10:20 v #8971 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:20 v #8972 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:20 v #8973 > > │ ### arg_num_args_range                                                       │
00:10:20 v #8974 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:20 v #8975 > >
00:10:20 v #8976 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:20 v #8977 > > inl arg_num_args_range (value : value_range) (arg : arg) : arg =
00:10:20 v #8978 > >     !\\((arg, value), $'"$0.num_args($1)"')
00:10:20 v #8979 > 00:10:19 d #537 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af008999fe1d985a8e3f1a1f01dd6f47ad0aa412a856c86d60e646029b48a777/main.spi
00:10:20 v #8980 > >
00:10:20 v #8981 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:20 v #8982 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:20 v #8983 > > │ ### arg_value_name                                                           │
00:10:20 v #8984 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:20 v #8985 > >
00:10:20 v #8986 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:20 v #8987 > > inl arg_value_name (value : string) (arg : arg) : arg =
00:10:20 v #8988 > >     inl value = value |> sm'.as_str
00:10:20 v #8989 > >     !\\((arg, value), $'"$0.value_name($1)"')
00:10:21 v #8990 > 00:10:20 d #538 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ebab18f7053c019f36739916b2f35985d8c54664b65b7ae9c9671ddc9ba82b8/main.spi
00:10:21 v #8991 > >
00:10:21 v #8992 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:21 v #8993 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:21 v #8994 > > │ ### value_parser                                                             │
00:10:21 v #8995 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:21 v #8996 > >
00:10:21 v #8997 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:21 v #8998 > > nominal value_parser =
00:10:21 v #8999 > >     `(
00:10:21 v #9000 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:10:21 v #9001 > > Fable.Core.Emit(\"clap::builder::ValueParser\")>]]\n#endif\ntype
00:10:21 v #9002 > > clap_builder_ValueParser = class end"
00:10:21 v #9003 > >         $'' : $'clap_builder_ValueParser'
00:10:21 v #9004 > >     )
00:10:21 v #9005 > 00:10:20 d #539 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/939fca72b87b70bc757a9f9e7d42b55c52cf2acef9b5f070e075d3b0b03c8790/main.spi
00:10:21 v #9006 > >
00:10:21 v #9007 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:21 v #9008 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:21 v #9009 > > │ ### possible_value                                                           │
00:10:21 v #9010 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:21 v #9011 > >
00:10:21 v #9012 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:21 v #9013 > > nominal possible_value =
00:10:21 v #9014 > >     `(
00:10:21 v #9015 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:10:21 v #9016 > > Fable.Core.Emit(\"clap::builder::PossibleValue\")>]]\n#endif\ntype
00:10:21 v #9017 > > clap_builder_PossibleValue = class end"
00:10:21 v #9018 > >         $'' : $'clap_builder_PossibleValue'
00:10:21 v #9019 > >     )
00:10:22 v #9020 > 00:10:21 d #540 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9490eff2ae244dab5ae72b6a62f7b29ebf7af10e17af655d0f074a3c0adba410/main.spi
00:10:22 v #9021 > >
00:10:22 v #9022 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:22 v #9023 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:22 v #9024 > > │ ### new_possible_value                                                       │
00:10:22 v #9025 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:22 v #9026 > >
00:10:22 v #9027 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:22 v #9028 > > inl new_possible_value forall t. (x : t) : possible_value =
00:10:22 v #9029 > >     !\\(x, $'"clap::builder::PossibleValue::new(&**$0)"')
00:10:22 v #9030 > 00:10:21 d #541 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ecb8d5ce32b16e5ef9f0650989acac48bcca97fab1a77e4cae523f37a849fea6/main.spi
00:10:22 v #9031 > >
00:10:22 v #9032 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:22 v #9033 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:22 v #9034 > > │ ### value_parser_path_buf                                                    │
00:10:22 v #9035 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:22 v #9036 > >
00:10:22 v #9037 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:22 v #9038 > > inl value_parser_path_buf () : value_parser =
00:10:22 v #9039 > >     !\($'"clap::value_parser\!(std::path::PathBuf)"')
00:10:22 v #9040 > 00:10:22 d #542 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa1d08bacbeabe360eca0ab62f5a736cfc39241f122edf31c1aac5581805a274/main.spi
00:10:23 v #9041 > >
00:10:23 v #9042 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:23 v #9043 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:23 v #9044 > > │ ### value_parser_expr                                                        │
00:10:23 v #9045 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:23 v #9046 > >
00:10:23 v #9047 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:23 v #9048 > > inl value_parser_expr (expr : string) : value_parser =
00:10:23 v #9049 > >     !\($'"clap::value_parser\!(" + !expr + ").into()"')
00:10:23 v #9050 > 00:10:22 d #543 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e6599bebe9dabb9e40a38690d1976c01e3215e56c705866ddfd4eafa1fd617f6/main.spi
00:10:23 v #9051 > >
00:10:23 v #9052 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:23 v #9053 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:23 v #9054 > > │ ### arg_value_parser                                                         │
00:10:23 v #9055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:23 v #9056 > >
00:10:23 v #9057 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:23 v #9058 > > inl arg_value_parser (values : value_parser) (arg : arg) : arg =
00:10:23 v #9059 > >     !\\((arg, values), $'"$0.value_parser($1)"')
00:10:23 v #9060 > 00:10:22 d #544 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/63d7ff4584d83490f6119a7b1d89a78efa413b8443841192a5d7452559efa7cf/main.spi
00:10:23 v #9061 > >
00:10:23 v #9062 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:23 v #9063 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:23 v #9064 > > │ ### arg_action                                                               │
00:10:23 v #9065 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:23 v #9066 > >
00:10:23 v #9067 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:23 v #9068 > > nominal arg_action' =
00:10:23 v #9069 > >     `(
00:10:23 v #9070 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:10:23 v #9071 > > Fable.Core.Emit(\"clap::ArgAction\")>]]\n#endif\ntype clap_ArgAction = class
00:10:23 v #9072 > > end"
00:10:23 v #9073 > >         $'' : $'clap_ArgAction'
00:10:23 v #9074 > >     )
00:10:23 v #9075 > >
00:10:23 v #9076 > > union arg_action =
00:10:23 v #9077 > >     | Set
00:10:23 v #9078 > >     | Append
00:10:23 v #9079 > >     | SetTrue
00:10:23 v #9080 > >     | SetFalse
00:10:23 v #9081 > >     | Count
00:10:23 v #9082 > >     | Help
00:10:23 v #9083 > >     | HelpShort
00:10:23 v #9084 > >     | HelpLong
00:10:23 v #9085 > >     | Version
00:10:23 v #9086 > >
00:10:23 v #9087 > > inl arg_action = function
00:10:23 v #9088 > >     | Set => !\($'"clap::ArgAction::Set"') : arg_action'
00:10:23 v #9089 > >     | Append => !\($'"clap::ArgAction::Append"') : arg_action'
00:10:23 v #9090 > >     | SetTrue => !\($'"clap::ArgAction::SetTrue"') : arg_action'
00:10:23 v #9091 > >     | SetFalse => !\($'"clap::ArgAction::SetFalse"') : arg_action'
00:10:23 v #9092 > >     | Count => !\($'"clap::ArgAction::Count"') : arg_action'
00:10:23 v #9093 > >     | Help => !\($'"clap::ArgAction::Help"') : arg_action'
00:10:23 v #9094 > >     | HelpShort => !\($'"clap::ArgAction::HelpShort"') : arg_action'
00:10:23 v #9095 > >     | HelpLong => !\($'"clap::ArgAction::HelpLong"') : arg_action'
00:10:23 v #9096 > >     | Version => !\($'"clap::ArgAction::Version"') : arg_action'
00:10:23 v #9097 > >
00:10:23 v #9098 > > inl arg_action (value : arg_action) (arg : arg) : arg =
00:10:23 v #9099 > >     inl value = value |> arg_action
00:10:23 v #9100 > >     !\\((arg, value), $'"$0.action($1)"')
00:10:24 v #9101 > 00:10:23 d #545 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/57e826fdb262797b0018202c390ac7eb76af3d670148f23ff1c00152882c1d6a/main.spi
00:10:24 v #9102 > >
00:10:24 v #9103 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:24 v #9104 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:24 v #9105 > > │ ### arg_index                                                                │
00:10:24 v #9106 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:24 v #9107 > >
00:10:24 v #9108 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:24 v #9109 > > inl arg_index (value : i32) (arg : arg) : arg =
00:10:24 v #9110 > >     !\\((arg, value), $'"$0.index($1)"')
00:10:24 v #9111 > 00:10:23 d #546 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5dd3c009e3519276c2b2e2c14fa696fffe77231da601b3460c42bade3cf7b7f3/main.spi
00:10:24 v #9112 > >
00:10:24 v #9113 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:24 v #9114 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:24 v #9115 > > │ ### arg_matches                                                              │
00:10:24 v #9116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:24 v #9117 > >
00:10:24 v #9118 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:24 v #9119 > > nominal arg_matches =
00:10:24 v #9120 > >     `(
00:10:24 v #9121 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:10:24 v #9122 > > Fable.Core.Emit(\"clap::ArgMatches\")>]]\n#endif\ntype clap_ArgMatches = class
00:10:24 v #9123 > > end"
00:10:24 v #9124 > >         $'' : $'clap_ArgMatches'
00:10:24 v #9125 > >     )
00:10:25 v #9126 > 00:10:24 d #547 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/046f74ec94fd1fda97f1ea8f09367a576d2870a3cbfef1a02c48c0faba79a08c/main.spi
00:10:25 v #9127 > >
00:10:25 v #9128 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:25 v #9129 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:25 v #9130 > > │ ### command_get_matches                                                      │
00:10:25 v #9131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:25 v #9132 > >
00:10:25 v #9133 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:25 v #9134 > > inl command_get_matches (command : command) : arg_matches =
00:10:25 v #9135 > >     !\\(command, $'"clap::Command::get_matches($0)"')
00:10:25 v #9136 > 00:10:24 d #548 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c427183f57fcd3f8d8badd032cd44dbf7c5665c8d2c527de62d2226076a77b8d/main.spi
00:10:25 v #9137 > >
00:10:25 v #9138 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:25 v #9139 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:25 v #9140 > > │ ### command_get_matches_from                                                 │
00:10:25 v #9141 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:25 v #9142 > >
00:10:25 v #9143 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:25 v #9144 > > inl command_get_matches_from (args : array_base string) (command : command) :
00:10:25 v #9145 > > arg_matches =
00:10:25 v #9146 > >     inl args = args |> am'.to_vec |> am'.vec_map sm'.to_std_string
00:10:25 v #9147 > >     !\\(command, $'"clap::Command::get_matches_from($0, !args)"')
00:10:25 v #9148 > 00:10:25 d #549 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc73ad02a3867f7a563e1db69560d53218998fd2c2aa16771c28301a85b6ac2e/main.spi
00:10:26 v #9149 > >
00:10:26 v #9150 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:26 v #9151 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:26 v #9152 > > │ ### command_args_override_self                                               │
00:10:26 v #9153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:26 v #9154 > >
00:10:26 v #9155 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:26 v #9156 > > inl command_args_override_self (yes : bool) (command : command) : command =
00:10:26 v #9157 > >     !\\(command, $'"clap::Command::args_override_self($0, !yes)"')
00:10:26 v #9158 > 00:10:25 d #550 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/65f57dd235a26288a86b96b0542e459508fdf05b61edaaa3be2c7675ed7cbe04/main.spi
00:10:26 v #9159 > >
00:10:26 v #9160 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:26 v #9161 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:26 v #9162 > > │ ### command_init_arg                                                         │
00:10:26 v #9163 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:26 v #9164 > >
00:10:26 v #9165 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:26 v #9166 > > inl command_init_arg (long, short) fn command =
00:10:26 v #9167 > >     command
00:10:26 v #9168 > >     |> command_arg (
00:10:26 v #9169 > >         ##long
00:10:26 v #9170 > >         |> new_arg
00:10:26 v #9171 > >         |> arg_short short
00:10:26 v #9172 > >         |> arg_long ##long
00:10:26 v #9173 > >         |> fn
00:10:26 v #9174 > >     )
00:10:26 v #9175 > 00:10:25 d #551 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8a63edfc7d200e6f156531f447424eb950483c5406931613beed2761ceec1d47/main.spi
00:10:26 v #9176 > >
00:10:26 v #9177 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:26 v #9178 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:26 v #9179 > > │ ### matches_get_one                                                          │
00:10:26 v #9180 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:26 v #9181 > >
00:10:26 v #9182 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:26 v #9183 > > inl matches_get_one forall t. (x : string) (matches : arg_matches) :
00:10:26 v #9184 > > optionm'.option' t =
00:10:26 v #9185 > >     inl x = join x
00:10:26 v #9186 > >     inl x = x |> sm'.as_str
00:10:26 v #9187 > >     !\\((matches, x), $'"clap::ArgMatches::get_one(&$0, $1).cloned()"')
00:10:27 v #9188 > 00:10:26 d #552 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1c99d0a91786bf3a5103a4bd2862c5c598998b0f0e836a9d25ac83768df44b4c/main.spi
00:10:27 v #9189 > >
00:10:27 v #9190 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:27 v #9191 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:27 v #9192 > > │ ### matches_get_flag                                                         │
00:10:27 v #9193 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:27 v #9194 > >
00:10:27 v #9195 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:27 v #9196 > > inl matches_get_flag (x : string) (matches : arg_matches) : bool =
00:10:27 v #9197 > >     inl x = join x
00:10:27 v #9198 > >     inl x = x |> sm'.as_str
00:10:27 v #9199 > >     !\\((matches, x), $'"clap::ArgMatches::get_flag(&$0, $1)"')
00:10:27 v #9200 > 00:10:26 d #553 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b74da4a3f88b197f3112c3a5c43748a9ab7fdbb34a43944ec08c19ec27e657eb/main.spi
00:10:27 v #9201 > >
00:10:27 v #9202 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:27 v #9203 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:27 v #9204 > > │ ### matches_get_many                                                         │
00:10:27 v #9205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:27 v #9206 > >
00:10:27 v #9207 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:27 v #9208 > > inl matches_get_many forall t. (x : string) (matches : arg_matches) :
00:10:27 v #9209 > > optionm'.option' (am'.vec t) =
00:10:27 v #9210 > >     inl x = join x
00:10:27 v #9211 > >     inl x = x |> sm'.as_str
00:10:27 v #9212 > >     !\\((matches, x), $'"clap::ArgMatches::get_many(&$0, $1).map(|x|
00:10:27 v #9213 > > x.cloned().into_iter().collect())"')
00:10:27 v #9214 > 00:10:27 d #554 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2639d9257a933557cdd6752aabc53d5a709e1e3bcb020a148b086bd29ae7d31f/main.spi
00:10:28 v #9215 > >
00:10:28 v #9216 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:28 v #9217 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:28 v #9218 > > │ ### matches_get_occurrences                                                  │
00:10:28 v #9219 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:28 v #9220 > >
00:10:28 v #9221 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:28 v #9222 > > inl matches_get_occurrences (x : string) (matches : arg_matches) :
00:10:28 v #9223 > > optionm'.option' (array_base sm'.std_string) =
00:10:28 v #9224 > >     inl x = join x
00:10:28 v #9225 > >     inl x = x |> sm'.as_str
00:10:28 v #9226 > >     !\($'"clap::ArgMatches::get_occurrences(&!matches, !x).cloned()"')
00:10:28 v #9227 > 00:10:27 d #555 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b6f5612fa6e4bf02d9939c5c72ff1f4ea84d4943e1da41835a434c63443db3b/main.spi
00:10:28 v #9228 > >
00:10:28 v #9229 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:28 v #9230 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:28 v #9231 > > │ ### matches_subcommand                                                       │
00:10:28 v #9232 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:28 v #9233 > >
00:10:28 v #9234 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:28 v #9235 > > inl matches_subcommand (matches : arg_matches) : optionm'.option'
00:10:28 v #9236 > > (sm'.std_string * arg_matches) =
00:10:28 v #9237 > >     !\\((matches, sm'.ref_to_std_string),
00:10:28 v #9238 > > $'"clap::ArgMatches::subcommand(Box::leak(Box::new($0))).map(|(a, b)| ($1(a),
00:10:28 v #9239 > > b.clone()))"')
00:10:28 v #9240 > 00:10:28 d #556 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ee0a40320f07871febc61d24ddec5a229640f1a6bae0a04c9b0f7b19de78475b/main.spi
00:10:29 v #9241 > >
00:10:29 v #9242 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:29 v #9243 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:29 v #9244 > > │ ### matches_values_of                                                        │
00:10:29 v #9245 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:29 v #9246 > >
00:10:29 v #9247 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:29 v #9248 > > inl matches_values_of (x : string) (matches : arg_matches) : array_base
00:10:29 v #9249 > > sm'.std_string =
00:10:29 v #9250 > >     !\\((matches, x), $'"clap::ArgMatches::values_of($0, &*$1)"')
00:10:29 v #9251 > 00:10:28 d #557 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5749901fc6d645425943a0eac6c8b8645dfa2b05e8a0a87dbeb0cfa0ae8ee4e4/main.spi
00:10:29 v #9252 > >
00:10:29 v #9253 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:29 v #9254 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:29 v #9255 > > │ ### command_subcommand_required                                              │
00:10:29 v #9256 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:29 v #9257 > >
00:10:29 v #9258 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:29 v #9259 > > inl command_subcommand_required (value : bool) (command : command) : command =
00:10:29 v #9260 > >     !\\(command, $'"clap::Command::subcommand_required($0, !value)"')
00:10:29 v #9261 > 00:10:28 d #558 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa6a5ea83cfe980a0f97b6ed7e13e36bdad87514d5e90f9de802fcfd739e3cb4/main.spi
00:10:29 v #9262 > >
00:10:29 v #9263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:29 v #9264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:29 v #9265 > > │ ### command_subcommand                                                       │
00:10:29 v #9266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:29 v #9267 > >
00:10:29 v #9268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:29 v #9269 > > inl command_subcommand (subcommand : command) (command : command) : command =
00:10:29 v #9270 > >     !\\(command, $'"clap::Command::subcommand($0, !subcommand)"')
00:10:30 v #9271 > 00:10:29 d #559 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b27a9077b4a849d2882c92a50abd79a616be39b41c15afdae6840065143191ca/main.spi
00:10:30 v #9272 > >
00:10:30 v #9273 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:30 v #9274 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:30 v #9275 > > │ ### value_parser_possible_values                                             │
00:10:30 v #9276 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:30 v #9277 > >
00:10:30 v #9278 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:30 v #9279 > > inl value_parser_possible_values (values : array_base string) : value_parser =
00:10:30 v #9280 > >     inl values =
00:10:30 v #9281 > >         values
00:10:30 v #9282 > >         |> am'.to_vec
00:10:30 v #9283 > >         |> am'.vec_map (sm'.to_std_string >> rust.new_box >> rust.box_leak >>
00:10:30 v #9284 > > new_possible_value)
00:10:30 v #9285 > >     !\\(values,
00:10:30 v #9286 > > $'"Into::<clap::builder::ValueParser>::into(clap::builder::PossibleValuesParser:
00:10:30 v #9287 > > :new($0))"')
00:10:30 v #9288 > 00:10:29 d #560 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e964cbbe10ecfec533a1cdd58e05205e37e819f719d438fc394060b78157209/main.spi
00:10:30 v #9289 > >
00:10:30 v #9290 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:30 v #9291 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:30 v #9292 > > │ ### arg_union                                                                │
00:10:30 v #9293 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:30 v #9294 > >
00:10:30 v #9295 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:30 v #9296 > > inl arg_union forall union_type. (fn : union_type -> ()) (arg : arg) : arg =
00:10:30 v #9297 > >     arg
00:10:30 v #9298 > >     |> arg_value_parser (
00:10:30 v #9299 > >         real reflection.get_union_fields_untag `union_type ()
00:10:30 v #9300 > >         |> fun x => x : _ (string * union_type)
00:10:30 v #9301 > >         |> listm.map fst
00:10:30 v #9302 > >         |> listm'.box
00:10:30 v #9303 > >         |> listm'.to_array'
00:10:30 v #9304 > >         |> value_parser_possible_values
00:10:30 v #9305 > >     )
00:10:31 v #9306 > 00:10:30 d #561 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3332b8bad9f796c75f201d3774de43676e100cd3ac25b4239ccd5f742f8f5c72/main.spi
00:10:31 v #9307 > >
00:10:31 v #9308 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:31 v #9309 > > //// test
00:10:31 v #9310 > > ///! rust -d clap
00:10:31 v #9311 > >
00:10:31 v #9312 > > ##"command"
00:10:31 v #9313 > > |> new_command
00:10:31 v #9314 > > |> command_init_arg ("trace-level", 't') (
00:10:31 v #9315 > >     real arg_union `trace_level ignore
00:10:31 v #9316 > > )
00:10:31 v #9317 > > |> command_get_matches_from ;[[ "_"; "--trace-level"; "Critical" ]]
00:10:31 v #9318 > > |> matches_get_one "trace-level"
00:10:31 v #9319 > > |> optionm'.unwrap
00:10:31 v #9320 > > |> sm'.from_std_string
00:10:31 v #9321 > > |> reflection.union_try_pick
00:10:31 v #9322 > > |> optionm.value
00:10:31 v #9323 > > |> _assert_eq Critical
00:10:31 v #9324 > 00:10:30 d #562 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1904d07268aa76189223886f2279c2b0cefc5acf6bfb5a3582dd1a4eabe49f28/main.spi
00:10:46 v #9325 > >
00:10:46 v #9326 > > ╭─[ 14.90s - return value ]────────────────────────────────────────────────────╮
00:10:46 v #9327 > > │ __assert_eq / actual: US1_4 / expected: US1_4                                │
00:10:46 v #9328 > > │                                                                              │
00:10:46 v #9329 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:46 v #9330 > >
00:10:46 v #9331 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:46 v #9332 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:46 v #9333 > > │ ### command_debug_assert                                                     │
00:10:46 v #9334 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:46 v #9335 > >
00:10:46 v #9336 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:46 v #9337 > > inl command_debug_assert (command : command) : () =
00:10:46 v #9338 > >     !\\(command, $'"clap::Command::debug_assert($0)"')
00:10:46 v #9339 > 00:10:45 d #563 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1806218a1f9ce75435e3d94e750b0545376ac23f3424bce228237faaae9c9bfd/main.spi
00:10:46 v #9340 > >
00:10:46 v #9341 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:46 v #9342 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:46 v #9343 > > │ ## fsharp                                                                    │
00:10:46 v #9344 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:46 v #9345 > >
00:10:46 v #9346 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:46 v #9347 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:46 v #9348 > > │ ### process                                                                  │
00:10:46 v #9349 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:46 v #9350 > >
00:10:46 v #9351 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:46 v #9352 > > nominal process = $'System.Diagnostics.Process'
00:10:46 v #9353 > 00:10:46 d #564 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86de7bb031a401a06094c24d2e2f756cb33cce6bf7f5ecf33cc141697c23a4ed/main.spi
00:10:46 v #9354 > >
00:10:46 v #9355 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:46 v #9356 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:46 v #9357 > > │ ### process_start_info                                                       │
00:10:46 v #9358 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:46 v #9359 > >
00:10:46 v #9360 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:46 v #9361 > > nominal process_start_info = $'System.Diagnostics.ProcessStartInfo'
00:10:47 v #9362 > 00:10:46 d #565 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/07464ec7f9553821223889372e5f28b100cc5878c942b4daaea499b83e8ab25f/main.spi
00:10:47 v #9363 > >
00:10:47 v #9364 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:47 v #9365 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:47 v #9366 > > │ ### data_received_event_args                                                 │
00:10:47 v #9367 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:47 v #9368 > >
00:10:47 v #9369 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:47 v #9370 > > nominal data_received_event_args = $'System.Diagnostics.DataReceivedEventArgs'
00:10:47 v #9371 > 00:10:46 d #566 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1027a09ee57705d3d2d40c8af3d96a24dc9829c03af98f42a2a4cc05c1d7d30/main.spi
00:10:47 v #9372 > >
00:10:47 v #9373 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:47 v #9374 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:47 v #9375 > > │ ### new_process                                                              │
00:10:47 v #9376 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:47 v #9377 > >
00:10:47 v #9378 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:47 v #9379 > > inl new_process (process_start_info : process_start_info) : process =
00:10:47 v #9380 > >     $'new `process (StartInfo = !process_start_info)'
00:10:48 v #9381 > 00:10:47 d #567 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/907116e66f54c9f61973a8c865868fe7f681af386c914c2f95d734be88ad4296/main.spi
00:10:48 v #9382 > >
00:10:48 v #9383 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:48 v #9384 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:48 v #9385 > > │ ### process_start                                                            │
00:10:48 v #9386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:48 v #9387 > >
00:10:48 v #9388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:48 v #9389 > > inl process_start (process : process) : bool =
00:10:48 v #9390 > >     $'!process.Start' ()
00:10:48 v #9391 > 00:10:47 d #568 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c3e4d62dc5a01f549466693e5ec8684b5969a7000a4841922a314d1abac83723/main.spi
00:10:48 v #9392 > >
00:10:48 v #9393 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:48 v #9394 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:48 v #9395 > > │ ### process_exit_code                                                        │
00:10:48 v #9396 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:48 v #9397 > >
00:10:48 v #9398 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:48 v #9399 > > inl process_exit_code (process : process) : i32 =
00:10:48 v #9400 > >     $'!process.ExitCode'
00:10:48 v #9401 > 00:10:48 d #569 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf7da5dce8befd2624352125dafc167f91fce2fe8896b62f8596c2d11eec6716/main.spi
00:10:49 v #9402 > >
00:10:49 v #9403 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:49 v #9404 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:49 v #9405 > > │ ### process_id                                                               │
00:10:49 v #9406 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:49 v #9407 > >
00:10:49 v #9408 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:49 v #9409 > > inl process_id (process : process) : i32 =
00:10:49 v #9410 > >     $'!process.Id'
00:10:49 v #9411 > 00:10:48 d #570 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a75e630b1fe2d099b999c4abd293df290bdcc4e6f6002a326c00c4334a1dcaf9/main.spi
00:10:49 v #9412 > >
00:10:49 v #9413 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:49 v #9414 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:49 v #9415 > > │ ### process_has_exited                                                       │
00:10:49 v #9416 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:49 v #9417 > >
00:10:49 v #9418 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:49 v #9419 > > inl process_has_exited (process : process) : bool =
00:10:49 v #9420 > >     run_target function
00:10:49 v #9421 > >         | Fsharp (Native) => fun () =>
00:10:49 v #9422 > >             $'!process.HasExited'
00:10:49 v #9423 > >         | _ => fun () => null ()
00:10:49 v #9424 > 00:10:48 d #571 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f642a2713e59dfc4a38a0a5ce97d31da466d258db3910d1cc24655cafae8e3e6/main.spi
00:10:49 v #9425 > >
00:10:49 v #9426 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:49 v #9427 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:49 v #9428 > > │ ### process_kill                                                             │
00:10:49 v #9429 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:49 v #9430 > >
00:10:49 v #9431 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:49 v #9432 > > inl process_kill (process : process) : () =
00:10:49 v #9433 > >     run_target function
00:10:49 v #9434 > >         | Fsharp (Native) => fun () =>
00:10:49 v #9435 > >             $'!process.Kill' ()
00:10:49 v #9436 > >         | _ => fun () => ()
00:10:50 v #9437 > 00:10:49 d #572 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af5277acf5d59e11e3391d4a8e66ad78760d599a5ba3363f83ba0572420bdd4e/main.spi
00:10:50 v #9438 > >
00:10:50 v #9439 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:50 v #9440 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:50 v #9441 > > │ ### process_begin_error_read_line                                            │
00:10:50 v #9442 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:50 v #9443 > >
00:10:50 v #9444 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:50 v #9445 > > inl process_begin_error_read_line (process : process) : () =
00:10:50 v #9446 > >     $'!process.BeginErrorReadLine' ()
00:10:50 v #9447 > 00:10:49 d #573 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/960fd65a43eb37034046e92db036998996e4d491bb60a49504229cf560053264/main.spi
00:10:50 v #9448 > >
00:10:50 v #9449 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:50 v #9450 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:50 v #9451 > > │ ### process_begin_output_read_line                                           │
00:10:50 v #9452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:50 v #9453 > >
00:10:50 v #9454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:50 v #9455 > > inl process_begin_output_read_line (process : process) : () =
00:10:50 v #9456 > >     $'!process.BeginOutputReadLine' ()
00:10:51 v #9457 > 00:10:50 d #574 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2c6e2a93bd69bb6c2380169d3203af8f94c27e926e4a2bb0e9b116f9d114fba9/main.spi
00:10:51 v #9458 > >
00:10:51 v #9459 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:51 v #9460 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:51 v #9461 > > │ ### process_add_output_data_received                                         │
00:10:51 v #9462 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:51 v #9463 > >
00:10:51 v #9464 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:51 v #9465 > > inl process_add_output_data_received fn (process : process) : () =
00:10:51 v #9466 > >     $'!process.OutputDataReceived.Add !fn '
00:10:51 v #9467 > 00:10:50 d #575 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f2cccb7a9cddabb05e268d9a02bcd2294c241f60b0df5205c9a8f0355df53d17/main.spi
00:10:51 v #9468 > >
00:10:51 v #9469 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:51 v #9470 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:51 v #9471 > > │ ### process_add_error_data_received                                          │
00:10:51 v #9472 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:51 v #9473 > >
00:10:51 v #9474 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:51 v #9475 > > inl process_add_error_data_received fn (process : process) : () =
00:10:51 v #9476 > >     $'!process.ErrorDataReceived.Add !fn '
00:10:51 v #9477 > 00:10:51 d #576 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3063d9c12b2b631a14d57eec16ae918282d80a4472f94ac0ab9290f01ab52843/main.spi
00:10:52 v #9478 > >
00:10:52 v #9479 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:52 v #9480 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:52 v #9481 > > │ ### process_wait_for_exit_async                                              │
00:10:52 v #9482 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:52 v #9483 > >
00:10:52 v #9484 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:52 v #9485 > > inl process_wait_for_exit_async (ct : threading.cancellation_token) (process :
00:10:52 v #9486 > > process) : async.task () =
00:10:52 v #9487 > >     $'!process.WaitForExitAsync !ct '
00:10:52 v #9488 > 00:10:51 d #577 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9c50c870ecccaa0814c0507390ec2b43926bad1f5e56e7c86551513ab6eca98f/main.spi
00:10:52 v #9489 > >
00:10:52 v #9490 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:52 v #9491 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:52 v #9492 > > │ ### event_data                                                               │
00:10:52 v #9493 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:52 v #9494 > >
00:10:52 v #9495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:52 v #9496 > > inl event_data (e : data_received_event_args) : string =
00:10:52 v #9497 > >     $'!e.Data'
00:10:52 v #9498 > 00:10:52 d #578 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/22fecfcabe99e3beafd1fdb285da68c82baae793b1b1d4b5d49363075cfcc268/main.spi
00:10:53 v #9499 > >
00:10:53 v #9500 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:53 v #9501 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:53 v #9502 > > │ ### execute_with_options_async                                               │
00:10:53 v #9503 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:53 v #9504 > >
00:10:53 v #9505 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:53 v #9506 > > let execute_with_options_async (options : execution_options) : _ (i32 * string)
00:10:53 v #9507 > > =
00:10:53 v #9508 > >     run_target function
00:10:53 v #9509 > >         | Fsharp (Native) => fun () =>
00:10:53 v #9510 > >             fun () =>
00:10:53 v #9511 > >                 inl file_name, arguments = options.command |> split_command |>
00:10:53 v #9512 > > resultm.get
00:10:53 v #9513 > >                 inl working_directory = options.working_directory |>
00:10:53 v #9514 > > optionm'.unbox |> optionm'.default_value ""
00:10:53 v #9515 > >
00:10:53 v #9516 > >                 trace Debug
00:10:53 v #9517 > >                     fun () => "runtime.execute_with_options_async"
00:10:53 v #9518 > >                     fun () => { file_name arguments options }
00:10:53 v #9519 > >
00:10:53 v #9520 > >                 inl utf8 = sm'.encoding_utf8 ()
00:10:53 v #9521 > >                 inl arguments = arguments |> optionm'.default_value ""
00:10:53 v #9522 > >
00:10:53 v #9523 > >                 $'let start_info = System.Diagnostics.ProcessStartInfo ('
00:10:53 v #9524 > >                 $'  Arguments = !arguments,'
00:10:53 v #9525 > >                 $'  StandardOutputEncoding = !utf8,'
00:10:53 v #9526 > >                 $'  WorkingDirectory = !working_directory,'
00:10:53 v #9527 > >                 $'  FileName = !file_name,'
00:10:53 v #9528 > >                 $'  CreateNoWindow = true,'
00:10:53 v #9529 > >                 $'  RedirectStandardError = true,'
00:10:53 v #9530 > >                 $'  RedirectStandardOutput = true,'
00:10:53 v #9531 > >                 $'  UseShellExecute = false'
00:10:53 v #9532 > >                 $')'
00:10:53 v #9533 > >                 inl start_info : process_start_info = $'start_info'
00:10:53 v #9534 > >
00:10:53 v #9535 > >                 (a options.environment_variables : _ i32 _)
00:10:53 v #9536 > >                 |> am.iter fun key, value =>
00:10:53 v #9537 > >                     $'!start_info.EnvironmentVariables.[[!key]] <- !value '
00:10:53 v #9538 > >
00:10:53 v #9539 > >                 inl proc = start_info |> new_process |> use
00:10:53 v #9540 > >                 inl output : _ string = threading.new_concurrent_stack ()
00:10:53 v #9541 > >
00:10:53 v #9542 > >                 inl event error (e : data_received_event_args) = async.new_async
00:10:53 v #9543 > > fun () =>
00:10:53 v #9544 > >                     inl data = e |> event_data
00:10:53 v #9545 > >                     if data <> null () then
00:10:53 v #9546 > >                         match options.on_line |> optionm'.unbox with
00:10:53 v #9547 > >                         | Some on_line =>
00:10:53 v #9548 > >                             on_line
00:10:53 v #9549 > >                                 {
00:10:53 v #9550 > >                                     process_id = proc |> process_id
00:10:53 v #9551 > >                                     line = data
00:10:53 v #9552 > >                                     error = error
00:10:53 v #9553 > >                                 }
00:10:53 v #9554 > >                             |> async.do
00:10:53 v #9555 > >                         | None => ()
00:10:53 v #9556 > >
00:10:53 v #9557 > >                         inl text =
00:10:53 v #9558 > >                             if error
00:10:53 v #9559 > >                             then $'$"\! {!data}"'
00:10:53 v #9560 > >                             else $'$"> {!data}"'
00:10:53 v #9561 > >                         if options.trace
00:10:53 v #9562 > >                         then trace Verbose (fun () => text) id
00:10:53 v #9563 > >                         else text |> console.write_line
00:10:53 v #9564 > >
00:10:53 v #9565 > >                         inl l = if error then $'"\\u001b[[7;4m"' else ""
00:10:53 v #9566 > >                         inl r = if error then $'"\\u001b[[0m"' else ""
00:10:53 v #9567 > >                         output |> threading.concurrent_stack_push
00:10:53 v #9568 > > $'$"{!l}{!data}{!r}"'
00:10:53 v #9569 > >
00:10:53 v #9570 > >                 proc |> process_add_output_data_received (event false >>
00:10:53 v #9571 > > async.start_immediate)
00:10:53 v #9572 > >                 proc |> process_add_error_data_received (event true >>
00:10:53 v #9573 > > async.start_immediate)
00:10:53 v #9574 > >
00:10:53 v #9575 > >                 if proc |> process_start |> not
00:10:53 v #9576 > >                 then failwith $'$"runtime.execute_with_options_async
00:10:53 v #9577 > > process_start error"'
00:10:53 v #9578 > >
00:10:53 v #9579 > >                 proc |> process_begin_error_read_line
00:10:53 v #9580 > >                 proc |> process_begin_output_read_line
00:10:53 v #9581 > >
00:10:53 v #9582 > >                 inl ct =
00:10:53 v #9583 > >                     options.cancellation_token
00:10:53 v #9584 > >                     |> optionm'.unbox
00:10:53 v #9585 > >                     |> optionm'.default_with threading.token_none
00:10:53 v #9586 > >                     |> async.merge_cancellation_token_with_default_async
00:10:53 v #9587 > >                     |> async.let'
00:10:53 v #9588 > >
00:10:53 v #9589 > >                 ct |> threading.token_register fun () =>
00:10:53 v #9590 > >                     if proc |> process_has_exited |> not
00:10:53 v #9591 > >                     then proc |> process_kill
00:10:53 v #9592 > >                 |> use
00:10:53 v #9593 > >                 |> ignore
00:10:53 v #9594 > >
00:10:53 v #9595 > >                 inl exit_code : i32 =
00:10:53 v #9596 > >                     fun () =>
00:10:53 v #9597 > >                         try_unit
00:10:53 v #9598 > >                             fun () =>
00:10:53 v #9599 > >                                 proc
00:10:53 v #9600 > >                                 |> process_wait_for_exit_async ct
00:10:53 v #9601 > >                                 |> async.await_task
00:10:53 v #9602 > >                                 |> async.do
00:10:53 v #9603 > >                                 proc |> process_exit_code |> return
00:10:53 v #9604 > >                             fun ex =>
00:10:53 v #9605 > >                                 // with :?
00:10:53 v #9606 > > System.Threading.Tasks.TaskCanceledException as ex =>
00:10:53 v #9607 > >                                 inl ex' = ex |> sm'.format_exception
00:10:53 v #9608 > >                                 output |> threading.concurrent_stack_push ex'
00:10:53 v #9609 > >                                 inl ex : async.task_canceled_exception = ex |>
00:10:53 v #9610 > > unbox
00:10:53 v #9611 > >                                 trace Warning
00:10:53 v #9612 > >                                     fun () =>
00:10:53 v #9613 > > "runtime.execute_with_options_async / WaitForExitAsync"
00:10:53 v #9614 > >                                     fun () => { ex }
00:10:53 v #9615 > >                                 (limit.min : i32) |> return
00:10:53 v #9616 > >                     |> async.new_async_unit
00:10:53 v #9617 > >                     |> async.let'
00:10:53 v #9618 > >
00:10:53 v #9619 > >                 inl output =
00:10:53 v #9620 > >                     output
00:10:53 v #9621 > >                     |> seq.rev''
00:10:53 v #9622 > >                     |> fun x => x : seq.seq' string
00:10:53 v #9623 > >                     |> sm'.concat "\n"
00:10:53 v #9624 > >
00:10:53 v #9625 > >                 trace Debug
00:10:53 v #9626 > >                     fun () => "runtime.execute_with_options_async"
00:10:53 v #9627 > >                     fun () => { exit_code output_length = output |> sm'.length :
00:10:53 v #9628 > > i32 }
00:10:53 v #9629 > >
00:10:53 v #9630 > >                 (exit_code, output) |> return
00:10:53 v #9631 > >             |> async.new_async_unit
00:10:53 v #9632 > >         | _ => fun () =>
00:10:53 v #9633 > >             global "#if FABLE_COMPILER\n[[<CompilationRepresentation
00:10:53 v #9634 > > (CompilationRepresentationFlags.ModuleSuffix)>]]\nmodule System =\n module
00:10:53 v #9635 > > Diagnostics =\n  type Process = unit\n  type DataReceivedEventArgs =
00:10:53 v #9636 > > unit\n#endif"
00:10:53 v #9637 > >             null ()
00:10:53 v #9638 > 00:10:52 d #579 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a408da100688b55a6b23ff775d92182966da335f2474af9bae40e15e0ab85b4d/main.spi
00:10:53 v #9639 > >
00:10:53 v #9640 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:53 v #9641 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:53 v #9642 > > │ ### execute_async                                                            │
00:10:53 v #9643 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:53 v #9644 > >
00:10:53 v #9645 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:53 v #9646 > > inl execute_async command =
00:10:53 v #9647 > >     execution_options fun x => { x with
00:10:53 v #9648 > >         command = command
00:10:53 v #9649 > >     }
00:10:53 v #9650 > >     |> execute_with_options_async
00:10:53 v #9651 > 00:10:52 d #580 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a840396c11dbc54b70b777afd35528cb17ce5bd48f7d6ecf9fffe4d4204c4f6d/main.spi
00:10:53 v #9652 > >
00:10:53 v #9653 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:53 v #9654 > > //// test
00:10:53 v #9655 > >
00:10:53 v #9656 > > inl content = "╭─[[ 你好,世界!こんにちは世界! ]]─╮"
00:10:53 v #9657 > > fun () =>
00:10:53 v #9658 > >     inl file_name = "test.txt"
00:10:53 v #9659 > >     inl temp_dir, disposable =
00:10:53 v #9660 > >         (file_name, content)
00:10:53 v #9661 > >         |> sm'.format_debug
00:10:53 v #9662 > >         |> crypto.hash_text
00:10:53 v #9663 > >         |> file_system.create_temp_dir'
00:10:53 v #9664 > >     disposable |> use |> ignore
00:10:53 v #9665 > >
00:10:53 v #9666 > >     inl path = temp_dir </> file_name
00:10:53 v #9667 > >
00:10:53 v #9668 > >     inl exit_code, result = execute_async $'\@$"pwsh -c ""Get-Content
00:10:53 v #9669 > > {!path}"""' |> async.let'
00:10:53 v #9670 > >     exit_code |> join _assert_eq 1
00:10:53 v #9671 > >     result |> _assert sm'.contains "not exist"
00:10:53 v #9672 > >
00:10:53 v #9673 > >     content |> file_system.write_all_text_async path |> async.do
00:10:53 v #9674 > >
00:10:53 v #9675 > >     execution_options fun x => { x with
00:10:53 v #9676 > >         command = $'\@$"cat ""{!file_name}"""'
00:10:53 v #9677 > >         working_directory = Some temp_dir |> optionm'.box
00:10:53 v #9678 > >     }
00:10:53 v #9679 > >     |> execute_with_options_async
00:10:53 v #9680 > >     |> async.let'
00:10:53 v #9681 > >     |> ignore
00:10:53 v #9682 > >
00:10:53 v #9683 > >     execution_options fun x => { x with
00:10:53 v #9684 > >         command = $'\@$"pwsh -c ""[[System.Console]]::OutputEncoding =
00:10:53 v #9685 > > [[System.Text.Encoding]]::UTF8; Get-Content {!file_name}"""'
00:10:53 v #9686 > >         working_directory = Some temp_dir |> optionm'.box
00:10:53 v #9687 > >     }
00:10:53 v #9688 > >     |> execute_with_options_async
00:10:53 v #9689 > >     |> async.return_await
00:10:53 v #9690 > > |> async.new_async_unit
00:10:53 v #9691 > > |> async.run_with_timeout 10000
00:10:53 v #9692 > > |> function
00:10:53 v #9693 > >     | Some (exit_code, output) =>
00:10:53 v #9694 > >         exit_code |> join _assert_eq 0i32
00:10:53 v #9695 > >         output |> join _assert_eq content
00:10:53 v #9696 > >         true
00:10:53 v #9697 > >     | _ => false
00:10:53 v #9698 > > |> _assert_eq true
00:10:54 v #9699 > 00:10:53 d #581 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75726df0c9c596a78a159301a0301224988168cd0de495bd985abd2bac4b5ce5/main.spi
00:10:58 v #9700 > >
00:10:58 v #9701 > > ╭─[ 4.26s - stdout ]───────────────────────────────────────────────────────────╮
00:10:58 v #9702 > > │ 00:00:00 d #1 runtime.execute_with_options_async / { file_name = pwsh;  │
00:10:58 v #9703 > > │ arguments = US2_0                                                            │
00:10:58 v #9704 > > │   "-c "Get-Content                                                           │
00:10:58 v #9705 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-81 │
00:10:58 v #9706 > > │ 3b-88ad-7791-7ce2871edce9\test.txt""; options = { command = pwsh -c          │
00:10:58 v #9707 > > │ "Get-Content                                                                 │
00:10:58 v #9708 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-81 │
00:10:58 v #9709 > > │ 3b-88ad-7791-7ce2871edce9\test.txt"; cancellation_token = None;              │
00:10:58 v #9710 > > │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
00:10:58 v #9711 > > │ working_directory = None } }                                                 │
00:10:58 v #9712 > > │ 00:00:00 v #2 ! Get-Content: Cannot find path                 │
00:10:58 v #9713 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:10:58 v #9714 > > │ 13b-88ad-7791-7ce2871edce9\test.txt' because it does not exist.            │
00:10:58 v #9715 > > │ 00:00:00 d #3 runtime.execute_with_options_async / { exit_code = 1;     │
00:10:58 v #9716 > > │ output_length = 197 }                                                        │
00:10:58 v #9717 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:10:58 v #9718 > > │ __assert / actual: "not exist" / expected: "Get-Content: [           │
00:10:58 v #9719 > > │ 31;1mCannot find path                                                        │
00:10:58 v #9720 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:10:58 v #9721 > > │ 13b-88ad-7791-7ce2871edce9\test.txt' because it does not exist."         │
00:10:58 v #9722 > > │ 00:00:00 d #4 runtime.execute_with_options_async / { file_name = cat;   │
00:10:58 v #9723 > > │ arguments = US2_0 ""test.txt""; options = { command = cat "test.txt";        │
00:10:58 v #9724 > > │ cancellation_token = None; environment_variables = [||]; on_line = None;     │
00:10:58 v #9725 > > │ stdin = None; trace = true; working_directory = Some                         │
00:10:58 v #9726 > > │                                                                              │
00:10:58 v #9727 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:10:58 v #9728 > > │ 13b-88ad-7791-7ce2871edce9" } }                                              │
00:10:58 v #9729 > > │ 00:00:00 v #5 > ╭─[ 你好,世界!こんにちは世界! ]─╮                    │
00:10:58 v #9730 > > │ 00:00:00 d #6 runtime.execute_with_options_async / { exit_code = 0;     │
00:10:58 v #9731 > > │ output_length = 22 }                                                         │
00:10:58 v #9732 > > │ 00:00:00 d #7 runtime.execute_with_options_async / { file_name = pwsh;  │
00:10:58 v #9733 > > │ arguments = US2_0                                                            │
00:10:58 v #9734 > > │   "-c "[System.Console]::OutputEncoding = [System.Text.Encoding]::UTF8;      │
00:10:58 v #9735 > > │ Get-Content test.txt""; options = { command = pwsh -c "[                     │
00:10:58 v #9736 > > │ System.Console]::OutputEncoding = [System.Text.Encoding]::UTF8; Get-Content  │
00:10:58 v #9737 > > │ test.txt"; cancellation_token = None; environment_variables = [||]; on_line  │
00:10:58 v #9738 > > │ = None; stdin = None; trace = true; working_directory = Some                 │
00:10:58 v #9739 > > │                                                                              │
00:10:58 v #9740 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:10:58 v #9741 > > │ 13b-88ad-7791-7ce2871edce9" } }                                              │
00:10:58 v #9742 > > │ 00:00:01 v #8 > ╭─[ 你好,世界!こんにちは世界! ]─╮                    │
00:10:58 v #9743 > > │ 00:00:01 d #9 runtime.execute_with_options_async / { exit_code = 0;     │
00:10:58 v #9744 > > │ output_length = 22 }                                                         │
00:10:58 v #9745 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:10:58 v #9746 > > │ __assert_eq / actual: "╭─[ 你好,世界!こんにちは世界! ]─╮" / expected: "╭─ │
00:10:58 v #9747 > > │ [ 你好,世界!こんにちは世界! ]─╮"                                          │
00:10:58 v #9748 > > │ __assert_eq / actual: true / expected: true                                  │
00:10:58 v #9749 > > │                                                                              │
00:10:58 v #9750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:58 v #9751 > >
00:10:58 v #9752 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:58 v #9753 > > //// test
00:10:58 v #9754 > >
00:10:58 v #9755 > > fun () =>
00:10:58 v #9756 > >     inl file_name = "test.txt"
00:10:58 v #9757 > >     inl text = "0"
00:10:58 v #9758 > >
00:10:58 v #9759 > >     inl temp_dir, disposable =
00:10:58 v #9760 > >         (file_name, text)
00:10:58 v #9761 > >         |> sm'.format_debug
00:10:58 v #9762 > >         |> crypto.hash_text
00:10:58 v #9763 > >         |> file_system.create_temp_dir'
00:10:58 v #9764 > >     disposable |> use |> ignore
00:10:58 v #9765 > >     inl path = temp_dir </> file_name
00:10:58 v #9766 > >     text |> file_system.write_all_text_async path |> async.do
00:10:58 v #9767 > >
00:10:58 v #9768 > >     inl cts = threading.new_cancellation_token_source ()
00:10:58 v #9769 > >     trace Debug (fun () => "1") id
00:10:58 v #9770 > >     inl result =
00:10:58 v #9771 > >         execution_options fun x => { x with
00:10:58 v #9772 > >             command = $'\@$"pwsh -c ""Get-Content {!path}"""'
00:10:58 v #9773 > >             cancellation_token = cts |> threading.cancellation_source_token |>
00:10:58 v #9774 > > Some |> optionm'.box
00:10:58 v #9775 > >         }
00:10:58 v #9776 > >         |> execute_with_options_async
00:10:58 v #9777 > >         |> async.start_child
00:10:58 v #9778 > >         |> async.let'
00:10:58 v #9779 > >     trace Debug (fun () => "2") id
00:10:58 v #9780 > >     async.sleep 100 |> async.do
00:10:58 v #9781 > >     trace Debug (fun () => "3") id
00:10:58 v #9782 > >     cts |> threading.cancellation_source_cancel
00:10:58 v #9783 > >     trace Debug (fun () => "4") id
00:10:58 v #9784 > >     inl exit_code, output = result |> async.let'
00:10:58 v #9785 > >     trace Debug (fun () => "5") id
00:10:58 v #9786 > >     (exit_code, output) |> return
00:10:58 v #9787 > > |> async.new_async_unit
00:10:58 v #9788 > > |> async.run_with_timeout 10000
00:10:58 v #9789 > > |> function
00:10:58 v #9790 > >     | Some (exit_code, output) =>
00:10:58 v #9791 > >         exit_code |> _assert_eq -2147483648i32
00:10:58 v #9792 > >         output |> _assert_eq (join
00:10:58 v #9793 > > "System.Threading.Tasks.TaskCanceledException: A task was canceled.")
00:10:58 v #9794 > >         true
00:10:58 v #9795 > >     | _ => false
00:10:58 v #9796 > > |> _assert_eq true
00:10:58 v #9797 > 00:10:57 d #582 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5fafc5df42f46f3f36bb7dca648e98a45b4fd9bb10cd28ed151105f45a163dd4/main.spi
00:11:01 v #9798 > >
00:11:01 v #9799 > > ╭─[ 3.14s - stdout ]───────────────────────────────────────────────────────────╮
00:11:01 v #9800 > > │ 00:00:00 d #1 1                                                         │
00:11:01 v #9801 > > │ 00:00:00 d #2 2                                                         │
00:11:01 v #9802 > > │ 00:00:00 d #3 runtime.execute_with_options_async / { file_name = pwsh;  │
00:11:01 v #9803 > > │ arguments = US2_0                                                            │
00:11:01 v #9804 > > │   "-c "Get-Content                                                           │
00:11:01 v #9805 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-01 │
00:11:01 v #9806 > > │ 6e-d959-8d21-02dc1c63c252\test.txt""; options = { command = pwsh -c          │
00:11:01 v #9807 > > │ "Get-Content                                                                 │
00:11:01 v #9808 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-01 │
00:11:01 v #9809 > > │ 6e-d959-8d21-02dc1c63c252\test.txt"; cancellation_token = Some               │
00:11:01 v #9810 > > │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
00:11:01 v #9811 > > │ None; stdin = None; trace = true; working_directory = None } }               │
00:11:01 v #9812 > > │ 00:00:00 d #4 3                                                         │
00:11:01 v #9813 > > │ 00:00:00 d #5 4                                                         │
00:11:01 v #9814 > > │ 00:00:00 w #6 runtime.execute_with_options_async / WaitForExitAsync / { │
00:11:01 v #9815 > > │ ex = System.Threading.Tasks.TaskCanceledException: A task was canceled. }    │
00:11:01 v #9816 > > │ 00:00:00 d #7 runtime.execute_with_options_async / { exit_code =        │
00:11:01 v #9817 > > │ -2147483648; output_length = 66 }                                            │
00:11:01 v #9818 > > │ 00:00:00 d #8 5                                                         │
00:11:01 v #9819 > > │ __assert_eq / actual: -2147483648 / expected: -2147483648                    │
00:11:01 v #9820 > > │ __assert_eq / actual: "System.Threading.Tasks.TaskCanceledException: A task  │
00:11:01 v #9821 > > │ was canceled." / expected: "System.Threading.Tasks.TaskCanceledException: A  │
00:11:01 v #9822 > > │ task was canceled."                                                          │
00:11:01 v #9823 > > │ __assert_eq / actual: true / expected: true                                  │
00:11:01 v #9824 > > │                                                                              │
00:11:01 v #9825 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:01 v #9826 > >
00:11:01 v #9827 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:01 v #9828 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:01 v #9829 > > │ ### current_process_kill                                                     │
00:11:01 v #9830 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:01 v #9831 > >
00:11:01 v #9832 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:01 v #9833 > > inl current_process_kill () =
00:11:01 v #9834 > >     run_target function
00:11:01 v #9835 > >         | Fsharp (Native) => fun () =>
00:11:01 v #9836 > >             inl fn () =
00:11:01 v #9837 > >                 run_target function
00:11:01 v #9838 > >                     | Fsharp (Native) => fun () =>
00:11:01 v #9839 > >                         trace Warning (fun () => "runtime.current_process_kill
00:11:01 v #9840 > > exiting... 3") id
00:11:01 v #9841 > >                         $'System.Threading.Thread.Sleep 300'
00:11:01 v #9842 > >                         trace Warning (fun () => "runtime.current_process_kill
00:11:01 v #9843 > > exiting... 2") id
00:11:01 v #9844 > >                         $'System.Console.Out.Flush ()'
00:11:01 v #9845 > >                         $'System.Threading.Thread.Sleep 60'
00:11:01 v #9846 > >                         trace Warning (fun () => "runtime.current_process_kill
00:11:01 v #9847 > > exiting... 1") id
00:11:01 v #9848 > >                         $'System.Diagnostics.Process.GetCurrentProcess().Kill
00:11:01 v #9849 > > ()' : ()
00:11:01 v #9850 > >                     | _ => fun () => ()
00:11:01 v #9851 > >             inl thread : threading.thread = $'new System.Threading.Thread (!fn)'
00:11:01 v #9852 > >             thread |> $'_.Start()' : ()
00:11:01 v #9853 > >         | _ => fun () => ()
00:11:01 v #9854 > 00:11:00 d #583 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/17d341b4092608454796f4b7bd2201e2afb703034c71b5b5642d8c8a327e9e58/main.spi
00:11:01 v #9855 > >
00:11:01 v #9856 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:01 v #9857 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:01 v #9858 > > │ ### gc_collect                                                               │
00:11:01 v #9859 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:01 v #9860 > >
00:11:01 v #9861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:01 v #9862 > > inl gc_collect () =
00:11:01 v #9863 > >     run_target function
00:11:01 v #9864 > >         | Fsharp _ => fun () => $'System.GC.Collect' () : ()
00:11:01 v #9865 > >         | Python _ => fun () =>
00:11:01 v #9866 > >             backend_switch {
00:11:01 v #9867 > >                 Python = fun () => global "import gc"
00:11:01 v #9868 > >             }
00:11:01 v #9869 > >             ($'gc.collect()' : int) |> ignore
00:11:01 v #9870 > >         | _ => fun () => ()
00:11:02 v #9871 > 00:11:01 d #584 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1feb3e9704b61c0e3c39654c5fbcf777ade5e017120f36a8c72dfcb7bb761b3b/main.spi
00:11:02 v #9872 > >
00:11:02 v #9873 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:02 v #9874 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:02 v #9875 > > │ ## runtime                                                                   │
00:11:02 v #9876 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:02 v #9877 > >
00:11:02 v #9878 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:02 v #9879 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:02 v #9880 > > │ ### execute_with_options                                                     │
00:11:02 v #9881 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:02 v #9882 > >
00:11:02 v #9883 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:02 v #9884 > > let execute_with_options (options : execution_options) : i32 * string =
00:11:02 v #9885 > >     run_target function
00:11:02 v #9886 > >         | Fsharp (Native) => fun () =>
00:11:02 v #9887 > >             options |> execute_with_options_async |> async.run_synchronously
00:11:02 v #9888 > >         | Rust (Native) => fun () =>
00:11:02 v #9889 > >             inl command = join options.command
00:11:02 v #9890 > >             inl file_name, arguments = command |> split_command |> resultm.get
00:11:02 v #9891 > >             inl arguments =
00:11:02 v #9892 > >                 arguments
00:11:02 v #9893 > >                 |> optionm'.default_value ""
00:11:02 v #9894 > >                 |> split_args
00:11:02 v #9895 > >                 |> resultm.get
00:11:02 v #9896 > >                 |> am'.to_vec
00:11:02 v #9897 > >                 |> am'.vec_map sm'.to_std_string
00:11:02 v #9898 > >             trace Debug
00:11:02 v #9899 > >                 fun () => "runtime.execute_with_options"
00:11:02 v #9900 > >                 fun () => { file_name arguments = arguments |> sm'.format_debug;
00:11:02 v #9901 > > options }
00:11:02 v #9902 > >             fun () =>
00:11:02 v #9903 > >                 fun () =>
00:11:02 v #9904 > >                     file_name
00:11:02 v #9905 > >                     |> new_process_command
00:11:02 v #9906 > >                     |> process_command_args arguments
00:11:02 v #9907 > >                     |> process_command_stdout (process_stdio_piped ())
00:11:02 v #9908 > >                     |> process_command_stderr (process_stdio_piped ())
00:11:02 v #9909 > >                     |> process_command_stdin (process_stdio_piped ())
00:11:02 v #9910 > >                     |> fun command =>
00:11:02 v #9911 > >                         match options.working_directory |> optionm'.unbox with
00:11:02 v #9912 > >                         | Some working_directory =>
00:11:02 v #9913 > >                             command
00:11:02 v #9914 > >                             |> process_command_current_dir working_directory
00:11:02 v #9915 > >                         | None => command
00:11:02 v #9916 > >                     |> fun command =>
00:11:02 v #9917 > >                         match options.environment_variables with
00:11:02 v #9918 > >                         | ;[[]] => command
00:11:02 v #9919 > >                         | vars =>
00:11:02 v #9920 > >                             (command, vars |> am'.to_vec)
00:11:02 v #9921 > >                             ||> am'.vec_fold' fun command (key, value) =>
00:11:02 v #9922 > >                                 command |> process_command_env key value
00:11:02 v #9923 > >                     |> process_command_spawn
00:11:02 v #9924 > >                     |> resultm.map_error' sm'.format'
00:11:02 v #9925 > >                     |> resultm.map' (optionm'.some' >> (join id) >>
00:11:02 v #9926 > > threading.new_arc_mutex)
00:11:02 v #9927 > >                     |> resultm.unbox'
00:11:02 v #9928 > >                     |> function
00:11:02 v #9929 > >                         | Ok child =>
00:11:02 v #9930 > >                             inl stdout =
00:11:02 v #9931 > >                                 fun () =>
00:11:02 v #9932 > >                                     child
00:11:02 v #9933 > >                                     |> threading.arc_mutex_lock
00:11:02 v #9934 > >                                     |> resultm.unwrap'
00:11:02 v #9935 > >                                     |> threading.mutex_guard_ref_mut
00:11:02 v #9936 > >                                     |> optionm'.as_mut
00:11:02 v #9937 > >                                     |> optionm'.unwrap
00:11:02 v #9938 > >                                     |> process_child_stdout
00:11:02 v #9939 > >                                     |> optionm'.take_ref_mut
00:11:02 v #9940 > >                                     |> optionm'.unwrap
00:11:02 v #9941 > >                                 |> rust.capture
00:11:02 v #9942 > >                             inl stderr =
00:11:02 v #9943 > >                                 fun () =>
00:11:02 v #9944 > >                                     child
00:11:02 v #9945 > >                                     |> threading.arc_mutex_lock
00:11:02 v #9946 > >                                     |> resultm.unwrap'
00:11:02 v #9947 > >                                     |> threading.mutex_guard_ref_mut
00:11:02 v #9948 > >                                     |> optionm'.as_mut
00:11:02 v #9949 > >                                     |> optionm'.unwrap
00:11:02 v #9950 > >                                     |> process_child_stderr
00:11:02 v #9951 > >                                     |> optionm'.take_ref_mut
00:11:02 v #9952 > >                                     |> optionm'.unwrap
00:11:02 v #9953 > >                                 |> rust.capture
00:11:02 v #9954 > >                             inl stdin =
00:11:02 v #9955 > >                                 fun () =>
00:11:02 v #9956 > >                                     child
00:11:02 v #9957 > >                                     |> threading.arc_mutex_lock
00:11:02 v #9958 > >                                     |> resultm.unwrap'
00:11:02 v #9959 > >                                     |> threading.mutex_guard_ref_mut
00:11:02 v #9960 > >                                     |> optionm'.as_mut
00:11:02 v #9961 > >                                     |> optionm'.unwrap
00:11:02 v #9962 > >                                     |> process_child_stdin
00:11:02 v #9963 > >                                     |> optionm'.take_ref_mut
00:11:02 v #9964 > >                                     |> optionm'.unwrap
00:11:02 v #9965 > >                                     |> optionm'.some'
00:11:02 v #9966 > >                                     |> join id
00:11:02 v #9967 > >                                     |> threading.new_arc_mutex
00:11:02 v #9968 > >                                 |> rust.capture
00:11:02 v #9969 > >                             inl channel_sender, channel_receiver =
00:11:02 v #9970 > > threading.new_channel ()
00:11:02 v #9971 > >                             inl channel_sender'' = channel_sender |> (join id)
00:11:02 v #9972 > > |> threading.new_arc_mutex
00:11:02 v #9973 > >                             inl channel_sender' = channel_sender |> (join id) |>
00:11:02 v #9974 > > threading.new_arc_mutex
00:11:02 v #9975 > >                             inl channel_receiver' = channel_receiver |> (join
00:11:02 v #9976 > > id) |> threading.new_arc_mutex
00:11:02 v #9977 > >                             inl stdout_handle =
00:11:02 v #9978 > >                                 fun () =>
00:11:02 v #9979 > >                                     stdout
00:11:02 v #9980 > >                                     |> stream.decode_reader_bytes_build
00:11:02 v #9981 > >                                     |> stream.new_buf_reader
00:11:02 v #9982 > >                                     |> stream.buf_read_lines
00:11:02 v #9983 > >                                     |> iter.try_for_each fun lines =>
00:11:02 v #9984 > >                                         inl channel_sender'' = channel_sender''
00:11:02 v #9985 > > |> rust.clone
00:11:02 v #9986 > >                                         lines
00:11:02 v #9987 > >                                         |> stdio_line (Ok ()) options.trace
00:11:02 v #9988 > > channel_sender''
00:11:02 v #9989 > >                                         |> resultm.to_try
00:11:02 v #9990 > >                                 |> threading.spawn (1, 0) 1
00:11:02 v #9991 > >                             inl stderr_handle =
00:11:02 v #9992 > >                                 fun () =>
00:11:02 v #9993 > >                                     stderr
00:11:02 v #9994 > >                                     |> stream.decode_reader_bytes_build
00:11:02 v #9995 > >                                     |> stream.new_buf_reader
00:11:02 v #9996 > >                                     |> stream.buf_read_lines
00:11:02 v #9997 > >                                     |> iter.try_for_each fun lines =>
00:11:02 v #9998 > >                                         inl channel_sender' = channel_sender' |>
00:11:02 v #9999 > > rust.clone
00:11:02 v #10000 > >                                         lines
00:11:02 v #10001 > >                                         |> stdio_line (Error ()) options.trace
00:11:02 v #10002 > > channel_sender'
00:11:02 v #10003 > >                                         |> resultm.to_try
00:11:02 v #10004 > >                                 |> threading.spawn (1, 0) 1
00:11:02 v #10005 > >                             match options.stdin |> optionm'.unbox with
00:11:02 v #10006 > >                             | Some stdin' =>
00:11:02 v #10007 > >                                 stdin
00:11:02 v #10008 > >                                 |> threading.arc_mutex_lock
00:11:02 v #10009 > >                                 |> resultm.unwrap'
00:11:02 v #10010 > >                                 |> threading.mutex_guard_ref_mut
00:11:02 v #10011 > >                                 |> optionm'.take_ref_mut
00:11:02 v #10012 > >                                 |> optionm'.map' threading.new_arc_mutex
00:11:02 v #10013 > >                                 |> optionm'.unbox
00:11:02 v #10014 > >                                 |> function
00:11:02 v #10015 > >                                     | Some stdin =>
00:11:02 v #10016 > >                                         stdin |> stdin'
00:11:02 v #10017 > >                                         stdin
00:11:02 v #10018 > >                                         |> threading.arc_mutex_lock
00:11:02 v #10019 > >                                         |> resultm.unwrap'
00:11:02 v #10020 > >                                         |> stdin_flush
00:11:02 v #10021 > >                                     | None => ()
00:11:02 v #10022 > >                             | None => ()
00:11:02 v #10023 > >                             inl output =
00:11:02 v #10024 > >                                 child
00:11:02 v #10025 > >                                 |> threading.arc_mutex_lock
00:11:02 v #10026 > >                                 |> resultm.unwrap'
00:11:02 v #10027 > >                                 |> threading.mutex_guard_ref_mut
00:11:02 v #10028 > >                                 |> optionm'.take_ref_mut
00:11:02 v #10029 > >                                 |> optionm'.unwrap
00:11:02 v #10030 > >                                 |> child_wait_with_output
00:11:02 v #10031 > >                                 |> resultm.map_error' sm'.format'
00:11:02 v #10032 > >                             [[ stdout_handle; stderr_handle ]]
00:11:02 v #10033 > >                             |> am'.new_vec
00:11:02 v #10034 > >                             |> am'.vec_for_each' (threading.join' >>
00:11:02 v #10035 > > resultm.unwrap' >> resultm.unwrap')
00:11:02 v #10036 > >                             match output |> resultm.unbox with
00:11:02 v #10037 > >                             | Ok output =>
00:11:02 v #10038 > >                                 inl exit_code =
00:11:02 v #10039 > >                                     output
00:11:02 v #10040 > >                                     |> process_output_status
00:11:02 v #10041 > >                                     |> process_exit_status_code
00:11:02 v #10042 > >                                     |> optionm'.unbox
00:11:02 v #10043 > >                                 match exit_code with
00:11:02 v #10044 > >                                 | Some exit_code => exit_code, None, Some
00:11:02 v #10045 > > channel_receiver'
00:11:02 v #10046 > >                                 | None =>
00:11:02 v #10047 > >                                     -1,
00:11:02 v #10048 > >                                     ("runtime.execute_with_options
00:11:02 v #10049 > > exit_code=None" |> sm'.to_std_string |> Some),
00:11:02 v #10050 > >                                     Some channel_receiver'
00:11:02 v #10051 > >                             | Error error =>
00:11:02 v #10052 > >                                 trace Critical
00:11:02 v #10053 > >                                     fun () => "runtime.execute_with_options
00:11:02 v #10054 > > output error"
00:11:02 v #10055 > >                                     fun () => { error }
00:11:02 v #10056 > >                                 -2i32, error |> Some, None
00:11:02 v #10057 > >                         | Error error =>
00:11:02 v #10058 > >                             trace Critical
00:11:02 v #10059 > >                                 fun () => "runtime.execute_with_options / child
00:11:02 v #10060 > > error"
00:11:02 v #10061 > >                                 fun () => { error }
00:11:02 v #10062 > >                             -1i32, error |> Some, None
00:11:02 v #10063 > >                     |> function
00:11:02 v #10064 > >                         | exit_code, std_trace, channel_receiver =>
00:11:02 v #10065 > >                             inl std_trace =
00:11:02 v #10066 > >                                 channel_receiver
00:11:02 v #10067 > >                                 |> optionm'.box
00:11:02 v #10068 > >                                 |> optionm'.map' fun channel_receiver =>
00:11:02 v #10069 > >                                     channel_receiver
00:11:02 v #10070 > >                                     |> threading.arc_mutex_lock
00:11:02 v #10071 > >                                     |> resultm.unwrap'
00:11:02 v #10072 > >                                     |> iter.iter
00:11:02 v #10073 > >                                     |> iter_collect''
00:11:02 v #10074 > >                                     |> am'.vec_map sm'.from_std_string
00:11:02 v #10075 > >                                     |> am'.from_vec
00:11:02 v #10076 > >                                     |> fun x => x : _ i32 _
00:11:02 v #10077 > >                                     |> seq.of_array
00:11:02 v #10078 > >                                     |> sm'.concat "\n"
00:11:02 v #10079 > >                                 |> optionm'.default_value' (
00:11:02 v #10080 > >                                     std_trace
00:11:02 v #10081 > >                                     |> optionm.map sm'.from_std_string
00:11:02 v #10082 > >                                     |> optionm'.default_value ""
00:11:02 v #10083 > >                                 )
00:11:02 v #10084 > >                             trace Verbose
00:11:02 v #10085 > >                                 fun () => "runtime.execute_with_options
00:11:02 v #10086 > > result"
00:11:02 v #10087 > >                                 fun () => { exit_code std_trace_length =
00:11:02 v #10088 > > std_trace |> sm'.length : i32 }
00:11:02 v #10089 > >                             new_pair exit_code std_trace
00:11:02 v #10090 > >                 |> capture
00:11:02 v #10091 > >             // |> async.new_future_move
00:11:02 v #10092 > >             // |> async.block_on
00:11:02 v #10093 > >             |> fun x => x ()
00:11:02 v #10094 > >             |> from_pair
00:11:02 v #10095 > >         | _ => fun () => null ()
00:11:02 v #10096 > 00:11:01 d #585 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/febb1a96d56b1f01bc2de71c47acdf9ee2631b675b2cae05b06d43e0a25f8d5f/main.spi
00:11:02 v #10097 > >
00:11:02 v #10098 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:02 v #10099 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:02 v #10100 > > │ #### execute                                                                 │
00:11:02 v #10101 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:02 v #10102 > >
00:11:02 v #10103 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:02 v #10104 > > inl execute command =
00:11:02 v #10105 > >     execution_options fun x => { x with
00:11:02 v #10106 > >         command = command
00:11:02 v #10107 > >     }
00:11:02 v #10108 > >     |> execute_with_options
00:11:03 v #10109 > 00:11:02 d #586 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a075611eb8b1322e586f2176f9902600d66bf1705da0afd9212e6aae582e221e/main.spi
00:11:03 v #10110 > >
00:11:03 v #10111 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:03 v #10112 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:03 v #10113 > > │ #### tests                                                                   │
00:11:03 v #10114 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:03 v #10115 > >
00:11:03 v #10116 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:03 v #10117 > > //// test
00:11:03 v #10118 > > ///! rust -d chrono encoding_rs encoding_rs_io regex sha2
00:11:03 v #10119 > >
00:11:03 v #10120 > > inl content = "╭─[[ 你好,世界!こんにちは世界! ]]─╮"
00:11:03 v #10121 > >
00:11:03 v #10122 > > inl file_name = join "test.txt"
00:11:03 v #10123 > > inl temp_dir, disposable =
00:11:03 v #10124 > >     (file_name, content)
00:11:03 v #10125 > >     |> sm'.format_debug
00:11:03 v #10126 > >     |> crypto.hash_text
00:11:03 v #10127 > >     |> file_system.create_temp_dir'
00:11:03 v #10128 > > inl path = temp_dir </> file_name |> file_system.normalize_path
00:11:03 v #10129 > > inl exit_code, result =
00:11:03 v #10130 > >     execute $'\@$"pwsh -c ""[[IO.File]]::ReadAllText(\'{!path}\')"""'
00:11:03 v #10131 > > exit_code |> _assert_eq 1
00:11:03 v #10132 > > result |> _assert sm'.contains "not find file"
00:11:03 v #10133 > >
00:11:03 v #10134 > > content |> file_system.write_all_text path
00:11:03 v #10135 > >
00:11:03 v #10136 > > execution_options fun x => { x with
00:11:03 v #10137 > >     command = $'\@$"cat ""{!file_name}"""'
00:11:03 v #10138 > >     working_directory = Some temp_dir |> optionm'.box
00:11:03 v #10139 > > }
00:11:03 v #10140 > > |> execute_with_options
00:11:03 v #10141 > > |> ignore
00:11:03 v #10142 > >
00:11:03 v #10143 > > inl exit_code, output =
00:11:03 v #10144 > >     execution_options fun x => { x with
00:11:03 v #10145 > >         command = $'\@$"pwsh -c ""[[System.Console]]::OutputEncoding =
00:11:03 v #10146 > > [[System.Text.Encoding]]::UTF8; [[IO.File]]::ReadAllText(\'{!file_name}\')"""'
00:11:03 v #10147 > >         working_directory = Some temp_dir |> optionm'.box
00:11:03 v #10148 > >     }
00:11:03 v #10149 > >     |> execute_with_options
00:11:03 v #10150 > >
00:11:03 v #10151 > > exit_code |> _assert_eq 0i32
00:11:03 v #10152 > > output |> _assert_eq content
00:11:03 v #10153 > >
00:11:03 v #10154 > > disposable |> use |> ignore
00:11:03 v #10155 > 00:11:02 d #587 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32ad0be9987a08307914ab4ec5c52967ca12090eed57fbc4212e40f2868ea538/main.spi
00:11:31 v #10156 > >
00:11:31 v #10157 > > ╭─[ 28.36s - return value ]────────────────────────────────────────────────────╮
00:11:31 v #10158 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:11:31 v #10159 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_4d492520 │
00:11:31 v #10160 > > │ ecc02386beffed00264315156fe11b2722bcf46556901f15224ba0f1\9242780b-ce0e-9155- │
00:11:31 v #10161 > > │ 5e07-f6ee5667aa16 }                                                          │
00:11:31 v #10162 > > │ 00:00:00 d #2 runtime.execute_with_options / { file_name = pwsh;       │
00:11:31 v #10163 > > │ arguments = ["-c", "[                                                        │
00:11:31 v #10164 > > │ IO.File]::ReadAllText('c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/ │
00:11:31 v #10165 > > │ spiral_builder_4d492520ecc02386beffed00264315156fe11b2722bcf46556901f15224ba │
00:11:31 v #10166 > > │ 0f1/9242780b-ce0e-9155-5e07-f6ee5667aa16/test.txt')"]; options = { command = │
00:11:31 v #10167 > > │ pwsh -c "[                                                                   │
00:11:31 v #10168 > > │ IO.File]::ReadAllText('c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/ │
00:11:31 v #10169 > > │ spiral_builder_4d492520ecc02386beffed00264315156fe11b2722bcf46556901f15224ba │
00:11:31 v #10170 > > │ 0f1/9242780b-ce0e-9155-5e07-f6ee5667aa16/test.txt')"; cancellation_token =   │
00:11:31 v #10171 > > │ None; environment_variables = Array(MutCell([])); on_line = None; stdin =    │
00:11:31 v #10172 > > │ None; trace = true; working_directory = None } }                             │
00:11:31 v #10173 > > │ 00:00:00 v #3 ! MethodInvocationException: Exception calling │
00:11:31 v #10174 > > │ "ReadAllText" with "1" argument(s): "Could not find file                     │
00:11:31 v #10175 > > │ 'c:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_4d49252 │
00:11:31 v #10176 > > │ 0ecc02386beffed00264315156fe11b2722bcf46556901f15224ba0f1\9242780b-ce0e-9155 │
00:11:31 v #10177 > > │ -5e07-f6ee5667aa16\test.txt'."                                             │
00:11:31 v #10178 > > │ 00:00:00 v #4 runtime.execute_with_options / result / { exit_code = 1; │
00:11:31 v #10179 > > │ std_trace_length = 312 }                                                     │
00:11:31 v #10180 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:11:31 v #10181 > > │ __assert / actual: "not find file" / expected: "[                         │
00:11:31 v #10182 > > │ 31;1mMethodInvocationException: Exception calling...ions / { file_name  │
00:11:31 v #10183 > > │ = cat; arguments = ["test.txt"]; options = { command = cat "test.txt";       │
00:11:31 v #10184 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:11:31 v #10185 > > │ on_line = None; stdin = None; trace = true; working_directory = Some(        │
00:11:31 v #10186 > > │                                                                              │
00:11:31 v #10187 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_4d49252 │
00:11:31 v #10188 > > │ 0ecc02386beffed00264315156fe11b2722bcf46556901f15224ba0f1\9242780b-ce0e-9155 │
00:11:31 v #10189 > > │ -5e07-f6ee5667aa16",                                                         │
00:11:31 v #10190 > > │ ) } }                                                                        │
00:11:31 v #10191 > > │ 00:00:00 v #6 > ╭─[ 你好,世界!こんにちは世界! ]─╮                   │
00:11:31 v #10192 > > │ 00:00:00 v #7 runtime.execute_with_options / result / { exit_code = 0; │
00:11:31 v #10193 > > │ std_trace_length = 22 }                                                      │
00:11:31 v #10194 > > │ 00:00:00 d #8 runtime.execute_with_options / { file_name = pwsh;       │
00:11:31 v #10195 > > │ arguments = ["-c", "[System.Console]::OutputEncoding = [                     │
00:11:31 v #10196 > > │ System.Text.Encoding]::UTF8; [IO.File]::ReadAllText('test.txt')"]; options = │
00:11:31 v #10197 > > │ { command = pwsh -c "[System.Console]::OutputEncoding = [                    │
00:11:31 v #10198 > > │ System.Text.Encoding]::UTF8; [IO.File]::ReadAllText('test.txt')";            │
00:11:31 v #10199 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:11:31 v #10200 > > │ on_line = None; stdin = None; trace = true; working_directory = Some(        │
00:11:31 v #10201 > > │                                                                              │
00:11:31 v #10202 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_4d49252 │
00:11:31 v #10203 > > │ 0ecc02386beffed00264315156fe11b2722bcf46556901f15224ba0f1\9242780b-ce0e-9155 │
00:11:31 v #10204 > > │ -5e07-f6ee5667aa16",                                                         │
00:11:31 v #10205 > > │ ) } }                                                                        │
00:11:31 v #10206 > > │ 00:00:00 v #9 > ╭─[ 你好,世界!こんにちは世界! ]─╮                   │
00:11:31 v #10207 > > │ 00:00:00 v #10 runtime.execute_with_options / result / { exit_code =   │
00:11:31 v #10208 > > │ 0; std_trace_length = 22 }                                                   │
00:11:31 v #10209 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:11:31 v #10210 > > │ __assert_eq / actual: "╭─[ 你好,世界!こんにちは世界! ]─╮" / expected: "╭─ │
00:11:31 v #10211 > > │ [ 你好,世界!こんにちは世界! ]─╮"                                          │
00:11:31 v #10212 > > │                                                                              │
00:11:31 v #10213 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:31 v #10214 > >
00:11:31 v #10215 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:31 v #10216 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:31 v #10217 > > │ ### execute_retry                                                            │
00:11:31 v #10218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:31 v #10219 > >
00:11:31 v #10220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:31 v #10221 > > let execute_retry retries options =
00:11:31 v #10222 > >     fun () =>
00:11:31 v #10223 > >         inl exit_code, result = options |> execute_with_options
00:11:31 v #10224 > >         if exit_code = 0
00:11:31 v #10225 > >         then Ok (exit_code, result)
00:11:31 v #10226 > >         else Error (exit_code, result)
00:11:31 v #10227 > >     |> retry_fn' retries
00:11:31 v #10228 > 00:11:31 d #588 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0f32830fd42f0629ff9963468f99c1e6088cdef5a299174620d348bbe89cc410/main.spi
00:11:32 v #10229 > >
00:11:32 v #10230 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:32 v #10231 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:32 v #10232 > > │ ## main                                                                      │
00:11:32 v #10233 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:32 v #10234 > >
00:11:32 v #10235 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:32 v #10236 > > inl main () =
00:11:32 v #10237 > >     init_trace_state None
00:11:32 v #10238 > >     $'let current_process_kill () = !current_process_kill ()' : ()
00:11:32 v #10239 > >     $'let execute_async x = !execute_async x' : ()
00:11:32 v #10240 > >     $'let execute_with_options_async x = !execute_with_options_async x' : ()
00:11:32 v #10241 > >     inl execution_options fn =
00:11:32 v #10242 > >         execution_options fun x =>
00:11:32 v #10243 > >             x
00:11:32 v #10244 > >             |> heap
00:11:32 v #10245 > >             |> fn
00:11:32 v #10246 > >             |> fun x => !x
00:11:32 v #10247 > >     $'let execution_options x = !execution_options x' : ()
00:11:32 v #10248 > >     inl split_args x = x |> split_args |> resultm.box
00:11:32 v #10249 > >     $'let split_args x = !split_args x' : ()
00:11:32 v #10250 > 00:11:31 d #589 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/742c60374390c64dd282acfe90ab94299fdbbacb41c11c3539b0fa07cc2e4d04/main.spi
00:11:35 v #10251 > 00:03:04 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 123578 }
00:11:35 v #10252 > 00:03:04 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:36 v #10253 > 00:03:05 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb to html
00:11:36 v #10254 > 00:03:05 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:11:36 v #10255 > 00:03:05 v #7 !   validate(nb)
00:11:37 v #10256 > 00:03:06 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:11:37 v #10257 > 00:03:06 v #9 !   return _pygments_highlight(
00:11:39 v #10258 > 00:03:08 v #10 ! [NbConvertApp] Writing 584073 bytes to c:\home\git\polyglot\lib\spiral\runtime.dib.html
00:11:39 v #10259 > 00:03:09 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 856 }
00:11:39 v #10260 > 00:03:09 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 856 }
00:11:39 v #10261 > 00:03:09 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:40 v #10262 > 00:03:09 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:11:40 v #10263 > 00:03:09 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:11:40 v #10264 > 00:03:09 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 124493 }
00:11:40 d #10265 runtime.execute_with_options_async / { exit_code = 0; output_length = 131711 }
00:11:40 d #12 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path runtime.dib --retries 3
00:11:40 d #10266 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path trace.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path trace.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:40 v #10267 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "trace.dib", "--retries", "3"])) }
00:11:40 v #10268 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/trace.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/trace.dib" --output-path "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:11:42 v #10269 > >
00:11:42 v #10270 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:42 v #10271 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:42 v #10272 > > │ # trace                                                                      │
00:11:42 v #10273 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:45 v #10274 > >
00:11:45 v #10275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:45 v #10276 > > //// test
00:11:45 v #10277 > >
00:11:45 v #10278 > > open testing
00:11:46 v #10279 > 00:11:45 d #590 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:11:47 v #10280 > >
00:11:47 v #10281 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:47 v #10282 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:47 v #10283 > > │ ## trace                                                                     │
00:11:47 v #10284 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:47 v #10285 > >
00:11:47 v #10286 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:47 v #10287 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:47 v #10288 > > │ ### trace_level                                                              │
00:11:47 v #10289 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:47 v #10290 > >
00:11:47 v #10291 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:47 v #10292 > > union trace_level =
00:11:47 v #10293 > >     | Verbose
00:11:47 v #10294 > >     | Debug
00:11:47 v #10295 > >     | Info
00:11:47 v #10296 > >     | Warning
00:11:47 v #10297 > >     | Critical
00:11:47 v #10298 > 00:11:46 d #591 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/78bc2ae7354d0a8078c262b56b61752f85e4441d8671416a152452fb02690d56/main.spi
00:11:47 v #10299 > >
00:11:47 v #10300 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:47 v #10301 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:47 v #10302 > > │ ### read_state                                                               │
00:11:47 v #10303 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:47 v #10304 > >
00:11:47 v #10305 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:47 v #10306 > > inl read_state () =
00:11:47 v #10307 > >     run_target function
00:11:47 v #10308 > >         | Rust (Wasm) => fun () =>
00:11:47 v #10309 > >             {
00:11:47 v #10310 > >                 trace_level = None
00:11:47 v #10311 > >                 repl_start = None
00:11:47 v #10312 > >             }
00:11:47 v #10313 > >         | Rust (Contract) => fun () =>
00:11:47 v #10314 > >             {
00:11:47 v #10315 > >                 trace_level = None
00:11:47 v #10316 > >                 repl_start =
00:11:47 v #10317 > >                     open rust.rust_operators
00:11:47 v #10318 > >                     inl automation = env.get_environment_variable_comptime
00:11:47 v #10319 > > "AUTOMATION"
00:11:47 v #10320 > >                     if automation <>. "True"
00:11:47 v #10321 > >                     then None
00:11:47 v #10322 > >                     else
00:11:47 v #10323 > >                         inl timestamp : u64 =
00:11:47 v #10324 > > !\($'$"near_sdk::env::block_timestamp()"')
00:11:47 v #10325 > >                         timestamp |> i64 |> Some
00:11:47 v #10326 > >             }
00:11:47 v #10327 > >         | _ => fun () =>
00:11:47 v #10328 > >             {
00:11:47 v #10329 > >                 trace_level =
00:11:47 v #10330 > >                     (join "TRACE_LEVEL")
00:11:47 v #10331 > >                     |> env.get_environment_variable
00:11:47 v #10332 > >                     |> reflection.union_try_pick
00:11:47 v #10333 > >                 repl_start =
00:11:47 v #10334 > >                     inl automation = env.get_environment_variable (join
00:11:47 v #10335 > > "AUTOMATION")
00:11:47 v #10336 > >                     if automation = "True"
00:11:47 v #10337 > >                     then date_time.now () |> date_time.ticks |> fun
00:11:47 v #10338 > > (date_time.timestamp x) => x |> Some
00:11:47 v #10339 > >                     else None
00:11:47 v #10340 > >             }
00:11:47 v #10341 > 00:11:46 d #592 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4449d73b9b6897f0ba952325e7e934faa5f78de9a646f603ac9072f56e9a2f25/main.spi
00:11:47 v #10342 > >
00:11:47 v #10343 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:47 v #10344 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:47 v #10345 > > │ ### trace_state                                                              │
00:11:47 v #10346 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:47 v #10347 > >
00:11:47 v #10348 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:47 v #10349 > > type trace_state =
00:11:47 v #10350 > >     {
00:11:47 v #10351 > >         count : mut i64
00:11:47 v #10352 > >         trace_file : mut (string -> ())
00:11:47 v #10353 > >         enabled : mut bool
00:11:47 v #10354 > >         acc : mut string
00:11:47 v #10355 > >         level : mut trace_level
00:11:47 v #10356 > >         repl_start : optionm'.option' i64
00:11:47 v #10357 > >     }
00:11:48 v #10358 > 00:11:47 d #593 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e27c33931cfcc938d14ea3ddc1a716032cc98bc6700736f6fd5def5c7ed7694a/main.spi
00:11:48 v #10359 > >
00:11:48 v #10360 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:48 v #10361 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:48 v #10362 > > │ ### new_trace_state                                                          │
00:11:48 v #10363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:48 v #10364 > >
00:11:48 v #10365 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:48 v #10366 > > let new_trace_state trace_level' =
00:11:48 v #10367 > >     inl { repl_start trace_level } = read_state ()
00:11:48 v #10368 > >     {
00:11:48 v #10369 > >         count = mut 1i64
00:11:48 v #10370 > >         trace_file = mut ignore
00:11:48 v #10371 > >         enabled = mut true
00:11:48 v #10372 > >         acc = mut ""
00:11:48 v #10373 > >         level = trace_level |> optionm'.default_value trace_level' |> mut
00:11:48 v #10374 > >         repl_start = repl_start |> optionm'.box
00:11:48 v #10375 > >     } : trace_state
00:11:48 v #10376 > 00:11:47 d #594 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bedb9b22bcee466cc53c7b1256c2777093a16f6818076befca5932a3a600dc8a/main.spi
00:11:48 v #10377 > >
00:11:48 v #10378 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:48 v #10379 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:48 v #10380 > > │ ### init_trace_state                                                         │
00:11:48 v #10381 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:48 v #10382 > >
00:11:48 v #10383 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:48 v #10384 > > inl init_trace_state trace_level : () =
00:11:48 v #10385 > >     inl trace_level = trace_level |> optionm'.default_value Verbose
00:11:48 v #10386 > >     backend_switch {
00:11:48 v #10387 > >         Fsharp = fun () =>
00:11:48 v #10388 > >             backend_switch {
00:11:48 v #10389 > >                 Fsharp = fun () =>
00:11:48 v #10390 > >                     global "module TraceState = let mutable trace_state = None"
00:11:48 v #10391 > >             }
00:11:48 v #10392 > >             fun () =>
00:11:48 v #10393 > >                 if $'TraceState.trace_state.IsNone' then
00:11:48 v #10394 > >                     inl trace_state = new_trace_state trace_level |>
00:11:48 v #10395 > > optionm'.some'
00:11:48 v #10396 > >                     $'TraceState.trace_state <- !trace_state ' : ()
00:11:48 v #10397 > >             |> exec_unit
00:11:48 v #10398 > >         Python = fun () =>
00:11:48 v #10399 > >             global "class TraceState: trace_state = None"
00:11:48 v #10400 > >             $'if TraceState.trace_state is None: TraceState.trace_state =
00:11:48 v #10401 > > !new_trace_state(!trace_level)' : ()
00:11:48 v #10402 > >     }
00:11:48 v #10403 > 00:11:48 d #595 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f0ae4250bdabf671a57902b9c3c5614adb5663fd584dfc9a53e826eeb77ee5c4/main.spi
00:11:49 v #10404 > >
00:11:49 v #10405 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:49 v #10406 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:49 v #10407 > > │ ### get_trace_state_or_init                                                  │
00:11:49 v #10408 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:49 v #10409 > >
00:11:49 v #10410 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:49 v #10411 > > inl get_trace_state_or_init trace_level : trace_state =
00:11:49 v #10412 > >     init_trace_state trace_level
00:11:49 v #10413 > >     backend_switch {
00:11:49 v #10414 > >         Fsharp = fun () =>
00:11:49 v #10415 > >             $'TraceState.trace_state.Value' : trace_state
00:11:49 v #10416 > >         Python = fun () =>
00:11:49 v #10417 > >             $'TraceState.trace_state' : trace_state
00:11:49 v #10418 > >     }
00:11:49 v #10419 > 00:11:48 d #596 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a4b17c98832f65285e18d27226db54eb9d0a832d0f6536132000748089ca3650/main.spi
00:11:49 v #10420 > >
00:11:49 v #10421 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:49 v #10422 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:49 v #10423 > > │ ### test_trace_level                                                         │
00:11:49 v #10424 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:49 v #10425 > >
00:11:49 v #10426 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:49 v #10427 > > let test_trace_level level : bool =
00:11:49 v #10428 > >     inl state = get_trace_state_or_init None
00:11:49 v #10429 > >     inl level' = *state.level
00:11:49 v #10430 > >     if *state.enabled |> not
00:11:49 v #10431 > >     then false
00:11:49 v #10432 > >     else
00:11:49 v #10433 > >         inl level : i32 = real real_core.union_tag level
00:11:49 v #10434 > >         inl level' : i32 = real real_core.union_tag level'
00:11:49 v #10435 > >         level >= level'
00:11:49 v #10436 > 00:11:48 d #597 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a49514b66a3790873726b98c0665f5b5e595a5cd661cbc2f641e44977243d9c5/main.spi
00:11:49 v #10437 > >
00:11:49 v #10438 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:49 v #10439 > > //// test
00:11:49 v #10440 > > ///! fsharp
00:11:49 v #10441 > > ///! cuda
00:11:49 v #10442 > > ///! rust
00:11:49 v #10443 > > ///! typescript
00:11:49 v #10444 > > ///! python
00:11:49 v #10445 > >
00:11:49 v #10446 > > test_trace_level Critical |> _assert_eq true
00:11:49 v #10447 > > test_trace_level Verbose |> _assert_eq true
00:11:49 v #10448 > >
00:11:49 v #10449 > > inl level = get_trace_state_or_init None .level
00:11:49 v #10450 > > level <- Debug
00:11:49 v #10451 > > test_trace_level Verbose |> _assert_eq false
00:11:49 v #10452 > > level <- Verbose
00:11:49 v #10453 > > test_trace_level Verbose |> _assert_eq true
00:11:50 v #10454 > 00:11:49 d #598 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/03a7406b51d78841acde6ff8562f7a4d5088450297422e9e6d6ea6039b0d1fc4/main.spi
00:11:50 v #10455 > 00:11:49 d #599 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/979bee51a6521eaba578d3ee11406be10bd432c93af35d91360a7c77f35e265a/main.spi
00:12:11 v #10456 > >
00:12:11 v #10457 > > ╭─[ 21.91s - return value ]────────────────────────────────────────────────────╮
00:12:11 v #10458 > > │                                                                              │
00:12:11 v #10459 > > │ .py output (Cuda):                                                           │
00:12:11 v #10460 > > │ __assert_eq / actual: True / expected: True                                  │
00:12:11 v #10461 > > │ __assert_eq / actual: True / expected: True                                  │
00:12:11 v #10462 > > │ __assert_eq / actual: False / expected: False                                │
00:12:11 v #10463 > > │ __assert_eq / actual: True / expected: True                                  │
00:12:11 v #10464 > > │                                                                              │
00:12:11 v #10465 > > │                                                                              │
00:12:11 v #10466 > > │ .rs output:                                                                  │
00:12:11 v #10467 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10468 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10469 > > │ __assert_eq / actual: false / expected: false                                │
00:12:11 v #10470 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10471 > > │                                                                              │
00:12:11 v #10472 > > │                                                                              │
00:12:11 v #10473 > > │ .ts output:                                                                  │
00:12:11 v #10474 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10475 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10476 > > │ __assert_eq / actual: false / expected: false                                │
00:12:11 v #10477 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10478 > > │                                                                              │
00:12:11 v #10479 > > │                                                                              │
00:12:11 v #10480 > > │ .py output:                                                                  │
00:12:11 v #10481 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10482 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10483 > > │ __assert_eq / actual: false / expected: false                                │
00:12:11 v #10484 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10485 > > │                                                                              │
00:12:11 v #10486 > > │                                                                              │
00:12:11 v #10487 > > │                                                                              │
00:12:11 v #10488 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:11 v #10489 > >
00:12:11 v #10490 > > ╭─[ 21.91s - stdout ]──────────────────────────────────────────────────────────╮
00:12:11 v #10491 > > │ .fsx output:                                                                 │
00:12:11 v #10492 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10493 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10494 > > │ __assert_eq / actual: false / expected: false                                │
00:12:11 v #10495 > > │ __assert_eq / actual: true / expected: true                                  │
00:12:11 v #10496 > > │                                                                              │
00:12:11 v #10497 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:11 v #10498 > >
00:12:11 v #10499 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:11 v #10500 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:11 v #10501 > > │ ### trace_raw                                                                │
00:12:11 v #10502 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:11 v #10503 > >
00:12:11 v #10504 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:11 v #10505 > > inl trace_raw level fn =
00:12:11 v #10506 > >     fun () =>
00:12:11 v #10507 > >         if level |> test_trace_level then
00:12:11 v #10508 > >             inl text = fn ()
00:12:11 v #10509 > >             join
00:12:11 v #10510 > >                 inl ({ count acc } & trace_state) = get_trace_state_or_init None
00:12:11 v #10511 > >                 fun () =>
00:12:11 v #10512 > >                     count <- *count + 1
00:12:11 v #10513 > >                 |> exec_unit
00:12:11 v #10514 > >                 open rust
00:12:11 v #10515 > >                 open rust.rust_operators
00:12:11 v #10516 > >                 run_target_args (fun () => text, console.write_line) function
00:12:11 v #10517 > >                     | Rust (Contract) => fun text, _ =>
00:12:11 v #10518 > >                         inl new_acc =
00:12:11 v #10519 > >                             if *acc = ""
00:12:11 v #10520 > >                             then text
00:12:11 v #10521 > >                             elif text = ""
00:12:11 v #10522 > >                             then *acc
00:12:11 v #10523 > >                             else *acc +. "\n" +. text
00:12:11 v #10524 > >
00:12:11 v #10525 > >                         inl chunks =
00:12:11 v #10526 > >                             new_acc
00:12:11 v #10527 > >                             |> sm'.as_str
00:12:11 v #10528 > >                             |> sm'.chars
00:12:11 v #10529 > >                             |> rust.from_mut
00:12:11 v #10530 > >                             |> iter_collect
00:12:11 v #10531 > >                             |> am'.vec_chunks 15000
00:12:11 v #10532 > >                             |> am'.vec_map fun x =>
00:12:11 v #10533 > >                                 x |> sm'.from_iter
00:12:11 v #10534 > >
00:12:11 v #10535 > >                         inl chunks_len = chunks |> am'.vec_len |> i32
00:12:11 v #10536 > >
00:12:11 v #10537 > >                         if text <>. "" && chunks_len <= 1
00:12:11 v #10538 > >                         then acc <- new_acc
00:12:11 v #10539 > >                         else
00:12:11 v #10540 > >                             acc <- ""
00:12:11 v #10541 > >                             chunks
00:12:11 v #10542 > >                             |> am'.vec_for_each''' near.log
00:12:11 v #10543 > >                     | Rust _ => fun text, _ =>
00:12:11 v #10544 > >                         !\\(text, $'\@"println\!(""{}"", $0)"')
00:12:11 v #10545 > >                     | _ => fun text, write_line =>
00:12:11 v #10546 > >                         text |> write_line
00:12:11 v #10547 > >                 text |> *trace_state.trace_file
00:12:11 v #10548 > >     |> exec_unit
00:12:12 v #10549 > 00:12:11 d #600 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c645ba42efe21bf1a5f867be6f33000c1fa245efd568eefee47dfc37517ca533/main.spi
00:12:12 v #10550 > >
00:12:12 v #10551 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:12 v #10552 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:12 v #10553 > > │ ### trace                                                                    │
00:12:12 v #10554 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:12 v #10555 > >
00:12:12 v #10556 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:12 v #10557 > > inl trace (level : trace_level) (text_fn : () -> string) (locals : () -> _) =
00:12:12 v #10558 > >     fun () =>
00:12:12 v #10559 > >         inl trace_state = get_trace_state_or_init None
00:12:12 v #10560 > >         inl time =
00:12:12 v #10561 > >             join
00:12:12 v #10562 > >                 run_target fun target =>
00:12:12 v #10563 > >                     match target with
00:12:12 v #10564 > >                     | Rust (Contract) => fun () =>
00:12:12 v #10565 > >                         open rust.rust_operators
00:12:12 v #10566 > >                         open rust
00:12:12 v #10567 > >                         inl timestamp = near.block_timestamp ()
00:12:12 v #10568 > >                         inl timestamp =
00:12:12 v #10569 > >                             match trace_state.repl_start |> optionm'.unbox with
00:12:12 v #10570 > >                             | Some repl_start => timestamp - u64 repl_start
00:12:12 v #10571 > >                             | None => timestamp
00:12:12 v #10572 > >                         inl timestamp_s = timestamp / 1_000_000_000
00:12:12 v #10573 > >                         inl s = timestamp_s % 60
00:12:12 v #10574 > >                         inl m = (timestamp_s / 60) % 60
00:12:12 v #10575 > >                         inl h = (timestamp_s / 3600) % 24
00:12:12 v #10576 > >                         inl str : sm'.std_string =
00:12:12 v #10577 > >                             !\\((h, m, s),
00:12:12 v #10578 > > $'$"format\!(\\\"{{:02}}:{{:02}}:{{:02}}\\\", $0, $1, $2)"')
00:12:12 v #10579 > >                         str |> sm'.from_std_string
00:12:12 v #10580 > >                     | _ => fun () =>
00:12:12 v #10581 > >                         match trace_state.repl_start |> optionm'.unbox with
00:12:12 v #10582 > >                         | Some repl_start =>
00:12:12 v #10583 > >                             inl t =
00:12:12 v #10584 > >                                 (date_time.now () |> date_time.ticks |> fun
00:12:12 v #10585 > > (date_time.timestamp x) => x)
00:12:12 v #10586 > >                                 - repl_start |> date_time.time_span
00:12:12 v #10587 > >                             date_time.date_time_milliseconds
00:12:12 v #10588 > >                                 1i32 1i32 1i32
00:12:12 v #10589 > >                                 (t |> date_time.hours)
00:12:12 v #10590 > >                                 (t |> date_time.minutes)
00:12:12 v #10591 > >                                 (t |> date_time.seconds)
00:12:12 v #10592 > >                                 (t |> date_time.milliseconds)
00:12:12 v #10593 > >                         | None => date_time.now ()
00:12:12 v #10594 > >                         |> date_time.format (
00:12:12 v #10595 > >                             backend_switch {
00:12:12 v #10596 > >                                 Fsharp = fun () =>
00:12:12 v #10597 > >                                     match target with
00:12:12 v #10598 > >                                     | Rust _ => join "hh:mm:ss"
00:12:12 v #10599 > >                                     | _ => join "HH:mm:ss"
00:12:12 v #10600 > >                                 Python = fun () => "%H:%M:%S"
00:12:12 v #10601 > >                             }
00:12:12 v #10602 > >                         )
00:12:12 v #10603 > >         inl level_str =
00:12:12 v #10604 > >             join
00:12:12 v #10605 > >                 inl level_str =
00:12:12 v #10606 > >                     level
00:12:12 v #10607 > >                     |> reflection.union_to_string
00:12:12 v #10608 > >                     |> sm'.to_lower
00:12:12 v #10609 > >                     |> sm'.index 0i32
00:12:12 v #10610 > >                     |> sm'.format
00:12:12 v #10611 > >                 run_target function
00:12:12 v #10612 > >                 | Rust _ => fun () =>
00:12:12 v #10613 > >                     open rust
00:12:12 v #10614 > >                     open rust.rust_operators
00:12:12 v #10615 > >                     inl color : rust.ref sm'.str =
00:12:12 v #10616 > >                         match level with
00:12:12 v #10617 > >                         | Verbose =>
00:12:12 v #10618 > > !\($'"inline_colorization::color_bright_black"')
00:12:12 v #10619 > >                         | Debug =>
00:12:12 v #10620 > > !\($'"inline_colorization::color_bright_blue"')
00:12:12 v #10621 > >                         | Info =>
00:12:12 v #10622 > > !\($'"inline_colorization::color_bright_green"')
00:12:12 v #10623 > >                         | Warning => !\($'"inline_colorization::color_yellow"')
00:12:12 v #10624 > >                         | Critical =>
00:12:12 v #10625 > > !\($'"inline_colorization::color_bright_red"')
00:12:12 v #10626 > >                     inl level_str = level_str |> sm'.as_str
00:12:12 v #10627 > >                     inl color_reset : rust.ref sm'.str =
00:12:12 v #10628 > > !\($'"inline_colorization::color_reset"')
00:12:12 v #10629 > >                     !\\((color, level_str, color_reset),
00:12:12 v #10630 > > $'$"format\!(\\\"{{}}{{}}{{}}\\\", $0, $1, $2)"')
00:12:12 v #10631 > >                     |> sm'.from_std_string
00:12:12 v #10632 > >                 | _ => fun () =>
00:12:12 v #10633 > >                     inl color =
00:12:12 v #10634 > >                         match level with
00:12:12 v #10635 > >                         | Verbose => $'"\\u001b[[90m"'
00:12:12 v #10636 > >                         | Debug => $'"\\u001b[[94m"'
00:12:12 v #10637 > >                         | Info => $'"\\u001b[[92m"'
00:12:12 v #10638 > >                         | Warning => $'"\\u001b[[93m"'
00:12:12 v #10639 > >                         | Critical => $'"\\u001b[[91m"'
00:12:12 v #10640 > >                     inl color_reset = join $'"\\u001b[[0m"'
00:12:12 v #10641 > >                     color +. level_str +. color_reset
00:12:12 v #10642 > >         inl text = text_fn ()
00:12:12 v #10643 > >         if text = ""
00:12:12 v #10644 > >         then ""
00:12:12 v #10645 > >         else
00:12:12 v #10646 > >             inl locals = locals ()
00:12:12 v #10647 > >             join
00:12:12 v #10648 > >                 inl locals = locals |> sm'.format
00:12:12 v #10649 > >                 inl count = *trace_state.count
00:12:12 v #10650 > >                 backend_switch {
00:12:12 v #10651 > >                     Fsharp = fun () => $'$"{!time} {!level_str} #{!count}
00:12:12 v #10652 > > %s{!text} / {!locals}"' : string
00:12:12 v #10653 > >                     Python = fun () => $'f"{!time} {!level_str} #{!count}
00:12:12 v #10654 > > {!text} / {!locals}"' : string
00:12:12 v #10655 > >                 }
00:12:12 v #10656 > >                 |> fun x =>
00:12:12 v #10657 > >                     join
00:12:12 v #10658 > >                         x
00:12:12 v #10659 > >                         |> sm'.trim_start [[]]
00:12:12 v #10660 > >                         |> sm'.trim_end [[ ' '; '/' ]]
00:12:12 v #10661 > >     |> trace_raw level
00:12:12 v #10662 > 00:12:11 d #601 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8543fca033db2f03f9998ef30b4ab30dfaa0ec1c63627b4f9f764c543c9e988/main.spi
00:12:12 v #10663 > >
00:12:12 v #10664 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:12 v #10665 > > //// test
00:12:12 v #10666 > > ///! fsharp
00:12:12 v #10667 > > ///! cuda
00:12:12 v #10668 > > ///! rust
00:12:12 v #10669 > > ///! typescript
00:12:12 v #10670 > > ///! python
00:12:12 v #10671 > >
00:12:12 v #10672 > > trace Debug (fun () => "test1") id
00:12:12 v #10673 > > trace Debug (fun () => "test2") id
00:12:12 v #10674 > > get_trace_state_or_init None .count
00:12:12 v #10675 > > |> fun x => *x
00:12:12 v #10676 > > |> _assert_eq 3
00:12:12 v #10677 > 00:12:12 d #602 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59d715fbdb56f5ae6905a7bc6a98f84776d6fedb59914a263540ad6bae0b4aea/main.spi
00:12:13 v #10678 > 00:12:12 d #603 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/494de295f4616af7a625a1dbf80bd6428d9b3e1555671d5caa4dbb5b362e1dd6/main.spi
00:12:35 v #10679 > >
00:12:35 v #10680 > > ╭─[ 22.68s - return value ]────────────────────────────────────────────────────╮
00:12:35 v #10681 > > │                                                                              │
00:12:35 v #10682 > > │ .py output (Cuda):                                                           │
00:12:35 v #10683 > > │ 00:00:00 d #1 test1                                                     │
00:12:35 v #10684 > > │ 00:00:00 d #2 test2                                                     │
00:12:35 v #10685 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:12:35 v #10686 > > │                                                                              │
00:12:35 v #10687 > > │                                                                              │
00:12:35 v #10688 > > │ .rs output:                                                                  │
00:12:35 v #10689 > > │ 00:00:00 d #1 test1                                                    │
00:12:35 v #10690 > > │ 00:00:00 d #2 test2                                                    │
00:12:35 v #10691 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:12:35 v #10692 > > │                                                                              │
00:12:35 v #10693 > > │                                                                              │
00:12:35 v #10694 > > │ .ts output:                                                                  │
00:12:35 v #10695 > > │ 00:00:00 d #1 test1                                                     │
00:12:35 v #10696 > > │ 00:00:00 d #2 test2                                                     │
00:12:35 v #10697 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:12:35 v #10698 > > │                                                                              │
00:12:35 v #10699 > > │                                                                              │
00:12:35 v #10700 > > │ .py output:                                                                  │
00:12:35 v #10701 > > │ 00:00:00 d #1 test1                                                     │
00:12:35 v #10702 > > │ 00:00:00 d #2 test2                                                     │
00:12:35 v #10703 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:12:35 v #10704 > > │                                                                              │
00:12:35 v #10705 > > │                                                                              │
00:12:35 v #10706 > > │                                                                              │
00:12:35 v #10707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:35 v #10708 > >
00:12:35 v #10709 > > ╭─[ 22.68s - stdout ]──────────────────────────────────────────────────────────╮
00:12:35 v #10710 > > │ .fsx output:                                                                 │
00:12:35 v #10711 > > │ 00:00:00 d #1 test1                                                     │
00:12:35 v #10712 > > │ 00:00:00 d #2 test2                                                     │
00:12:35 v #10713 > > │ __assert_eq / actual: 3L / expected: 3L                                      │
00:12:35 v #10714 > > │                                                                              │
00:12:35 v #10715 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:35 v #10716 > >
00:12:35 v #10717 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:35 v #10718 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:35 v #10719 > > │ ## main                                                                      │
00:12:35 v #10720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:35 v #10721 > >
00:12:35 v #10722 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:35 v #10723 > > inl main () =
00:12:35 v #10724 > >     init_trace_state None
00:12:35 v #10725 > >     inl trace level text_fn (locals : () -> string) = trace level text_fn locals
00:12:35 v #10726 > >     $'let trace x = !trace x' : ()
00:12:35 v #10727 > 00:12:34 d #604 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d70ef27f4620f2cbacd4456a5f553062db59c9f519fb0a4ae4ce99e43b9eec6/main.spi
00:12:36 v #10728 > 00:00:56 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 21526 }
00:12:36 v #10729 > 00:00:56 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:37 v #10730 > 00:00:57 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/trace.dib.ipynb to html
00:12:37 v #10731 > 00:00:57 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:12:37 v #10732 > 00:00:57 v #7 !   validate(nb)
00:12:38 v #10733 > 00:00:58 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:12:38 v #10734 > 00:00:58 v #9 !   return _pygments_highlight(
00:12:38 v #10735 > 00:00:58 v #10 ! [NbConvertApp] Writing 324741 bytes to c:\home\git\polyglot\lib\spiral\trace.dib.html
00:12:39 v #10736 > 00:00:58 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 852 }
00:12:39 v #10737 > 00:00:58 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 852 }
00:12:39 v #10738 > 00:00:58 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/trace.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/trace.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:39 v #10739 > 00:00:59 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:12:39 v #10740 > 00:00:59 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:12:39 v #10741 > 00:00:59 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 22437 }
00:12:39 d #10742 runtime.execute_with_options_async / { exit_code = 0; output_length = 25883 }
00:12:39 d #13 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path trace.dib --retries 3
00:12:39 d #10743 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path am'.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path am'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:39 v #10744 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "am'.dib", "--retries", "3"])) }
00:12:39 v #10745 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/am'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/am'.dib" --output-path "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:12:41 v #10746 > >
00:12:41 v #10747 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:41 v #10748 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:41 v #10749 > > │ # am'                                                                        │
00:12:41 v #10750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:45 v #10751 > >
00:12:45 v #10752 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:45 v #10753 > > //// test
00:12:45 v #10754 > >
00:12:45 v #10755 > > open testing
00:12:46 v #10756 > 00:12:45 d #605 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:12:46 v #10757 > >
00:12:46 v #10758 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:46 v #10759 > > open rust
00:12:46 v #10760 > > open rust_operators
00:12:46 v #10761 > 00:12:46 d #606 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/99d3bf64d597281af4b0797a894e23c32802a4d97ba91164826ac21a270d370b/main.spi
00:12:47 v #10762 > >
00:12:47 v #10763 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:47 v #10764 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:47 v #10765 > > │ ## am'                                                                       │
00:12:47 v #10766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:47 v #10767 > >
00:12:47 v #10768 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:47 v #10769 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:47 v #10770 > > │ ### length                                                                   │
00:12:47 v #10771 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:47 v #10772 > >
00:12:47 v #10773 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:47 v #10774 > > inl length forall dim {int} el. (a : a dim el) : dim =
00:12:47 v #10775 > >     a |> length
00:12:47 v #10776 > 00:12:46 d #607 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0e0f57d9b9af5650b1e8a654460704f6d54674f36aa0a6e0c1b211a8f019755f/main.spi
00:12:47 v #10777 > >
00:12:47 v #10778 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:47 v #10779 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:47 v #10780 > > │ ### index                                                                    │
00:12:47 v #10781 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:47 v #10782 > >
00:12:47 v #10783 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:47 v #10784 > > inl index forall dim {int} el. (i : dim) (a : a dim el) : el =
00:12:47 v #10785 > >     backend_switch {
00:12:47 v #10786 > >         Fsharp = fun () => index a i
00:12:47 v #10787 > >         Python = fun () => $'!a[[!i]]' : el
00:12:47 v #10788 > >     }
00:12:47 v #10789 > 00:12:46 d #608 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a2507695cff647864f4c0cee3d1ad0c981cd64b3f0c3a3015a7e1bbf27e04cc5/main.spi
00:12:47 v #10790 > >
00:12:47 v #10791 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:47 v #10792 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:47 v #10793 > > │ ### index_base                                                               │
00:12:47 v #10794 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:47 v #10795 > >
00:12:47 v #10796 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:47 v #10797 > > inl index_base forall el. (i : int) (ar : array_base el) : el =
00:12:47 v #10798 > >     ar |> a |> index i
00:12:48 v #10799 > 00:12:47 d #609 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e440dc6b725984d26e057ce405085b7534c7315ae2fd6dc700eba44545c1416/main.spi
00:12:48 v #10800 > >
00:12:48 v #10801 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:48 v #10802 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:48 v #10803 > > │ ### base                                                                     │
00:12:48 v #10804 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:48 v #10805 > >
00:12:48 v #10806 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:48 v #10807 > > inl base forall dim {int} el. ((a a) : a dim el) : array_base el =
00:12:48 v #10808 > >     a
00:12:48 v #10809 > 00:12:47 d #610 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c20c66e06d910ca937167d916f9d1774e7eb172ac562ec67b305898e45404341/main.spi
00:12:48 v #10810 > >
00:12:48 v #10811 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:48 v #10812 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:48 v #10813 > > │ ### base'                                                                    │
00:12:48 v #10814 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:48 v #10815 > >
00:12:48 v #10816 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:48 v #10817 > > inl base' forall el. ((a a) : a int el) : array_base el =
00:12:48 v #10818 > >     a
00:12:48 v #10819 > 00:12:48 d #611 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e88cf608fffba19c3ca8e7ada1e55b5f0426e055eb75f3929b921081ddd7f918/main.spi
00:12:49 v #10820 > >
00:12:49 v #10821 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:49 v #10822 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:49 v #10823 > > │ ### generic_equable                                                          │
00:12:49 v #10824 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:49 v #10825 > >
00:12:49 v #10826 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:49 v #10827 > > inl generic_equable x1 x2 =
00:12:49 v #10828 > >     if length x1 <>.. length x2
00:12:49 v #10829 > >     then false
00:12:49 v #10830 > >     else
00:12:49 v #10831 > >         let rec loop i =
00:12:49 v #10832 > >             if i < length x1
00:12:49 v #10833 > >             then index i x1 = index i x2 && loop (i + 1)
00:12:49 v #10834 > >             else true
00:12:49 v #10835 > >         loop 0
00:12:49 v #10836 > 00:12:48 d #612 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/733d720a5e7a1195c663aa695d03d8872a4a25473ca10572b2ae5f0f5f1ca5eb/main.spi
00:12:49 v #10837 > >
00:12:49 v #10838 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:49 v #10839 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:49 v #10840 > > │ ### equable                                                                  │
00:12:49 v #10841 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:49 v #10842 > >
00:12:49 v #10843 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:49 v #10844 > > instance equable a dim {number; int} t = generic_equable
00:12:49 v #10845 > 00:12:48 d #613 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bbedce7cb04dc05ceaa5a988065101a87a79d6c4a2b82b7bc6741249dcb5e511/main.spi
00:12:49 v #10846 > >
00:12:49 v #10847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:49 v #10848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:49 v #10849 > > │ ### append                                                                   │
00:12:49 v #10850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:49 v #10851 > >
00:12:49 v #10852 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:49 v #10853 > > instance append a dim {int; number} t = am.append
00:12:50 v #10854 > 00:12:49 d #614 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a9af5a57b25285e5a3467007ee9ba5c1b282bd34edc02914f3dfdea223b14966/main.spi
00:12:50 v #10855 > >
00:12:50 v #10856 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:50 v #10857 > > //// test
00:12:50 v #10858 > > ///! fsharp
00:12:50 v #10859 > > ///! cuda
00:12:50 v #10860 > > ///! rust
00:12:50 v #10861 > > ///! typescript
00:12:50 v #10862 > > ///! python
00:12:50 v #10863 > >
00:12:50 v #10864 > > a' ;[[ -1i64; 0 ]] ++ a' ;[[ 1; 2 ]]
00:12:50 v #10865 > > |> _assert_eq (a' ;[[ -1; 0; 1; 2 ]])
00:12:50 v #10866 > 00:12:49 d #615 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/128736b8a9712739da6f9eefef0df18187cb8a301cfa473e6f544bb7c54e0beb/main.spi
00:12:50 v #10867 > 00:12:49 d #616 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68b9bb09c502ee0e564185d4d3fcabb90047190021dd0f7720e2e9dc1b639e8e/main.spi
00:13:13 v #10868 > >
00:13:13 v #10869 > > ╭─[ 23.16s - return value ]────────────────────────────────────────────────────╮
00:13:13 v #10870 > > │                                                                              │
00:13:13 v #10871 > > │ .py output (Cuda):                                                           │
00:13:13 v #10872 > > │ Traceback (most recent call last):                                     │
00:13:13 v #10873 > > │   File                                                                   │
00:13:13 v #10874 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\68b9bb09c502ee0e564185d4d3 │
00:13:13 v #10875 > > │ fcabb90047190021dd0f7720e2e9dc1b639e8e\main.py", line 159, in <module>     │
00:13:13 v #10876 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:13:13 v #10877 > > │ else print(result)                                                         │
00:13:13 v #10878 > > │                                         ^^^^^^                         │
00:13:13 v #10879 > > │   File                                                                   │
00:13:13 v #10880 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\68b9bb09c502ee0e564185d4d3 │
00:13:13 v #10881 > > │ fcabb90047190021dd0f7720e2e9dc1b639e8e\main.py", line 157, in main         │
00:13:13 v #10882 > > │     return method0()                                                   │
00:13:13 v #10883 > > │            ^^^^^^^^^                                                   │
00:13:13 v #10884 > > │   File                                                                   │
00:13:13 v #10885 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\68b9bb09c502ee0e564185d4d3 │
00:13:13 v #10886 > > │ fcabb90047190021dd0f7720e2e9dc1b639e8e\main.py", line 96, in method0       │
00:13:13 v #10887 > > │     v0 = cp.array([-1, 0],dtype=cp.int64)                              │
00:13:13 v #10888 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                              │
00:13:13 v #10889 > > │   File                                                                   │
00:13:13 v #10890 > > │ "C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\cupy\_creatio │
00:13:13 v #10891 > > │ n\from_data.py", line 53, in array                                         │
00:13:13 v #10892 > > │     return _core.array(obj, dtype, copy, order, subok, ndmin, blocking)[  │
00:13:13 v #10893 > > │ 0m                                                                           │
00:13:13 v #10894 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[  │
00:13:13 v #10895 > > │ 0m                                                                           │
00:13:13 v #10896 > > │   File "cupy\_core\core.pyx", line 2408, in cupy._core.core.array      │
00:13:13 v #10897 > > │   File "cupy\_core\core.pyx", line 2435, in cupy._core.core.array      │
00:13:13 v #10898 > > │   File "cupy\_core\core.pyx", line 2578, in                              │
00:13:13 v #10899 > > │ cupy._core.core._array_default                                             │
00:13:13 v #10900 > > │   File "cupy\_core\core.pyx", line 137, in                               │
00:13:13 v #10901 > > │ cupy._core.core.ndarray.__new__                                            │
00:13:13 v #10902 > > │   File "cupy\_core\core.pyx", line 225, in                               │
00:13:13 v #10903 > > │ cupy._core.core._ndarray_base._init                                        │
00:13:13 v #10904 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:13:13 v #10905 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:13:13 v #10906 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:13:13 v #10907 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:13:13 v #10908 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:13:13 v #10909 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:13:13 v #10910 > > │ [0m                                                                          │
00:13:13 v #10911 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:13:13 v #10912 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:13:13 v #10913 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:13:13 v #10914 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:13:13 v #10915 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:13:13 v #10916 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:13:13 v #10917 > > │ runtime version                                                            │
00:13:13 v #10918 > > │                                                                              │
00:13:13 v #10919 > > │ .rs output:                                                                  │
00:13:13 v #10920 > > │ __assert_eq / actual: Array(MutCell([-1, 0, 1, 2])) / expected:              │
00:13:13 v #10921 > > │ Array(MutCell([-1, 0, 1, 2]))                                                │
00:13:13 v #10922 > > │                                                                              │
00:13:13 v #10923 > > │ .ts output:                                                                  │
00:13:13 v #10924 > > │ __assert_eq / actual: -1,0,1,2 / expected: -1,0,1,2                          │
00:13:13 v #10925 > > │                                                                              │
00:13:13 v #10926 > > │ .py output:                                                                  │
00:13:13 v #10927 > > │ __assert_eq / actual: [-1, 0, 1, 2] / expected: array('q', [-1, 0, 1, 2])    │
00:13:13 v #10928 > > │                                                                              │
00:13:13 v #10929 > > │                                                                              │
00:13:13 v #10930 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:13 v #10931 > >
00:13:13 v #10932 > > ╭─[ 23.17s - stdout ]──────────────────────────────────────────────────────────╮
00:13:13 v #10933 > > │ .fsx output:                                                                 │
00:13:13 v #10934 > > │ __assert_eq / actual: [|-1L; 0L; 1L; 2L|] / expected: [|-1L; 0L; 1L; 2L|]    │
00:13:13 v #10935 > > │                                                                              │
00:13:13 v #10936 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:13 v #10937 > >
00:13:13 v #10938 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:13 v #10939 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:13 v #10940 > > │ ### map_base                                                                 │
00:13:13 v #10941 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:13 v #10942 > >
00:13:13 v #10943 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:13 v #10944 > > inl map_base forall t u. (fn : t -> u) (x : array_base t) : array_base u =
00:13:13 v #10945 > >     a x
00:13:13 v #10946 > >     |> am.map fn
00:13:13 v #10947 > >     |> fun (a x : _ int _) => x
00:13:13 v #10948 > 00:13:12 d #617 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7ca5d45a89a5fdd9896eff988b9be2cf61838af9dcedf410d794bfd965113001/main.spi
00:13:13 v #10949 > >
00:13:13 v #10950 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:13 v #10951 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:13 v #10952 > > │ ### collect                                                                  │
00:13:13 v #10953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:13 v #10954 > >
00:13:13 v #10955 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:13 v #10956 > > inl collect forall t r. (fn : t -> a int r) (items : a int t) : a int r =
00:13:13 v #10957 > >     items
00:13:13 v #10958 > >     |> am.map fn
00:13:13 v #10959 > >     |> am.fold (++) (a ;[[]])
00:13:14 v #10960 > 00:13:13 d #618 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c2c7df3916e0e1f1e0cb1a622b91ddc3a94464e7f8639f917239545c519bf4d5/main.spi
00:13:14 v #10961 > >
00:13:14 v #10962 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:14 v #10963 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:14 v #10964 > > │ ### init                                                                     │
00:13:14 v #10965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:14 v #10966 > >
00:13:14 v #10967 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:14 v #10968 > > inl init n : array_base _ =
00:13:14 v #10969 > >     am.init n id
00:13:14 v #10970 > >     |> fun (a x : _ int _) => x
00:13:14 v #10971 > 00:13:13 d #619 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d205f520a2c1f3d9f3a5c88df29c7ab612e4228b455d55e99569a52d9bfe233e/main.spi
00:13:14 v #10972 > >
00:13:14 v #10973 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:14 v #10974 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:14 v #10975 > > │ ### choose                                                                   │
00:13:14 v #10976 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:14 v #10977 > >
00:13:14 v #10978 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:14 v #10979 > > inl choose f l =
00:13:14 v #10980 > >     (l, [[]])
00:13:14 v #10981 > >     ||> am.foldBack fun x acc =>
00:13:14 v #10982 > >         match f x with
00:13:14 v #10983 > >         | Some y => y :: acc
00:13:14 v #10984 > >         | None => acc
00:13:14 v #10985 > >     |> listm.toArray
00:13:15 v #10986 > 00:13:14 d #620 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d45db47ffa85dcfe6781dc0378e91f97697017c6b82ceae02394bddd7831a1b5/main.spi
00:13:15 v #10987 > >
00:13:15 v #10988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:15 v #10989 > > //// test
00:13:15 v #10990 > > ///! fsharp
00:13:15 v #10991 > > ///! cuda
00:13:15 v #10992 > > ////! rust // v0.get_mut()[[v2.get().clone() as usize]] = match
00:13:15 v #10993 > > v1.get().clone().as_ref() { ^ expected `i32`, found `usize`
00:13:15 v #10994 > > ///! typescript
00:13:15 v #10995 > > ///! python
00:13:15 v #10996 > >
00:13:15 v #10997 > > 10
00:13:15 v #10998 > > |> init
00:13:15 v #10999 > > |> fun x => a x : _ int _
00:13:15 v #11000 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:13:15 v #11001 > > |> _assert_eq (a' ;[[ 0; 2; 4; 6; 8 ]])
00:13:15 v #11002 > 00:13:14 d #621 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bae5f8b47b7dcc4796e8c4a32dcc8a5d76de521ba5e892d862025222be86637f/main.spi
00:13:15 v #11003 > 00:13:14 d #622 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d4ad739531a383d55562d2d54e83a808122db5c2290b3d9af7adfba08f40e71/main.spi
00:13:29 v #11004 > >
00:13:29 v #11005 > > ╭─[ 14.23s - return value ]────────────────────────────────────────────────────╮
00:13:29 v #11006 > > │                                                                              │
00:13:29 v #11007 > > │ .py output (Cuda):                                                           │
00:13:29 v #11008 > > │ Traceback (most recent call last):                                     │
00:13:29 v #11009 > > │   File                                                                   │
00:13:29 v #11010 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\9d4ad739531a383d55562d2d54 │
00:13:29 v #11011 > > │ e83a808122db5c2290b3d9af7adfba08f40e71\main.py", line 240, in <module>     │
00:13:29 v #11012 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:13:29 v #11013 > > │ else print(result)                                                         │
00:13:29 v #11014 > > │                                         ^^^^^^                         │
00:13:29 v #11015 > > │   File                                                                   │
00:13:29 v #11016 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\9d4ad739531a383d55562d2d54 │
00:13:29 v #11017 > > │ e83a808122db5c2290b3d9af7adfba08f40e71\main.py", line 238, in main         │
00:13:29 v #11018 > > │     return method0()                                                   │
00:13:29 v #11019 > > │            ^^^^^^^^^                                                   │
00:13:29 v #11020 > > │   File                                                                   │
00:13:29 v #11021 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\9d4ad739531a383d55562d2d54 │
00:13:29 v #11022 > > │ e83a808122db5c2290b3d9af7adfba08f40e71\main.py", line 155, in method0      │
00:13:29 v #11023 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:13:29 v #11024 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:13:29 v #11025 > > │   File                                                                   │
00:13:29 v #11026 > > │ "C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\cupy\_creatio │
00:13:29 v #11027 > > │ n\basic.py", line 31, in empty                                             │
00:13:29 v #11028 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:13:29 v #11029 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:13:29 v #11030 > > │   File "cupy\_core\core.pyx", line 137, in                               │
00:13:29 v #11031 > > │ cupy._core.core.ndarray.__new__                                            │
00:13:29 v #11032 > > │   File "cupy\_core\core.pyx", line 225, in                               │
00:13:29 v #11033 > > │ cupy._core.core._ndarray_base._init                                        │
00:13:29 v #11034 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:13:29 v #11035 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:13:29 v #11036 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:13:29 v #11037 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:13:29 v #11038 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:13:29 v #11039 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:13:29 v #11040 > > │ [0m                                                                          │
00:13:29 v #11041 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:13:29 v #11042 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:13:29 v #11043 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:13:29 v #11044 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:13:29 v #11045 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:13:29 v #11046 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:13:29 v #11047 > > │ runtime version                                                            │
00:13:29 v #11048 > > │                                                                              │
00:13:29 v #11049 > > │ .ts output:                                                                  │
00:13:29 v #11050 > > │ __assert_eq / actual: 0,2,4,6,8 / expected: 0,2,4,6,8                        │
00:13:29 v #11051 > > │                                                                              │
00:13:29 v #11052 > > │ .py output:                                                                  │
00:13:29 v #11053 > > │ __assert_eq / actual: [0, 2, 4, 6, 8] / expected: array('l', [0, 2, 4, 6,    │
00:13:29 v #11054 > > │ 8])                                                                          │
00:13:29 v #11055 > > │                                                                              │
00:13:29 v #11056 > > │                                                                              │
00:13:29 v #11057 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:29 v #11058 > >
00:13:29 v #11059 > > ╭─[ 14.24s - stdout ]──────────────────────────────────────────────────────────╮
00:13:29 v #11060 > > │ .fsx output:                                                                 │
00:13:29 v #11061 > > │ __assert_eq / actual: [|0; 2; 4; 6; 8|] / expected: [|0; 2; 4; 6; 8|]        │
00:13:29 v #11062 > > │                                                                              │
00:13:29 v #11063 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:29 v #11064 > >
00:13:29 v #11065 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:29 v #11066 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:29 v #11067 > > │ ### sum                                                                      │
00:13:29 v #11068 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:29 v #11069 > >
00:13:29 v #11070 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:29 v #11071 > > inl sum a =
00:13:29 v #11072 > >     a |> am.fold (+) 0
00:13:29 v #11073 > 00:13:28 d #623 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fd279a624772426156e55ed6fe3ccd6671cedb7143482d6758baf558c3780299/main.spi
00:13:29 v #11074 > >
00:13:29 v #11075 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:29 v #11076 > > //// test
00:13:29 v #11077 > > ///! fsharp
00:13:29 v #11078 > > ///! cuda
00:13:29 v #11079 > > ///! rust
00:13:29 v #11080 > > ///! typescript
00:13:29 v #11081 > > ///! python
00:13:29 v #11082 > >
00:13:29 v #11083 > > 10
00:13:29 v #11084 > > |> init
00:13:29 v #11085 > > |> fun x => a x : _ int _
00:13:29 v #11086 > > |> sum
00:13:29 v #11087 > > |> _assert_eq 45
00:13:30 v #11088 > 00:13:29 d #624 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2ff92bc98ea55b61391a67d3568f034e4f65522e461ab8b56245677d24c8308/main.spi
00:13:30 v #11089 > 00:13:29 d #625 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a9d8c862d0747a7864c3c1520a8468ca69673747c414fc5d2514e6f28864ecaf/main.spi
00:13:48 v #11090 > >
00:13:48 v #11091 > > ╭─[ 19.18s - return value ]────────────────────────────────────────────────────╮
00:13:48 v #11092 > > │                                                                              │
00:13:48 v #11093 > > │ .py output (Cuda):                                                           │
00:13:48 v #11094 > > │ Traceback (most recent call last):                                     │
00:13:48 v #11095 > > │   File                                                                   │
00:13:48 v #11096 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\d2ff92bc98ea55b61391a67d35 │
00:13:48 v #11097 > > │ 68f034e4f65522e461ab8b56245677d24c8308\main.py", line 124, in <module>     │
00:13:48 v #11098 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:13:48 v #11099 > > │ else print(result)                                                         │
00:13:48 v #11100 > > │                                         ^^^^^^                         │
00:13:48 v #11101 > > │   File                                                                   │
00:13:48 v #11102 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\d2ff92bc98ea55b61391a67d35 │
00:13:48 v #11103 > > │ 68f034e4f65522e461ab8b56245677d24c8308\main.py", line 122, in main         │
00:13:48 v #11104 > > │     return method0()                                                   │
00:13:48 v #11105 > > │            ^^^^^^^^^                                                   │
00:13:48 v #11106 > > │   File                                                                   │
00:13:48 v #11107 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\d2ff92bc98ea55b61391a67d35 │
00:13:48 v #11108 > > │ 68f034e4f65522e461ab8b56245677d24c8308\main.py", line 77, in method0       │
00:13:48 v #11109 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:13:48 v #11110 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:13:48 v #11111 > > │   File                                                                   │
00:13:48 v #11112 > > │ "C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\cupy\_creatio │
00:13:48 v #11113 > > │ n\basic.py", line 31, in empty                                             │
00:13:48 v #11114 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:13:48 v #11115 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:13:48 v #11116 > > │   File "cupy\_core\core.pyx", line 137, in                               │
00:13:48 v #11117 > > │ cupy._core.core.ndarray.__new__                                            │
00:13:48 v #11118 > > │   File "cupy\_core\core.pyx", line 225, in                               │
00:13:48 v #11119 > > │ cupy._core.core._ndarray_base._init                                        │
00:13:48 v #11120 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:13:48 v #11121 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:13:48 v #11122 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:13:48 v #11123 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:13:48 v #11124 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:13:48 v #11125 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:13:48 v #11126 > > │ [0m                                                                          │
00:13:48 v #11127 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:13:48 v #11128 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:13:48 v #11129 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:13:48 v #11130 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:13:48 v #11131 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:13:48 v #11132 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:13:48 v #11133 > > │ runtime version                                                            │
00:13:48 v #11134 > > │                                                                              │
00:13:48 v #11135 > > │ .rs output:                                                                  │
00:13:48 v #11136 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:13:48 v #11137 > > │                                                                              │
00:13:48 v #11138 > > │ .ts output:                                                                  │
00:13:48 v #11139 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:13:48 v #11140 > > │                                                                              │
00:13:48 v #11141 > > │ .py output:                                                                  │
00:13:48 v #11142 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:13:48 v #11143 > > │                                                                              │
00:13:48 v #11144 > > │                                                                              │
00:13:48 v #11145 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:48 v #11146 > >
00:13:48 v #11147 > > ╭─[ 19.19s - stdout ]──────────────────────────────────────────────────────────╮
00:13:48 v #11148 > > │ .fsx output:                                                                 │
00:13:48 v #11149 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:13:48 v #11150 > > │                                                                              │
00:13:48 v #11151 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:48 v #11152 > >
00:13:48 v #11153 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:48 v #11154 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:48 v #11155 > > │ ### init_series                                                              │
00:13:48 v #11156 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:48 v #11157 > >
00:13:48 v #11158 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:48 v #11159 > > inl init_series start end inc : array_base _ =
00:13:48 v #11160 > >     inl total = conv ((end - start) / inc) + 1
00:13:48 v #11161 > >     am.init total (conv >> (*) inc >> (+) start)
00:13:48 v #11162 > >     |> fun (a x : _ int _) => x
00:13:49 v #11163 > 00:13:48 d #626 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/abb160c440e9fbbf7a00cdab55f1bbb1db8ca695a4cdf4310dff3e15017b8cc4/main.spi
00:13:49 v #11164 > >
00:13:49 v #11165 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:49 v #11166 > > //// test
00:13:49 v #11167 > > ///! fsharp
00:13:49 v #11168 > > ///! cuda
00:13:49 v #11169 > > ///! rust
00:13:49 v #11170 > > ///! typescript
00:13:49 v #11171 > > ///! python
00:13:49 v #11172 > >
00:13:49 v #11173 > > init_series 0 4 2
00:13:49 v #11174 > > |> _assert_eq' ;[[ 0i32; 2; 4 ]]
00:13:49 v #11175 > 00:13:48 d #627 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76d96d90b6a218f29f36b69dd17cbd33b0e92a31ec8abade66c7fb9cb638a3ec/main.spi
00:13:49 v #11176 > 00:13:48 d #628 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc6bc9f685a23ff0387e2d5adeefc74ebf5530960aa10194948f6cbeed681926/main.spi
00:14:08 v #11177 > >
00:14:08 v #11178 > > ╭─[ 19.38s - return value ]────────────────────────────────────────────────────╮
00:14:08 v #11179 > > │                                                                              │
00:14:08 v #11180 > > │ .py output (Cuda):                                                           │
00:14:08 v #11181 > > │ Traceback (most recent call last):                                     │
00:14:08 v #11182 > > │   File                                                                   │
00:14:08 v #11183 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\cc6bc9f685a23ff0387e2d5ade │
00:14:08 v #11184 > > │ efc74ebf5530960aa10194948f6cbeed681926\main.py", line 101, in <module>     │
00:14:08 v #11185 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:14:08 v #11186 > > │ else print(result)                                                         │
00:14:08 v #11187 > > │                                         ^^^^^^                         │
00:14:08 v #11188 > > │   File                                                                   │
00:14:08 v #11189 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\cc6bc9f685a23ff0387e2d5ade │
00:14:08 v #11190 > > │ efc74ebf5530960aa10194948f6cbeed681926\main.py", line 99, in main          │
00:14:08 v #11191 > > │     return method0()                                                   │
00:14:08 v #11192 > > │            ^^^^^^^^^                                                   │
00:14:08 v #11193 > > │   File                                                                   │
00:14:08 v #11194 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\cc6bc9f685a23ff0387e2d5ade │
00:14:08 v #11195 > > │ efc74ebf5530960aa10194948f6cbeed681926\main.py", line 67, in method0       │
00:14:08 v #11196 > > │     v0 = cp.empty(3,dtype=cp.int32)                                    │
00:14:08 v #11197 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^                                    │
00:14:08 v #11198 > > │   File                                                                   │
00:14:08 v #11199 > > │ "C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\cupy\_creatio │
00:14:08 v #11200 > > │ n\basic.py", line 31, in empty                                             │
00:14:08 v #11201 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:14:08 v #11202 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:14:08 v #11203 > > │   File "cupy\_core\core.pyx", line 137, in                               │
00:14:08 v #11204 > > │ cupy._core.core.ndarray.__new__                                            │
00:14:08 v #11205 > > │   File "cupy\_core\core.pyx", line 225, in                               │
00:14:08 v #11206 > > │ cupy._core.core._ndarray_base._init                                        │
00:14:08 v #11207 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:14:08 v #11208 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:14:08 v #11209 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:14:08 v #11210 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:14:08 v #11211 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:14:08 v #11212 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:14:08 v #11213 > > │ [0m                                                                          │
00:14:08 v #11214 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:14:08 v #11215 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:14:08 v #11216 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:14:08 v #11217 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:14:08 v #11218 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:14:08 v #11219 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:14:08 v #11220 > > │ runtime version                                                            │
00:14:08 v #11221 > > │                                                                              │
00:14:08 v #11222 > > │ .rs output:                                                                  │
00:14:08 v #11223 > > │ __assert_eq' / actual: Array(MutCell([0, 2, 4])) / expected: Array(MutCell([ │
00:14:08 v #11224 > > │ 0, 2, 4]))                                                                   │
00:14:08 v #11225 > > │                                                                              │
00:14:08 v #11226 > > │ .ts output:                                                                  │
00:14:08 v #11227 > > │ __assert_eq' / actual: 0,2,4 / expected: 0,2,4                               │
00:14:08 v #11228 > > │                                                                              │
00:14:08 v #11229 > > │ .py output:                                                                  │
00:14:08 v #11230 > > │ __assert_eq' / actual: [0, 2, 4] / expected: array('l', [0, 2, 4])           │
00:14:08 v #11231 > > │                                                                              │
00:14:08 v #11232 > > │                                                                              │
00:14:08 v #11233 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:08 v #11234 > >
00:14:08 v #11235 > > ╭─[ 19.38s - stdout ]──────────────────────────────────────────────────────────╮
00:14:08 v #11236 > > │ .fsx output:                                                                 │
00:14:08 v #11237 > > │ __assert_eq' / actual: [|0; 2; 4|] / expected: [|0; 2; 4|]                   │
00:14:08 v #11238 > > │                                                                              │
00:14:08 v #11239 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:08 v #11240 > >
00:14:08 v #11241 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:08 v #11242 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:08 v #11243 > > │ ### head                                                                     │
00:14:08 v #11244 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:08 v #11245 > >
00:14:08 v #11246 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:08 v #11247 > > inl head (ar : a _ _) =
00:14:08 v #11248 > >     if var_is ar || length ar > 0
00:14:08 v #11249 > >     then ar |> index 0
00:14:08 v #11250 > >     else error_type "The length of the array should be greater than 0."
00:14:09 v #11251 > 00:14:08 d #629 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5881abb229c5885514f4b6d979de411dce2e2e5b099abe71360c9b2f07722be5/main.spi
00:14:09 v #11252 > >
00:14:09 v #11253 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:09 v #11254 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:09 v #11255 > > │ ### last                                                                     │
00:14:09 v #11256 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:09 v #11257 > >
00:14:09 v #11258 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:09 v #11259 > > inl last (ar : a _ _) =
00:14:09 v #11260 > >     inl len = length ar
00:14:09 v #11261 > >     if var_is ar || len > 0
00:14:09 v #11262 > >     then ar |> index (len - 1)
00:14:09 v #11263 > >     else error_type "The length of the array should be greater than 0."
00:14:09 v #11264 > 00:14:08 d #630 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f97f72e350c0252ab71d9e933078a07dd403dffc7391a804c2c0e082c029580/main.spi
00:14:09 v #11265 > >
00:14:09 v #11266 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:09 v #11267 > > //// test
00:14:09 v #11268 > > ///! fsharp
00:14:09 v #11269 > > ///! cuda
00:14:09 v #11270 > > ///! rust
00:14:09 v #11271 > > ///! typescript
00:14:09 v #11272 > > ///! python
00:14:09 v #11273 > >
00:14:09 v #11274 > > 10
00:14:09 v #11275 > > |> init
00:14:09 v #11276 > > |> fun x => a x : _ int _
00:14:09 v #11277 > > |> last
00:14:09 v #11278 > > |> _assert_eq 9
00:14:09 v #11279 > 00:14:09 d #631 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27c1b96a2d62b1983c9cb2866b58aae09d2246c35c1015cc9366b18bad0bf7d6/main.spi
00:14:09 v #11280 > 00:14:09 d #632 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ed1d249488022df51e5f876496d2021ed16162ab1f9734f72e17cda34328ce10/main.spi
00:14:29 v #11281 > >
00:14:29 v #11282 > > ╭─[ 20.05s - return value ]────────────────────────────────────────────────────╮
00:14:29 v #11283 > > │                                                                              │
00:14:29 v #11284 > > │ .py output (Cuda):                                                           │
00:14:29 v #11285 > > │ Traceback (most recent call last):                                     │
00:14:29 v #11286 > > │   File                                                                   │
00:14:29 v #11287 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ed1d249488022df51e5f876496 │
00:14:29 v #11288 > > │ d2021ed16162ab1f9734f72e17cda34328ce10\main.py", line 103, in <module>     │
00:14:29 v #11289 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:14:29 v #11290 > > │ else print(result)                                                         │
00:14:29 v #11291 > > │                                         ^^^^^^                         │
00:14:29 v #11292 > > │   File                                                                   │
00:14:29 v #11293 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ed1d249488022df51e5f876496 │
00:14:29 v #11294 > > │ d2021ed16162ab1f9734f72e17cda34328ce10\main.py", line 101, in main         │
00:14:29 v #11295 > > │     return method0()                                                   │
00:14:29 v #11296 > > │            ^^^^^^^^^                                                   │
00:14:29 v #11297 > > │   File                                                                   │
00:14:29 v #11298 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ed1d249488022df51e5f876496 │
00:14:29 v #11299 > > │ d2021ed16162ab1f9734f72e17cda34328ce10\main.py", line 67, in method0       │
00:14:29 v #11300 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:14:29 v #11301 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:14:29 v #11302 > > │   File                                                                   │
00:14:29 v #11303 > > │ "C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\cupy\_creatio │
00:14:29 v #11304 > > │ n\basic.py", line 31, in empty                                             │
00:14:29 v #11305 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:14:29 v #11306 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:14:29 v #11307 > > │   File "cupy\_core\core.pyx", line 137, in                               │
00:14:29 v #11308 > > │ cupy._core.core.ndarray.__new__                                            │
00:14:29 v #11309 > > │   File "cupy\_core\core.pyx", line 225, in                               │
00:14:29 v #11310 > > │ cupy._core.core._ndarray_base._init                                        │
00:14:29 v #11311 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:14:29 v #11312 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:14:29 v #11313 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:14:29 v #11314 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:14:29 v #11315 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:14:29 v #11316 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:14:29 v #11317 > > │ [0m                                                                          │
00:14:29 v #11318 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:14:29 v #11319 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:14:29 v #11320 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:14:29 v #11321 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:14:29 v #11322 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:14:29 v #11323 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:14:29 v #11324 > > │ runtime version                                                            │
00:14:29 v #11325 > > │                                                                              │
00:14:29 v #11326 > > │ .rs output:                                                                  │
00:14:29 v #11327 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:14:29 v #11328 > > │                                                                              │
00:14:29 v #11329 > > │ .ts output:                                                                  │
00:14:29 v #11330 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:14:29 v #11331 > > │                                                                              │
00:14:29 v #11332 > > │ .py output:                                                                  │
00:14:29 v #11333 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:14:29 v #11334 > > │                                                                              │
00:14:29 v #11335 > > │                                                                              │
00:14:29 v #11336 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:29 v #11337 > >
00:14:29 v #11338 > > ╭─[ 20.06s - stdout ]──────────────────────────────────────────────────────────╮
00:14:29 v #11339 > > │ .fsx output:                                                                 │
00:14:29 v #11340 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:14:29 v #11341 > > │                                                                              │
00:14:29 v #11342 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:29 v #11343 > >
00:14:29 v #11344 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:29 v #11345 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:29 v #11346 > > │ ### try_pick                                                                 │
00:14:29 v #11347 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:29 v #11348 > >
00:14:29 v #11349 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:29 v #11350 > > inl try_pick forall t u. (fn : t -> option u) (array : a _ t) : option u =
00:14:29 v #11351 > >     (array, None)
00:14:29 v #11352 > >     ||> am.foldBack fun x acc =>
00:14:29 v #11353 > >         match acc with
00:14:29 v #11354 > >         | Some _ => acc
00:14:29 v #11355 > >         | None => x |> fn
00:14:29 v #11356 > 00:14:29 d #633 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90e31c3a6a7b889010e9ef5c0a8c96783b9e8dd495b3e998423d68c9f0c64ee4/main.spi
00:14:30 v #11357 > >
00:14:30 v #11358 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:30 v #11359 > > //// test
00:14:30 v #11360 > > ///! fsharp
00:14:30 v #11361 > > ///! cuda
00:14:30 v #11362 > > ////! rust // match &v23 { Spiral_builder::US0::US0_0(x) => x.clone(), _ =>
00:14:30 v #11363 > > unreachable!(), } == 5_i32
00:14:30 v #11364 > > ///! typescript
00:14:30 v #11365 > > ///! python
00:14:30 v #11366 > >
00:14:30 v #11367 > > 10
00:14:30 v #11368 > > |> init
00:14:30 v #11369 > > |> fun x => a x : _ int _
00:14:30 v #11370 > > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:14:30 v #11371 > > |> _assert_eq (Some 5i32)
00:14:30 v #11372 > 00:14:29 d #634 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f9770828b8214ee3431d4d699a1d82421490a510bec1f40742dbd11a98fdebfb/main.spi
00:14:30 v #11373 > 00:14:29 d #635 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f574f6aa78dd2d474cc9a15e9816e77781ab6f25f1c539d19fe6f862f7ac5433/main.spi
00:14:44 v #11374 > >
00:14:44 v #11375 > > ╭─[ 14.24s - return value ]────────────────────────────────────────────────────╮
00:14:44 v #11376 > > │                                                                              │
00:14:44 v #11377 > > │ .py output (Cuda):                                                           │
00:14:44 v #11378 > > │ Traceback (most recent call last):                                     │
00:14:44 v #11379 > > │   File                                                                   │
00:14:44 v #11380 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\f574f6aa78dd2d474cc9a15e98 │
00:14:44 v #11381 > > │ 16e77781ab6f25f1c539d19fe6f862f7ac5433\main.py", line 157, in <module>     │
00:14:44 v #11382 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:14:44 v #11383 > > │ else print(result)                                                         │
00:14:44 v #11384 > > │                                         ^^^^^^                         │
00:14:44 v #11385 > > │   File                                                                   │
00:14:44 v #11386 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\f574f6aa78dd2d474cc9a15e98 │
00:14:44 v #11387 > > │ 16e77781ab6f25f1c539d19fe6f862f7ac5433\main.py", line 155, in main         │
00:14:44 v #11388 > > │     return method0()                                                   │
00:14:44 v #11389 > > │            ^^^^^^^^^                                                   │
00:14:44 v #11390 > > │   File                                                                   │
00:14:44 v #11391 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\f574f6aa78dd2d474cc9a15e98 │
00:14:44 v #11392 > > │ 16e77781ab6f25f1c539d19fe6f862f7ac5433\main.py", line 83, in method0       │
00:14:44 v #11393 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:14:44 v #11394 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:14:44 v #11395 > > │   File                                                                   │
00:14:44 v #11396 > > │ "C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\cupy\_creatio │
00:14:44 v #11397 > > │ n\basic.py", line 31, in empty                                             │
00:14:44 v #11398 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:14:44 v #11399 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:14:44 v #11400 > > │   File "cupy\_core\core.pyx", line 137, in                               │
00:14:44 v #11401 > > │ cupy._core.core.ndarray.__new__                                            │
00:14:44 v #11402 > > │   File "cupy\_core\core.pyx", line 225, in                               │
00:14:44 v #11403 > > │ cupy._core.core._ndarray_base._init                                        │
00:14:44 v #11404 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:14:44 v #11405 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:14:44 v #11406 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:14:44 v #11407 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:14:44 v #11408 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:14:44 v #11409 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:14:44 v #11410 > > │ [0m                                                                          │
00:14:44 v #11411 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:14:44 v #11412 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:14:44 v #11413 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:14:44 v #11414 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:14:44 v #11415 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:14:44 v #11416 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:14:44 v #11417 > > │ runtime version                                                            │
00:14:44 v #11418 > > │                                                                              │
00:14:44 v #11419 > > │ .ts output:                                                                  │
00:14:44 v #11420 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:14:44 v #11421 > > │                                                                              │
00:14:44 v #11422 > > │ .py output:                                                                  │
00:14:44 v #11423 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:14:44 v #11424 > > │                                                                              │
00:14:44 v #11425 > > │                                                                              │
00:14:44 v #11426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:44 v #11427 > >
00:14:44 v #11428 > > ╭─[ 14.25s - stdout ]──────────────────────────────────────────────────────────╮
00:14:44 v #11429 > > │ .fsx output:                                                                 │
00:14:44 v #11430 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:14:44 v #11431 > > │                                                                              │
00:14:44 v #11432 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:44 v #11433 > >
00:14:44 v #11434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:44 v #11435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:44 v #11436 > > │ ### indexed                                                                  │
00:14:44 v #11437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:44 v #11438 > >
00:14:44 v #11439 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:44 v #11440 > > inl indexed forall t u {number}. (ar : array_base t) : array_base (u * t) =
00:14:44 v #11441 > >     ((0, a ;[[]]), (a ar : _ int _))
00:14:44 v #11442 > >     ||> am.fold fun (i, acc) x =>
00:14:44 v #11443 > >         i + 1, acc ++ a ;[[i, x]]
00:14:44 v #11444 > >     |> snd
00:14:44 v #11445 > >     |> fun (a x : _ int _) => x
00:14:44 v #11446 > 00:14:43 d #636 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bbad174b1021b6168fe6f4306b46612dd5fcf125cffcd58ab38c8c85999851cf/main.spi
00:14:44 v #11447 > >
00:14:44 v #11448 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:44 v #11449 > > //// test
00:14:44 v #11450 > > ///! fsharp
00:14:44 v #11451 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:14:44 v #11452 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:14:44 v #11453 > > ///! rust
00:14:44 v #11454 > > ///! typescript
00:14:44 v #11455 > > ///! python
00:14:44 v #11456 > >
00:14:44 v #11457 > > am.init 3i32 ((*) 2)
00:14:44 v #11458 > > |> fun (a x : _ int _) => x
00:14:44 v #11459 > > |> indexed
00:14:44 v #11460 > > |> _assert_eq' ;[[0i32, 0; 1, 2; 2, 4]]
00:14:44 v #11461 > 00:14:44 d #637 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f99d5731d90d8189162252853200aa8b803a7694fbc0828bb72dd5d576f002c/main.spi
00:15:04 v #11462 > >
00:15:04 v #11463 > > ╭─[ 19.38s - return value ]────────────────────────────────────────────────────╮
00:15:04 v #11464 > > │ .rs output:                                                                  │
00:15:04 v #11465 > > │ __assert_eq' / actual: Array(MutCell([(0, 0), (1, 2), (2, 4)])) / expected:  │
00:15:04 v #11466 > > │ Array(MutCell([(0, 0), (1, 2), (2, 4)]))                                     │
00:15:04 v #11467 > > │                                                                              │
00:15:04 v #11468 > > │ .ts output:                                                                  │
00:15:04 v #11469 > > │ __assert_eq' / actual: 0,0,1,2,2,4 / expected: 0,0,1,2,2,4                   │
00:15:04 v #11470 > > │                                                                              │
00:15:04 v #11471 > > │ .py output:                                                                  │
00:15:04 v #11472 > > │ __assert_eq' / actual: [(0, 0), (1, 2), (2, 4)] / expected: [(0, 0), (1, 2), │
00:15:04 v #11473 > > │ (2, 4)]                                                                      │
00:15:04 v #11474 > > │                                                                              │
00:15:04 v #11475 > > │                                                                              │
00:15:04 v #11476 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:04 v #11477 > >
00:15:04 v #11478 > > ╭─[ 19.38s - stdout ]──────────────────────────────────────────────────────────╮
00:15:04 v #11479 > > │ .fsx output:                                                                 │
00:15:04 v #11480 > > │ __assert_eq' / actual: [|struct (0, 0); struct (1, 2); struct (2, 4)|] /     │
00:15:04 v #11481 > > │ expected: [|struct (0, 0); struct (1, 2); struct (2, 4)|]                    │
00:15:04 v #11482 > > │                                                                              │
00:15:04 v #11483 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:04 v #11484 > >
00:15:04 v #11485 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:04 v #11486 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:04 v #11487 > > │ ### slice                                                                    │
00:15:04 v #11488 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:04 v #11489 > >
00:15:04 v #11490 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:04 v #11491 > > inl slice forall dim {int; number} el. from nearTo s : a dim el =
00:15:04 v #11492 > >     am.slice { from nearTo } s
00:15:04 v #11493 > 00:15:03 d #638 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eb0be163878e14ebfa9dcc63174c48e33a0d7a294bc2e24875f04cae52e68fa3/main.spi
00:15:04 v #11494 > >
00:15:04 v #11495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:04 v #11496 > > //// test
00:15:04 v #11497 > > ///! fsharp
00:15:04 v #11498 > > ///! cuda
00:15:04 v #11499 > > ///! rust
00:15:04 v #11500 > > ///! typescript
00:15:04 v #11501 > > ///! python
00:15:04 v #11502 > >
00:15:04 v #11503 > > inl x : _ i32 _ = a ;[[ 1i32; 2; 3 ]]
00:15:04 v #11504 > > x |> slice 0 0 |> _assert_eq (a ;[[]])
00:15:04 v #11505 > > x |> slice 0 1 |> _assert_eq (a ;[[ 1 ]])
00:15:04 v #11506 > > x |> slice 1 1 |> _assert_eq (a ;[[]])
00:15:04 v #11507 > > x |> slice 1 2 |> _assert_eq (a ;[[ 2 ]])
00:15:04 v #11508 > > x |> slice 2 2 |> _assert_eq (a ;[[]])
00:15:04 v #11509 > > x |> slice 0 2 |> _assert_eq (a ;[[ 1; 2 ]])
00:15:04 v #11510 > 00:15:03 d #639 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8adc9f979fb0d14587fb26fafe8b2f1cddc6a9cfe0d328177faf8a154a65c7b/main.spi
00:15:04 v #11511 > 00:15:04 d #640 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7ce0299fb4f02133a2a1953b0a0f29362353b83001e4178110e0ff244dd28de3/main.spi
00:15:24 v #11512 > >
00:15:24 v #11513 > > ╭─[ 19.92s - return value ]────────────────────────────────────────────────────╮
00:15:24 v #11514 > > │                                                                              │
00:15:24 v #11515 > > │ .py output (Cuda):                                                           │
00:15:24 v #11516 > > │ Traceback (most recent call last):                                     │
00:15:24 v #11517 > > │   File                                                                   │
00:15:24 v #11518 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\a8adc9f979fb0d14587fb26faf │
00:15:24 v #11519 > > │ e8b2f1cddc6a9cfe0d328177faf8a154a65c7b\main.py", line 367, in <module>     │
00:15:24 v #11520 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:15:24 v #11521 > > │ else print(result)                                                         │
00:15:24 v #11522 > > │                                         ^^^^^^                         │
00:15:24 v #11523 > > │   File                                                                   │
00:15:24 v #11524 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\a8adc9f979fb0d14587fb26faf │
00:15:24 v #11525 > > │ e8b2f1cddc6a9cfe0d328177faf8a154a65c7b\main.py", line 365, in main         │
00:15:24 v #11526 > > │     return method0()                                                   │
00:15:24 v #11527 > > │            ^^^^^^^^^                                                   │
00:15:24 v #11528 > > │   File                                                                   │
00:15:24 v #11529 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\a8adc9f979fb0d14587fb26faf │
00:15:24 v #11530 > > │ e8b2f1cddc6a9cfe0d328177faf8a154a65c7b\main.py", line 108, in method0      │
00:15:24 v #11531 > > │     v0 = cp.array([1, 2, 3],dtype=cp.int32)                            │
00:15:24 v #11532 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            │
00:15:24 v #11533 > > │   File                                                                   │
00:15:24 v #11534 > > │ "C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\cupy\_creatio │
00:15:24 v #11535 > > │ n\from_data.py", line 53, in array                                         │
00:15:24 v #11536 > > │     return _core.array(obj, dtype, copy, order, subok, ndmin, blocking)[  │
00:15:24 v #11537 > > │ 0m                                                                           │
00:15:24 v #11538 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[  │
00:15:24 v #11539 > > │ 0m                                                                           │
00:15:24 v #11540 > > │   File "cupy\_core\core.pyx", line 2408, in cupy._core.core.array      │
00:15:24 v #11541 > > │   File "cupy\_core\core.pyx", line 2435, in cupy._core.core.array      │
00:15:24 v #11542 > > │   File "cupy\_core\core.pyx", line 2578, in                              │
00:15:24 v #11543 > > │ cupy._core.core._array_default                                             │
00:15:24 v #11544 > > │   File "cupy\_core\core.pyx", line 137, in                               │
00:15:24 v #11545 > > │ cupy._core.core.ndarray.__new__                                            │
00:15:24 v #11546 > > │ ...moryPool.malloc                                                     │
00:15:24 v #11547 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:15:24 v #11548 > > │ [0m                                                                          │
00:15:24 v #11549 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:15:24 v #11550 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:15:24 v #11551 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:15:24 v #11552 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:15:24 v #11553 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:15:24 v #11554 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:15:24 v #11555 > > │ runtime version                                                            │
00:15:24 v #11556 > > │                                                                              │
00:15:24 v #11557 > > │                                                                              │
00:15:24 v #11558 > > │ .rs output:                                                                  │
00:15:24 v #11559 > > │ __assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))      │
00:15:24 v #11560 > > │ __assert_eq / actual: Array(MutCell([1])) / expected: Array(MutCell([1]))    │
00:15:24 v #11561 > > │ __assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))      │
00:15:24 v #11562 > > │ __assert_eq / actual: Array(MutCell([2])) / expected: Array(MutCell([2]))    │
00:15:24 v #11563 > > │ __assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))      │
00:15:24 v #11564 > > │ __assert_eq / actual: Array(MutCell([1, 2])) / expected: Array(MutCell([1,   │
00:15:24 v #11565 > > │ 2]))                                                                         │
00:15:24 v #11566 > > │                                                                              │
00:15:24 v #11567 > > │                                                                              │
00:15:24 v #11568 > > │ .ts output:                                                                  │
00:15:24 v #11569 > > │ __assert_eq / actual:  / expected:                                           │
00:15:24 v #11570 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:15:24 v #11571 > > │ __assert_eq / actual:  / expected:                                           │
00:15:24 v #11572 > > │ __assert_eq / actual: 2 / expected: 2                                        │
00:15:24 v #11573 > > │ __assert_eq / actual:  / expected:                                           │
00:15:24 v #11574 > > │ __assert_eq / actual: 1,2 / expected: 1,2                                    │
00:15:24 v #11575 > > │                                                                              │
00:15:24 v #11576 > > │                                                                              │
00:15:24 v #11577 > > │ .py output:                                                                  │
00:15:24 v #11578 > > │ __assert_eq / actual: [] / expected: array('l')                              │
00:15:24 v #11579 > > │ __assert_eq / actual: [1] / expected: array('l', [1])                        │
00:15:24 v #11580 > > │ __assert_eq / actual: [] / expected: array('l')                              │
00:15:24 v #11581 > > │ __assert_eq / actual: [2] / expected: array('l', [2])                        │
00:15:24 v #11582 > > │ __assert_eq / actual: [] / expected: array('l')                              │
00:15:24 v #11583 > > │ __assert_eq / actual: [1, 2] / expected: array('l', [1, 2])                  │
00:15:24 v #11584 > > │                                                                              │
00:15:24 v #11585 > > │                                                                              │
00:15:24 v #11586 > > │                                                                              │
00:15:24 v #11587 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:24 v #11588 > >
00:15:24 v #11589 > > ╭─[ 19.92s - stdout ]──────────────────────────────────────────────────────────╮
00:15:24 v #11590 > > │ .fsx output:                                                                 │
00:15:24 v #11591 > > │ __assert_eq / actual: [||] / expected: [||]                                  │
00:15:24 v #11592 > > │ __assert_eq / actual: [|1|] / expected: [|1|]                                │
00:15:24 v #11593 > > │ __assert_eq / actual: [||] / expected: [||]                                  │
00:15:24 v #11594 > > │ __assert_eq / actual: [|2|] / expected: [|2|]                                │
00:15:24 v #11595 > > │ __assert_eq / actual: [||] / expected: [||]                                  │
00:15:24 v #11596 > > │ __assert_eq / actual: [|1; 2|] / expected: [|1; 2|]                          │
00:15:24 v #11597 > > │                                                                              │
00:15:24 v #11598 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:24 v #11599 > >
00:15:24 v #11600 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:24 v #11601 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:24 v #11602 > > │ ### range                                                                    │
00:15:24 v #11603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:24 v #11604 > >
00:15:24 v #11605 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:24 v #11606 > > union range dim =
00:15:24 v #11607 > >     | Start : dim
00:15:24 v #11608 > >     | End : dim -> dim
00:15:24 v #11609 > >
00:15:24 v #11610 > > inl range start end s =
00:15:24 v #11611 > >     inl start, end =
00:15:24 v #11612 > >         match start, end with
00:15:24 v #11613 > >         | Start start, End fn =>
00:15:24 v #11614 > >             start, s |> length |> conv |> fn
00:15:24 v #11615 > >         | End start_fn, End end_fn =>
00:15:24 v #11616 > >             inl len = s |> length |> conv
00:15:24 v #11617 > >             start_fn len, end_fn len
00:15:24 v #11618 > >     s |> slice (start |> unbox) (end |> unbox)
00:15:24 v #11619 > 00:15:23 d #641 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc398451e2ede8c0f1c9e4312cceaa56595682960a78558600f71c0d03e934d1/main.spi
00:15:24 v #11620 > >
00:15:24 v #11621 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:24 v #11622 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:24 v #11623 > > │ ## rust                                                                      │
00:15:24 v #11624 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:24 v #11625 > >
00:15:24 v #11626 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:24 v #11627 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:24 v #11628 > > │ ### vec                                                                      │
00:15:24 v #11629 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:24 v #11630 > >
00:15:24 v #11631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:24 v #11632 > > nominal vec t =
00:15:24 v #11633 > >     `(
00:15:24 v #11634 > >         backend_switch `(()) `({}) {
00:15:24 v #11635 > >             Fsharp =
00:15:24 v #11636 > >                 (fun () =>
00:15:24 v #11637 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:15:24 v #11638 > > Fable.Core.Emit(\"Vec<$0>\")>]]\n#endif\ntype Vec<'T> = class end"
00:15:24 v #11639 > >                 ) : () -> ()
00:15:24 v #11640 > >         }
00:15:24 v #11641 > >         $'' : $'Vec<`t>'
00:15:24 v #11642 > >     )
00:15:25 v #11643 > 00:15:24 d #642 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2e62b387ca4b806467fc0813283071417d8964f81141fd7ed5ae89e068a65a8c/main.spi
00:15:25 v #11644 > >
00:15:25 v #11645 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:25 v #11646 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:25 v #11647 > > │ ### from_vec                                                                 │
00:15:25 v #11648 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:25 v #11649 > >
00:15:25 v #11650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:25 v #11651 > > inl from_vec forall dim el. (vec : vec el) : a dim el =
00:15:25 v #11652 > >     !\\(vec, $'"fable_library_rust::NativeArray_::array_from($0)"')
00:15:25 v #11653 > 00:15:24 d #643 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e04ef72f10d566a54da6cf759df7195b7330793f738ae3a250117d17f9b2fce3/main.spi
00:15:25 v #11654 > >
00:15:25 v #11655 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:25 v #11656 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:25 v #11657 > > │ ### from_vec_base                                                            │
00:15:25 v #11658 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:25 v #11659 > >
00:15:25 v #11660 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:25 v #11661 > > inl from_vec_base forall el. (vec : vec el) : array_base el =
00:15:25 v #11662 > >     !\\(vec, $'"fable_library_rust::NativeArray_::array_from($0)"')
00:15:25 v #11663 > 00:15:25 d #644 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/484d5801b951f8a4f5dc2ab98febc16f8cb133ddc699ee2db37787a9da78748d/main.spi
00:15:26 v #11664 > >
00:15:26 v #11665 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:26 v #11666 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:26 v #11667 > > │ ### to_vec                                                                   │
00:15:26 v #11668 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:26 v #11669 > >
00:15:26 v #11670 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:26 v #11671 > > inl to_vec forall t. (ab : array_base t) : vec t =
00:15:26 v #11672 > >     !\\(ab, $'"$0.to_vec()"')
00:15:26 v #11673 > 00:15:25 d #645 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4795582508a52d67190d85b87a1dcc20e8378385b94aaecf109a31bcdaac815d/main.spi
00:15:26 v #11674 > >
00:15:26 v #11675 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:26 v #11676 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:26 v #11677 > > │ ### to_vec'                                                                  │
00:15:26 v #11678 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:26 v #11679 > >
00:15:26 v #11680 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:26 v #11681 > > inl to_vec' forall (t : * -> * -> *) u v. (x : t u v) : vec u =
00:15:26 v #11682 > >     !\($'$"!x.to_vec()"')
00:15:26 v #11683 > 00:15:25 d #646 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eb36ea68c28b35a8ee799593015d0ffc9b80d9c651e49d5bb69daa1a8389bff5/main.spi
00:15:26 v #11684 > >
00:15:26 v #11685 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:26 v #11686 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:26 v #11687 > > │ ### to_vec''                                                                 │
00:15:26 v #11688 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:26 v #11689 > >
00:15:26 v #11690 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:26 v #11691 > > inl to_vec'' forall (t : * -> *) (u : * -> *) v. (x : t (u v)) : vec v =
00:15:26 v #11692 > >     !\($'$"!x.to_vec()"')
00:15:27 v #11693 > 00:15:26 d #647 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11a3c45a1c27afd49bce88a2297585d7d8a137c721f854ba649f9c6ba5dc10e5/main.spi
00:15:27 v #11694 > >
00:15:27 v #11695 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:27 v #11696 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:27 v #11697 > > │ ### vec_push                                                                 │
00:15:27 v #11698 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:27 v #11699 > >
00:15:27 v #11700 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:27 v #11701 > > inl vec_push forall el. (el : el) (vec : vec el) : vec el =
00:15:27 v #11702 > >     inl el = join el
00:15:27 v #11703 > >     inl vec = join vec
00:15:27 v #11704 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:15:27 v #11705 > >     // inl vec = vec |> rust.to_mut
00:15:27 v #11706 > >     (!\($'"true; !vec.push(!el)"') : bool) |> ignore
00:15:27 v #11707 > >     !\($'"!vec"')
00:15:27 v #11708 > 00:15:26 d #648 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/58c5cad716e0a4f9a3c4384df5bbd65bf41d5122a136dd65021c379310f5b742/main.spi
00:15:27 v #11709 > >
00:15:27 v #11710 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:27 v #11711 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:27 v #11712 > > │ ### vec_reverse                                                              │
00:15:27 v #11713 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:27 v #11714 > >
00:15:27 v #11715 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:27 v #11716 > > inl vec_reverse forall el. (vec : vec el) : vec el =
00:15:27 v #11717 > >     inl vec = join vec
00:15:27 v #11718 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:15:27 v #11719 > >     (!\($'"true; !vec.reverse()"') : bool) |> ignore
00:15:27 v #11720 > >     !\($'"!vec"')
00:15:27 v #11721 > 00:15:27 d #649 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8dda5deb648a93e355de8036dd3bbc3bfd195359f4655dd035511ed80529472a/main.spi
00:15:28 v #11722 > >
00:15:28 v #11723 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:28 v #11724 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:28 v #11725 > > │ ### vec_retain                                                               │
00:15:28 v #11726 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:28 v #11727 > >
00:15:28 v #11728 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:28 v #11729 > > inl vec_retain forall el. (fn : el -> bool) (vec : vec el) : vec el =
00:15:28 v #11730 > >     inl vec = join vec
00:15:28 v #11731 > >     inl fn = join fn
00:15:28 v #11732 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:15:28 v #11733 > >     // inl vec = vec |> rust.to_mut
00:15:28 v #11734 > >     (!\($'"true; !vec.retain(|x| !fn(x.clone()))"') : bool) |> ignore
00:15:28 v #11735 > >     !\($'"!vec"')
00:15:28 v #11736 > 00:15:27 d #650 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/63acb804b7b896469bb7e3fdebbc0fba5a0f26063daf122b7d0fbd7062d264a2/main.spi
00:15:28 v #11737 > >
00:15:28 v #11738 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:28 v #11739 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:28 v #11740 > > │ ### vec_sort_by_key                                                          │
00:15:28 v #11741 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:28 v #11742 > >
00:15:28 v #11743 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:28 v #11744 > > inl vec_sort_by_key forall el t. (fn : el -> t) (vec : vec el) : vec el =
00:15:28 v #11745 > >     inl vec = join vec
00:15:28 v #11746 > >     inl fn = join fn
00:15:28 v #11747 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:15:28 v #11748 > >     // inl vec = vec |> rust.to_mut
00:15:28 v #11749 > >     (!\($'"true; !vec.sort_by_key(|x| !fn(x.clone()))"') : bool) |> ignore
00:15:28 v #11750 > >     !\($'"!vec"')
00:15:28 v #11751 > 00:15:28 d #651 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5fea0e54df2fb9436fd165d65708b968d8f420b99d8943319ceb86f00e61b38f/main.spi
00:15:29 v #11752 > >
00:15:29 v #11753 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:29 v #11754 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:29 v #11755 > > │ ### vec_extend                                                               │
00:15:29 v #11756 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:29 v #11757 > >
00:15:29 v #11758 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:29 v #11759 > > inl vec_extend forall el. (el : vec el) (vec : vec el) : vec el =
00:15:29 v #11760 > >     inl el = join el
00:15:29 v #11761 > >     inl vec = join vec
00:15:29 v #11762 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:15:29 v #11763 > >     // inl vec = vec |> rust.to_mut
00:15:29 v #11764 > >     (!\($'"true; !vec.extend(!el)"') : bool) |> ignore
00:15:29 v #11765 > >     !\($'"!vec"')
00:15:29 v #11766 > 00:15:28 d #652 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af594b817fab881295baeabb0626089ccce42f89904b3583462dd307f010ad6b/main.spi
00:15:29 v #11767 > >
00:15:29 v #11768 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:29 v #11769 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:29 v #11770 > > │ ### vec_collect                                                              │
00:15:29 v #11771 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:29 v #11772 > >
00:15:29 v #11773 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:29 v #11774 > > inl vec_collect fn vec =
00:15:29 v #11775 > >     ((;[[]] |> to_vec), (vec |> from_vec : _ i32 _))
00:15:29 v #11776 > >     ||> am.fold fun acc x =>
00:15:29 v #11777 > >         acc |> vec_extend (fn x)
00:15:29 v #11778 > 00:15:29 d #653 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a12df41814aba1a79511a599948b4fc6f31b962788c0f3fda2ae6f3dc88dc0ca/main.spi
00:15:29 v #11779 > >
00:15:29 v #11780 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:29 v #11781 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:29 v #11782 > > │ ### vec_collect_option                                                       │
00:15:29 v #11783 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:29 v #11784 > >
00:15:29 v #11785 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:29 v #11786 > > inl vec_collect_option vec =
00:15:29 v #11787 > >     ((;[[]] |> to_vec |> Ok), (vec |> from_vec : _ i32 _))
00:15:29 v #11788 > >     ||> am.fold fun acc x =>
00:15:29 v #11789 > >         x
00:15:29 v #11790 > >         |> resultm.unbox
00:15:29 v #11791 > >         |> fun x =>
00:15:29 v #11792 > >             match acc, x |> resultm.map optionm'.unbox with
00:15:29 v #11793 > >             | Ok acc, Ok (Some x) => acc |> vec_extend x |> Ok
00:15:29 v #11794 > >             | _, Error error => error |> Error
00:15:29 v #11795 > >             | _ => acc
00:15:30 v #11796 > 00:15:29 d #654 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/da108da758a882c89d203ebab0ded9896f74de69a3d89045d808a2df0f6ce98e/main.spi
00:15:30 v #11797 > >
00:15:30 v #11798 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:30 v #11799 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:30 v #11800 > > │ ### vec_collect_into                                                         │
00:15:30 v #11801 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:30 v #11802 > >
00:15:30 v #11803 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:30 v #11804 > > inl vec_collect_into forall (c : * -> * -> *) t e.
00:15:30 v #11805 > >     (x : vec (c t e))
00:15:30 v #11806 > >     : c (vec t) e
00:15:30 v #11807 > >     =
00:15:30 v #11808 > >     !\($'"!x.into_iter().collect()"')
00:15:30 v #11809 > 00:15:29 d #655 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48a8f0ed68e9fb41e85cdf4389f4f5db6d79579b7bcdc80ad5cb085716bb00e0/main.spi
00:15:30 v #11810 > >
00:15:30 v #11811 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:30 v #11812 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:30 v #11813 > > │ ### vec_mapi                                                                 │
00:15:30 v #11814 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:30 v #11815 > >
00:15:30 v #11816 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:30 v #11817 > > inl vec_mapi forall dim t u. (fn : dim -> t -> u) (ar : vec t) : vec u =
00:15:30 v #11818 > >     inl fn = join fn
00:15:30 v #11819 > >     inl ar = join ar
00:15:30 v #11820 > >     !\($'"!ar.iter().enumerate().map(|(i, x)|
00:15:30 v #11821 > > !fn(i.try_into().unwrap())(x.clone())).collect::<Vec<_>>()"')
00:15:31 v #11822 > 00:15:30 d #656 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/18b53c1522387188ce06177ee8359e3a66500e6a53d60485389dcb907825271f/main.spi
00:15:31 v #11823 > >
00:15:31 v #11824 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:31 v #11825 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:31 v #11826 > > │ ### vec_map                                                                  │
00:15:31 v #11827 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:31 v #11828 > >
00:15:31 v #11829 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:31 v #11830 > > inl vec_map forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:15:31 v #11831 > >     (!\\(ar, $'"true; let _vec_map : Vec<_> = $0.into_iter().map(|x| { //"') :
00:15:31 v #11832 > > bool) |> ignore
00:15:31 v #11833 > >     inl result = fn !\($'"x"')
00:15:31 v #11834 > >     inl is_unit =
00:15:31 v #11835 > >         real
00:15:31 v #11836 > >             typecase u with
00:15:31 v #11837 > >             | () => true
00:15:31 v #11838 > >             | _ => false
00:15:31 v #11839 > >     if is_unit
00:15:31 v #11840 > >     then (!\($'"true; }}).collect::<Vec<_>>()"') : bool) |> ignore
00:15:31 v #11841 > >     else (!\\(result, $'"true; $0 }).collect::<Vec<_>>()"') : bool) |> ignore
00:15:31 v #11842 > >     !\($'"_vec_map"')
00:15:31 v #11843 > 00:15:30 d #657 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0c7397be0df3848e131eb8270205ecd415d4e549f81886665cff6c4e2b0639b3/main.spi
00:15:31 v #11844 > >
00:15:31 v #11845 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:31 v #11846 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:31 v #11847 > > │ ### vec_map'                                                                 │
00:15:31 v #11848 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:31 v #11849 > >
00:15:31 v #11850 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:31 v #11851 > > inl vec_map' forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:15:31 v #11852 > >     !\\((ar, fn), $'"$0.into_iter().map(|x|
00:15:31 v #11853 > > $1(x.clone())).collect::<Vec<_>>()"')
00:15:31 v #11854 > 00:15:31 d #658 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/87057d3f443b32d1e3038074d34838c16605a313bf3066789e31cc74d21943e8/main.spi
00:15:32 v #11855 > >
00:15:32 v #11856 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:32 v #11857 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:32 v #11858 > > │ ### vec_fold'                                                                │
00:15:32 v #11859 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:32 v #11860 > >
00:15:32 v #11861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:32 v #11862 > > inl vec_fold' forall t u. (fn : u -> t -> u) (init : u) (ar : vec t) : u =
00:15:32 v #11863 > >     (!\\(ar, $'"true; let _vec_fold_ = $0.into_iter().fold(!init, |acc, x| {
00:15:32 v #11864 > > //"') : bool) |> ignore
00:15:32 v #11865 > >     (!\\(fn !\($'"acc"') !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:15:32 v #11866 > >     !\($'"_vec_fold_"')
00:15:32 v #11867 > 00:15:31 d #659 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11884cbf0053f8c0fa65a7f0fb3d6240f94d9f4f0af003b7fef092d7489d6021/main.spi
00:15:32 v #11868 > >
00:15:32 v #11869 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:32 v #11870 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:32 v #11871 > > │ ### vec_for_each                                                             │
00:15:32 v #11872 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:32 v #11873 > >
00:15:32 v #11874 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:32 v #11875 > > inl vec_for_each forall t. (fn : t -> ()) (ar : vec t) : () =
00:15:32 v #11876 > >     (!\\((ar, fn), $'"true; $0.iter().for_each(|x| { $1(x.clone()); }); //"') :
00:15:32 v #11877 > > bool) |> ignore
00:15:32 v #11878 > 00:15:31 d #660 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9447da9298a9d542112e42a533f62624e3ef44017b28bdd50f0357fd76c83a47/main.spi
00:15:32 v #11879 > >
00:15:32 v #11880 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:32 v #11881 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:32 v #11882 > > │ ### vec_for_each'                                                            │
00:15:32 v #11883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:32 v #11884 > >
00:15:32 v #11885 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:32 v #11886 > > inl vec_for_each' forall t. (fn : t -> ()) (ar : vec t) : () =
00:15:32 v #11887 > >     (!\\(ar, $'"true; $0.into_iter().for_each(|x| { //"') : bool) |> ignore
00:15:32 v #11888 > >     (!\\(fn !\($'"x"'), $'$"true"') : bool) |> ignore
00:15:32 v #11889 > >     (!\($'"true; }}); { //"') : bool) |> ignore
00:15:33 v #11890 > 00:15:32 d #661 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8bc1229c5f98baf7e40eb05b1037a4318feeb7a3157b8fcfa04002de603fc10a/main.spi
00:15:33 v #11891 > >
00:15:33 v #11892 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:33 v #11893 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:33 v #11894 > > │ ### vec_for_each''                                                           │
00:15:33 v #11895 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:33 v #11896 > >
00:15:33 v #11897 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:33 v #11898 > > inl vec_for_each'' forall t. (fn : t -> ()) (ar : vec t) : () =
00:15:33 v #11899 > >     (!\\(ar, $'"true; $0.into_iter().for_each(|x| { //"') : bool) |> ignore
00:15:33 v #11900 > >     (!\\(fn !\($'"x"'), $'$"true"') : bool) |> ignore
00:15:33 v #11901 > >     (!\($'"true; }}); //"') : bool) |> ignore
00:15:33 v #11902 > 00:15:32 d #662 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce3ad1abf4becbf9fcf1cb7bf01677fea368e9f62d430ed1472792ecdcde4376/main.spi
00:15:33 v #11903 > >
00:15:33 v #11904 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:33 v #11905 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:33 v #11906 > > │ ### vec_for_each'''                                                          │
00:15:33 v #11907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:33 v #11908 > >
00:15:33 v #11909 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:33 v #11910 > > inl vec_for_each''' forall t. (fn : t -> ()) (ar : vec t) : () =
00:15:33 v #11911 > >     (!\\(ar, $'"true; $0.into_iter().for_each(|x| { //"') : bool) |> ignore
00:15:33 v #11912 > >     (!\\(fn !\($'"x"'), $'$"true"') : bool) |> ignore
00:15:33 v #11913 > >     (!\($'"true; }); //"') : bool) |> ignore
00:15:33 v #11914 > 00:15:33 d #663 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a9d986998104b910bc52fac347e28871a4b7a011e8399a7e23f6745978903f74/main.spi
00:15:34 v #11915 > >
00:15:34 v #11916 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:34 v #11917 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:34 v #11918 > > │ ### vec_filter                                                               │
00:15:34 v #11919 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:34 v #11920 > >
00:15:34 v #11921 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:34 v #11922 > > inl vec_filter forall t. (fn : t -> bool) (ar : vec t) : vec t =
00:15:34 v #11923 > >     inl fn = join fn
00:15:34 v #11924 > >     inl ar = join ar
00:15:34 v #11925 > >     !\($'"!ar.into_iter().filter(|x|
00:15:34 v #11926 > > !fn(x.clone().clone())).collect::<Vec<_>>()"')
00:15:34 v #11927 > 00:15:33 d #664 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f52d23c51db7bbbcb521c8e148cad3354dd9ff394a2614a29e44e11a2707f63b/main.spi
00:15:34 v #11928 > >
00:15:34 v #11929 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:34 v #11930 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:34 v #11931 > > │ ### vec_len                                                                  │
00:15:34 v #11932 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:34 v #11933 > >
00:15:34 v #11934 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:34 v #11935 > > inl vec_len forall t. (vec : vec t) : unativeint =
00:15:34 v #11936 > >     !\\(vec, $'"$0.len()"')
00:15:34 v #11937 > 00:15:34 d #665 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c62bc23b020a6a2e257e775cfce9f790f62dfcbbee5c58f3ca4dd43a647613e3/main.spi
00:15:35 v #11938 > >
00:15:35 v #11939 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:35 v #11940 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:35 v #11941 > > │ ### vec_chunks                                                               │
00:15:35 v #11942 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:35 v #11943 > >
00:15:35 v #11944 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:35 v #11945 > > inl vec_chunks forall t. (n : i32) (vec : vec t) : vec (vec t) =
00:15:35 v #11946 > >     !\\(vec, $'"$0.chunks(!n).map(|x| x.into_iter().map(|x|
00:15:35 v #11947 > > x.clone()).collect::<Vec<_>>()).collect::<Vec<_>>()"')
00:15:35 v #11948 > 00:15:34 d #666 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cdd0b185f52d562d230c147ab90e541da2d3d1d41cda322053fe36a7b9f8ff14/main.spi
00:15:35 v #11949 > >
00:15:35 v #11950 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:35 v #11951 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:35 v #11952 > > │ ### slice                                                                    │
00:15:35 v #11953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:35 v #11954 > >
00:15:35 v #11955 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:35 v #11956 > > nominal slice t =
00:15:35 v #11957 > >     `(
00:15:35 v #11958 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:15:35 v #11959 > > Fable.Core.Emit(\"[[$0]]\")>]]\n#endif\ntype Slice<'T> = class end"
00:15:35 v #11960 > >         $'' : $'Slice<`t>'
00:15:35 v #11961 > >     )
00:15:35 v #11962 > 00:15:34 d #667 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c1a9266a3c2657ea1b4c1767e263ba5ef812a230f8a92f9f5d7e7fe0ddf1dd4/main.spi
00:15:35 v #11963 > >
00:15:35 v #11964 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:35 v #11965 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:35 v #11966 > > │ ### slice'                                                                   │
00:15:35 v #11967 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:35 v #11968 > >
00:15:35 v #11969 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:35 v #11970 > > nominal slice' el dim =
00:15:35 v #11971 > >     `(
00:15:35 v #11972 > >         backend_switch `(()) `({}) {
00:15:35 v #11973 > >             Fsharp =
00:15:35 v #11974 > >                 (fun () =>
00:15:35 v #11975 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:15:35 v #11976 > > Fable.Core.Emit(\"_\")>]]\n#endif\ntype Slice'<'T> = class end"
00:15:35 v #11977 > >                 ) : () -> ()
00:15:35 v #11978 > >         }
00:15:35 v #11979 > >         $'' : $'Slice\'<`el>'
00:15:35 v #11980 > >     )
00:15:36 v #11981 > 00:15:35 d #668 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00efc5e01d5a4f558007322fe5070e2cceb9e66cad3f4c6b9f20b3104019e222/main.spi
00:15:36 v #11982 > >
00:15:36 v #11983 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:36 v #11984 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:36 v #11985 > > │ ### slice''                                                                  │
00:15:36 v #11986 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:36 v #11987 > >
00:15:36 v #11988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:36 v #11989 > > nominal slice'' el dim =
00:15:36 v #11990 > >     `(
00:15:36 v #11991 > >         backend_switch `(()) `({}) {
00:15:36 v #11992 > >             Fsharp =
00:15:36 v #11993 > >                 (fun () =>
00:15:36 v #11994 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:15:36 v #11995 > > Fable.Core.Emit(\"[[$0; 10]]\")>]]\n#endif\ntype Slice'_<'T> = class end"
00:15:36 v #11996 > >                 ) : () -> ()
00:15:36 v #11997 > >         }
00:15:36 v #11998 > >         $'' : $'Slice\'_<`el>'
00:15:36 v #11999 > >     )
00:15:36 v #12000 > 00:15:35 d #669 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/24f41e8de5a4f32edf11ebddb967194022b2efc19f2ac0dc3d05a4b826f8a4b1/main.spi
00:15:36 v #12001 > >
00:15:36 v #12002 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:36 v #12003 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:36 v #12004 > > │ ### slice_singleton                                                          │
00:15:36 v #12005 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:36 v #12006 > >
00:15:36 v #12007 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:36 v #12008 > > inl slice_singleton forall dim el. (x : option el) : slice' el dim =
00:15:36 v #12009 > >     match x with
00:15:36 v #12010 > >     | Some x => !\($'"[[!x]]"')
00:15:36 v #12011 > >     | None =>
00:15:36 v #12012 > >         !\($'"[[\\\"\\\".to_string()]]"') : slice' el dim
00:15:36 v #12013 > >             // emit_expr `(()) `(slice' el dim) () ($'"[[@dim]]"' : string) :
00:15:36 v #12014 > > slice' el 10
00:15:36 v #12015 > >             // !\( : string) : slice' el i32 // !\($'"[[]]"')
00:15:36 v #12016 > 00:15:36 d #670 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2ecd7d50fefcc80c080e45b7e965b8d053a53677c2b01558c357281c9e7d597e/main.spi
00:15:37 v #12017 > >
00:15:37 v #12018 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:37 v #12019 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:37 v #12020 > > │ ### slice_length                                                             │
00:15:37 v #12021 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:37 v #12022 > >
00:15:37 v #12023 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:37 v #12024 > > inl slice_length forall t dim. (x : slice' t dim) : unativeint =
00:15:37 v #12025 > >     !\($'"!x.len()"')
00:15:37 v #12026 > 00:15:36 d #671 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d389f2308951ba1fc0f1b30942119e7d5186dad94e10b5ba293256cfe05b463/main.spi
00:15:37 v #12027 > >
00:15:37 v #12028 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:37 v #12029 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:37 v #12030 > > │ ### slice_range                                                              │
00:15:37 v #12031 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:37 v #12032 > >
00:15:37 v #12033 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:37 v #12034 > > inl slice_range forall t dim. (start : range t) (end : range t) (s : slice' t
00:15:37 v #12035 > > dim) : rust.ref (slice' t dim) =
00:15:37 v #12036 > >     inl len = s |> slice_length
00:15:37 v #12037 > >     inl start, (end : unativeint) =
00:15:37 v #12038 > >         match start, end with
00:15:37 v #12039 > >         | Start start, End fn => start, len |> convert |> fn |> convert
00:15:37 v #12040 > >         | End start_fn, End end_fn => len |> convert |> start_fn, len |> convert
00:15:37 v #12041 > > |> end_fn |> convert
00:15:37 v #12042 > >     match start, end with
00:15:37 v #12043 > >     | start, end when unbox end =. len => !\($'"&!s[[!start..]]"')
00:15:37 v #12044 > >     | start, end => !\\((start, end), $'"&!s[[$0..$1]]"')
00:15:37 v #12045 > 00:15:36 d #672 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b9a6aa950d7806490adc7a2cb30c70a5de5397cdc45c447d1310b806d231e436/main.spi
00:15:37 v #12046 > >
00:15:37 v #12047 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:37 v #12048 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:37 v #12049 > > │ ### new_slice                                                                │
00:15:37 v #12050 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:37 v #12051 > >
00:15:37 v #12052 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:37 v #12053 > > inl new_slice forall el dim. (el : el) : slice' el dim =
00:15:37 v #12054 > >     !\\(el, $'"[[$0; @dim]]"')
00:15:38 v #12055 > 00:15:37 d #673 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f26f92643e38199c277ca61068ad11027ceaeb9021686ba1aca919074fe79fb3/main.spi
00:15:38 v #12056 > >
00:15:38 v #12057 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:38 v #12058 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:38 v #12059 > > │ ### as_slice                                                                 │
00:15:38 v #12060 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:38 v #12061 > >
00:15:38 v #12062 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:38 v #12063 > > inl as_slice forall t. (x : array_base t) : rust.ref (slice t) =
00:15:38 v #12064 > >     inl x = x |> to_vec
00:15:38 v #12065 > >     !\($'"!x.as_slice()"')
00:15:38 v #12066 > 00:15:37 d #674 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75c858c315e2950865a6b657c3df82d51413c80fd3c5d16ce002aacbd5d00ff1/main.spi
00:15:38 v #12067 > >
00:15:38 v #12068 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:38 v #12069 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:38 v #12070 > > │ ### slice_to_vec                                                             │
00:15:38 v #12071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:38 v #12072 > >
00:15:38 v #12073 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:38 v #12074 > > inl slice_to_vec forall t. (slice : rust.ref (slice t)) : vec t =
00:15:38 v #12075 > >     !\\(slice, $'"$0.iter().map(|x| *x).collect::<Vec<_>>()"')
00:15:38 v #12076 > 00:15:38 d #675 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2bb7141c381780c08d8fbca6534f05ae9c7748cadea4ac71c583feb650c10cb2/main.spi
00:15:39 v #12077 > >
00:15:39 v #12078 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:39 v #12079 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:39 v #12080 > > │ ### to_le_bytes                                                              │
00:15:39 v #12081 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:39 v #12082 > >
00:15:39 v #12083 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:39 v #12084 > > inl to_le_bytes forall t. (x : t) : slice' u8 8 =
00:15:39 v #12085 > >     !\($'$"!x.to_le_bytes()"')
00:15:39 v #12086 > 00:15:38 d #676 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff326bcf1950905c7cee21ae9d1f6aab2e77a9855582c699edba7fb2e473d5c4/main.spi
00:15:39 v #12087 > >
00:15:39 v #12088 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:39 v #12089 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:39 v #12090 > > │ ### as_bytes                                                                 │
00:15:39 v #12091 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:39 v #12092 > >
00:15:39 v #12093 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:39 v #12094 > > inl as_bytes forall t. (x : t) : rust.ref (slice u8) =
00:15:39 v #12095 > >     !\($'$"!x.as_bytes()"')
00:15:39 v #12096 > 00:15:39 d #677 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b1b47160e17692d21c69ecb06f9c087a966188842cbe1d8c6cf48cfa70a7dd79/main.spi
00:15:40 v #12097 > >
00:15:40 v #12098 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:40 v #12099 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:40 v #12100 > > │ ### any                                                                      │
00:15:40 v #12101 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:40 v #12102 > >
00:15:40 v #12103 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:40 v #12104 > > inl any forall t. (fn : t -> bool) (source : array_base t) : bool =
00:15:40 v #12105 > >     !\($'"!source.any(|x| !fn(x))"')
00:15:40 v #12106 > 00:15:39 d #678 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b891d9684e749f517b51b7de2fb2e0ad192b6f1163440495339dc9aae3f335b0/main.spi
00:15:40 v #12107 > >
00:15:40 v #12108 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:40 v #12109 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:40 v #12110 > > │ ### iter_collect vec                                                         │
00:15:40 v #12111 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:40 v #12112 > >
00:15:40 v #12113 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:40 v #12114 > > instance iter_collect vec = fun (iter : into_iterator u) =>
00:15:40 v #12115 > >     !\\(iter, $'"$0.collect::<Vec<_>>()"')
00:15:40 v #12116 > >
00:15:40 v #12117 > > instance iter_collect'' vec = fun (iter : into_iterator (t (u v))) =>
00:15:40 v #12118 > >     !\\(iter, $'"$0.collect::<Vec<_>>()"')
00:15:40 v #12119 > 00:15:39 d #679 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fab85fe32b3139e5e21eb125dface114d21e5035e1d067a6580894f8c4c83f92/main.spi
00:15:40 v #12120 > >
00:15:40 v #12121 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:40 v #12122 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:40 v #12123 > > │ ### new_vec                                                                  │
00:15:40 v #12124 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:40 v #12125 > >
00:15:40 v #12126 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:40 v #12127 > > inl new_vec forall t. (items : list t) : vec t =
00:15:40 v #12128 > >     inl items =
00:15:40 v #12129 > >         (items, ("", 0i32))
00:15:40 v #12130 > >         ||> listm.foldBack fun (x : t) (acc, i) =>
00:15:40 v #12131 > >             inl x = join x
00:15:40 v #12132 > >             $'"!x"' +. (if i = 0 then "" else ", ") +. acc, i + 1
00:15:40 v #12133 > >         |> fst
00:15:40 v #12134 > >     !\($'"vec\![[" + !items + "]]"')
00:15:41 v #12135 > 00:15:40 d #680 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a608bfddeb5e0b4450cad717dd99f8fdaf707ace0c58c2ed75377e790b79bbda/main.spi
00:15:41 v #12136 > >
00:15:41 v #12137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:41 v #12138 > > //// test
00:15:41 v #12139 > > ///! rust
00:15:41 v #12140 > >
00:15:41 v #12141 > > [[ 0i32; 1 ]]
00:15:41 v #12142 > > |> new_vec
00:15:41 v #12143 > > |> sm'.format_debug'
00:15:41 v #12144 > > |> sm'.from_std_string
00:15:41 v #12145 > > |> _assert_eq "[[0, 1]]"
00:15:41 v #12146 > 00:15:40 d #681 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b91bbbbada74f192301c03376244232610ba0dc6a859b4fc11f3110295ca6a9/main.spi
00:15:54 v #12147 > >
00:15:54 v #12148 > > ╭─[ 13.56s - return value ]────────────────────────────────────────────────────╮
00:15:54 v #12149 > > │ __assert_eq / actual: "[0, 1]" / expected: "[0, 1]"                          │
00:15:54 v #12150 > > │                                                                              │
00:15:54 v #12151 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:54 v #12152 > >
00:15:54 v #12153 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:54 v #12154 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:54 v #12155 > > │ ## fsharp                                                                    │
00:15:54 v #12156 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:54 v #12157 > >
00:15:54 v #12158 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:54 v #12159 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:54 v #12160 > > │ ### average                                                                  │
00:15:54 v #12161 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:54 v #12162 > >
00:15:54 v #12163 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:54 v #12164 > > inl average forall el {number}. (a : a _ el) : el =
00:15:54 v #12165 > >     $'!a |> Array.average'
00:15:55 v #12166 > 00:15:54 d #682 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a228846a2356ff22524ff0f4085157413ec02f9365ee9d4c11ac327c6c970a36/main.spi
00:15:55 v #12167 > >
00:15:55 v #12168 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:55 v #12169 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:55 v #12170 > > │ ### distinct                                                                 │
00:15:55 v #12171 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:55 v #12172 > >
00:15:55 v #12173 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:55 v #12174 > > inl distinct forall dim el. (a : a dim el) : a dim el =
00:15:55 v #12175 > >     $'!a |> Array.distinct'
00:15:55 v #12176 > 00:15:54 d #683 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4973e2d7c2c5ca6cb659b9cc8088dbb3edb2c0c3c891639b0fddf9efe15e57c9/main.spi
00:15:55 v #12177 > >
00:15:55 v #12178 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:55 v #12179 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:55 v #12180 > > │ ### skip                                                                     │
00:15:55 v #12181 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:55 v #12182 > >
00:15:55 v #12183 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:55 v #12184 > > inl skip forall dim el. (n : dim) (a : a dim el) : a dim el =
00:15:55 v #12185 > >     $'!a |> Array.skip !n '
00:15:55 v #12186 > 00:15:55 d #684 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/53b637ba8db41527876ab31f4fd5ca55fc1dbcd3c8021db1b374949862b1ae70/main.spi
00:15:56 v #12187 > >
00:15:56 v #12188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:56 v #12189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:56 v #12190 > > │ ### skip_while                                                               │
00:15:56 v #12191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:56 v #12192 > >
00:15:56 v #12193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:56 v #12194 > > inl skip_while forall dim el. (fn : el -> bool) (a : a dim el) : a dim el =
00:15:56 v #12195 > >     $'!a |> Array.skipWhile !fn '
00:15:56 v #12196 > 00:15:55 d #685 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8758ae4f7f285bcc65a4c0b75e65ded218bf8dd36a2208d52f1ef03a8190134/main.spi
00:15:56 v #12197 > >
00:15:56 v #12198 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:56 v #12199 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:56 v #12200 > > │ ### to_list'                                                                 │
00:15:56 v #12201 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:56 v #12202 > >
00:15:56 v #12203 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:56 v #12204 > > inl to_list' forall dim t. (items : a dim t) : listm'.list' t =
00:15:56 v #12205 > >     $'!items |> Array.toList'
00:15:56 v #12206 > 00:15:56 d #686 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7efbfe682b7f213f5470375906f5b96d233f728522cf8cbe2a93141c98dd6ac/main.spi
00:15:56 v #12207 > >
00:15:56 v #12208 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:56 v #12209 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:56 v #12210 > > │ ### to_list_base'                                                            │
00:15:56 v #12211 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:56 v #12212 > >
00:15:56 v #12213 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:56 v #12214 > > inl to_list_base' forall t. (items : array_base t) : listm'.list' t =
00:15:56 v #12215 > >     $'!items |> Array.toList'
00:15:57 v #12216 > 00:15:56 d #687 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c5212d38c3ad7904c917a8da3bd96beadfe0d2571e0326b12dd3f5661b69f38/main.spi
00:15:57 v #12217 > >
00:15:57 v #12218 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:57 v #12219 > > //// test
00:15:57 v #12220 > > ///! fsharp
00:15:57 v #12221 > > ////! cuda
00:15:57 v #12222 > > ///! rust
00:15:57 v #12223 > > ///! typescript
00:15:57 v #12224 > > ///! python
00:15:57 v #12225 > >
00:15:57 v #12226 > > a' ;[[ -3i32; 6 ]]
00:15:57 v #12227 > > |> to_list'
00:15:57 v #12228 > > |> listm'.unbox
00:15:57 v #12229 > > |> _assert_eq [[ -3; 6 ]]
00:15:57 v #12230 > 00:15:56 d #688 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b6162a7943affe5182f3564cea39413cb7e1e67278fae8824e434bfd494c3d57/main.spi
00:16:16 v #12231 > >
00:16:16 v #12232 > > ╭─[ 19.12s - return value ]────────────────────────────────────────────────────╮
00:16:16 v #12233 > > │ .rs output:                                                                  │
00:16:16 v #12234 > > │ __assert_eq / actual: UH0_1(-3, UH0_1(6, UH0_0)) / expected: UH0_1(-3,       │
00:16:16 v #12235 > > │ UH0_1(6, UH0_0))                                                             │
00:16:16 v #12236 > > │                                                                              │
00:16:16 v #12237 > > │ .ts output:                                                                  │
00:16:16 v #12238 > > │ __assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,    │
00:16:16 v #12239 > > │ UH0_1 (6, UH0_0))                                                            │
00:16:16 v #12240 > > │                                                                              │
00:16:16 v #12241 > > │ .py output:                                                                  │
00:16:16 v #12242 > > │ __assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,    │
00:16:16 v #12243 > > │ UH0_1 (6, UH0_0))                                                            │
00:16:16 v #12244 > > │                                                                              │
00:16:16 v #12245 > > │                                                                              │
00:16:16 v #12246 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:16 v #12247 > >
00:16:16 v #12248 > > ╭─[ 19.12s - stdout ]──────────────────────────────────────────────────────────╮
00:16:16 v #12249 > > │ .fsx output:                                                                 │
00:16:16 v #12250 > > │ __assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,    │
00:16:16 v #12251 > > │ UH0_1 (6, UH0_0))                                                            │
00:16:16 v #12252 > > │                                                                              │
00:16:16 v #12253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:16 v #12254 > >
00:16:16 v #12255 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:16 v #12256 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:16 v #12257 > > │ ### parallel_map                                                             │
00:16:16 v #12258 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:16 v #12259 > >
00:16:16 v #12260 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:16 v #12261 > > inl parallel_map forall dim el el'. (fn : el -> el') (a : a dim el) : a dim el'
00:16:16 v #12262 > > =
00:16:16 v #12263 > >     $'!a |> Array.Parallel.map !fn '
00:16:16 v #12264 > 00:16:15 d #689 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe3beb03889c434f45d4e0e3c3f8e817e105d9b98af0f16c829c46297fb5d8b4/main.spi
00:16:16 v #12265 > >
00:16:16 v #12266 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:16 v #12267 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:16 v #12268 > > │ ### map'                                                                     │
00:16:16 v #12269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:16 v #12270 > >
00:16:16 v #12271 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:16 v #12272 > > inl map' forall dim el el'. (fn : el -> el') (a : a dim el) : a dim el' =
00:16:16 v #12273 > >     $'!a |> Array.map !fn '
00:16:17 v #12274 > 00:16:16 d #690 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/929a10ce8d88558ffc559807cc438d050a66ecbe32351f200ec092ac3fe34fff/main.spi
00:16:17 v #12275 > >
00:16:17 v #12276 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:17 v #12277 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:17 v #12278 > > │ ### sort_by                                                                  │
00:16:17 v #12279 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:17 v #12280 > >
00:16:17 v #12281 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:17 v #12282 > > inl sort_by forall dim el. (fn : el -> _) (a : a dim el) : a dim el =
00:16:17 v #12283 > >     $'!a |> Array.sortBy !fn '
00:16:17 v #12284 > 00:16:16 d #691 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2e8b5b86115754224b7794d4587d0530036dae699fef28762acf8f566da84203/main.spi
00:16:17 v #12285 > >
00:16:17 v #12286 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:17 v #12287 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:17 v #12288 > > │ ### sort                                                                     │
00:16:17 v #12289 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:17 v #12290 > >
00:16:17 v #12291 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:17 v #12292 > > inl sort forall dim el. (a : a dim el) : a dim el =
00:16:17 v #12293 > >     $'!a |> Array.sort'
00:16:17 v #12294 > 00:16:17 d #692 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3b9fdc4a85bb38e07a55625f1f0910036ac4b8add389f319f3800660eca89c68/main.spi
00:16:18 v #12295 > >
00:16:18 v #12296 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:18 v #12297 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:18 v #12298 > > │ ### sort_descending                                                          │
00:16:18 v #12299 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:18 v #12300 > >
00:16:18 v #12301 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:18 v #12302 > > inl sort_descending forall dim el. (a : a dim el) : a dim el =
00:16:18 v #12303 > >     $'!a |> Array.sortDescending'
00:16:18 v #12304 > 00:16:17 d #693 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f91677a5f830ade450abe4c5e872614ec71448f6df65f600efffb0f7524baa40/main.spi
00:16:18 v #12305 > >
00:16:18 v #12306 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:18 v #12307 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:18 v #12308 > > │ ### transpose                                                                │
00:16:18 v #12309 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:18 v #12310 > >
00:16:18 v #12311 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:18 v #12312 > > inl transpose forall el. (a : array_base (array_base el)) : array_base
00:16:18 v #12313 > > (array_base el) =
00:16:18 v #12314 > >     $'!a |> Array.transpose'
00:16:18 v #12315 > 00:16:17 d #694 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/53579a31e058f661466862e01e8dae4306810d4ebef77b165157ce4a372856fd/main.spi
00:16:18 v #12316 > >
00:16:18 v #12317 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:18 v #12318 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:18 v #12319 > > │ ### try_item                                                                 │
00:16:18 v #12320 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:18 v #12321 > >
00:16:18 v #12322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:18 v #12323 > > inl try_item forall dim el. (i : i32) (a : a dim el) : option el =
00:16:18 v #12324 > >     $'!a |> Array.tryItem !i ' |> optionm'.unbox
00:16:19 v #12325 > 00:16:18 d #695 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6ed7db8e1c370d8ad46ab1173f70c8f6a98e09109eed455d98a09b6c83fb06c9/main.spi
00:16:19 v #12326 > 00:03:39 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 86509 }
00:16:19 v #12327 > 00:03:39 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:20 v #12328 > 00:03:41 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/am'.dib.ipynb to html
00:16:20 v #12329 > 00:03:41 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:16:20 v #12330 > 00:03:41 v #7 !   validate(nb)
00:16:21 v #12331 > 00:03:42 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:16:21 v #12332 > 00:03:42 v #9 !   return _pygments_highlight(
00:16:23 v #12333 > 00:03:43 v #10 ! [NbConvertApp] Writing 477121 bytes to c:\home\git\polyglot\lib\spiral\am'.dib.html
00:16:23 v #12334 > 00:03:43 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 848 }
00:16:23 v #12335 > 00:03:43 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 848 }
00:16:23 v #12336 > 00:03:43 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/am''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/am''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:23 v #12337 > 00:03:44 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:16:23 v #12338 > 00:03:44 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:16:23 v #12339 > 00:03:44 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 87416 }
00:16:23 d #12340 runtime.execute_with_options_async / { exit_code = 0; output_length = 92936 }
00:16:23 d #14 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path am'.dib --retries 3
00:16:23 d #12341 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path crypto.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path crypto.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:23 v #12342 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "crypto.dib", "--retries", "3"])) }
00:16:23 v #12343 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/crypto.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/crypto.dib" --output-path "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:16:25 v #12344 > >
00:16:25 v #12345 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:25 v #12346 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:25 v #12347 > > │ # crypto                                                                     │
00:16:25 v #12348 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:29 v #12349 > >
00:16:29 v #12350 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:29 v #12351 > > open rust
00:16:29 v #12352 > > open rust_operators
00:16:30 v #12353 > 00:16:29 d #696 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd47537238fcdc924c2a6b0a99d4f87ecbbde40a43ba8772a0907b5bf4a50e9d/main.spi
00:16:30 v #12354 > >
00:16:30 v #12355 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:30 v #12356 > > //// test
00:16:30 v #12357 > >
00:16:30 v #12358 > > open testing
00:16:30 v #12359 > > open file_system_operators
00:16:30 v #12360 > 00:16:30 d #697 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44830e8d18803e477b82c4f37383caee2337b2df18e02eafbb93e644b56aa89a/main.spi
00:16:31 v #12361 > >
00:16:31 v #12362 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:31 v #12363 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:31 v #12364 > > │ ## fsharp                                                                    │
00:16:31 v #12365 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 v #12366 > >
00:16:31 v #12367 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:31 v #12368 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:31 v #12369 > > │ ### sha256                                                                   │
00:16:31 v #12370 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 v #12371 > >
00:16:31 v #12372 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:31 v #12373 > > nominal sha256 = $'System.Security.Cryptography.SHA256'
00:16:31 v #12374 > >
00:16:31 v #12375 > > inl sha256 () : sha256 =
00:16:31 v #12376 > >     $'`sha256.Create' ()
00:16:31 v #12377 > 00:16:30 d #698 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b800e847fc009f9000803ca61d17a7d97e243d471afcd2a0ca36502b75f38751/main.spi
00:16:31 v #12378 > >
00:16:31 v #12379 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:31 v #12380 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:31 v #12381 > > │ ### sha256_compute_hash                                                      │
00:16:31 v #12382 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 v #12383 > >
00:16:31 v #12384 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:31 v #12385 > > inl sha256_compute_hash (x : sha256) (data : a i32 u8) : a i32 u8 =
00:16:31 v #12386 > >     data |> $'!x.ComputeHash'
00:16:31 v #12387 > 00:16:30 d #699 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e1051ead42c0a85bce32257f115d1c60f480d884a0580a37d48d147494e9d3a9/main.spi
00:16:31 v #12388 > >
00:16:31 v #12389 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:31 v #12390 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:31 v #12391 > > │ ## rust                                                                      │
00:16:31 v #12392 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 v #12393 > >
00:16:31 v #12394 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:31 v #12395 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:31 v #12396 > > │ ### get_file_hash'                                                           │
00:16:31 v #12397 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 v #12398 > >
00:16:31 v #12399 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:31 v #12400 > > inl get_file_hash' (path : string) : result string string =
00:16:31 v #12401 > >     inl path = path |> file_system.normalize_path
00:16:31 v #12402 > >     inl exit_code, result =
00:16:31 v #12403 > >         runtime.execution_options fun x => { x with
00:16:31 v #12404 > >             command = $'$"pwsh -c \\\"(Get-FileHash \'{!path}\' -Algorithm
00:16:31 v #12405 > > SHA256).Hash\\\""'
00:16:31 v #12406 > >         }
00:16:31 v #12407 > >         |> runtime.execute_with_options
00:16:31 v #12408 > >     if exit_code = 0
00:16:31 v #12409 > >     then result |> sm'.to_lower |> Ok
00:16:31 v #12410 > >     else result |> Error
00:16:32 v #12411 > 00:16:31 d #700 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fc40d5024db02c79abc1b273a03d3bb855fd4a2c9e56b39ce8982de1999d3d05/main.spi
00:16:32 v #12412 > >
00:16:32 v #12413 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:32 v #12414 > > //// test
00:16:32 v #12415 > >
00:16:32 v #12416 > > inl file_name = "test.txt"
00:16:32 v #12417 > > inl text = "\n"
00:16:32 v #12418 > >
00:16:32 v #12419 > > inl temp_dir, disposable =
00:16:32 v #12420 > >     (file_name, text)
00:16:32 v #12421 > >     |> sm'.format_debug
00:16:32 v #12422 > >     |> crypto.hash_text
00:16:32 v #12423 > >     |> file_system.create_temp_dir'
00:16:32 v #12424 > > disposable |> use |> ignore
00:16:32 v #12425 > > inl path = temp_dir </> file_name
00:16:32 v #12426 > > text |> file_system.write_all_text_async path |> async.run_synchronously
00:16:32 v #12427 > > path
00:16:32 v #12428 > > |> get_file_hash'
00:16:32 v #12429 > > |> resultm.get
00:16:32 v #12430 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:16:32 v #12431 > 00:16:31 d #701 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5931d1936a2f8703abe45628d5dcfaa534b869bfba1522de1abfcb7d669c21fb/main.spi
00:16:42 v #12432 > >
00:16:42 v #12433 > > ╭─[ 10.40s - stdout ]──────────────────────────────────────────────────────────╮
00:16:42 v #12434 > > │ 00:00:00 d #1 runtime.execute_with_options_async / { file_name = pwsh;  │
00:16:42 v #12435 > > │ arguments = US2_0                                                            │
00:16:42 v #12436 > > │   "-c "(Get-FileHash                                                         │
00:16:42 v #12437 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/dotnet-repl/9ca8b18d-e │
00:16:42 v #12438 > > │ e77-4684-ad12-21e1354945fc/test.txt' -Algorithm SHA256).Hash""; options = {  │
00:16:42 v #12439 > > │ command = pwsh -c "(Get-FileHash                                             │
00:16:42 v #12440 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/dotnet-repl/9ca8b18d-e │
00:16:42 v #12441 > > │ e77-4684-ad12-21e1354945fc/test.txt' -Algorithm SHA256).Hash";               │
00:16:42 v #12442 > > │ cancellation_token = None; environment_variables = [||]; on_line = None;     │
00:16:42 v #12443 > > │ stdin = None; trace = true; working_directory = None } }                     │
00:16:42 v #12444 > > │ 00:00:00 v #2 >                                                         │
00:16:42 v #12445 > > │ 01BA4719C80B6FE911B091A7C05124B64EEECE964E09C058EF8F9805DACA546B             │
00:16:42 v #12446 > > │ 00:00:00 d #3 runtime.execute_with_options_async / { exit_code = 0;     │
00:16:42 v #12447 > > │ output_length = 64 }                                                         │
00:16:42 v #12448 > > │ __assert_eq / actual:                                                        │
00:16:42 v #12449 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:16:42 v #12450 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:16:42 v #12451 > > │                                                                              │
00:16:42 v #12452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:42 v #12453 > >
00:16:42 v #12454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:42 v #12455 > > //// test
00:16:42 v #12456 > > ///! rust -d chrono encoding_rs encoding_rs_io regex sha2
00:16:42 v #12457 > >
00:16:42 v #12458 > > inl file_name = "test.txt"
00:16:42 v #12459 > > inl text = "\n"
00:16:42 v #12460 > >
00:16:42 v #12461 > > inl temp_dir, disposable =
00:16:42 v #12462 > >     (file_name, text)
00:16:42 v #12463 > >     |> sm'.format_debug
00:16:42 v #12464 > >     |> crypto.hash_text
00:16:42 v #12465 > >     |> file_system.create_temp_dir'
00:16:42 v #12466 > > inl path = temp_dir </> file_name
00:16:42 v #12467 > > text |> file_system.write_all_text path
00:16:42 v #12468 > > path
00:16:42 v #12469 > > |> get_file_hash'
00:16:42 v #12470 > > |> resultm.get
00:16:42 v #12471 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:16:42 v #12472 > > disposable |> use |> ignore
00:16:42 v #12473 > 00:16:42 d #702 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14c03e68dfaeaac814b7a3e854ca0d75ecd8f5aa55f3c9d53d3787bdc4d643d1/main.spi
00:17:10 v #12474 > >
00:17:10 v #12475 > > ╭─[ 28.11s - return value ]────────────────────────────────────────────────────╮
00:17:10 v #12476 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:17:10 v #12477 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_0dbb4ba6 │
00:17:10 v #12478 > > │ 8084db3ffb379bd2541cf49e7e3215bb8b6d266a058277f72c538484\ba0aa16a-6c5a-be3f- │
00:17:10 v #12479 > > │ b526-70110c680e36 }                                                          │
00:17:10 v #12480 > > │ 00:00:00 d #2 runtime.execute_with_options / { file_name = pwsh;       │
00:17:10 v #12481 > > │ arguments = ["-c", "(Get-FileHash                                            │
00:17:10 v #12482 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_0dbb4ba │
00:17:10 v #12483 > > │ 68084db3ffb379bd2541cf49e7e3215bb8b6d266a058277f72c538484/ba0aa16a-6c5a-be3f │
00:17:10 v #12484 > > │ -b526-70110c680e36/test.txt' -Algorithm SHA256).Hash"]; options = { command  │
00:17:10 v #12485 > > │ = pwsh -c "(Get-FileHash                                                     │
00:17:10 v #12486 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_0dbb4ba │
00:17:10 v #12487 > > │ 68084db3ffb379bd2541cf49e7e3215bb8b6d266a058277f72c538484/ba0aa16a-6c5a-be3f │
00:17:10 v #12488 > > │ -b526-70110c680e36/test.txt' -Algorithm SHA256).Hash"; cancellation_token =  │
00:17:10 v #12489 > > │ None; environment_variables = Array(MutCell([])); on_line = None; stdin =    │
00:17:10 v #12490 > > │ None; trace = true; working_directory = None } }                             │
00:17:10 v #12491 > > │ 00:00:00 v #3 >                                                        │
00:17:10 v #12492 > > │ 01BA4719C80B6FE911B091A7C05124B64EEECE964E09C058EF8F9805DACA546B             │
00:17:10 v #12493 > > │ 00:00:00 v #4 runtime.execute_with_options / result / { exit_code = 0; │
00:17:10 v #12494 > > │ std_trace_length = 64 }                                                      │
00:17:10 v #12495 > > │ __assert_eq / actual:                                                        │
00:17:10 v #12496 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:17:10 v #12497 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:17:10 v #12498 > > │                                                                              │
00:17:10 v #12499 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:10 v #12500 > >
00:17:10 v #12501 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:10 v #12502 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:10 v #12503 > > │ ### sha256'                                                                  │
00:17:10 v #12504 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:10 v #12505 > >
00:17:10 v #12506 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:10 v #12507 > > nominal sha256' =
00:17:10 v #12508 > >     `(
00:17:10 v #12509 > >         backend_switch `(()) `({}) {
00:17:10 v #12510 > >             Fsharp =
00:17:10 v #12511 > >                 (fun () =>
00:17:10 v #12512 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:17:10 v #12513 > > Fable.Core.Emit(\"sha2::Sha256\")>]]\n#endif\ntype sha2_Sha256 = class end"
00:17:10 v #12514 > >                 ) : () -> ()
00:17:10 v #12515 > >         }
00:17:10 v #12516 > >         $'' : $'sha2_Sha256'
00:17:10 v #12517 > >     )
00:17:10 v #12518 > 00:17:10 d #703 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8daa4da9c383c4aa911b595a8f09866ce1cd699bc3dd662a5b22d28ac07aa07b/main.spi
00:17:11 v #12519 > >
00:17:11 v #12520 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:11 v #12521 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:11 v #12522 > > │ ### new_sha256                                                               │
00:17:11 v #12523 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:11 v #12524 > >
00:17:11 v #12525 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:11 v #12526 > > inl new_sha256 () : sha256' =
00:17:11 v #12527 > >     !\($'"let result : sha2::Sha256 = sha2::Digest::new()"')
00:17:11 v #12528 > >     !\($'"result"')
00:17:11 v #12529 > 00:17:10 d #704 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97ec1eada5b2d682630c75ffb88a43cdcafe71ef06841dcd671316d6b4d75d73/main.spi
00:17:11 v #12530 > >
00:17:11 v #12531 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:11 v #12532 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:11 v #12533 > > │ ### hasher_update                                                            │
00:17:11 v #12534 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:11 v #12535 > >
00:17:11 v #12536 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:11 v #12537 > > inl hasher_update forall el dim. (slice : rust.ref (am'.slice' el dim)) (hasher
00:17:11 v #12538 > > : sha256') : () =
00:17:11 v #12539 > >     !\($'"sha2::Digest::update(&mut !hasher, !slice)"')
00:17:11 v #12540 > 00:17:11 d #705 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/60f52fb52b296ebbad7ac2f55bfc5a68be9a1ae7bc62e4dd20c0175f4d839892/main.spi
00:17:12 v #12541 > >
00:17:12 v #12542 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:12 v #12543 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:12 v #12544 > > │ ### hasher_finalize                                                          │
00:17:12 v #12545 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:12 v #12546 > >
00:17:12 v #12547 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:12 v #12548 > > inl hasher_finalize (hasher : sha256') : rust.ref (am'.slice u8) =
00:17:12 v #12549 > >     !\($'"&sha2::Digest::finalize(!hasher)"')
00:17:12 v #12550 > 00:17:11 d #706 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94c6f6e639585c0480468535299224e57cbc9b0a097bd6ac70154a3ef947bca0/main.spi
00:17:12 v #12551 > >
00:17:12 v #12552 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:12 v #12553 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:12 v #12554 > > │ ### hash_read                                                                │
00:17:12 v #12555 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:12 v #12556 > >
00:17:12 v #12557 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:12 v #12558 > > inl hash_read data : resultm.result' string stream.io_error =
00:17:12 v #12559 > >     inl reader = data |> stream.new_buf_reader
00:17:12 v #12560 > >     (!\($'"true; let mut !reader = !reader"') : bool) |> ignore
00:17:12 v #12561 > >     inl hasher = new_sha256 ()
00:17:12 v #12562 > >     (!\($'"true; let mut !hasher = !hasher"') : bool) |> ignore
00:17:12 v #12563 > >
00:17:12 v #12564 > >     real
00:17:12 v #12565 > >         inl size = 1024
00:17:12 v #12566 > >         inl zero = convert `i32 `unativeint 0
00:17:12 v #12567 > >         inl buffer = am'.new_slice `u8 `@size 0u8
00:17:12 v #12568 > >
00:17:12 v #12569 > >         rust.loop 2 fun () =>
00:17:12 v #12570 > >             inl count = stream.buf_reader_read `u8 `@size buffer reader
00:17:12 v #12571 > >             inl count = resultm.unwrap' `unativeint `(stream.io_error) count
00:17:12 v #12572 > >
00:17:12 v #12573 > >             if (=.) `unativeint count zero then rust.break ()
00:17:12 v #12574 > >
00:17:12 v #12575 > >             hasher_update `u8 `@size
00:17:12 v #12576 > >                 (
00:17:12 v #12577 > >                     am'.slice_range `u8 `@size
00:17:12 v #12578 > >                         (am'.Start `unativeint zero)
00:17:12 v #12579 > >                         (am'.End `unativeint ((fun _ => count) : unativeint ->
00:17:12 v #12580 > > unativeint))
00:17:12 v #12581 > >                         buffer
00:17:12 v #12582 > >                 )
00:17:12 v #12583 > >                 hasher
00:17:12 v #12584 > >
00:17:12 v #12585 > >     hasher
00:17:12 v #12586 > >     |> hasher_finalize
00:17:12 v #12587 > >     |> am'.slice_to_vec
00:17:12 v #12588 > >     |> am'.vec_map (sm'.format_hex' >> sm'.from_std_string)
00:17:12 v #12589 > >     |> am'.from_vec
00:17:12 v #12590 > >     |> fun x => x : _ i32 _
00:17:12 v #12591 > >     |> seq.of_array'
00:17:12 v #12592 > >     |> sm'.concat (join "")
00:17:12 v #12593 > >     |> Ok
00:17:12 v #12594 > >     |> resultm.box
00:17:12 v #12595 > 00:17:11 d #707 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15733a473241c72d6a89a6a00577737e3796fe23b63803a9f4b40485f2a1c593/main.spi
00:17:12 v #12596 > >
00:17:12 v #12597 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:12 v #12598 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:12 v #12599 > > │ ### get_file_hash                                                            │
00:17:12 v #12600 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:12 v #12601 > >
00:17:12 v #12602 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:12 v #12603 > > inl get_file_hash (path : string) =
00:17:12 v #12604 > >     inl path = path |> file_system.normalize_path
00:17:12 v #12605 > >     inl file = path |> file_system.file_open |> resultm.unwrap'
00:17:12 v #12606 > >     inl reader = file |> stream.new_buf_reader
00:17:12 v #12607 > >     reader
00:17:12 v #12608 > >     |> hash_read
00:17:13 v #12609 > 00:17:12 d #708 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e306f306a2ad6db9a601d1a33f5723bf2c1b401a725dee15c5691e2e65c576d1/main.spi
00:17:13 v #12610 > >
00:17:13 v #12611 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:13 v #12612 > > //// test
00:17:13 v #12613 > > ///! rust -d chrono regex sha2
00:17:13 v #12614 > >
00:17:13 v #12615 > > inl file_name = join "test.txt"
00:17:13 v #12616 > > inl text = "\n"
00:17:13 v #12617 > >
00:17:13 v #12618 > > inl temp_dir, disposable =
00:17:13 v #12619 > >     (file_name, text)
00:17:13 v #12620 > >     |> sm'.format_debug
00:17:13 v #12621 > >     |> crypto.hash_text
00:17:13 v #12622 > >     |> file_system.create_temp_dir'
00:17:13 v #12623 > >
00:17:13 v #12624 > > inl path = temp_dir </> file_name
00:17:13 v #12625 > > text |> file_system.write_all_text path
00:17:13 v #12626 > >
00:17:13 v #12627 > > path
00:17:13 v #12628 > > |> get_file_hash
00:17:13 v #12629 > > |> resultm.unwrap'
00:17:13 v #12630 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:17:13 v #12631 > > disposable |> use |> ignore
00:17:13 v #12632 > 00:17:12 d #709 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/428bc27328d2680862f5767e57fcaab0f6f29dab668532f7053d99f600f00c41/main.spi
00:17:34 v #12633 > >
00:17:34 v #12634 > > ╭─[ 20.86s - return value ]────────────────────────────────────────────────────╮
00:17:34 v #12635 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:17:34 v #12636 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_bb6ff9da │
00:17:34 v #12637 > > │ d8e0d5e5e11db2eb696a819e99c6146facf131de56f50d5171047a1f\ba0aa16a-6c5a-be3f- │
00:17:34 v #12638 > > │ b526-70110c680e36 }                                                          │
00:17:34 v #12639 > > │ __assert_eq / actual:                                                        │
00:17:34 v #12640 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:17:34 v #12641 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:17:34 v #12642 > > │                                                                              │
00:17:34 v #12643 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:34 v #12644 > >
00:17:34 v #12645 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:34 v #12646 > > //// test
00:17:34 v #12647 > > ///! rust -d chrono regex sha2
00:17:34 v #12648 > >
00:17:34 v #12649 > > inl file_name = join "test.txt"
00:17:34 v #12650 > > inl text = ""
00:17:34 v #12651 > >
00:17:34 v #12652 > > inl temp_dir, disposable =
00:17:34 v #12653 > >     (file_name, text)
00:17:34 v #12654 > >     |> sm'.format_debug
00:17:34 v #12655 > >     |> crypto.hash_text
00:17:34 v #12656 > >     |> file_system.create_temp_dir'
00:17:34 v #12657 > >
00:17:34 v #12658 > > inl path = temp_dir </> file_name
00:17:34 v #12659 > > text |> file_system.write_all_text path
00:17:34 v #12660 > > path
00:17:34 v #12661 > > |> get_file_hash
00:17:34 v #12662 > > |> resultm.unwrap'
00:17:34 v #12663 > > |> _assert_eq "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
00:17:34 v #12664 > > disposable |> use |> ignore
00:17:34 v #12665 > 00:17:33 d #710 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3025ed6fa44729843e0d4626fa7e7ebd48247d289d5af6171dd96679d8827e36/main.spi
00:17:54 v #12666 > >
00:17:54 v #12667 > > ╭─[ 20.68s - return value ]────────────────────────────────────────────────────╮
00:17:54 v #12668 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:17:54 v #12669 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_942930da │
00:17:54 v #12670 > > │ 721fcee4f82607cd567593b7a54bdfd5d5088b76ae787c08b1c90aa9\c0e26dac-4cb1-4b09- │
00:17:54 v #12671 > > │ be07-ff616700f056 }                                                          │
00:17:54 v #12672 > > │ __assert_eq / actual:                                                        │
00:17:54 v #12673 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:17:54 v #12674 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:17:54 v #12675 > > │                                                                              │
00:17:54 v #12676 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:54 v #12677 > >
00:17:54 v #12678 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:54 v #12679 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:54 v #12680 > > │ ## typescript                                                                │
00:17:54 v #12681 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:54 v #12682 > >
00:17:54 v #12683 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:54 v #12684 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:54 v #12685 > > │ ### create_hash                                                              │
00:17:54 v #12686 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:54 v #12687 > >
00:17:54 v #12688 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:54 v #12689 > > inl create_hash (x : string) : any =
00:17:54 v #12690 > >     open typescript_operators
00:17:54 v #12691 > >     global "type ICryptoCreateHash = abstract createHash: x: string -> obj"
00:17:54 v #12692 > >     inl crypto : $'ICryptoCreateHash' = typescript.import_all "crypto"
00:17:54 v #12693 > >     !\\(x, $'"!crypto.createHash($0)"')
00:17:55 v #12694 > 00:17:54 d #711 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2297eaefd07c61a47592dad92a503a84b44961f021ba08af31e81e9dfafc41fb/main.spi
00:17:55 v #12695 > >
00:17:55 v #12696 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:55 v #12697 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:55 v #12698 > > │ ### hash_update                                                              │
00:17:55 v #12699 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:55 v #12700 > >
00:17:55 v #12701 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:55 v #12702 > > inl hash_update (s : string) (x : any) : any =
00:17:55 v #12703 > >     open typescript_operators
00:17:55 v #12704 > >     !\\((x, s), $'"$0.update($1, \'utf8\')"')
00:17:55 v #12705 > 00:17:54 d #712 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c4767476e705712ce53382a33708ba0eae7df97de2e670c5b268c14ae8900c9/main.spi
00:17:55 v #12706 > >
00:17:55 v #12707 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:55 v #12708 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:55 v #12709 > > │ ### hash_digest                                                              │
00:17:55 v #12710 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:55 v #12711 > >
00:17:55 v #12712 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:55 v #12713 > > inl hash_digest (s : string) (x : any) : string =
00:17:55 v #12714 > >     open typescript_operators
00:17:55 v #12715 > >     !\\((x, s), $'"$0.digest($1)"')
00:17:55 v #12716 > 00:17:54 d #713 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e54bab2bbad50146d4819a221044d4437769c30edfa93bf0be2c8bf17afceb6/main.spi
00:17:56 v #12717 > >
00:17:56 v #12718 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:56 v #12719 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:56 v #12720 > > │ ## python                                                                    │
00:17:56 v #12721 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:56 v #12722 > >
00:17:56 v #12723 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:56 v #12724 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:56 v #12725 > > │ ### py_sha256                                                                │
00:17:56 v #12726 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:56 v #12727 > >
00:17:56 v #12728 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:56 v #12729 > > nominal py_sha256 = any
00:17:56 v #12730 > 00:17:55 d #714 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/271160025d902ad9cb321a45f0655a6fc7b7337a9c2b54fb6d932ad4d4d85e79/main.spi
00:17:56 v #12731 > >
00:17:56 v #12732 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:56 v #12733 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:56 v #12734 > > │ ### hashlib_sha256                                                           │
00:17:56 v #12735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:56 v #12736 > >
00:17:56 v #12737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:56 v #12738 > > inl hashlib_sha256 () : py_sha256 =
00:17:56 v #12739 > >     backend_switch {
00:17:56 v #12740 > >         Fsharp = fun () =>
00:17:56 v #12741 > >             open python_operators
00:17:56 v #12742 > >             global "type IHashlibSha256 = abstract sha256: x: unit -> obj"
00:17:56 v #12743 > >             inl hashlib : $'IHashlibSha256' = python.import_all "hashlib"
00:17:56 v #12744 > >             !\($'"!hashlib.sha256()"') : py_sha256
00:17:56 v #12745 > >         Python = fun () =>
00:17:56 v #12746 > >             global "import hashlib"
00:17:56 v #12747 > >             $'hashlib.sha256()' : py_sha256
00:17:56 v #12748 > >     }
00:17:56 v #12749 > 00:17:55 d #715 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/843ddf02e948b16f7b7c21c1bda533bd93fa69cef991abfa0193d9c46ac7c669/main.spi
00:17:56 v #12750 > >
00:17:56 v #12751 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:56 v #12752 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:56 v #12753 > > │ ### sha256_update                                                            │
00:17:56 v #12754 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:56 v #12755 > >
00:17:56 v #12756 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:56 v #12757 > > inl sha256_update (x : string) (sha256 : py_sha256) : py_sha256 =
00:17:56 v #12758 > >     backend_switch {
00:17:56 v #12759 > >         Fsharp = fun () =>
00:17:56 v #12760 > >             open python_operators
00:17:56 v #12761 > >             !\\(x, $'"!sha256.update($0)"') : ()
00:17:56 v #12762 > >         Python = fun () =>
00:17:56 v #12763 > >             $'!sha256.update(!x)' : ()
00:17:56 v #12764 > >     }
00:17:56 v #12765 > >     sha256
00:17:57 v #12766 > 00:17:56 d #716 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7bc9867a7d1dfd7e295d504e99205c0cfe1e94cd93f6b6d9ed366169e2793739/main.spi
00:17:57 v #12767 > >
00:17:57 v #12768 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:57 v #12769 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:57 v #12770 > > │ ### sha256_hexdigest                                                         │
00:17:57 v #12771 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:57 v #12772 > >
00:17:57 v #12773 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:57 v #12774 > > inl sha256_hexdigest (sha256 : py_sha256) : string =
00:17:57 v #12775 > >     backend_switch {
00:17:57 v #12776 > >         Fsharp = fun () =>
00:17:57 v #12777 > >             open python_operators
00:17:57 v #12778 > >             !\($'"!sha256.hexdigest()"') : string
00:17:57 v #12779 > >         Python = fun () =>
00:17:57 v #12780 > >             $'!sha256.hexdigest()' : string
00:17:57 v #12781 > >     }
00:17:57 v #12782 > 00:17:56 d #717 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8de1c244b284936313d6b867f58196f914626dba2defa35dae7045bb9a3c12b7/main.spi
00:17:57 v #12783 > >
00:17:57 v #12784 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:57 v #12785 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:57 v #12786 > > │ ## crypto                                                                    │
00:17:57 v #12787 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:57 v #12788 > >
00:17:57 v #12789 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:57 v #12790 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:57 v #12791 > > │ ### hash_text                                                                │
00:17:57 v #12792 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:57 v #12793 > >
00:17:57 v #12794 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:57 v #12795 > > let hash_text (~input : string) =
00:17:57 v #12796 > >     run_target function
00:17:57 v #12797 > >         | Fsharp (Native) => fun () =>
00:17:57 v #12798 > >             inl sha256 = sha256 () |> use
00:17:57 v #12799 > >             input
00:17:57 v #12800 > >             |> sm'.utf8_get_bytes
00:17:57 v #12801 > >             |> sha256_compute_hash sha256
00:17:57 v #12802 > >             |> am.map (sm'.byte_to_string "x2")
00:17:57 v #12803 > >             |> seq.of_array'
00:17:57 v #12804 > >             |> sm'.concat (join "")
00:17:57 v #12805 > >         | TypeScript (Native) => fun () =>
00:17:57 v #12806 > >             create_hash "sha256"
00:17:57 v #12807 > >             |> hash_update input
00:17:57 v #12808 > >             |> hash_digest "hex"
00:17:57 v #12809 > >         | Rust (Native) => fun () =>
00:17:57 v #12810 > >             input
00:17:57 v #12811 > >             |> sm'.utf8_get_bytes
00:17:57 v #12812 > >             |> fun (a x) => x
00:17:57 v #12813 > >             |> am'.to_vec
00:17:57 v #12814 > >             |> stream.new_cursor
00:17:57 v #12815 > >             |> hash_read
00:17:57 v #12816 > >             |> resultm.unwrap'
00:17:57 v #12817 > >         | Python (Native) | Cuda (Native) => fun () =>
00:17:57 v #12818 > >             hashlib_sha256 ()
00:17:57 v #12819 > >             |> sha256_update (input |> sm'.encode_utf8)
00:17:57 v #12820 > >             |> sha256_hexdigest
00:17:57 v #12821 > >         | _ => fun () => null ()
00:17:57 v #12822 > 00:17:57 d #718 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/294ad3f7cfa07e10bd7b4dc7c57bad15d590f1d358d1b7c4543d3b590a082268/main.spi
00:17:58 v #12823 > >
00:17:58 v #12824 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:58 v #12825 > > //// test
00:17:58 v #12826 > > ///! fsharp
00:17:58 v #12827 > > ///! cuda
00:17:58 v #12828 > > ///! rust -d sha2
00:17:58 v #12829 > > ///! typescript
00:17:58 v #12830 > > ///! python
00:17:58 v #12831 > >
00:17:58 v #12832 > > "\n"
00:17:58 v #12833 > > |> hash_text
00:17:58 v #12834 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:17:58 v #12835 > >
00:17:58 v #12836 > > ""
00:17:58 v #12837 > > |> hash_text
00:17:58 v #12838 > > |> _assert_eq "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
00:17:58 v #12839 > 00:17:57 d #719 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/93830f46e64cebafdacbcfdf0b3a4e07d2f56d54e3431a4c95ae945d8386a2de/main.spi
00:17:58 v #12840 > 00:17:57 d #720 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2106d3bc649161e31425b4ce065d97eaf8fb4d8844942da5b0a2a76e72e1c665/main.spi
00:18:18 v #12841 > >
00:18:18 v #12842 > > ╭─[ 20.36s - return value ]────────────────────────────────────────────────────╮
00:18:18 v #12843 > > │                                                                              │
00:18:18 v #12844 > > │ .py output (Cuda):                                                           │
00:18:18 v #12845 > > │ __assert_eq / actual:                                                        │
00:18:18 v #12846 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:18:18 v #12847 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:18:18 v #12848 > > │ __assert_eq / actual:                                                        │
00:18:18 v #12849 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:18:18 v #12850 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:18:18 v #12851 > > │                                                                              │
00:18:18 v #12852 > > │                                                                              │
00:18:18 v #12853 > > │ .rs output (rust -d sha2):                                                   │
00:18:18 v #12854 > > │ __assert_eq / actual:                                                        │
00:18:18 v #12855 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:18:18 v #12856 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:18:18 v #12857 > > │ __assert_eq / actual:                                                        │
00:18:18 v #12858 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:18:18 v #12859 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:18:18 v #12860 > > │                                                                              │
00:18:18 v #12861 > > │                                                                              │
00:18:18 v #12862 > > │ .ts output:                                                                  │
00:18:18 v #12863 > > │ __assert_eq / actual:                                                        │
00:18:18 v #12864 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:18:18 v #12865 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:18:18 v #12866 > > │ __assert_eq / actual:                                                        │
00:18:18 v #12867 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:18:18 v #12868 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:18:18 v #12869 > > │                                                                              │
00:18:18 v #12870 > > │                                                                              │
00:18:18 v #12871 > > │ .py output:                                                                  │
00:18:18 v #12872 > > │ __assert_eq / actual:                                                        │
00:18:18 v #12873 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:18:18 v #12874 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:18:18 v #12875 > > │ __assert_eq / actual:                                                        │
00:18:18 v #12876 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:18:18 v #12877 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:18:18 v #12878 > > │                                                                              │
00:18:18 v #12879 > > │                                                                              │
00:18:18 v #12880 > > │                                                                              │
00:18:18 v #12881 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:18 v #12882 > >
00:18:18 v #12883 > > ╭─[ 20.36s - stdout ]──────────────────────────────────────────────────────────╮
00:18:18 v #12884 > > │ .fsx output:                                                                 │
00:18:18 v #12885 > > │ __assert_eq / actual:                                                        │
00:18:18 v #12886 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:18:18 v #12887 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:18:18 v #12888 > > │ __assert_eq / actual:                                                        │
00:18:18 v #12889 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:18:18 v #12890 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:18:18 v #12891 > > │                                                                              │
00:18:18 v #12892 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:18 v #12893 > >
00:18:18 v #12894 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:18 v #12895 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:18 v #12896 > > │ ### hash_to_port                                                             │
00:18:18 v #12897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:18 v #12898 > >
00:18:18 v #12899 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:18 v #12900 > > inl hash_to_port (text : string) : u16 =
00:18:18 v #12901 > >     inl first_letter_code = text |> sm'.index 0i32 |> i32
00:18:18 v #12902 > >     inl hash_part = text |> sm'.slice 0i32 7
00:18:18 v #12903 > >     inl combined_value = convert_i32_base 16 hash_part + first_letter_code |>
00:18:18 v #12904 > > u16
00:18:18 v #12905 > >     trace Verbose
00:18:18 v #12906 > >         fun () => "crypto.hash_to_port"
00:18:18 v #12907 > >         fun () => { first_letter_code hash_part combined_value }
00:18:18 v #12908 > >     combined_value % 48128 + 1024
00:18:18 v #12909 > 00:18:17 d #721 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/884da5f759d6752e19a695075457dd00697137b57e80049cc7b37b9e982f4c3d/main.spi
00:18:18 v #12910 > >
00:18:18 v #12911 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:18 v #12912 > > //// test
00:18:18 v #12913 > > ///! fsharp
00:18:18 v #12914 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:18:18 v #12915 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:18:18 v #12916 > > ///! rust -d sha2
00:18:18 v #12917 > > ///! typescript
00:18:18 v #12918 > > ///! python
00:18:18 v #12919 > >
00:18:18 v #12920 > > "\n"
00:18:18 v #12921 > > |> hash_text
00:18:18 v #12922 > > |> hash_to_port
00:18:18 v #12923 > > |> _assert_eq 19273
00:18:19 v #12924 > 00:18:18 d #722 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/592d01049ded55f7047f6e987599996f66b4352bc6e7ea4f13d6b9ec8add4d17/main.spi
00:18:40 v #12925 > >
00:18:40 v #12926 > > ╭─[ 22.01s - return value ]────────────────────────────────────────────────────╮
00:18:40 v #12927 > > │                                                                              │
00:18:40 v #12928 > > │ .rs output (rust -d sha2):                                                   │
00:18:40 v #12929 > > │ 00:00:00 v #1 crypto.hash_to_port / { first_letter_code = 48;          │
00:18:40 v #12930 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:18:40 v #12931 > > │ __assert_eq / actual: 19273 / expected: 19273                                │
00:18:40 v #12932 > > │                                                                              │
00:18:40 v #12933 > > │                                                                              │
00:18:40 v #12934 > > │ .ts output:                                                                  │
00:18:40 v #12935 > > │ 00:00:00 v #1 crypto.hash_to_port / { first_letter_code = 48; hash_part │
00:18:40 v #12936 > > │ = 01ba4719; combined_value = 18249 }                                         │
00:18:40 v #12937 > > │ __assert_eq / actual: 19273 / expected: 19273                                │
00:18:40 v #12938 > > │                                                                              │
00:18:40 v #12939 > > │                                                                              │
00:18:40 v #12940 > > │ .py output:                                                                  │
00:18:40 v #12941 > > │ 00:00:00 v #1 crypto.hash_to_port / { first_letter_code = 48; hash_part │
00:18:40 v #12942 > > │ = 01ba4719; combined_value = 18249 }                                         │
00:18:40 v #12943 > > │ __assert_eq / actual: 19273 / expected: 19273                                │
00:18:40 v #12944 > > │                                                                              │
00:18:40 v #12945 > > │                                                                              │
00:18:40 v #12946 > > │                                                                              │
00:18:40 v #12947 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:40 v #12948 > >
00:18:40 v #12949 > > ╭─[ 22.01s - stdout ]──────────────────────────────────────────────────────────╮
00:18:40 v #12950 > > │ .fsx output:                                                                 │
00:18:40 v #12951 > > │ 00:00:00 v #1 crypto.hash_to_port / { first_letter_code = 48; hash_part │
00:18:40 v #12952 > > │ = 01ba4719; combined_value = 18249 }                                         │
00:18:40 v #12953 > > │ __assert_eq / actual: 19273us / expected: 19273us                            │
00:18:40 v #12954 > > │                                                                              │
00:18:40 v #12955 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:40 v #12956 > >
00:18:40 v #12957 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:40 v #12958 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:40 v #12959 > > │ ## main                                                                      │
00:18:40 v #12960 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:40 v #12961 > >
00:18:40 v #12962 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:40 v #12963 > > inl main () =
00:18:40 v #12964 > >     $'let hash_text x = !hash_text x' : ()
00:18:40 v #12965 > >     $'let hash_to_port x = !hash_to_port x' : ()
00:18:41 v #12966 > 00:18:40 d #723 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ef66e9e253f923518cfd3ef2c122a0f3e3b155429a400c7e513743ebe6644cc/main.spi
00:18:41 v #12967 > 00:02:17 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 30158 }
00:18:41 v #12968 > 00:02:17 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:43 v #12969 > 00:02:19 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb to html
00:18:43 v #12970 > 00:02:19 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:18:43 v #12971 > 00:02:19 v #7 !   validate(nb)
00:18:43 v #12972 > 00:02:20 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:18:43 v #12973 > 00:02:20 v #9 !   return _pygments_highlight(
00:18:44 v #12974 > 00:02:20 v #10 ! [NbConvertApp] Writing 342238 bytes to c:\home\git\polyglot\lib\spiral\crypto.dib.html
00:18:44 v #12975 > 00:02:20 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 854 }
00:18:44 v #12976 > 00:02:20 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 854 }
00:18:44 v #12977 > 00:02:20 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/crypto.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/crypto.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:45 v #12978 > 00:02:21 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:18:45 v #12979 > 00:02:21 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:18:45 v #12980 > 00:02:21 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 31071 }
00:18:45 d #12981 runtime.execute_with_options_async / { exit_code = 0; output_length = 34828 }
00:18:45 d #15 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path crypto.dib --retries 3
00:18:45 d #12982 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path common.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path common.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:45 v #12983 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "common.dib", "--retries", "3"])) }
00:18:45 v #12984 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/common.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/common.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/common.dib" --output-path "c:/home/git/polyglot/lib/spiral/common.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:18:47 v #12985 > >
00:18:47 v #12986 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:47 v #12987 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:47 v #12988 > > │ # common                                                                     │
00:18:47 v #12989 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:51 v #12990 > >
00:18:51 v #12991 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:51 v #12992 > > //// test
00:18:51 v #12993 > >
00:18:51 v #12994 > > open testing
00:18:52 v #12995 > 00:18:51 d #724 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:18:53 v #12996 > >
00:18:53 v #12997 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:53 v #12998 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:53 v #12999 > > │ ## common                                                                    │
00:18:53 v #13000 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:53 v #13001 > >
00:18:53 v #13002 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:53 v #13003 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:53 v #13004 > > │ ### (:>)                                                                     │
00:18:53 v #13005 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:53 v #13006 > >
00:18:53 v #13007 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:53 v #13008 > > prototype (~:>) r : forall t. t -> r
00:18:53 v #13009 > 00:18:52 d #725 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/485c3b839be7453998be3029b640e2cbf18f572f374cd710b6eead3ef824b3c9/main.spi
00:18:53 v #13010 > >
00:18:53 v #13011 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:53 v #13012 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:53 v #13013 > > │ ### to_any                                                                   │
00:18:53 v #13014 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:53 v #13015 > >
00:18:53 v #13016 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:53 v #13017 > > inl to_any forall t. (obj : t) : any =
00:18:53 v #13018 > >     $'!obj '
00:18:53 v #13019 > >
00:18:53 v #13020 > > instance (~:>) any = to_any
00:18:53 v #13021 > 00:18:53 d #726 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/999fdbe1e6fd8ac2fd4a1053262e2365481b38f24c2b94592e87a9d5c638b759/main.spi
00:18:54 v #13022 > >
00:18:54 v #13023 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:54 v #13024 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:54 v #13025 > > │ ### (||>)                                                                    │
00:18:54 v #13026 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:54 v #13027 > >
00:18:54 v #13028 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:54 v #13029 > > //// test
00:18:54 v #13030 > > ///! fsharp
00:18:54 v #13031 > > ///! cuda
00:18:54 v #13032 > > ///! rust
00:18:54 v #13033 > > ///! typescript
00:18:54 v #13034 > > ///! python
00:18:54 v #13035 > >
00:18:54 v #13036 > > (3i32, 2i32)
00:18:54 v #13037 > > ||> fun a b => a - b
00:18:54 v #13038 > > |> _assert_eq 1
00:18:54 v #13039 > 00:18:53 d #727 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd15b576f5b655c9d65b55a74fee7c4d7f14d92fac83e4e835a81157fc278d70/main.spi
00:18:54 v #13040 > 00:18:53 d #728 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6e5328645466046bb167e72c59272bb9418fcc62482deeaf9242fd50b88af353/main.spi
00:19:20 v #13041 > >
00:19:20 v #13042 > > ╭─[ 26.59s - return value ]────────────────────────────────────────────────────╮
00:19:20 v #13043 > > │ .py output (Cuda):                                                           │
00:19:20 v #13044 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:19:20 v #13045 > > │                                                                              │
00:19:20 v #13046 > > │ .rs output:                                                                  │
00:19:20 v #13047 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:19:20 v #13048 > > │                                                                              │
00:19:20 v #13049 > > │ .ts output:                                                                  │
00:19:20 v #13050 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:19:20 v #13051 > > │                                                                              │
00:19:20 v #13052 > > │ .py output:                                                                  │
00:19:20 v #13053 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:19:20 v #13054 > > │                                                                              │
00:19:20 v #13055 > > │                                                                              │
00:19:20 v #13056 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:20 v #13057 > >
00:19:20 v #13058 > > ╭─[ 26.60s - stdout ]──────────────────────────────────────────────────────────╮
00:19:20 v #13059 > > │ .fsx output:                                                                 │
00:19:20 v #13060 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:19:20 v #13061 > > │                                                                              │
00:19:20 v #13062 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:20 v #13063 > >
00:19:20 v #13064 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:20 v #13065 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:20 v #13066 > > │ ### flip                                                                     │
00:19:20 v #13067 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:20 v #13068 > >
00:19:20 v #13069 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:20 v #13070 > > inl flip fn a b =
00:19:20 v #13071 > >     fn b a
00:19:20 v #13072 > 00:19:20 d #729 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f6606cc765abb9676ae88ffa81052c86d6e8478eefab56262b8820e2c6d633d0/main.spi
00:19:21 v #13073 > >
00:19:21 v #13074 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:21 v #13075 > > //// test
00:19:21 v #13076 > > ///! fsharp
00:19:21 v #13077 > > ///! cuda
00:19:21 v #13078 > > ///! rust
00:19:21 v #13079 > > ///! typescript
00:19:21 v #13080 > > ///! python
00:19:21 v #13081 > >
00:19:21 v #13082 > > (1i32, 2i32)
00:19:21 v #13083 > > ||> flip pair
00:19:21 v #13084 > > |> _assert_eq (2, 1)
00:19:21 v #13085 > 00:19:20 d #730 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e0c23a859c70f290b4cb12206ccf0532abdf6c6cdc597c4206bb4a93afff90eb/main.spi
00:19:21 v #13086 > 00:19:20 d #731 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90fc36f41e64468572a728d793796180ea6fe2e1688b7f6c7dee930bffceb10e/main.spi
00:20:09 v #13087 > >
00:20:09 v #13088 > > ╭─[ 48.62s - return value ]────────────────────────────────────────────────────╮
00:20:09 v #13089 > > │ .py output (Cuda):                                                           │
00:20:09 v #13090 > > │ __assert_eq / actual: (2, 1) / expected: (2, 1)                              │
00:20:09 v #13091 > > │                                                                              │
00:20:09 v #13092 > > │ .rs output:                                                                  │
00:20:09 v #13093 > > │ __assert_eq / actual: (2, 1) / expected: (2, 1)                              │
00:20:09 v #13094 > > │                                                                              │
00:20:09 v #13095 > > │ .ts output:                                                                  │
00:20:09 v #13096 > > │ __assert_eq / actual: 2,1 / expected: 2,1                                    │
00:20:09 v #13097 > > │                                                                              │
00:20:09 v #13098 > > │ .py output:                                                                  │
00:20:09 v #13099 > > │ __assert_eq / actual: (2, 1) / expected: (2, 1)                              │
00:20:09 v #13100 > > │                                                                              │
00:20:09 v #13101 > > │                                                                              │
00:20:09 v #13102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:09 v #13103 > >
00:20:09 v #13104 > > ╭─[ 48.62s - stdout ]──────────────────────────────────────────────────────────╮
00:20:09 v #13105 > > │ .fsx output:                                                                 │
00:20:09 v #13106 > > │ __assert_eq / actual: struct (2, 1) / expected: struct (2, 1)                │
00:20:09 v #13107 > > │                                                                              │
00:20:09 v #13108 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:09 v #13109 > >
00:20:09 v #13110 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:09 v #13111 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:09 v #13112 > > │ ### join_body                                                                │
00:20:09 v #13113 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:09 v #13114 > >
00:20:09 v #13115 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:09 v #13116 > > inl join_body body acc x =
00:20:09 v #13117 > >     if var_is x |> not
00:20:09 v #13118 > >     then body acc x
00:20:09 v #13119 > >     else
00:20:09 v #13120 > >         inl acc = dyn acc
00:20:09 v #13121 > >         join body acc x
00:20:09 v #13122 > 00:20:09 d #732 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd8a18e11de8f5a360338827472f5fba8bbcf1dfbd15f4fd4b369262477e18ea/main.spi
00:20:10 v #13123 > >
00:20:10 v #13124 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:10 v #13125 > > //// test
00:20:10 v #13126 > >
00:20:10 v #13127 > > inl rec fold_list f s = function
00:20:10 v #13128 > >     | Cons (x, x') => fold_list f (f s x) x'
00:20:10 v #13129 > >     | Nil => s
00:20:10 v #13130 > 00:20:09 d #733 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cef1e8df0710981f51ac9c7d3fe4f814ff770789e9251b942881ff83670831e9/main.spi
00:20:10 v #13131 > >
00:20:10 v #13132 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:10 v #13133 > > //// test
00:20:10 v #13134 > > ///! fsharp
00:20:10 v #13135 > > ///! cuda
00:20:10 v #13136 > > ///! rust
00:20:10 v #13137 > > ///! typescript
00:20:10 v #13138 > > ///! python
00:20:10 v #13139 > > //// print_code=true
00:20:10 v #13140 > >
00:20:10 v #13141 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:20:10 v #13142 > > |> fold_list (+) 0
00:20:10 v #13143 > > |> _assert_eq 15
00:20:10 v #13144 > 00:20:09 d #734 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e587e50d304e9e5124f073902fd8e3513440eb0c6cc7c5b7fa479d8df447b260/main.spi
00:20:10 v #13145 > 00:20:09 d #735 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7320be57e43129587415aec54a480c6af6cf50b163339fb451812bb42d8509ae/main.spi
00:20:31 v #13146 > >
00:20:31 v #13147 > > ╭─[ 21.24s - return value ]────────────────────────────────────────────────────╮
00:20:31 v #13148 > > │ .py output (Cuda):                                                           │
00:20:31 v #13149 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:20:31 v #13150 > > │                                                                              │
00:20:31 v #13151 > > │ .rs output:                                                                  │
00:20:31 v #13152 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:20:31 v #13153 > > │                                                                              │
00:20:31 v #13154 > > │ .ts output:                                                                  │
00:20:31 v #13155 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:20:31 v #13156 > > │                                                                              │
00:20:31 v #13157 > > │ .py output:                                                                  │
00:20:31 v #13158 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:20:31 v #13159 > > │                                                                              │
00:20:31 v #13160 > > │                                                                              │
00:20:31 v #13161 > > │                                                                              │
00:20:31 v #13162 > > │                                                                              │
00:20:31 v #13163 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:31 v #13164 > >
00:20:31 v #13165 > > ╭─[ 21.25s - stdout ]──────────────────────────────────────────────────────────╮
00:20:31 v #13166 > > │ .fsx:                                                                        │
00:20:31 v #13167 > > │ let rec method1 () : int32 =                                                 │
00:20:31 v #13168 > > │     3                                                                        │
00:20:31 v #13169 > > │ and method2 (v0 : bool) : bool =                                             │
00:20:31 v #13170 > > │     v0                                                                       │
00:20:31 v #13171 > > │ and closure0 (v0 : string) () : unit =                                       │
00:20:31 v #13172 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:20:31 v #13173 > > │     v1 v0                                                                    │
00:20:31 v #13174 > > │ and method0 () : unit =                                                      │
00:20:31 v #13175 > > │     let v0 : int32 = method1()                                               │
00:20:31 v #13176 > > │     let v1 : int32 = 9 + v0                                                  │
00:20:31 v #13177 > > │     let v2 : int32 = v1 + 2                                                  │
00:20:31 v #13178 > > │     let v3 : int32 = v2 + 1                                                  │
00:20:31 v #13179 > > │     let v4 : bool = v3 = 15                                                  │
00:20:31 v #13180 > > │     let v6 : bool =                                                          │
00:20:31 v #13181 > > │         if v4 then                                                           │
00:20:31 v #13182 > > │             true                                                             │
00:20:31 v #13183 > > │         else                                                                 │
00:20:31 v #13184 > > │             method2(v4)                                                      │
00:20:31 v #13185 > > │     let v7 : string = "__assert_eq"                                          │
00:20:31 v #13186 > > │     let v8 : string = $"{v7} / actual: %A{v3} / expected: %A{15}"            │
00:20:31 v #13187 > > │     let v11 : unit = ()                                                      │
00:20:31 v #13188 > > │     let v12 : (unit -> unit) = closure0(v8)                                  │
00:20:31 v #13189 > > │     let v13 : unit = (fun () -> v12 (); v11) ()                              │
00:20:31 v #13190 > > │     let v15 : bool = v6 = false                                              │
00:20:31 v #13191 > > │     if v15 then                                                              │
00:20:31 v #13192 > > │         failwith<unit> v8                                                    │
00:20:31 v #13193 > > │ method0()                                                                    │
00:20:31 v #13194 > > │                                                                              │
00:20:31 v #13195 > > │                                                                              │
00:20:31 v #13196 > > │ .rs:                                                                         │
00:20:31 v #13197 > > │ #![allow(dead_code)]                                                         │
00:20:31 v #13198 > > │ #![allow(non_camel_case_types)]                                              │
00:20:31 v #13199 > > │ #![allow(non_snake_case)]                                                    │
00:20:31 v #13200 > > │ #![allow(non_upper_case_globals)]                                            │
00:20:31 v #13201 > > │ #![allow(unreachable_code)]                                                  │
00:20:31 v #13202 > > │ #![allow(unused_attributes)]                                                 │
00:20:31 v #13203 > > │ #![allow(unused_imports)]                                                    │
00:20:31 v #13204 > > │ #![allow(unused_macros)]                                                     │
00:20:31 v #13205 > > │ #![allow(unused_parens)]                                                     │
00:20:31 v #13206 > > │ #![allow(unused_variables)]                                                  │
00:20:31 v #13207 > > │ mod module_5170bee5 {                                                        │
00:20:31 v #13208 > > │     pub mod Spiral_builder {                                                 │
00:20:31 v #13209 > > │         use super::*;                                                        │
00:20:31 v #13210 > > │         use fable_library_rust::Native_::on_startup;                         │
00:20:31 v #13211 > > │         use fable_library_rust::String_::printfn;                            │
00:20:31 v #13212 > > │         use fable_library_rust::String_::sprintf;                            │
00:20:31 v #13213 > > │         use fable_library_rust::String_::string;                             │
00:20:31 v #13214 > > │         pub fn method1() -> i32 {                                            │
00:20:31 v #13215 > > │             3_i32                                                            │
00:20:31 v #13216 > > │         }                                                                    │
00:20:31 v #13217 > > │         pub fn method2(v0: bool) -> bool {                                   │
00:20:31 v #13218 > > │             v0                                                               │
00:20:31 v #13219 > > │         }                                                                    │
00:20:31 v #13220 > > │         pub fn closure0(v0: string, unitVar: ()) {                           │
00:20:31 v #13221 > > │             printfn!("{0}", v0);                                             │
00:20:31 v #13222 > > │         }                                                                    │
00:20:31 v #13223 > > │         pub fn method0() {                                                   │
00:20:31 v #13224 > > │             let v3: i32 = 9_i32 + Spiral_builder::method1() + 2_i32 + 1_i32; │
00:20:31 v #13225 > > │             let v4: bool = v3 == 15_i32;                                     │
00:20:31 v #13226 > > │             let v6: bool = if v4 {                                           │
00:20:31 v #13227 > > │                 true                                                         │
00:20:31 v #13228 > > │             } else {                                                         │
00:20:31 v #13229 > > │                 Spiral_builder::method2(v4)                                  │
00:20:31 v #13230 > > │             };                                                               │
00:20:31 v #13231 > > │             let v8: string = sprintf!(                                       │
00:20:31 v #13232 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:20:31 v #13233 > > │                 string("__assert_eq"),                                       │
00:20:31 v #13234 > > │                 v3,                                                          │
00:20:31 v #13235 > > │                 15_i32                                                       │
00:20:31 v #13236 > > │             );                                                               │
00:20:31 v #13237 > > │             let v13: () = {                                                  │
00:20:31 v #13238 > > │                 Spiral_builder::closure0(v8.clone(), ());                    │
00:20:31 v #13239 > > │                 ()                                                           │
00:20:31 v #13240 > > │             };                                                               │
00:20:31 v #13241 > > │             if v6 == false {                                                 │
00:20:31 v #13242 > > │                 panic!("{}", v8,);                                           │
00:20:31 v #13243 > > │             }                                                                │
00:20:31 v #13244 > > │         }                                                                    │
00:20:31 v #13245 > > │         // on_startup!(Spiral_builder::method0());                           │
00:20:31 v #13246 > > │     }                                                                        │
00:20:31 v #13247 > > │ }                                                                            │
00:20:31 v #13248 > > │ pub use module_5170bee5::*;                                                  │
00:20:31 v #13249 > > │                                                                              │
00:20:31 v #13250 > > │                                                                              │
00:20:31 v #13251 > > │                                                                              │
00:20:31 v #13252 > > │ pub fn main() -> Result<(), String> { Ok(Spiral_builder::method0()) }        │
00:20:31 v #13253 > > │                                                                              │
00:20:31 v #13254 > > │ .ts:                                                                         │
00:20:31 v #13255 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.21.0/Int32.js";    │
00:20:31 v #13256 > > │ import { interpolate, toText } from                                          │
00:20:31 v #13257 > > │ "./fable_modules/fable-library-ts.4.21.0/String.js";                         │
00:20:31 v #13258 > > │                                                                              │
00:20:31 v #13259 > > │ export function method1(): int32 {                                           │
00:20:31 v #13260 > > │     return 3;                                                                │
00:20:31 v #13261 > > │ }                                                                            │
00:20:31 v #13262 > > │                                                                              │
00:20:31 v #13263 > > │ export function method2(v0: boolean): boolean {                              │
00:20:31 v #13264 > > │     return v0;                                                               │
00:20:31 v #13265 > > │ }                                                                            │
00:20:31 v #13266 > > │                                                                              │
00:20:31 v #13267 > > │ export function closure0(v0: string, unitVar: void): void {                  │
00:20:31 v #13268 > > │     console.log(v0);                                                         │
00:20:31 v #13269 > > │ }                                                                            │
00:20:31 v #13270 > > │                                                                              │
00:20:31 v #13271 > > │ export function method0(): void {                                            │
00:20:31 v #13272 > > │     const v3: int32 = (((9 + method1()) + 2) + 1) | 0;                       │
00:20:31 v #13273 > > │     const v4: boolean = v3 === 15;                                           │
00:20:31 v #13274 > > │     const v6: boolean = v4 ? true : method2(v4);                             │
00:20:31 v #13275 > > │     const v8: string = toText(interpolate("%P() / actual: %A%P() / expected: │
00:20:31 v #13276 > > │ %A%P()", ["__assert_eq", v3, 15]));                                          │
00:20:31 v #13277 > > │     let v13: any;                                                            │
00:20:31 v #13278 > > │     closure0(v8, undefined);                                                 │
00:20:31 v #13279 > > │     v13 = undefined;                                                         │
00:20:31 v #13280 > > │     if (v6 === false) {                                                      │
00:20:31 v #13281 > > │         throw new Error(v8);                                                 │
00:20:31 v #13282 > > │     }                                                                        │
00:20:31 v #13283 > > │ }                                                                            │
00:20:31 v #13284 > > │                                                                              │
00:20:31 v #13285 > > │ method0();                                                                   │
00:20:31 v #13286 > > │                                                                              │
00:20:31 v #13287 > > │                                                                              │
00:20:31 v #13288 > > │ .py:                                                                         │
00:20:31 v #13289 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:20:31 v #13290 > > │                                                                              │
00:20:31 v #13291 > > │ def method1(__unit: None=None) -> int:                                       │
00:20:31 v #13292 > > │     return 3                                                                 │
00:20:31 v #13293 > > │                                                                              │
00:20:31 v #13294 > > │                                                                              │
00:20:31 v #13295 > > │ def method2(v0: bool) -> bool:                                               │
00:20:31 v #13296 > > │     return v0                                                                │
00:20:31 v #13297 > > │                                                                              │
00:20:31 v #13298 > > │                                                                              │
00:20:31 v #13299 > > │ def closure0(v0: str, unit_var: None) -> None:                               │
00:20:31 v #13300 > > │     print(v0)                                                                │
00:20:31 v #13301 > > │                                                                              │
00:20:31 v #13302 > > │                                                                              │
00:20:31 v #13303 > > │ def method0(__unit: None=None) -> None:                                      │
00:20:31 v #13304 > > │     v3: int = (((9 + method1()) + 2) + 1) or 0                               │
00:20:31 v #13305 > > │     v4: bool = v3 == 15                                                      │
00:20:31 v #13306 > > │     v6: bool = True if v4 else method2(v4)                                   │
00:20:31 v #13307 > > │     v8: str = to_text(interpolate("%P() / actual: %A%P() / expected:         │
00:20:31 v #13308 > > │ %A%P()", ["__assert_eq", v3, 15]))                                           │
00:20:31 v #13309 > > │     v13: None                                                                │
00:20:31 v #13310 > > │     closure0(v8, None)                                                       │
00:20:31 v #13311 > > │     v13 = None                                                               │
00:20:31 v #13312 > > │     if v6 == False:                                                          │
00:20:31 v #13313 > > │         raise Exception(v8)                                                  │
00:20:31 v #13314 > > │                                                                              │
00:20:31 v #13315 > > │                                                                              │
00:20:31 v #13316 > > │                                                                              │
00:20:31 v #13317 > > │ method0()                                                                    │
00:20:31 v #13318 > > │                                                                              │
00:20:31 v #13319 > > │                                                                              │
00:20:31 v #13320 > > │ .py:                                                                         │
00:20:31 v #13321 > > │ kernel = r"""                                                                │
00:20:31 v #13322 > > │ """                                                                          │
00:20:31 v #13323 > > │ class static_array():                                                        │
00:20:31 v #13324 > > │     def __init__(self, length):                                              │
00:20:31 v #13325 > > │         self.ptr = []                                                        │
00:20:31 v #13326 > > │         for _ in range(length):                                              │
00:20:31 v #13327 > > │             self.ptr.append(None)                                            │
00:20:31 v #13328 > > │                                                                              │
00:20:31 v #13329 > > │     def __getitem__(self, index):                                            │
00:20:31 v #13330 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:20:31 v #13331 > > │ range."                                                                      │
00:20:31 v #13332 > > │         return self.ptr[index]                                               │
00:20:31 v #13333 > > │                                                                              │
00:20:31 v #13334 > > │     def __setitem__(self, index, value):                                     │
00:20:31 v #13335 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:20:31 v #13336 > > │ range."                                                                      │
00:20:31 v #13337 > > │         self.ptr[index] = value                                              │
00:20:31 v #13338 > > │                                                                              │
00:20:31 v #13339 > > │ class static_array_list(static_array):                                       │
00:20:31 v #13340 > > │     def __init__(self, length):                                              │
00:20:31 v #13341 > > │         super().__init__(length)                                             │
00:20:31 v #13342 > > │         self.length = 0                                                      │
00:20:31 v #13343 > > │                                                                              │
00:20:31 v #13344 > > │     def __getitem__(self, index):                                            │
00:20:31 v #13345 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:20:31 v #13346 > > │ range."                                                                      │
00:20:31 v #13347 > > │         return self.ptr[index]                                               │
00:20:31 v #13348 > > │                                                                              │
00:20:31 v #13349 > > │     def __setitem__(self, index, value):                                     │
00:20:31 v #13350 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:20:31 v #13351 > > │ range."                                                                      │
00:20:31 v #13352 > > │         self.ptr[index] = value                                              │
00:20:31 v #13353 > > │                                                                              │
00:20:31 v #13354 > > │     def push(self,value):                                                    │
00:20:31 v #13355 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:20:31 v #13356 > > │ to be less than the maximum length of the array."                            │
00:20:31 v #13357 > > │         self.ptr[self.length] = value                                        │
00:20:31 v #13358 > > │         self.length += 1                                                     │
00:20:31 v #13359 > > │                                                                              │
00:20:31 v #13360 > > │     def pop(self):                                                           │
00:20:31 v #13361 > > │         assert (0 < self.length), "The length before popping has to be       │
00:20:31 v #13362 > > │ greater than 0."                                                             │
00:20:31 v #13363 > > │         self.length -= 1                                                     │
00:20:31 v #13364 > > │         return self.ptr[self.length]                                         │
00:20:31 v #13365 > > │                                                                              │
00:20:31 v #13366 > > │     def unsafe_set_length(self,i):                                           │
00:20:31 v #13367 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:20:31 v #13368 > > │         self.length = i                                                      │
00:20:31 v #13369 > > │                                                                              │
00:20:31 v #13370 > > │ class dynamic_array(static_array):                                           │
00:20:31 v #13371 > > │     pass                                                                     │
00:20:31 v #13372 > > │                                                                              │
00:20:31 v #13373 > > │ class dynamic_array_list(static_array_list):                                 │
00:20:31 v #13374 > > │     def length_(self): return self.length                                    │
00:20:31 v #13375 > > │                                                                              │
00:20:31 v #13376 > > │ import cupy as cp                                                            │
00:20:31 v #13377 > > │ from dataclasses import dataclass                                            │
00:20:31 v #13378 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:20:31 v #13379 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:20:31 v #13380 > > │ string = str                                                                 │
00:20:31 v #13381 > > │                                                                              │
00:20:31 v #13382 > > │ def method1() -> i32:                                                        │
00:20:31 v #13383 > > │     return 3                                                                 │
00:20:31 v #13384 > > │ def method2(v0 : bool) -> bool:                                              │
00:20:31 v #13385 > > │     return v0                                                                │
00:20:31 v #13386 > > │ def method0() -> None:                                                       │
00:20:31 v #13387 > > │     v0 = method1()                                                           │
00:20:31 v #13388 > > │     v1 = 9 + v0                                                              │
00:20:31 v #13389 > > │     del v0                                                                   │
00:20:31 v #13390 > > │     v2 = v1 + 2                                                              │
00:20:31 v #13391 > > │     del v1                                                                   │
00:20:31 v #13392 > > │     v3 = v2 + 1                                                              │
00:20:31 v #13393 > > │     del v2                                                                   │
00:20:31 v #13394 > > │     v4 = v3 == 15                                                            │
00:20:31 v #13395 > > │     if v4:                                                                   │
00:20:31 v #13396 > > │         v6 = True                                                            │
00:20:31 v #13397 > > │     else:                                                                    │
00:20:31 v #13398 > > │         v6 = method2(v4)                                                     │
00:20:31 v #13399 > > │     del v4                                                                   │
00:20:31 v #13400 > > │     v9 = "__assert_eq"                                                       │
00:20:31 v #13401 > > │     v10 = f"{v9} / actual: {v3} / expected: {15}"                            │
00:20:31 v #13402 > > │     del v3, v9                                                               │
00:20:31 v #13403 > > │     print(v10)                                                               │
00:20:31 v #13404 > > │     v16 = v6 == False                                                        │
00:20:31 v #13405 > > │     del v6                                                                   │
00:20:31 v #13406 > > │     if v16:                                                                  │
00:20:31 v #13407 > > │         del v16                                                              │
00:20:31 v #13408 > > │         raise Exception(v10)                                                 │
00:20:31 v #13409 > > │     else:                                                                    │
00:20:31 v #13410 > > │         del v10, v16                                                         │
00:20:31 v #13411 > > │         return                                                               │
00:20:31 v #13412 > > │ def main():                                                                  │
00:20:31 v #13413 > > │     return method0()                                                         │
00:20:31 v #13414 > > │                                                                              │
00:20:31 v #13415 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:20:31 v #13416 > > │ print(result)                                                                │
00:20:31 v #13417 > > │                                                                              │
00:20:31 v #13418 > > │                                                                              │
00:20:31 v #13419 > > │ .py:                                                                         │
00:20:31 v #13420 > > │ kernel = r"""                                                                │
00:20:31 v #13421 > > │ """                                                                          │
00:20:31 v #13422 > > │ class static_array():                                                        │
00:20:31 v #13423 > > │     def __init__(self, length):                                              │
00:20:31 v #13424 > > │         self.ptr = []                                                        │
00:20:31 v #13425 > > │         for _ in range(length):                                              │
00:20:31 v #13426 > > │             self.ptr.append(None)                                            │
00:20:31 v #13427 > > │                                                                              │
00:20:31 v #13428 > > │     def __getitem__(self, index):                                            │
00:20:31 v #13429 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:20:31 v #13430 > > │ range."                                                                      │
00:20:31 v #13431 > > │         return self.ptr[index]                                               │
00:20:31 v #13432 > > │                                                                              │
00:20:31 v #13433 > > │     def __setitem__(self, index, value):                                     │
00:20:31 v #13434 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:20:31 v #13435 > > │ range."                                                                      │
00:20:31 v #13436 > > │         self.ptr[index] = value                                              │
00:20:31 v #13437 > > │                                                                              │
00:20:31 v #13438 > > │ class static_array_list(static_array):                                       │
00:20:31 v #13439 > > │     def __init__(self, length):                                              │
00:20:31 v #13440 > > │         super().__init__(length)                                             │
00:20:31 v #13441 > > │         self.length = 0                                                      │
00:20:31 v #13442 > > │                                                                              │
00:20:31 v #13443 > > │     def __getitem__(self, index):                                            │
00:20:31 v #13444 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:20:31 v #13445 > > │ range."                                                                      │
00:20:31 v #13446 > > │         return self.ptr[index]                                               │
00:20:31 v #13447 > > │                                                                              │
00:20:31 v #13448 > > │     def __setitem__(self, index, value):                                     │
00:20:31 v #13449 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:20:31 v #13450 > > │ range."                                                                      │
00:20:31 v #13451 > > │         self.ptr[index] = value                                              │
00:20:31 v #13452 > > │                                                                              │
00:20:31 v #13453 > > │     def push(self,value):                                                    │
00:20:31 v #13454 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:20:31 v #13455 > > │ to be less than the maximum length of the array."                            │
00:20:31 v #13456 > > │         self.ptr[self.length] = value                                        │
00:20:31 v #13457 > > │         self.length += 1                                                     │
00:20:31 v #13458 > > │                                                                              │
00:20:31 v #13459 > > │     def pop(self):                                                           │
00:20:31 v #13460 > > │         assert (0 < self.length), "The length before popping has to be       │
00:20:31 v #13461 > > │ greater than 0."                                                             │
00:20:31 v #13462 > > │         self.length -= 1                                                     │
00:20:31 v #13463 > > │         return self.ptr[self.length]                                         │
00:20:31 v #13464 > > │                                                                              │
00:20:31 v #13465 > > │     def unsafe_set_length(self,i):                                           │
00:20:31 v #13466 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:20:31 v #13467 > > │         self.length = i                                                      │
00:20:31 v #13468 > > │                                                                              │
00:20:31 v #13469 > > │ class dynamic_array(static_array):                                           │
00:20:31 v #13470 > > │     pass                                                                     │
00:20:31 v #13471 > > │                                                                              │
00:20:31 v #13472 > > │ class dynamic_array_list(static_array_list):                                 │
00:20:31 v #13473 > > │     def length_(self): return self.length                                    │
00:20:31 v #13474 > > │                                                                              │
00:20:31 v #13475 > > │ import cupy as cp                                                            │
00:20:31 v #13476 > > │ from dataclasses import dataclass                                            │
00:20:31 v #13477 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:20:31 v #13478 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:20:31 v #13479 > > │ string = str                                                                 │
00:20:31 v #13480 > > │                                                                              │
00:20:31 v #13481 > > │ def method1() -> i32:                                                        │
00:20:31 v #13482 > > │     return 3                                                                 │
00:20:31 v #13483 > > │ def method2(v0 : bool) -> bool:                                              │
00:20:31 v #13484 > > │     return v0                                                                │
00:20:31 v #13485 > > │ def method0() -> None:                                                       │
00:20:31 v #13486 > > │     v0 = method1()                                                           │
00:20:31 v #13487 > > │     v1 = 9 + v0                                                              │
00:20:31 v #13488 > > │     del v0                                                                   │
00:20:31 v #13489 > > │     v2 = v1 + 2                                                              │
00:20:31 v #13490 > > │     del v1                                                                   │
00:20:31 v #13491 > > │     v3 = v2 + 1                                                              │
00:20:31 v #13492 > > │     del v2                                                                   │
00:20:31 v #13493 > > │     v4 = v3 == 15                                                            │
00:20:31 v #13494 > > │     if v4:                                                                   │
00:20:31 v #13495 > > │         v6 = True                                                            │
00:20:31 v #13496 > > │     else:                                                                    │
00:20:31 v #13497 > > │         v6 = method2(v4)                                                     │
00:20:31 v #13498 > > │     del v4                                                                   │
00:20:31 v #13499 > > │     v9 = "__assert_eq"                                                       │
00:20:31 v #13500 > > │     v10 = f"{v9} / actual: {v3} / expected: {15}"                            │
00:20:31 v #13501 > > │     del v3, v9                                                               │
00:20:31 v #13502 > > │     print(v10)                                                               │
00:20:31 v #13503 > > │     v16 = v6 == False                                                        │
00:20:31 v #13504 > > │     del v6                                                                   │
00:20:31 v #13505 > > │     if v16:                                                                  │
00:20:31 v #13506 > > │         del v16                                                              │
00:20:31 v #13507 > > │         raise Exception(v10)                                                 │
00:20:31 v #13508 > > │     else:                                                                    │
00:20:31 v #13509 > > │         del v10, v16                                                         │
00:20:31 v #13510 > > │         return                                                               │
00:20:31 v #13511 > > │ def main():                                                                  │
00:20:31 v #13512 > > │     return method0()                                                         │
00:20:31 v #13513 > > │                                                                              │
00:20:31 v #13514 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:20:31 v #13515 > > │ print(result)                                                                │
00:20:31 v #13516 > > │                                                                              │
00:20:31 v #13517 > > │ .fsx output:                                                                 │
00:20:31 v #13518 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:20:31 v #13519 > > │                                                                              │
00:20:31 v #13520 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:31 v #13521 > >
00:20:31 v #13522 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:31 v #13523 > > //// test
00:20:31 v #13524 > > ///! fsharp
00:20:31 v #13525 > > ///! cuda
00:20:31 v #13526 > > ///! rust
00:20:31 v #13527 > > ///! typescript
00:20:31 v #13528 > > ///! python
00:20:31 v #13529 > > //// print_code=true
00:20:31 v #13530 > >
00:20:31 v #13531 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:20:31 v #13532 > > |> fold_list (join_body (+)) 0
00:20:31 v #13533 > > |> _assert_eq 15
00:20:31 v #13534 > 00:20:31 d #736 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51aa154a9430d1863d66b93f9534554ea44a220c6657cdee343116430546cf11/main.spi
00:20:31 v #13535 > 00:20:31 d #737 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/64d416b32f474bc59c370e32c50284af0bcd64f9b4b3078c5639ca77d16cce0e/main.spi
00:20:51 v #13536 > >
00:20:51 v #13537 > > ╭─[ 19.45s - return value ]────────────────────────────────────────────────────╮
00:20:51 v #13538 > > │ .py output (Cuda):                                                           │
00:20:51 v #13539 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:20:51 v #13540 > > │                                                                              │
00:20:51 v #13541 > > │ .rs output:                                                                  │
00:20:51 v #13542 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:20:51 v #13543 > > │                                                                              │
00:20:51 v #13544 > > │ .ts output:                                                                  │
00:20:51 v #13545 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:20:51 v #13546 > > │                                                                              │
00:20:51 v #13547 > > │ .py output:                                                                  │
00:20:51 v #13548 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:20:51 v #13549 > > │                                                                              │
00:20:51 v #13550 > > │                                                                              │
00:20:51 v #13551 > > │                                                                              │
00:20:51 v #13552 > > │                                                                              │
00:20:51 v #13553 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:51 v #13554 > >
00:20:51 v #13555 > > ╭─[ 19.46s - stdout ]──────────────────────────────────────────────────────────╮
00:20:51 v #13556 > > │ .fsx:                                                                        │
00:20:51 v #13557 > > │ let rec method1 () : int32 =                                                 │
00:20:51 v #13558 > > │     3                                                                        │
00:20:51 v #13559 > > │ and method2 (v0 : int32, v1 : int32) : int32 =                               │
00:20:51 v #13560 > > │     let v2 : int32 = v1 + v0                                                 │
00:20:51 v #13561 > > │     v2                                                                       │
00:20:51 v #13562 > > │ and method3 (v0 : bool) : bool =                                             │
00:20:51 v #13563 > > │     v0                                                                       │
00:20:51 v #13564 > > │ and closure0 (v0 : string) () : unit =                                       │
00:20:51 v #13565 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:20:51 v #13566 > > │     v1 v0                                                                    │
00:20:51 v #13567 > > │ and method0 () : unit =                                                      │
00:20:51 v #13568 > > │     let v0 : int32 = method1()                                               │
00:20:51 v #13569 > > │     let v1 : int32 = 9                                                       │
00:20:51 v #13570 > > │     let v2 : int32 = method2(v0, v1)                                         │
00:20:51 v #13571 > > │     let v3 : int32 = v2 + 2                                                  │
00:20:51 v #13572 > > │     let v4 : int32 = v3 + 1                                                  │
00:20:51 v #13573 > > │     let v5 : bool = v4 = 15                                                  │
00:20:51 v #13574 > > │     let v7 : bool =                                                          │
00:20:51 v #13575 > > │         if v5 then                                                           │
00:20:51 v #13576 > > │             true                                                             │
00:20:51 v #13577 > > │         else                                                                 │
00:20:51 v #13578 > > │             method3(v5)                                                      │
00:20:51 v #13579 > > │     let v8 : string = "__assert_eq"                                          │
00:20:51 v #13580 > > │     let v9 : string = $"{v8} / actual: %A{v4} / expected: %A{15}"            │
00:20:51 v #13581 > > │     let v12 : unit = ()                                                      │
00:20:51 v #13582 > > │     let v13 : (unit -> unit) = closure0(v9)                                  │
00:20:51 v #13583 > > │     let v14 : unit = (fun () -> v13 (); v12) ()                              │
00:20:51 v #13584 > > │     let v16 : bool = v7 = false                                              │
00:20:51 v #13585 > > │     if v16 then                                                              │
00:20:51 v #13586 > > │         failwith<unit> v9                                                    │
00:20:51 v #13587 > > │ method0()                                                                    │
00:20:51 v #13588 > > │                                                                              │
00:20:51 v #13589 > > │                                                                              │
00:20:51 v #13590 > > │ .rs:                                                                         │
00:20:51 v #13591 > > │ #![allow(dead_code)]                                                         │
00:20:51 v #13592 > > │ #![allow(non_camel_case_types)]                                              │
00:20:51 v #13593 > > │ #![allow(non_snake_case)]                                                    │
00:20:51 v #13594 > > │ #![allow(non_upper_case_globals)]                                            │
00:20:51 v #13595 > > │ #![allow(unreachable_code)]                                                  │
00:20:51 v #13596 > > │ #![allow(unused_attributes)]                                                 │
00:20:51 v #13597 > > │ #![allow(unused_imports)]                                                    │
00:20:51 v #13598 > > │ #![allow(unused_macros)]                                                     │
00:20:51 v #13599 > > │ #![allow(unused_parens)]                                                     │
00:20:51 v #13600 > > │ #![allow(unused_variables)]                                                  │
00:20:51 v #13601 > > │ mod module_84d7d073 {                                                        │
00:20:51 v #13602 > > │     pub mod Spiral_builder {                                                 │
00:20:51 v #13603 > > │         use super::*;                                                        │
00:20:51 v #13604 > > │         use fable_library_rust::Native_::on_startup;                         │
00:20:51 v #13605 > > │         use fable_library_rust::String_::printfn;                            │
00:20:51 v #13606 > > │         use fable_library_rust::String_::sprintf;                            │
00:20:51 v #13607 > > │         use fable_library_rust::String_::string;                             │
00:20:51 v #13608 > > │         pub fn method1() -> i32 {                                            │
00:20:51 v #13609 > > │             3_i32                                                            │
00:20:51 v #13610 > > │         }                                                                    │
00:20:51 v #13611 > > │         pub fn method2(v0: i32, v1: i32) -> i32 {                            │
00:20:51 v #13612 > > │             v1 + v0                                                          │
00:20:51 v #13613 > > │         }                                                                    │
00:20:51 v #13614 > > │         pub fn method3(v0: bool) -> bool {                                   │
00:20:51 v #13615 > > │             v0                                                               │
00:20:51 v #13616 > > │         }                                                                    │
00:20:51 v #13617 > > │         pub fn closure0(v0: string, unitVar: ()) {                           │
00:20:51 v #13618 > > │             printfn!("{0}", v0);                                             │
00:20:51 v #13619 > > │         }                                                                    │
00:20:51 v #13620 > > │         pub fn method0() {                                                   │
00:20:51 v #13621 > > │             let v4: i32 = Spiral_builder::method2(Spiral_builder::method1(), │
00:20:51 v #13622 > > │ 9_i32) + 2_i32 + 1_i32;                                                      │
00:20:51 v #13623 > > │             let v5: bool = v4 == 15_i32;                                     │
00:20:51 v #13624 > > │             let v7: bool = if v5 {                                           │
00:20:51 v #13625 > > │                 true                                                         │
00:20:51 v #13626 > > │             } else {                                                         │
00:20:51 v #13627 > > │                 Spiral_builder::method3(v5)                                  │
00:20:51 v #13628 > > │             };                                                               │
00:20:51 v #13629 > > │             let v9: string = sprintf!(                                       │
00:20:51 v #13630 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:20:51 v #13631 > > │                 string("__assert_eq"),                                       │
00:20:51 v #13632 > > │                 v4,                                                          │
00:20:51 v #13633 > > │                 15_i32                                                       │
00:20:51 v #13634 > > │             );                                                               │
00:20:51 v #13635 > > │             let v14: () = {                                                  │
00:20:51 v #13636 > > │                 Spiral_builder::closure0(v9.clone(), ());                    │
00:20:51 v #13637 > > │                 ()                                                           │
00:20:51 v #13638 > > │             };                                                               │
00:20:51 v #13639 > > │             if v7 == false {                                                 │
00:20:51 v #13640 > > │                 panic!("{}", v9,);                                           │
00:20:51 v #13641 > > │             }                                                                │
00:20:51 v #13642 > > │         }                                                                    │
00:20:51 v #13643 > > │         // on_startup!(Spiral_builder::method0());                           │
00:20:51 v #13644 > > │     }                                                                        │
00:20:51 v #13645 > > │ }                                                                            │
00:20:51 v #13646 > > │ pub use module_84d7d073::*;                                                  │
00:20:51 v #13647 > > │                                                                              │
00:20:51 v #13648 > > │                                                                              │
00:20:51 v #13649 > > │                                                                              │
00:20:51 v #13650 > > │ pub fn main() -> Result<(), String> { Ok(Spiral_builder::method0()) }        │
00:20:51 v #13651 > > │                                                                              │
00:20:51 v #13652 > > │ .ts:                                                                         │
00:20:51 v #13653 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.21.0/Int32.js";    │
00:20:51 v #13654 > > │ import { interpolate, toText } from                                          │
00:20:51 v #13655 > > │ "./fable_modules/fable-library-ts.4.21.0/String.js";                         │
00:20:51 v #13656 > > │                                                                              │
00:20:51 v #13657 > > │ export function method1(): int32 {                                           │
00:20:51 v #13658 > > │     return 3;                                                                │
00:20:51 v #13659 > > │ }                                                                            │
00:20:51 v #13660 > > │                                                                              │
00:20:51 v #13661 > > │ export function method2(v0: int32, v1: int32): int32 {                       │
00:20:51 v #13662 > > │     return v1 + v0;                                                          │
00:20:51 v #13663 > > │ }                                                                            │
00:20:51 v #13664 > > │                                                                              │
00:20:51 v #13665 > > │ export function method3(v0: boolean): boolean {                              │
00:20:51 v #13666 > > │     return v0;                                                               │
00:20:51 v #13667 > > │ }                                                                            │
00:20:51 v #13668 > > │                                                                              │
00:20:51 v #13669 > > │ export function closure0(v0: string, unitVar: void): void {                  │
00:20:51 v #13670 > > │     console.log(v0);                                                         │
00:20:51 v #13671 > > │ }                                                                            │
00:20:51 v #13672 > > │                                                                              │
00:20:51 v #13673 > > │ export function method0(): void {                                            │
00:20:51 v #13674 > > │     const v4: int32 = ((method2(method1(), 9) + 2) + 1) | 0;                 │
00:20:51 v #13675 > > │     const v5: boolean = v4 === 15;                                           │
00:20:51 v #13676 > > │     const v7: boolean = v5 ? true : method3(v5);                             │
00:20:51 v #13677 > > │     const v9: string = toText(interpolate("%P() / actual: %A%P() / expected: │
00:20:51 v #13678 > > │ %A%P()", ["__assert_eq", v4, 15]));                                          │
00:20:51 v #13679 > > │     let v14: any;                                                            │
00:20:51 v #13680 > > │     closure0(v9, undefined);                                                 │
00:20:51 v #13681 > > │     v14 = undefined;                                                         │
00:20:51 v #13682 > > │     if (v7 === false) {                                                      │
00:20:51 v #13683 > > │         throw new Error(v9);                                                 │
00:20:51 v #13684 > > │     }                                                                        │
00:20:51 v #13685 > > │ }                                                                            │
00:20:51 v #13686 > > │                                                                              │
00:20:51 v #13687 > > │ method0();                                                                   │
00:20:51 v #13688 > > │                                                                              │
00:20:51 v #13689 > > │                                                                              │
00:20:51 v #13690 > > │ .py:                                                                         │
00:20:51 v #13691 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:20:51 v #13692 > > │                                                                              │
00:20:51 v #13693 > > │ def method1(__unit: None=None) -> int:                                       │
00:20:51 v #13694 > > │     return 3                                                                 │
00:20:51 v #13695 > > │                                                                              │
00:20:51 v #13696 > > │                                                                              │
00:20:51 v #13697 > > │ def method2(v0: int, v1: int) -> int:                                        │
00:20:51 v #13698 > > │     return v1 + v0                                                           │
00:20:51 v #13699 > > │                                                                              │
00:20:51 v #13700 > > │                                                                              │
00:20:51 v #13701 > > │ def method3(v0: bool) -> bool:                                               │
00:20:51 v #13702 > > │     return v0                                                                │
00:20:51 v #13703 > > │                                                                              │
00:20:51 v #13704 > > │                                                                              │
00:20:51 v #13705 > > │ def closure0(v0: str, unit_var: None) -> None:                               │
00:20:51 v #13706 > > │     print(v0)                                                                │
00:20:51 v #13707 > > │                                                                              │
00:20:51 v #13708 > > │                                                                              │
00:20:51 v #13709 > > │ def method0(__unit: None=None) -> None:                                      │
00:20:51 v #13710 > > │     v4: int = ((method2(method1(), 9) + 2) + 1) or 0                         │
00:20:51 v #13711 > > │     v5: bool = v4 == 15                                                      │
00:20:51 v #13712 > > │     v7: bool = True if v5 else method3(v5)                                   │
00:20:51 v #13713 > > │     v9: str = to_text(interpolate("%P() / actual: %A%P() / expected:         │
00:20:51 v #13714 > > │ %A%P()", ["__assert_eq", v4, 15]))                                           │
00:20:51 v #13715 > > │     v14: None                                                                │
00:20:51 v #13716 > > │     closure0(v9, None)                                                       │
00:20:51 v #13717 > > │     v14 = None                                                               │
00:20:51 v #13718 > > │     if v7 == False:                                                          │
00:20:51 v #13719 > > │         raise Exception(v9)                                                  │
00:20:51 v #13720 > > │                                                                              │
00:20:51 v #13721 > > │                                                                              │
00:20:51 v #13722 > > │                                                                              │
00:20:51 v #13723 > > │ method0()                                                                    │
00:20:51 v #13724 > > │                                                                              │
00:20:51 v #13725 > > │                                                                              │
00:20:51 v #13726 > > │ .py:                                                                         │
00:20:51 v #13727 > > │ kernel = r"""                                                                │
00:20:51 v #13728 > > │ """                                                                          │
00:20:51 v #13729 > > │ class static_array():                                                        │
00:20:51 v #13730 > > │     def __init__(self, length):                                              │
00:20:51 v #13731 > > │         self.ptr = []                                                        │
00:20:51 v #13732 > > │         for _ in range(length):                                              │
00:20:51 v #13733 > > │             self.ptr.append(None)                                            │
00:20:51 v #13734 > > │                                                                              │
00:20:51 v #13735 > > │     def __getitem__(self, index):                                            │
00:20:51 v #13736 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:20:51 v #13737 > > │ range."                                                                      │
00:20:51 v #13738 > > │         return self.ptr[index]                                               │
00:20:51 v #13739 > > │                                                                              │
00:20:51 v #13740 > > │     def __setitem__(self, index, value):                                     │
00:20:51 v #13741 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:20:51 v #13742 > > │ range."                                                                      │
00:20:51 v #13743 > > │         self.ptr[index] = value                                              │
00:20:51 v #13744 > > │                                                                              │
00:20:51 v #13745 > > │ class static_array_list(static_array):                                       │
00:20:51 v #13746 > > │     def __init__(self, length):                                              │
00:20:51 v #13747 > > │         super().__init__(length)                                             │
00:20:51 v #13748 > > │         self.length = 0                                                      │
00:20:51 v #13749 > > │                                                                              │
00:20:51 v #13750 > > │     def __getitem__(self, index):                                            │
00:20:51 v #13751 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:20:51 v #13752 > > │ range."                                                                      │
00:20:51 v #13753 > > │         return self.ptr[index]                                               │
00:20:51 v #13754 > > │                                                                              │
00:20:51 v #13755 > > │     def __setitem__(self, index, value):                                     │
00:20:51 v #13756 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:20:51 v #13757 > > │ range."                                                                      │
00:20:51 v #13758 > > │         self.ptr[index] = value                                              │
00:20:51 v #13759 > > │                                                                              │
00:20:51 v #13760 > > │     def push(self,value):                                                    │
00:20:51 v #13761 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:20:51 v #13762 > > │ to be less than the maximum length of the array."                            │
00:20:51 v #13763 > > │         self.ptr[self.length] = value                                        │
00:20:51 v #13764 > > │         self.length += 1                                                     │
00:20:51 v #13765 > > │                                                                              │
00:20:51 v #13766 > > │     def pop(self):                                                           │
00:20:51 v #13767 > > │         assert (0 < self.length), "The length before popping has to be       │
00:20:51 v #13768 > > │ greater than 0."                                                             │
00:20:51 v #13769 > > │         self.length -= 1                                                     │
00:20:51 v #13770 > > │         return self.ptr[self.length]                                         │
00:20:51 v #13771 > > │                                                                              │
00:20:51 v #13772 > > │     def unsafe_set_length(self,i):                                           │
00:20:51 v #13773 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:20:51 v #13774 > > │         self.length = i                                                      │
00:20:51 v #13775 > > │                                                                              │
00:20:51 v #13776 > > │ class dynamic_array(static_array):                                           │
00:20:51 v #13777 > > │     pass                                                                     │
00:20:51 v #13778 > > │                                                                              │
00:20:51 v #13779 > > │ class dynamic_array_list(static_array_list):                                 │
00:20:51 v #13780 > > │     def length_(self): return self.length                                    │
00:20:51 v #13781 > > │                                                                              │
00:20:51 v #13782 > > │ import cupy as cp                                                            │
00:20:51 v #13783 > > │ from dataclasses import dataclass                                            │
00:20:51 v #13784 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:20:51 v #13785 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:20:51 v #13786 > > │ string = str                                                                 │
00:20:51 v #13787 > > │                                                                              │
00:20:51 v #13788 > > │ def method1() -> i32:                                                        │
00:20:51 v #13789 > > │     return 3                                                                 │
00:20:51 v #13790 > > │ def method2(v0 : i32, v1 : i32) -> i32:                                      │
00:20:51 v #13791 > > │     v2 = v1 + v0                                                             │
00:20:51 v #13792 > > │     del v0, v1                                                               │
00:20:51 v #13793 > > │     return v2                                                                │
00:20:51 v #13794 > > │ def method3(v0 : bool) -> bool:                                              │
00:20:51 v #13795 > > │     return v0                                                                │
00:20:51 v #13796 > > │ def method0() -> None:                                                       │
00:20:51 v #13797 > > │     v0 = method1()                                                           │
00:20:51 v #13798 > > │     v1 = 9                                                                   │
00:20:51 v #13799 > > │     v2 = method2(v0, v1)                                                     │
00:20:51 v #13800 > > │     del v0, v1                                                               │
00:20:51 v #13801 > > │     v3 = v2 + 2                                                              │
00:20:51 v #13802 > > │     del v2                                                                   │
00:20:51 v #13803 > > │     v4 = v3 + 1                                                              │
00:20:51 v #13804 > > │     del v3                                                                   │
00:20:51 v #13805 > > │     v5 = v4 == 15                                                            │
00:20:51 v #13806 > > │     if v5:                                                                   │
00:20:51 v #13807 > > │         v7 = True                                                            │
00:20:51 v #13808 > > │     else:                                                                    │
00:20:51 v #13809 > > │         v7 = method3(v5)                                                     │
00:20:51 v #13810 > > │     del v5                                                                   │
00:20:51 v #13811 > > │     v10 = "__assert_eq"                                                      │
00:20:51 v #13812 > > │     v11 = f"{v10} / actual: {v4} / expected: {15}"                           │
00:20:51 v #13813 > > │     del v4, v10                                                              │
00:20:51 v #13814 > > │     print(v11)                                                               │
00:20:51 v #13815 > > │     v17 = v7 == False                                                        │
00:20:51 v #13816 > > │     del v7                                                                   │
00:20:51 v #13817 > > │     if v17:                                                                  │
00:20:51 v #13818 > > │         del v17                                                              │
00:20:51 v #13819 > > │         raise Exception(v11)                                                 │
00:20:51 v #13820 > > │     else:                                                                    │
00:20:51 v #13821 > > │         del v11, v17                                                         │
00:20:51 v #13822 > > │         return                                                               │
00:20:51 v #13823 > > │ def main():                                                                  │
00:20:51 v #13824 > > │     return method0()                                                         │
00:20:51 v #13825 > > │                                                                              │
00:20:51 v #13826 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:20:51 v #13827 > > │ print(result)                                                                │
00:20:51 v #13828 > > │                                                                              │
00:20:51 v #13829 > > │                                                                              │
00:20:51 v #13830 > > │ .py:                                                                         │
00:20:51 v #13831 > > │ kernel = r"""                                                                │
00:20:51 v #13832 > > │ """                                                                          │
00:20:51 v #13833 > > │ class static_array():                                                        │
00:20:51 v #13834 > > │     def __init__(self, length):                                              │
00:20:51 v #13835 > > │         self.ptr = []                                                        │
00:20:51 v #13836 > > │         for _ in range(length):                                              │
00:20:51 v #13837 > > │             self.ptr.append(None)                                            │
00:20:51 v #13838 > > │                                                                              │
00:20:51 v #13839 > > │     def __getitem__(self, index):                                            │
00:20:51 v #13840 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:20:51 v #13841 > > │ range."                                                                      │
00:20:51 v #13842 > > │         return self.ptr[index]                                               │
00:20:51 v #13843 > > │                                                                              │
00:20:51 v #13844 > > │     def __setitem__(self, index, value):                                     │
00:20:51 v #13845 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:20:51 v #13846 > > │ range."                                                                      │
00:20:51 v #13847 > > │         self.ptr[index] = value                                              │
00:20:51 v #13848 > > │                                                                              │
00:20:51 v #13849 > > │ class static_array_list(static_array):                                       │
00:20:51 v #13850 > > │     def __init__(self, length):                                              │
00:20:51 v #13851 > > │         super().__init__(length)                                             │
00:20:51 v #13852 > > │         self.length = 0                                                      │
00:20:51 v #13853 > > │                                                                              │
00:20:51 v #13854 > > │     def __getitem__(self, index):                                            │
00:20:51 v #13855 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:20:51 v #13856 > > │ range."                                                                      │
00:20:51 v #13857 > > │         return self.ptr[index]                                               │
00:20:51 v #13858 > > │                                                                              │
00:20:51 v #13859 > > │     def __setitem__(self, index, value):                                     │
00:20:51 v #13860 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:20:51 v #13861 > > │ range."                                                                      │
00:20:51 v #13862 > > │         self.ptr[index] = value                                              │
00:20:51 v #13863 > > │                                                                              │
00:20:51 v #13864 > > │     def push(self,value):                                                    │
00:20:51 v #13865 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:20:51 v #13866 > > │ to be less than the maximum length of the array."                            │
00:20:51 v #13867 > > │         self.ptr[self.length] = value                                        │
00:20:51 v #13868 > > │         self.length += 1                                                     │
00:20:51 v #13869 > > │                                                                              │
00:20:51 v #13870 > > │     def pop(self):                                                           │
00:20:51 v #13871 > > │         assert (0 < self.length), "The length before popping has to be       │
00:20:51 v #13872 > > │ greater than 0."                                                             │
00:20:51 v #13873 > > │         self.length -= 1                                                     │
00:20:51 v #13874 > > │         return self.ptr[self.length]                                         │
00:20:51 v #13875 > > │                                                                              │
00:20:51 v #13876 > > │     def unsafe_set_length(self,i):                                           │
00:20:51 v #13877 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:20:51 v #13878 > > │         self.length = i                                                      │
00:20:51 v #13879 > > │                                                                              │
00:20:51 v #13880 > > │ class dynamic_array(static_array):                                           │
00:20:51 v #13881 > > │     pass                                                                     │
00:20:51 v #13882 > > │                                                                              │
00:20:51 v #13883 > > │ class dynamic_array_list(static_array_list):                                 │
00:20:51 v #13884 > > │     def length_(self): return self.length                                    │
00:20:51 v #13885 > > │                                                                              │
00:20:51 v #13886 > > │ import cupy as cp                                                            │
00:20:51 v #13887 > > │ from dataclasses import dataclass                                            │
00:20:51 v #13888 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:20:51 v #13889 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:20:51 v #13890 > > │ string = str                                                                 │
00:20:51 v #13891 > > │                                                                              │
00:20:51 v #13892 > > │ def method1() -> i32:                                                        │
00:20:51 v #13893 > > │     return 3                                                                 │
00:20:51 v #13894 > > │ def method2(v0 : i32, v1 : i32) -> i32:                                      │
00:20:51 v #13895 > > │     v2 = v1 + v0                                                             │
00:20:51 v #13896 > > │     del v0, v1                                                               │
00:20:51 v #13897 > > │     return v2                                                                │
00:20:51 v #13898 > > │ def method3(v0 : bool) -> bool:                                              │
00:20:51 v #13899 > > │     return v0                                                                │
00:20:51 v #13900 > > │ def method0() -> None:                                                       │
00:20:51 v #13901 > > │     v0 = method1()                                                           │
00:20:51 v #13902 > > │     v1 = 9                                                                   │
00:20:51 v #13903 > > │     v2 = method2(v0, v1)                                                     │
00:20:51 v #13904 > > │     del v0, v1                                                               │
00:20:51 v #13905 > > │     v3 = v2 + 2                                                              │
00:20:51 v #13906 > > │     del v2                                                                   │
00:20:51 v #13907 > > │     v4 = v3 + 1                                                              │
00:20:51 v #13908 > > │     del v3                                                                   │
00:20:51 v #13909 > > │     v5 = v4 == 15                                                            │
00:20:51 v #13910 > > │     if v5:                                                                   │
00:20:51 v #13911 > > │         v7 = True                                                            │
00:20:51 v #13912 > > │     else:                                                                    │
00:20:51 v #13913 > > │         v7 = method3(v5)                                                     │
00:20:51 v #13914 > > │     del v5                                                                   │
00:20:51 v #13915 > > │     v10 = "__assert_eq"                                                      │
00:20:51 v #13916 > > │     v11 = f"{v10} / actual: {v4} / expected: {15}"                           │
00:20:51 v #13917 > > │     del v4, v10                                                              │
00:20:51 v #13918 > > │     print(v11)                                                               │
00:20:51 v #13919 > > │     v17 = v7 == False                                                        │
00:20:51 v #13920 > > │     del v7                                                                   │
00:20:51 v #13921 > > │     if v17:                                                                  │
00:20:51 v #13922 > > │         del v17                                                              │
00:20:51 v #13923 > > │         raise Exception(v11)                                                 │
00:20:51 v #13924 > > │     else:                                                                    │
00:20:51 v #13925 > > │         del v11, v17                                                         │
00:20:51 v #13926 > > │         return                                                               │
00:20:51 v #13927 > > │ def main():                                                                  │
00:20:51 v #13928 > > │     return method0()                                                         │
00:20:51 v #13929 > > │                                                                              │
00:20:51 v #13930 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:20:51 v #13931 > > │ print(result)                                                                │
00:20:51 v #13932 > > │                                                                              │
00:20:51 v #13933 > > │ .fsx output:                                                                 │
00:20:51 v #13934 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:20:51 v #13935 > > │                                                                              │
00:20:51 v #13936 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:51 v #13937 > >
00:20:51 v #13938 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:51 v #13939 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:51 v #13940 > > │ ### join_body_unit                                                           │
00:20:51 v #13941 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:51 v #13942 > >
00:20:51 v #13943 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:51 v #13944 > > inl join_body_unit body d x =
00:20:51 v #13945 > >     if var_is d |> not
00:20:51 v #13946 > >     then body x
00:20:51 v #13947 > >     else
00:20:51 v #13948 > >         inl x = dyn x
00:20:51 v #13949 > >         join body x
00:20:51 v #13950 > 00:20:50 d #738 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/342a8c67d734af4ae9c681123bb2e4e84b5341ca9b9de8884387ddb0a1328776/main.spi
00:20:51 v #13951 > >
00:20:51 v #13952 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:51 v #13953 > > //// test
00:20:51 v #13954 > > ///! fsharp
00:20:51 v #13955 > > ///! cuda
00:20:51 v #13956 > > ///! rust
00:20:51 v #13957 > > ///! typescript
00:20:51 v #13958 > > ///! python
00:20:51 v #13959 > > //// print_code=true
00:20:51 v #13960 > >
00:20:51 v #13961 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:20:51 v #13962 > > |> fold_list (fun acc n => join_body_unit ((+) acc) n n) 0
00:20:51 v #13963 > > |> _assert_eq 15
00:20:51 v #13964 > 00:20:50 d #739 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/93650681598085c942fdeadd20c789f8c13cfebe01f1a42420b7924d62a463e0/main.spi
00:20:51 v #13965 > 00:20:50 d #740 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35e0592a79aebcdb9fe9d6c1a39649e9824c9eeac908e8c53758d1cbbf15f5a8/main.spi
00:21:10 v #13966 > >
00:21:10 v #13967 > > ╭─[ 19.14s - return value ]────────────────────────────────────────────────────╮
00:21:10 v #13968 > > │ .py output (Cuda):                                                           │
00:21:10 v #13969 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:21:10 v #13970 > > │                                                                              │
00:21:10 v #13971 > > │ .rs output:                                                                  │
00:21:10 v #13972 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:21:10 v #13973 > > │                                                                              │
00:21:10 v #13974 > > │ .ts output:                                                                  │
00:21:10 v #13975 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:21:10 v #13976 > > │                                                                              │
00:21:10 v #13977 > > │ .py output:                                                                  │
00:21:10 v #13978 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:21:10 v #13979 > > │                                                                              │
00:21:10 v #13980 > > │                                                                              │
00:21:10 v #13981 > > │                                                                              │
00:21:10 v #13982 > > │                                                                              │
00:21:10 v #13983 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:10 v #13984 > >
00:21:10 v #13985 > > ╭─[ 19.14s - stdout ]──────────────────────────────────────────────────────────╮
00:21:10 v #13986 > > │ .fsx:                                                                        │
00:21:10 v #13987 > > │ let rec method1 () : int32 =                                                 │
00:21:10 v #13988 > > │     3                                                                        │
00:21:10 v #13989 > > │ and method2 (v0 : int32) : int32 =                                           │
00:21:10 v #13990 > > │     let v1 : int32 = 9 + v0                                                  │
00:21:10 v #13991 > > │     v1                                                                       │
00:21:10 v #13992 > > │ and method3 (v0 : bool) : bool =                                             │
00:21:10 v #13993 > > │     v0                                                                       │
00:21:10 v #13994 > > │ and closure0 (v0 : string) () : unit =                                       │
00:21:10 v #13995 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:21:10 v #13996 > > │     v1 v0                                                                    │
00:21:10 v #13997 > > │ and method0 () : unit =                                                      │
00:21:10 v #13998 > > │     let v0 : int32 = method1()                                               │
00:21:10 v #13999 > > │     let v1 : int32 = method2(v0)                                             │
00:21:10 v #14000 > > │     let v2 : int32 = v1 + 2                                                  │
00:21:10 v #14001 > > │     let v3 : int32 = v2 + 1                                                  │
00:21:10 v #14002 > > │     let v4 : bool = v3 = 15                                                  │
00:21:10 v #14003 > > │     let v6 : bool =                                                          │
00:21:10 v #14004 > > │         if v4 then                                                           │
00:21:10 v #14005 > > │             true                                                             │
00:21:10 v #14006 > > │         else                                                                 │
00:21:10 v #14007 > > │             method3(v4)                                                      │
00:21:10 v #14008 > > │     let v7 : string = "__assert_eq"                                          │
00:21:10 v #14009 > > │     let v8 : string = $"{v7} / actual: %A{v3} / expected: %A{15}"            │
00:21:10 v #14010 > > │     let v11 : unit = ()                                                      │
00:21:10 v #14011 > > │     let v12 : (unit -> unit) = closure0(v8)                                  │
00:21:10 v #14012 > > │     let v13 : unit = (fun () -> v12 (); v11) ()                              │
00:21:10 v #14013 > > │     let v15 : bool = v6 = false                                              │
00:21:10 v #14014 > > │     if v15 then                                                              │
00:21:10 v #14015 > > │         failwith<unit> v8                                                    │
00:21:10 v #14016 > > │ method0()                                                                    │
00:21:10 v #14017 > > │                                                                              │
00:21:10 v #14018 > > │                                                                              │
00:21:10 v #14019 > > │ .rs:                                                                         │
00:21:10 v #14020 > > │ #![allow(dead_code)]                                                         │
00:21:10 v #14021 > > │ #![allow(non_camel_case_types)]                                              │
00:21:10 v #14022 > > │ #![allow(non_snake_case)]                                                    │
00:21:10 v #14023 > > │ #![allow(non_upper_case_globals)]                                            │
00:21:10 v #14024 > > │ #![allow(unreachable_code)]                                                  │
00:21:10 v #14025 > > │ #![allow(unused_attributes)]                                                 │
00:21:10 v #14026 > > │ #![allow(unused_imports)]                                                    │
00:21:10 v #14027 > > │ #![allow(unused_macros)]                                                     │
00:21:10 v #14028 > > │ #![allow(unused_parens)]                                                     │
00:21:10 v #14029 > > │ #![allow(unused_variables)]                                                  │
00:21:10 v #14030 > > │ mod module_e782e7b7 {                                                        │
00:21:10 v #14031 > > │     pub mod Spiral_builder {                                                 │
00:21:10 v #14032 > > │         use super::*;                                                        │
00:21:10 v #14033 > > │         use fable_library_rust::Native_::on_startup;                         │
00:21:10 v #14034 > > │         use fable_library_rust::String_::printfn;                            │
00:21:10 v #14035 > > │         use fable_library_rust::String_::sprintf;                            │
00:21:10 v #14036 > > │         use fable_library_rust::String_::string;                             │
00:21:10 v #14037 > > │         pub fn method1() -> i32 {                                            │
00:21:10 v #14038 > > │             3_i32                                                            │
00:21:10 v #14039 > > │         }                                                                    │
00:21:10 v #14040 > > │         pub fn method2(v0: i32) -> i32 {                                     │
00:21:10 v #14041 > > │             9_i32 + v0                                                       │
00:21:10 v #14042 > > │         }                                                                    │
00:21:10 v #14043 > > │         pub fn method3(v0: bool) -> bool {                                   │
00:21:10 v #14044 > > │             v0                                                               │
00:21:10 v #14045 > > │         }                                                                    │
00:21:10 v #14046 > > │         pub fn closure0(v0: string, unitVar: ()) {                           │
00:21:10 v #14047 > > │             printfn!("{0}", v0);                                             │
00:21:10 v #14048 > > │         }                                                                    │
00:21:10 v #14049 > > │         pub fn method0() {                                                   │
00:21:10 v #14050 > > │             let v3: i32 = Spiral_builder::method2(Spiral_builder::method1()) │
00:21:10 v #14051 > > │ + 2_i32 + 1_i32;                                                             │
00:21:10 v #14052 > > │             let v4: bool = v3 == 15_i32;                                     │
00:21:10 v #14053 > > │             let v6: bool = if v4 {                                           │
00:21:10 v #14054 > > │                 true                                                         │
00:21:10 v #14055 > > │             } else {                                                         │
00:21:10 v #14056 > > │                 Spiral_builder::method3(v4)                                  │
00:21:10 v #14057 > > │             };                                                               │
00:21:10 v #14058 > > │             let v8: string = sprintf!(                                       │
00:21:10 v #14059 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:21:10 v #14060 > > │                 string("__assert_eq"),                                       │
00:21:10 v #14061 > > │                 v3,                                                          │
00:21:10 v #14062 > > │                 15_i32                                                       │
00:21:10 v #14063 > > │             );                                                               │
00:21:10 v #14064 > > │             let v13: () = {                                                  │
00:21:10 v #14065 > > │                 Spiral_builder::closure0(v8.clone(), ());                    │
00:21:10 v #14066 > > │                 ()                                                           │
00:21:10 v #14067 > > │             };                                                               │
00:21:10 v #14068 > > │             if v6 == false {                                                 │
00:21:10 v #14069 > > │                 panic!("{}", v8,);                                           │
00:21:10 v #14070 > > │             }                                                                │
00:21:10 v #14071 > > │         }                                                                    │
00:21:10 v #14072 > > │         // on_startup!(Spiral_builder::method0());                           │
00:21:10 v #14073 > > │     }                                                                        │
00:21:10 v #14074 > > │ }                                                                            │
00:21:10 v #14075 > > │ pub use module_e782e7b7::*;                                                  │
00:21:10 v #14076 > > │                                                                              │
00:21:10 v #14077 > > │                                                                              │
00:21:10 v #14078 > > │                                                                              │
00:21:10 v #14079 > > │ pub fn main() -> Result<(), String> { Ok(Spiral_builder::method0()) }        │
00:21:10 v #14080 > > │                                                                              │
00:21:10 v #14081 > > │ .ts:                                                                         │
00:21:10 v #14082 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.21.0/Int32.js";    │
00:21:10 v #14083 > > │ import { interpolate, toText } from                                          │
00:21:10 v #14084 > > │ "./fable_modules/fable-library-ts.4.21.0/String.js";                         │
00:21:10 v #14085 > > │                                                                              │
00:21:10 v #14086 > > │ export function method1(): int32 {                                           │
00:21:10 v #14087 > > │     return 3;                                                                │
00:21:10 v #14088 > > │ }                                                                            │
00:21:10 v #14089 > > │                                                                              │
00:21:10 v #14090 > > │ export function method2(v0: int32): int32 {                                  │
00:21:10 v #14091 > > │     return 9 + v0;                                                           │
00:21:10 v #14092 > > │ }                                                                            │
00:21:10 v #14093 > > │                                                                              │
00:21:10 v #14094 > > │ export function method3(v0: boolean): boolean {                              │
00:21:10 v #14095 > > │     return v0;                                                               │
00:21:10 v #14096 > > │ }                                                                            │
00:21:10 v #14097 > > │                                                                              │
00:21:10 v #14098 > > │ export function closure0(v0: string, unitVar: void): void {                  │
00:21:10 v #14099 > > │     console.log(v0);                                                         │
00:21:10 v #14100 > > │ }                                                                            │
00:21:10 v #14101 > > │                                                                              │
00:21:10 v #14102 > > │ export function method0(): void {                                            │
00:21:10 v #14103 > > │     const v3: int32 = ((method2(method1()) + 2) + 1) | 0;                    │
00:21:10 v #14104 > > │     const v4: boolean = v3 === 15;                                           │
00:21:10 v #14105 > > │     const v6: boolean = v4 ? true : method3(v4);                             │
00:21:10 v #14106 > > │     const v8: string = toText(interpolate("%P() / actual: %A%P() / expected: │
00:21:10 v #14107 > > │ %A%P()", ["__assert_eq", v3, 15]));                                          │
00:21:10 v #14108 > > │     let v13: any;                                                            │
00:21:10 v #14109 > > │     closure0(v8, undefined);                                                 │
00:21:10 v #14110 > > │     v13 = undefined;                                                         │
00:21:10 v #14111 > > │     if (v6 === false) {                                                      │
00:21:10 v #14112 > > │         throw new Error(v8);                                                 │
00:21:10 v #14113 > > │     }                                                                        │
00:21:10 v #14114 > > │ }                                                                            │
00:21:10 v #14115 > > │                                                                              │
00:21:10 v #14116 > > │ method0();                                                                   │
00:21:10 v #14117 > > │                                                                              │
00:21:10 v #14118 > > │                                                                              │
00:21:10 v #14119 > > │ .py:                                                                         │
00:21:10 v #14120 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:21:10 v #14121 > > │                                                                              │
00:21:10 v #14122 > > │ def method1(__unit: None=None) -> int:                                       │
00:21:10 v #14123 > > │     return 3                                                                 │
00:21:10 v #14124 > > │                                                                              │
00:21:10 v #14125 > > │                                                                              │
00:21:10 v #14126 > > │ def method2(v0: int) -> int:                                                 │
00:21:10 v #14127 > > │     return 9 + v0                                                            │
00:21:10 v #14128 > > │                                                                              │
00:21:10 v #14129 > > │                                                                              │
00:21:10 v #14130 > > │ def method3(v0: bool) -> bool:                                               │
00:21:10 v #14131 > > │     return v0                                                                │
00:21:10 v #14132 > > │                                                                              │
00:21:10 v #14133 > > │                                                                              │
00:21:10 v #14134 > > │ def closure0(v0: str, unit_var: None) -> None:                               │
00:21:10 v #14135 > > │     print(v0)                                                                │
00:21:10 v #14136 > > │                                                                              │
00:21:10 v #14137 > > │                                                                              │
00:21:10 v #14138 > > │ def method0(__unit: None=None) -> None:                                      │
00:21:10 v #14139 > > │     v3: int = ((method2(method1()) + 2) + 1) or 0                            │
00:21:10 v #14140 > > │     v4: bool = v3 == 15                                                      │
00:21:10 v #14141 > > │     v6: bool = True if v4 else method3(v4)                                   │
00:21:10 v #14142 > > │     v8: str = to_text(interpolate("%P() / actual: %A%P() / expected:         │
00:21:10 v #14143 > > │ %A%P()", ["__assert_eq", v3, 15]))                                           │
00:21:10 v #14144 > > │     v13: None                                                                │
00:21:10 v #14145 > > │     closure0(v8, None)                                                       │
00:21:10 v #14146 > > │     v13 = None                                                               │
00:21:10 v #14147 > > │     if v6 == False:                                                          │
00:21:10 v #14148 > > │         raise Exception(v8)                                                  │
00:21:10 v #14149 > > │                                                                              │
00:21:10 v #14150 > > │                                                                              │
00:21:10 v #14151 > > │                                                                              │
00:21:10 v #14152 > > │ method0()                                                                    │
00:21:10 v #14153 > > │                                                                              │
00:21:10 v #14154 > > │                                                                              │
00:21:10 v #14155 > > │ .py:                                                                         │
00:21:10 v #14156 > > │ kernel = r"""                                                                │
00:21:10 v #14157 > > │ """                                                                          │
00:21:10 v #14158 > > │ class static_array():                                                        │
00:21:10 v #14159 > > │     def __init__(self, length):                                              │
00:21:10 v #14160 > > │         self.ptr = []                                                        │
00:21:10 v #14161 > > │         for _ in range(length):                                              │
00:21:10 v #14162 > > │             self.ptr.append(None)                                            │
00:21:10 v #14163 > > │                                                                              │
00:21:10 v #14164 > > │     def __getitem__(self, index):                                            │
00:21:10 v #14165 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:21:10 v #14166 > > │ range."                                                                      │
00:21:10 v #14167 > > │         return self.ptr[index]                                               │
00:21:10 v #14168 > > │                                                                              │
00:21:10 v #14169 > > │     def __setitem__(self, index, value):                                     │
00:21:10 v #14170 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:21:10 v #14171 > > │ range."                                                                      │
00:21:10 v #14172 > > │         self.ptr[index] = value                                              │
00:21:10 v #14173 > > │                                                                              │
00:21:10 v #14174 > > │ class static_array_list(static_array):                                       │
00:21:10 v #14175 > > │     def __init__(self, length):                                              │
00:21:10 v #14176 > > │         super().__init__(length)                                             │
00:21:10 v #14177 > > │         self.length = 0                                                      │
00:21:10 v #14178 > > │                                                                              │
00:21:10 v #14179 > > │     def __getitem__(self, index):                                            │
00:21:10 v #14180 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:21:10 v #14181 > > │ range."                                                                      │
00:21:10 v #14182 > > │         return self.ptr[index]                                               │
00:21:10 v #14183 > > │                                                                              │
00:21:10 v #14184 > > │     def __setitem__(self, index, value):                                     │
00:21:10 v #14185 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:21:10 v #14186 > > │ range."                                                                      │
00:21:10 v #14187 > > │         self.ptr[index] = value                                              │
00:21:10 v #14188 > > │                                                                              │
00:21:10 v #14189 > > │     def push(self,value):                                                    │
00:21:10 v #14190 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:21:10 v #14191 > > │ to be less than the maximum length of the array."                            │
00:21:10 v #14192 > > │         self.ptr[self.length] = value                                        │
00:21:10 v #14193 > > │         self.length += 1                                                     │
00:21:10 v #14194 > > │                                                                              │
00:21:10 v #14195 > > │     def pop(self):                                                           │
00:21:10 v #14196 > > │         assert (0 < self.length), "The length before popping has to be       │
00:21:10 v #14197 > > │ greater than 0."                                                             │
00:21:10 v #14198 > > │         self.length -= 1                                                     │
00:21:10 v #14199 > > │         return self.ptr[self.length]                                         │
00:21:10 v #14200 > > │                                                                              │
00:21:10 v #14201 > > │     def unsafe_set_length(self,i):                                           │
00:21:10 v #14202 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:21:10 v #14203 > > │         self.length = i                                                      │
00:21:10 v #14204 > > │                                                                              │
00:21:10 v #14205 > > │ class dynamic_array(static_array):                                           │
00:21:10 v #14206 > > │     pass                                                                     │
00:21:10 v #14207 > > │                                                                              │
00:21:10 v #14208 > > │ class dynamic_array_list(static_array_list):                                 │
00:21:10 v #14209 > > │     def length_(self): return self.length                                    │
00:21:10 v #14210 > > │                                                                              │
00:21:10 v #14211 > > │ import cupy as cp                                                            │
00:21:10 v #14212 > > │ from dataclasses import dataclass                                            │
00:21:10 v #14213 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:21:10 v #14214 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:21:10 v #14215 > > │ string = str                                                                 │
00:21:10 v #14216 > > │                                                                              │
00:21:10 v #14217 > > │ def method1() -> i32:                                                        │
00:21:10 v #14218 > > │     return 3                                                                 │
00:21:10 v #14219 > > │ def method2(v0 : i32) -> i32:                                                │
00:21:10 v #14220 > > │     v1 = 9 + v0                                                              │
00:21:10 v #14221 > > │     del v0                                                                   │
00:21:10 v #14222 > > │     return v1                                                                │
00:21:10 v #14223 > > │ def method3(v0 : bool) -> bool:                                              │
00:21:10 v #14224 > > │     return v0                                                                │
00:21:10 v #14225 > > │ def method0() -> None:                                                       │
00:21:10 v #14226 > > │     v0 = method1()                                                           │
00:21:10 v #14227 > > │     v1 = method2(v0)                                                         │
00:21:10 v #14228 > > │     del v0                                                                   │
00:21:10 v #14229 > > │     v2 = v1 + 2                                                              │
00:21:10 v #14230 > > │     del v1                                                                   │
00:21:10 v #14231 > > │     v3 = v2 + 1                                                              │
00:21:10 v #14232 > > │     del v2                                                                   │
00:21:10 v #14233 > > │     v4 = v3 == 15                                                            │
00:21:10 v #14234 > > │     if v4:                                                                   │
00:21:10 v #14235 > > │         v6 = True                                                            │
00:21:10 v #14236 > > │     else:                                                                    │
00:21:10 v #14237 > > │         v6 = method3(v4)                                                     │
00:21:10 v #14238 > > │     del v4                                                                   │
00:21:10 v #14239 > > │     v9 = "__assert_eq"                                                       │
00:21:10 v #14240 > > │     v10 = f"{v9} / actual: {v3} / expected: {15}"                            │
00:21:10 v #14241 > > │     del v3, v9                                                               │
00:21:10 v #14242 > > │     print(v10)                                                               │
00:21:10 v #14243 > > │     v16 = v6 == False                                                        │
00:21:10 v #14244 > > │     del v6                                                                   │
00:21:10 v #14245 > > │     if v16:                                                                  │
00:21:10 v #14246 > > │         del v16                                                              │
00:21:10 v #14247 > > │         raise Exception(v10)                                                 │
00:21:10 v #14248 > > │     else:                                                                    │
00:21:10 v #14249 > > │         del v10, v16                                                         │
00:21:10 v #14250 > > │         return                                                               │
00:21:10 v #14251 > > │ def main():                                                                  │
00:21:10 v #14252 > > │     return method0()                                                         │
00:21:10 v #14253 > > │                                                                              │
00:21:10 v #14254 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:21:10 v #14255 > > │ print(result)                                                                │
00:21:10 v #14256 > > │                                                                              │
00:21:10 v #14257 > > │                                                                              │
00:21:10 v #14258 > > │ .py:                                                                         │
00:21:10 v #14259 > > │ kernel = r"""                                                                │
00:21:10 v #14260 > > │ """                                                                          │
00:21:10 v #14261 > > │ class static_array():                                                        │
00:21:10 v #14262 > > │     def __init__(self, length):                                              │
00:21:10 v #14263 > > │         self.ptr = []                                                        │
00:21:10 v #14264 > > │         for _ in range(length):                                              │
00:21:10 v #14265 > > │             self.ptr.append(None)                                            │
00:21:10 v #14266 > > │                                                                              │
00:21:10 v #14267 > > │     def __getitem__(self, index):                                            │
00:21:10 v #14268 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:21:10 v #14269 > > │ range."                                                                      │
00:21:10 v #14270 > > │         return self.ptr[index]                                               │
00:21:10 v #14271 > > │                                                                              │
00:21:10 v #14272 > > │     def __setitem__(self, index, value):                                     │
00:21:10 v #14273 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:21:10 v #14274 > > │ range."                                                                      │
00:21:10 v #14275 > > │         self.ptr[index] = value                                              │
00:21:10 v #14276 > > │                                                                              │
00:21:10 v #14277 > > │ class static_array_list(static_array):                                       │
00:21:10 v #14278 > > │     def __init__(self, length):                                              │
00:21:10 v #14279 > > │         super().__init__(length)                                             │
00:21:10 v #14280 > > │         self.length = 0                                                      │
00:21:10 v #14281 > > │                                                                              │
00:21:10 v #14282 > > │     def __getitem__(self, index):                                            │
00:21:10 v #14283 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:21:10 v #14284 > > │ range."                                                                      │
00:21:10 v #14285 > > │         return self.ptr[index]                                               │
00:21:10 v #14286 > > │                                                                              │
00:21:10 v #14287 > > │     def __setitem__(self, index, value):                                     │
00:21:10 v #14288 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:21:10 v #14289 > > │ range."                                                                      │
00:21:10 v #14290 > > │         self.ptr[index] = value                                              │
00:21:10 v #14291 > > │                                                                              │
00:21:10 v #14292 > > │     def push(self,value):                                                    │
00:21:10 v #14293 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:21:10 v #14294 > > │ to be less than the maximum length of the array."                            │
00:21:10 v #14295 > > │         self.ptr[self.length] = value                                        │
00:21:10 v #14296 > > │         self.length += 1                                                     │
00:21:10 v #14297 > > │                                                                              │
00:21:10 v #14298 > > │     def pop(self):                                                           │
00:21:10 v #14299 > > │         assert (0 < self.length), "The length before popping has to be       │
00:21:10 v #14300 > > │ greater than 0."                                                             │
00:21:10 v #14301 > > │         self.length -= 1                                                     │
00:21:10 v #14302 > > │         return self.ptr[self.length]                                         │
00:21:10 v #14303 > > │                                                                              │
00:21:10 v #14304 > > │     def unsafe_set_length(self,i):                                           │
00:21:10 v #14305 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:21:10 v #14306 > > │         self.length = i                                                      │
00:21:10 v #14307 > > │                                                                              │
00:21:10 v #14308 > > │ class dynamic_array(static_array):                                           │
00:21:10 v #14309 > > │     pass                                                                     │
00:21:10 v #14310 > > │                                                                              │
00:21:10 v #14311 > > │ class dynamic_array_list(static_array_list):                                 │
00:21:10 v #14312 > > │     def length_(self): return self.length                                    │
00:21:10 v #14313 > > │                                                                              │
00:21:10 v #14314 > > │ import cupy as cp                                                            │
00:21:10 v #14315 > > │ from dataclasses import dataclass                                            │
00:21:10 v #14316 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:21:10 v #14317 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:21:10 v #14318 > > │ string = str                                                                 │
00:21:10 v #14319 > > │                                                                              │
00:21:10 v #14320 > > │ def method1() -> i32:                                                        │
00:21:10 v #14321 > > │     return 3                                                                 │
00:21:10 v #14322 > > │ def method2(v0 : i32) -> i32:                                                │
00:21:10 v #14323 > > │     v1 = 9 + v0                                                              │
00:21:10 v #14324 > > │     del v0                                                                   │
00:21:10 v #14325 > > │     return v1                                                                │
00:21:10 v #14326 > > │ def method3(v0 : bool) -> bool:                                              │
00:21:10 v #14327 > > │     return v0                                                                │
00:21:10 v #14328 > > │ def method0() -> None:                                                       │
00:21:10 v #14329 > > │     v0 = method1()                                                           │
00:21:10 v #14330 > > │     v1 = method2(v0)                                                         │
00:21:10 v #14331 > > │     del v0                                                                   │
00:21:10 v #14332 > > │     v2 = v1 + 2                                                              │
00:21:10 v #14333 > > │     del v1                                                                   │
00:21:10 v #14334 > > │     v3 = v2 + 1                                                              │
00:21:10 v #14335 > > │     del v2                                                                   │
00:21:10 v #14336 > > │     v4 = v3 == 15                                                            │
00:21:10 v #14337 > > │     if v4:                                                                   │
00:21:10 v #14338 > > │         v6 = True                                                            │
00:21:10 v #14339 > > │     else:                                                                    │
00:21:10 v #14340 > > │         v6 = method3(v4)                                                     │
00:21:10 v #14341 > > │     del v4                                                                   │
00:21:10 v #14342 > > │     v9 = "__assert_eq"                                                       │
00:21:10 v #14343 > > │     v10 = f"{v9} / actual: {v3} / expected: {15}"                            │
00:21:10 v #14344 > > │     del v3, v9                                                               │
00:21:10 v #14345 > > │     print(v10)                                                               │
00:21:10 v #14346 > > │     v16 = v6 == False                                                        │
00:21:10 v #14347 > > │     del v6                                                                   │
00:21:10 v #14348 > > │     if v16:                                                                  │
00:21:10 v #14349 > > │         del v16                                                              │
00:21:10 v #14350 > > │         raise Exception(v10)                                                 │
00:21:10 v #14351 > > │     else:                                                                    │
00:21:10 v #14352 > > │         del v10, v16                                                         │
00:21:10 v #14353 > > │         return                                                               │
00:21:10 v #14354 > > │ def main():                                                                  │
00:21:10 v #14355 > > │     return method0()                                                         │
00:21:10 v #14356 > > │                                                                              │
00:21:10 v #14357 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:21:10 v #14358 > > │ print(result)                                                                │
00:21:10 v #14359 > > │                                                                              │
00:21:10 v #14360 > > │ .fsx output:                                                                 │
00:21:10 v #14361 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:21:10 v #14362 > > │                                                                              │
00:21:10 v #14363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:10 v #14364 > >
00:21:10 v #14365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:10 v #14366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:10 v #14367 > > │ ### retry_fn'                                                                │
00:21:10 v #14368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:10 v #14369 > >
00:21:10 v #14370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:10 v #14371 > > inl retry_fn' retries fn =
00:21:10 v #14372 > >     let rec loop retry =
00:21:10 v #14373 > >         inl is_error, result =
00:21:10 v #14374 > >             match fn () with
00:21:10 v #14375 > >             | Ok x => false, x
00:21:10 v #14376 > >             | Error x => true, x
00:21:10 v #14377 > >         if not is_error || retry >= retries
00:21:10 v #14378 > >         then result
00:21:10 v #14379 > >         else
00:21:10 v #14380 > >             trace Debug
00:21:10 v #14381 > >                 fun () => "common.retry_fn\' / loop"
00:21:10 v #14382 > >                 fun () => { is_error retry = $'$"{!retry}/{!retries}"' : string;
00:21:10 v #14383 > > result }
00:21:10 v #14384 > >             loop (retry + 1)
00:21:10 v #14385 > >     loop 1
00:21:10 v #14386 > 00:21:10 d #741 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/861cf60e144e48074af138632beadfce71050e97fe6315cdfd652f06ffda9744/main.spi
00:21:11 v #14387 > >
00:21:11 v #14388 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:11 v #14389 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:11 v #14390 > > │ ## fsharp                                                                    │
00:21:11 v #14391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:11 v #14392 > >
00:21:11 v #14393 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:11 v #14394 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:11 v #14395 > > │ ### upcast                                                                   │
00:21:11 v #14396 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:11 v #14397 > >
00:21:11 v #14398 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:11 v #14399 > > inl upcast forall t u. (x : t) : u =
00:21:11 v #14400 > >     $'!x :> `u '
00:21:11 v #14401 > 00:21:10 d #742 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec2dd01347dfaeb2d93c7b73aca1cb2a2070fdb2b2d25ff7fc15df31139e523d/main.spi
00:21:11 v #14402 > >
00:21:11 v #14403 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:11 v #14404 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:11 v #14405 > > │ ### downcast                                                                 │
00:21:11 v #14406 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:11 v #14407 > >
00:21:11 v #14408 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:11 v #14409 > > inl downcast forall t u. (x : t) : u =
00:21:11 v #14410 > >     $'!x :?> `u '
00:21:11 v #14411 > 00:21:10 d #743 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7ab11a66cc26bc83dfb22313aa24e385c2b68843245d3b139480d31062d21349/main.spi
00:21:11 v #14412 > >
00:21:11 v #14413 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:11 v #14414 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:11 v #14415 > > │ ### random                                                                   │
00:21:11 v #14416 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:11 v #14417 > >
00:21:11 v #14418 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:11 v #14419 > > nominal random = $'System.Random'
00:21:11 v #14420 > >
00:21:11 v #14421 > > inl random () : random =
00:21:11 v #14422 > >     $'`random ' ()
00:21:12 v #14423 > 00:21:11 d #744 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2e56f0cdeb4f8d3965b90c6c52c5e596db5441563132918d42307b874c177463/main.spi
00:21:12 v #14424 > >
00:21:12 v #14425 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:12 v #14426 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:12 v #14427 > > │ ### random_next                                                              │
00:21:12 v #14428 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:12 v #14429 > >
00:21:12 v #14430 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:12 v #14431 > > inl random_next (min : i32) (max : i32) (random : random) : i32 =
00:21:12 v #14432 > >     $'!random.Next (!min, !max)'
00:21:12 v #14433 > 00:21:11 d #745 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/03078f7e89f17d72fac31bcbc59add9a077fc2a40e013282a73f4e57da454249/main.spi
00:21:12 v #14434 > >
00:21:12 v #14435 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:12 v #14436 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:12 v #14437 > > │ ### disposable                                                               │
00:21:12 v #14438 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:12 v #14439 > >
00:21:12 v #14440 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:12 v #14441 > > nominal disposable t = $"backend_switch `({ Fsharp : $'System.IDisposable';
00:21:12 v #14442 > > Python : $'object' })"
00:21:12 v #14443 > 00:21:12 d #746 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92f14c2d1c914e6d389af590e638ae88232c9adf0eaacd1270c6144e469e579d/main.spi
00:21:13 v #14444 > >
00:21:13 v #14445 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:13 v #14446 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:13 v #14447 > > │ ### dispose                                                                  │
00:21:13 v #14448 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:13 v #14449 > >
00:21:13 v #14450 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:13 v #14451 > > inl dispose (disposable : disposable _) : () =
00:21:13 v #14452 > >     backend_switch {
00:21:13 v #14453 > >         Fsharp = fun () => disposable |> $'_.Dispose()' : ()
00:21:13 v #14454 > >         Python = fun () => $'!disposable.__exit__(None, None, None)' : ()
00:21:13 v #14455 > >     }
00:21:13 v #14456 > 00:21:12 d #747 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/89ccb8fb738193696586da92a2157f0a34ebea0a884a049f33ad9e033dc37423/main.spi
00:21:13 v #14457 > >
00:21:13 v #14458 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:13 v #14459 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:13 v #14460 > > │ ### return                                                                   │
00:21:13 v #14461 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:13 v #14462 > >
00:21:13 v #14463 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:13 v #14464 > > inl return forall t. (x : t) : () =
00:21:13 v #14465 > >     $'return !x '
00:21:13 v #14466 > >
00:21:13 v #14467 > > inl return' forall t. (x : t) : t =
00:21:13 v #14468 > >     $'return !x '
00:21:13 v #14469 > 00:21:12 d #748 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba50dcf9d2171c92c59ad33e17a89e0c5d361b7725f2fc67196f634119681a18/main.spi
00:21:13 v #14470 > >
00:21:13 v #14471 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:13 v #14472 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:13 v #14473 > > │ ### retry_fn                                                                 │
00:21:13 v #14474 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:13 v #14475 > >
00:21:13 v #14476 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:13 v #14477 > > inl retry_fn forall t. retries (fn : () -> t) : option t =
00:21:13 v #14478 > >     let rec loop retry =
00:21:13 v #14479 > >         try
00:21:13 v #14480 > >             fun () =>
00:21:13 v #14481 > >                 if retry < retries
00:21:13 v #14482 > >                 then fn () |> Some
00:21:13 v #14483 > >                 else None
00:21:13 v #14484 > >             fun ex =>
00:21:13 v #14485 > >                 trace Warning
00:21:13 v #14486 > >                     fun () => "common.retry_fn"
00:21:13 v #14487 > >                     fun () => { retry ex }
00:21:13 v #14488 > >                 None
00:21:13 v #14489 > >         |> function
00:21:13 v #14490 > >             | Some x => x
00:21:13 v #14491 > >             | None => loop (retry + 1)
00:21:13 v #14492 > >     loop 0
00:21:14 v #14493 > 00:21:13 d #749 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/495ba3ed89ac56f6e4182e517ed05448e47ba18634a4726462766d1f11837e0c/main.spi
00:21:14 v #14494 > >
00:21:14 v #14495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:14 v #14496 > > //// test
00:21:14 v #14497 > > ///! fsharp
00:21:14 v #14498 > > ////! cuda // v3 = $"retry: {v0} / ex: %A{v1} / {v2 ()}"
00:21:14 v #14499 > > ///! rust
00:21:14 v #14500 > > ///! typescript
00:21:14 v #14501 > > ///! python
00:21:14 v #14502 > >
00:21:14 v #14503 > > inl retry_fn_test = mut 0i32
00:21:14 v #14504 > > fun () =>
00:21:14 v #14505 > >     retry_fn_test <- *retry_fn_test + 1
00:21:14 v #14506 > >     *retry_fn_test
00:21:14 v #14507 > > |> retry_fn 3i32
00:21:14 v #14508 > > |> _assert_eq' (Some 1i32)
00:21:14 v #14509 > 00:21:13 d #750 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/750d42102926997fc184174e88c3ec984a341e0356d1be859282700958351592/main.spi
00:21:35 v #14510 > >
00:21:35 v #14511 > > ╭─[ 21.41s - return value ]────────────────────────────────────────────────────╮
00:21:35 v #14512 > > │ .rs output:                                                                  │
00:21:35 v #14513 > > │ __assert_eq' / actual: US0_0(1) / expected: US0_0(1)                         │
00:21:35 v #14514 > > │                                                                              │
00:21:35 v #14515 > > │ .ts output:                                                                  │
00:21:35 v #14516 > > │ __assert_eq' / actual: US0_0 1 / expected: US0_0 1                           │
00:21:35 v #14517 > > │                                                                              │
00:21:35 v #14518 > > │ .py output:                                                                  │
00:21:35 v #14519 > > │ __assert_eq' / actual: US0_0 1 / expected: US0_0 1                           │
00:21:35 v #14520 > > │                                                                              │
00:21:35 v #14521 > > │                                                                              │
00:21:35 v #14522 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:35 v #14523 > >
00:21:35 v #14524 > > ╭─[ 21.41s - stdout ]──────────────────────────────────────────────────────────╮
00:21:35 v #14525 > > │ .fsx output:                                                                 │
00:21:35 v #14526 > > │ __assert_eq' / actual: US0_0 1 / expected: US0_0 1                           │
00:21:35 v #14527 > > │                                                                              │
00:21:35 v #14528 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:35 v #14529 > >
00:21:35 v #14530 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:35 v #14531 > > //// test
00:21:35 v #14532 > > ///! fsharp
00:21:35 v #14533 > > ////! cuda // v3 = $"retry: {v0} / ex: %A{v1} / {v2 ()}"
00:21:35 v #14534 > > ///! rust
00:21:35 v #14535 > > ///! typescript
00:21:35 v #14536 > > ///! python
00:21:35 v #14537 > >
00:21:35 v #14538 > > inl retry_fn_test = mut 0i32
00:21:35 v #14539 > > fun () =>
00:21:35 v #14540 > >     if *retry_fn_test >= 2
00:21:35 v #14541 > >     then *retry_fn_test
00:21:35 v #14542 > >     else
00:21:35 v #14543 > >         retry_fn_test <- *retry_fn_test + 1
00:21:35 v #14544 > >         failwith "test"
00:21:35 v #14545 > > |> retry_fn 3i32
00:21:35 v #14546 > > |> _assert_eq' (Some 2i32)
00:21:35 v #14547 > 00:21:35 d #751 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f5e5a33aa88ef65c156ca923ac514ded048a7f5b1304ada281abe0db606782bb/main.spi
00:21:57 v #14548 > >
00:21:57 v #14549 > > ╭─[ 21.74s - return value ]────────────────────────────────────────────────────╮
00:21:57 v #14550 > > │                                                                              │
00:21:57 v #14551 > > │ .rs output:                                                                  │
00:21:57 v #14552 > > │ 00:00:00 w #1 common.retry_fn / { retry = 0; ex = Exception {          │
00:21:57 v #14553 > > │     message: "test",                                                         │
00:21:57 v #14554 > > │ } }                                                                          │
00:21:57 v #14555 > > │ 00:00:00 w #2 common.retry_fn / { retry = 1; ex = Exception {          │
00:21:57 v #14556 > > │     message: "test",                                                         │
00:21:57 v #14557 > > │ } }                                                                          │
00:21:57 v #14558 > > │ __assert_eq' / actual: US0_0(2) / expected: US0_0(2)                         │
00:21:57 v #14559 > > │                                                                              │
00:21:57 v #14560 > > │                                                                              │
00:21:57 v #14561 > > │ .ts output:                                                                  │
00:21:57 v #14562 > > │ 00:00:00 w #1 common.retry_fn / { retry = 0; ex = Error: test }         │
00:21:57 v #14563 > > │ 00:00:00 w #2 common.retry_fn / { retry = 1; ex = Error: test }         │
00:21:57 v #14564 > > │ __assert_eq' / actual: US0_0 2 / expected: US0_0 2                           │
00:21:57 v #14565 > > │                                                                              │
00:21:57 v #14566 > > │                                                                              │
00:21:57 v #14567 > > │ .py output:                                                                  │
00:21:57 v #14568 > > │ 00:00:00 w #1 common.retry_fn / { retry = 0; ex = test }                │
00:21:57 v #14569 > > │ 00:00:00 w #2 common.retry_fn / { retry = 1; ex = test }                │
00:21:57 v #14570 > > │ __assert_eq' / actual: US0_0 2 / expected: US0_0 2                           │
00:21:57 v #14571 > > │                                                                              │
00:21:57 v #14572 > > │                                                                              │
00:21:57 v #14573 > > │                                                                              │
00:21:57 v #14574 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:57 v #14575 > >
00:21:57 v #14576 > > ╭─[ 21.75s - stdout ]──────────────────────────────────────────────────────────╮
00:21:57 v #14577 > > │ .fsx output:                                                                 │
00:21:57 v #14578 > > │ 00:00:00 w #1 common.retry_fn / { retry = 0; ex = System.Exception:     │
00:21:57 v #14579 > > │ test                                                                         │
00:21:57 v #14580 > > │    at FSI_0031.closure1(Mut0 v0, Int32 v1, Unit unitVar2)                    │
00:21:57 v #14581 > > │    at FSI_0031.method1(Mut0 v0, Int32 v1) }                                  │
00:21:57 v #14582 > > │ 00:00:00 w #2 common.retry_fn / { retry = 1; ex = System.Exception:     │
00:21:57 v #14583 > > │ test                                                                         │
00:21:57 v #14584 > > │    at FSI_0031.closure1(Mut0 v0, Int32 v1, Unit unitVar2)                    │
00:21:57 v #14585 > > │    at FSI_0031.method1(Mut0 v0, Int32 v1) }                                  │
00:21:57 v #14586 > > │ __assert_eq' / actual: US0_0 2 / expected: US0_0 2                           │
00:21:57 v #14587 > > │                                                                              │
00:21:57 v #14588 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:57 v #14589 > >
00:21:57 v #14590 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:57 v #14591 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:57 v #14592 > > │ ## common                                                                    │
00:21:57 v #14593 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:57 v #14594 > >
00:21:57 v #14595 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:57 v #14596 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:57 v #14597 > > │ ### random'                                                                  │
00:21:57 v #14598 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:57 v #14599 > >
00:21:57 v #14600 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:57 v #14601 > > inl random' forall t. (min : t) (max : t) : t =
00:21:57 v #14602 > >     run_target function
00:21:57 v #14603 > >         | Rust (Contract) => fun () =>
00:21:57 v #14604 > >             failwith "common.random' / target=Rust(Contract)"
00:21:57 v #14605 > >         | Rust _ => fun () =>
00:21:57 v #14606 > >             open rust.rust_operators
00:21:57 v #14607 > >             !\\((min, max), $'"rand::Rng::gen_range(&mut rand::thread_rng(),
00:21:57 v #14608 > > $0..$1)"')
00:21:57 v #14609 > >         | _ => fun () =>
00:21:57 v #14610 > >             random () |> random_next (i32 min) (i32 max) |> convert
00:21:57 v #14611 > 00:21:56 d #752 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a36b57408e5eb47edaaa6f02dc6c1c0f2df9522124db999dfe81929d52d63bb6/main.spi
00:21:57 v #14612 > >
00:21:57 v #14613 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:57 v #14614 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:57 v #14615 > > │ ### new_disposable                                                           │
00:21:57 v #14616 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:57 v #14617 > >
00:21:57 v #14618 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:57 v #14619 > > inl new_disposable (fn : () -> ()) : disposable _ =
00:21:57 v #14620 > >     run_target function
00:21:57 v #14621 > >         | Rust _ => fun () =>
00:21:57 v #14622 > >             global "type Disposable (f : unit -> unit) = interface
00:21:57 v #14623 > > System.IDisposable with member _.Dispose () = f ()"
00:21:57 v #14624 > >             inl fn = join fn
00:21:57 v #14625 > >             $'new Disposable (fun () -> Fable.Core.RustInterop.emitRustExpr !fn
00:21:57 v #14626 > > "$0()" )'
00:21:57 v #14627 > >         | Fsharp _ | TypeScript _ | Python _ => fun () =>
00:21:57 v #14628 > >             inl fn = join fn
00:21:57 v #14629 > >             $'{ new System.IDisposable with member _.Dispose () = !fn () }'
00:21:57 v #14630 > >         | Cuda _ => fun () =>
00:21:57 v #14631 > >             $'class Disposable:'
00:21:57 v #14632 > >             $'    def __init__(self, fn):'
00:21:57 v #14633 > >             $'        self.fn = fn'
00:21:57 v #14634 > >             $'    def __exit__(self, exc_type, exc_value, traceback):'
00:21:57 v #14635 > >             $'        self.fn()'
00:21:57 v #14636 > >             $'        return False'
00:21:57 v #14637 > >             $'Disposable(!fn)'
00:21:57 v #14638 > >         | _ => fun () => null ()
00:21:58 v #14639 > 00:21:57 d #753 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c3acb81f2027029623f28b446f86e9c729e428678a8ac139473187bd3dbe01da/main.spi
00:21:58 v #14640 > >
00:21:58 v #14641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:58 v #14642 > > //// test
00:21:58 v #14643 > > ///! fsharp
00:21:58 v #14644 > > ///! cuda
00:21:58 v #14645 > > ///! rust
00:21:58 v #14646 > > ///! typescript
00:21:58 v #14647 > > ///! python
00:21:58 v #14648 > >
00:21:58 v #14649 > > inl new_disposable_test = mut 0i32
00:21:58 v #14650 > > new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:21:58 v #14651 > > |> fun x => x : disposable ()
00:21:58 v #14652 > > |> dispose
00:21:58 v #14653 > > *new_disposable_test |> _assert_eq 1
00:21:58 v #14654 > 00:21:57 d #754 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a72b2f820200fd9fa019bb22d3bcad73ee06b148b78412238303530efaed201/main.spi
00:21:58 v #14655 > 00:21:57 d #755 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42b3b4ad06735fc78ad417d92bac648d85fb1b72c7dd095e1ab89841b2ed8740/main.spi
00:22:19 v #14656 > >
00:22:19 v #14657 > > ╭─[ 21.54s - return value ]────────────────────────────────────────────────────╮
00:22:19 v #14658 > > │ .py output (Cuda):                                                           │
00:22:19 v #14659 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:22:19 v #14660 > > │                                                                              │
00:22:19 v #14661 > > │ .rs output:                                                                  │
00:22:19 v #14662 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:22:19 v #14663 > > │                                                                              │
00:22:19 v #14664 > > │ .ts output:                                                                  │
00:22:19 v #14665 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:22:19 v #14666 > > │                                                                              │
00:22:19 v #14667 > > │ .py output:                                                                  │
00:22:19 v #14668 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:22:19 v #14669 > > │                                                                              │
00:22:19 v #14670 > > │                                                                              │
00:22:19 v #14671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:19 v #14672 > >
00:22:19 v #14673 > > ╭─[ 21.55s - stdout ]──────────────────────────────────────────────────────────╮
00:22:19 v #14674 > > │ .fsx output:                                                                 │
00:22:19 v #14675 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:22:19 v #14676 > > │                                                                              │
00:22:19 v #14677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:19 v #14678 > >
00:22:19 v #14679 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:19 v #14680 > > //// test
00:22:19 v #14681 > >
00:22:19 v #14682 > > inl new_disposable_test = mut 0i32
00:22:19 v #14683 > > fun () =>
00:22:19 v #14684 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:22:19 v #14685 > >     |> fun x => x : disposable ()
00:22:19 v #14686 > >     |> use
00:22:19 v #14687 > >     |> ignore
00:22:19 v #14688 > >     |> return
00:22:19 v #14689 > > |> async.new_task
00:22:19 v #14690 > > |> async.await_task
00:22:19 v #14691 > > |> async.run_synchronously
00:22:19 v #14692 > > *new_disposable_test |> _assert_eq 1
00:22:20 v #14693 > 00:22:19 d #756 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8634e8a5a3f24442177e44c12f2b9d0fd821dbb95b06ee13025ea252a9445ebd/main.spi
00:22:20 v #14694 > >
00:22:20 v #14695 > > ╭─[ 543.92ms - stdout ]────────────────────────────────────────────────────────╮
00:22:20 v #14696 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:22:20 v #14697 > > │                                                                              │
00:22:20 v #14698 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:20 v #14699 > >
00:22:20 v #14700 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:20 v #14701 > > //// test
00:22:20 v #14702 > >
00:22:20 v #14703 > > inl new_disposable_test = mut 0i32
00:22:20 v #14704 > > fun () =>
00:22:20 v #14705 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:22:20 v #14706 > >     |> fun x => x : disposable ()
00:22:20 v #14707 > >     |> use
00:22:20 v #14708 > >     |> ignore
00:22:20 v #14709 > >     |> return
00:22:20 v #14710 > > |> async.new_async
00:22:20 v #14711 > > |> async.run_synchronously
00:22:20 v #14712 > > *new_disposable_test |> _assert_eq 1
00:22:20 v #14713 > 00:22:19 d #757 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d366ba89177ee46a467b8964dbddd1d2709db616d6b10bfc37f8b06ecd2da9b9/main.spi
00:22:20 v #14714 > >
00:22:20 v #14715 > > ╭─[ 412.28ms - stdout ]────────────────────────────────────────────────────────╮
00:22:20 v #14716 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:22:20 v #14717 > > │                                                                              │
00:22:20 v #14718 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:20 v #14719 > >
00:22:20 v #14720 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:20 v #14721 > > //// test
00:22:20 v #14722 > >
00:22:20 v #14723 > > inl new_disposable_test = mut 0i32
00:22:20 v #14724 > > fun () =>
00:22:20 v #14725 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:22:20 v #14726 > >     |> fun x => x : disposable ()
00:22:20 v #14727 > >     |> ignore
00:22:20 v #14728 > >     |> return
00:22:20 v #14729 > > |> async.new_async
00:22:20 v #14730 > > |> async.run_synchronously
00:22:20 v #14731 > > *new_disposable_test |> _assert_eq 0
00:22:21 v #14732 > 00:22:20 d #758 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/145b9408892349dac2db118e60a9d41cbfc7aa54b89d86eb24bb14fb911b8ab6/main.spi
00:22:21 v #14733 > >
00:22:21 v #14734 > > ╭─[ 427.30ms - stdout ]────────────────────────────────────────────────────────╮
00:22:21 v #14735 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:22:21 v #14736 > > │                                                                              │
00:22:21 v #14737 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:21 v #14738 > >
00:22:21 v #14739 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:21 v #14740 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:21 v #14741 > > │ ## main                                                                      │
00:22:21 v #14742 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:21 v #14743 > >
00:22:21 v #14744 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:21 v #14745 > > inl main () =
00:22:21 v #14746 > >     init_trace_state None
00:22:21 v #14747 > >     inl new_disposable x : _ () = new_disposable x
00:22:21 v #14748 > >     $'let new_disposable x = !new_disposable x' : ()
00:22:21 v #14749 > >     inl retry_fn (r : i32) (x : () -> _) : optionm'.option' () = retry_fn r x |>
00:22:21 v #14750 > > optionm'.box
00:22:21 v #14751 > >     $'let retry_fn x = !retry_fn x' : ()
00:22:21 v #14752 > >     inl memoize (fn : () -> ()) : () -> () = memoize fn
00:22:21 v #14753 > >     $'let memoize x = !memoize x' : ()
00:22:21 v #14754 > 00:22:20 d #759 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ccc0c683162e1f3f369bdb00ef9a9ef3b112e9329712dabf1760e7a56450885e/main.spi
00:22:22 v #14755 > 00:03:36 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 120933 }
00:22:22 v #14756 > 00:03:36 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/common.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/common.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:23 v #14757 > 00:03:38 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/common.dib.ipynb to html
00:22:23 v #14758 > 00:03:38 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:22:23 v #14759 > 00:03:38 v #7 !   validate(nb)
00:22:24 v #14760 > 00:03:39 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:22:24 v #14761 > 00:03:39 v #9 !   return _pygments_highlight(
00:22:24 v #14762 > 00:03:39 v #10 ! [NbConvertApp] Writing 366531 bytes to c:\home\git\polyglot\lib\spiral\common.dib.html
00:22:24 v #14763 > 00:03:39 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 854 }
00:22:24 v #14764 > 00:03:39 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 854 }
00:22:24 v #14765 > 00:03:39 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/common.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/common.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:25 v #14766 > 00:03:40 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:22:25 v #14767 > 00:03:40 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:22:25 v #14768 > 00:03:40 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 121846 }
00:22:25 d #14769 runtime.execute_with_options_async / { exit_code = 0; output_length = 127883 }
00:22:25 d #16 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path common.dib --retries 3
00:22:25 d #14770 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path resultm.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path resultm.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:25 v #14771 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "resultm.dib", "--retries", "3"])) }
00:22:25 v #14772 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/resultm.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/resultm.dib" --output-path "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:22:27 v #14773 > >
00:22:27 v #14774 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:27 v #14775 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:27 v #14776 > > │ # resultm                                                                    │
00:22:27 v #14777 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:31 v #14778 > >
00:22:31 v #14779 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:31 v #14780 > > open rust
00:22:31 v #14781 > > open rust_operators
00:22:31 v #14782 > 00:22:31 d #760 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd47537238fcdc924c2a6b0a99d4f87ecbbde40a43ba8772a0907b5bf4a50e9d/main.spi
00:22:32 v #14783 > >
00:22:32 v #14784 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:32 v #14785 > > //// test
00:22:32 v #14786 > >
00:22:32 v #14787 > > open testing
00:22:32 v #14788 > 00:22:31 d #761 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f990f43922e45080129606975ec74b3f88780cb3b27c2ae1151c776db6e5e262/main.spi
00:22:32 v #14789 > >
00:22:32 v #14790 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:32 v #14791 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:32 v #14792 > > │ ## resultm                                                                   │
00:22:32 v #14793 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:32 v #14794 > >
00:22:32 v #14795 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:32 v #14796 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:32 v #14797 > > │ ### from_option_error                                                        │
00:22:32 v #14798 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:32 v #14799 > >
00:22:32 v #14800 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:32 v #14801 > > inl from_option_error error opt =
00:22:32 v #14802 > >     match opt with
00:22:32 v #14803 > >     | Some x => Ok x
00:22:32 v #14804 > >     | None => Error error
00:22:33 v #14805 > 00:22:32 d #762 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ee5fd5ad991a56e0c139b9132097a8d11dfcfb1582a85a77a76a50e8cf273832/main.spi
00:22:33 v #14806 > >
00:22:33 v #14807 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:33 v #14808 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:33 v #14809 > > │ ### from_option                                                              │
00:22:33 v #14810 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:33 v #14811 > >
00:22:33 v #14812 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:33 v #14813 > > inl from_option opt =
00:22:33 v #14814 > >     opt |> from_option_error "resultm.from_option / Option does not have a
00:22:33 v #14815 > > value."
00:22:33 v #14816 > 00:22:32 d #763 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b23332dcd3fbac6d1a091e89e5b34aff731cad6d7bbcb091da4c4bc9b6fb082b/main.spi
00:22:33 v #14817 > >
00:22:33 v #14818 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:33 v #14819 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:33 v #14820 > > │ ### flatten_option                                                           │
00:22:33 v #14821 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:33 v #14822 > >
00:22:33 v #14823 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:33 v #14824 > > inl flatten_option forall t u. (x : option (result (option t) u)) : result
00:22:33 v #14825 > > (option t) u =
00:22:33 v #14826 > >     match x with
00:22:33 v #14827 > >     | Some (Error x) => Error x
00:22:33 v #14828 > >     | Some (Ok (Some x)) => Ok (Some x)
00:22:33 v #14829 > >     | _ => Ok None
00:22:33 v #14830 > 00:22:33 d #764 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ad42673f2d2b034c37499af2bd9fd4f4a70bcf533e428b50c3ec7916b54cecd/main.spi
00:22:34 v #14831 > >
00:22:34 v #14832 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:34 v #14833 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:34 v #14834 > > │ ### flatten                                                                  │
00:22:34 v #14835 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:34 v #14836 > >
00:22:34 v #14837 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:34 v #14838 > > inl flatten forall t u. (x : result (result t u) u) : result t u =
00:22:34 v #14839 > >     match x with
00:22:34 v #14840 > >     | Ok x => x
00:22:34 v #14841 > >     | Error x => Error x
00:22:34 v #14842 > 00:22:33 d #765 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/867244ee0c628497596700ed8dad3e2da46db1f3fbf41f262ee19f486c872ba6/main.spi
00:22:34 v #14843 > >
00:22:34 v #14844 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:34 v #14845 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:34 v #14846 > > │ ### get                                                                      │
00:22:34 v #14847 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:34 v #14848 > >
00:22:34 v #14849 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:34 v #14850 > > inl get forall t e. (source : result t e) : t =
00:22:34 v #14851 > >     match source with
00:22:34 v #14852 > >     | Ok x => x
00:22:34 v #14853 > >     | Error x => failwith $'$"resultm.get / Result value was Error: {!x}"'
00:22:34 v #14854 > 00:22:34 d #766 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b1b8c022ae89c5802a3d57b9fc70b8de1c5d9cfed30363d9de9e03085079c82/main.spi
00:22:35 v #14855 > >
00:22:35 v #14856 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:35 v #14857 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:35 v #14858 > > │ ### map                                                                      │
00:22:35 v #14859 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:35 v #14860 > >
00:22:35 v #14861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:35 v #14862 > > inl map forall t e u. (fn : t -> u) (source : result t e) : result u e =
00:22:35 v #14863 > >     match source with
00:22:35 v #14864 > >     | Ok x => x |> fn |> Ok
00:22:35 v #14865 > >     | Error x => Error x
00:22:35 v #14866 > 00:22:34 d #767 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7cd35ff9f7c4c565237daa5b6de0786b1c78e6828005906fbaff0cf066bc8ee1/main.spi
00:22:35 v #14867 > >
00:22:35 v #14868 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:35 v #14869 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:35 v #14870 > > │ ### map_error                                                                │
00:22:35 v #14871 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:35 v #14872 > >
00:22:35 v #14873 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:35 v #14874 > > inl map_error forall t e u. (fn : e -> u) (source : result t e) : result t u =
00:22:35 v #14875 > >     match source with
00:22:35 v #14876 > >     | Ok x => Ok x
00:22:35 v #14877 > >     | Error x => x |> fn |> Error
00:22:35 v #14878 > 00:22:34 d #768 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b325b4de0be1802a17eaa1ab31a364a00373994c0024144e7e7a4bfc5a425927/main.spi
00:22:35 v #14879 > >
00:22:35 v #14880 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:35 v #14881 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:35 v #14882 > > │ ### unwrap_err                                                               │
00:22:35 v #14883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:35 v #14884 > >
00:22:35 v #14885 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:35 v #14886 > > inl unwrap_err forall t u. (x : result t u) : u =
00:22:35 v #14887 > >     match x with
00:22:35 v #14888 > >     | Ok x => failwith $'$"resultm.unwrap_err / x: {!x}"'
00:22:35 v #14889 > >     | Error x => x
00:22:36 v #14890 > 00:22:35 d #769 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/607b3f3457ceebfc36e95aeb74fa5699209aa33932c1586d63acd29db70fb9cf/main.spi
00:22:36 v #14891 > >
00:22:36 v #14892 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:36 v #14893 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:36 v #14894 > > │ ### ok                                                                       │
00:22:36 v #14895 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:36 v #14896 > >
00:22:36 v #14897 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:36 v #14898 > > inl ok forall t. (x : result t _) : option t =
00:22:36 v #14899 > >     match x with
00:22:36 v #14900 > >     | Ok x => Some x
00:22:36 v #14901 > >     | Error _ => None
00:22:36 v #14902 > 00:22:35 d #770 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3502f738ff527c53ef2b2c24599e7536c506619465eb2431b401ce53f9dfface/main.spi
00:22:36 v #14903 > >
00:22:36 v #14904 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:36 v #14905 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:36 v #14906 > > │ ## fsharp                                                                    │
00:22:36 v #14907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:36 v #14908 > >
00:22:36 v #14909 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:36 v #14910 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:36 v #14911 > > │ ### result'                                                                  │
00:22:36 v #14912 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:36 v #14913 > >
00:22:36 v #14914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:36 v #14915 > > nominal result' t u = $'Result<`t, `u>'
00:22:36 v #14916 > 00:22:36 d #771 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b8e74dfbc649b8eab1367dc2a78675c778d8a15ba46b2c7146557c32c27b00ec/main.spi
00:22:37 v #14917 > >
00:22:37 v #14918 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:37 v #14919 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:37 v #14920 > > │ ### unbox                                                                    │
00:22:37 v #14921 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:37 v #14922 > >
00:22:37 v #14923 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:37 v #14924 > > inl unbox forall t u. (x : result' t u) : result t u =
00:22:37 v #14925 > >     inl ok x : result t u = Ok x
00:22:37 v #14926 > >     inl error x : result t u = Error x
00:22:37 v #14927 > >     real
00:22:37 v #14928 > >         typecase t with
00:22:37 v #14929 > >         | () => $'match !x with Ok () -> !ok () | Error x -> !error x' : result
00:22:37 v #14930 > > t u
00:22:37 v #14931 > >         | _ => $'match !x with Ok x -> !ok x | Error x -> !error x' : result t u
00:22:37 v #14932 > 00:22:36 d #772 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d47e3bda6787db254764074903d0aa57f9c39410b02ec5780360b52a11a5234/main.spi
00:22:37 v #14933 > >
00:22:37 v #14934 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:37 v #14935 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:37 v #14936 > > │ ### box                                                                      │
00:22:37 v #14937 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:37 v #14938 > >
00:22:37 v #14939 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:37 v #14940 > > inl box forall t u. (x : result t u) : result' t u =
00:22:37 v #14941 > >     match x with
00:22:37 v #14942 > >     | Ok x => $'Ok !x '
00:22:37 v #14943 > >     | Error err => $'Error !err '
00:22:37 v #14944 > 00:22:36 d #773 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32d156e4ab2ecd6686abe06b7dcdf36dd5a3ab9096154764b23afdbd6df27558/main.spi
00:22:37 v #14945 > >
00:22:37 v #14946 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:37 v #14947 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:37 v #14948 > > │ ## rust                                                                      │
00:22:37 v #14949 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:37 v #14950 > >
00:22:37 v #14951 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:37 v #14952 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:37 v #14953 > > │ ### anyhow_result                                                            │
00:22:37 v #14954 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:37 v #14955 > >
00:22:37 v #14956 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:37 v #14957 > > nominal anyhow_result t =
00:22:37 v #14958 > >     `(
00:22:37 v #14959 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:37 v #14960 > > Fable.Core.Emit(\"anyhow::Result<$0>\")>]]\n#endif\ntype anyhow_Result<'T> =
00:22:37 v #14961 > > class end"
00:22:37 v #14962 > >         $'' : $'anyhow_Result<`t>'
00:22:37 v #14963 > >     )
00:22:38 v #14964 > 00:22:37 d #774 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6aa0a21c5aaa74e814a0e206dd1d21117a534ed4a840bbdd11883d79c65be3eb/main.spi
00:22:38 v #14965 > >
00:22:38 v #14966 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:38 v #14967 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:38 v #14968 > > │ ### anyhow_error                                                             │
00:22:38 v #14969 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:38 v #14970 > >
00:22:38 v #14971 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:38 v #14972 > > nominal anyhow_error =
00:22:38 v #14973 > >     `(
00:22:38 v #14974 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:38 v #14975 > > Fable.Core.Emit(\"anyhow::Error\")>]]\n#endif\ntype anyhow_Error = class end"
00:22:38 v #14976 > >         $'' : $'anyhow_Error'
00:22:38 v #14977 > >     )
00:22:38 v #14978 > >
00:22:38 v #14979 > > inl anyhow_error error =
00:22:38 v #14980 > >     !\\(error, $'"anyhow::anyhow\!($0)"')
00:22:38 v #14981 > 00:22:37 d #775 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a06e5f1d8aed91b43c7663a70ac9fded2e68e367bc1033d517ff792e9842075/main.spi
00:22:38 v #14982 > >
00:22:38 v #14983 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:38 v #14984 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:38 v #14985 > > │ ### try'                                                                     │
00:22:38 v #14986 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:38 v #14987 > >
00:22:38 v #14988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:38 v #14989 > > inl try' forall t u. (x : result' t u) : t =
00:22:38 v #14990 > >     inl is_unit =
00:22:38 v #14991 > >         real
00:22:38 v #14992 > >             typecase t with
00:22:38 v #14993 > >             | () => true
00:22:38 v #14994 > >             | _ => false
00:22:38 v #14995 > >     if is_unit
00:22:38 v #14996 > >     then (!\\(x, $'"true; $0?"') : bool) |> fun _ => $''
00:22:38 v #14997 > >     else !\\(x, $'"$0?"')
00:22:38 v #14998 > 00:22:38 d #776 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/34ac6e68c964316e9bd3c4ee5fdd10686d215e9637f32c26af6c696aaa69ba67/main.spi
00:22:39 v #14999 > >
00:22:39 v #15000 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:39 v #15001 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:39 v #15002 > > │ ### to_try                                                                   │
00:22:39 v #15003 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:39 v #15004 > >
00:22:39 v #15005 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:39 v #15006 > > inl to_try forall t u. (x : result' t u) : rust.try t =
00:22:39 v #15007 > >     !\\(x, $'"$0"')
00:22:39 v #15008 > 00:22:38 d #777 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e52f2cb1c96e37df006304392a0430e6e2b9a619f86b13324b36369fff304c7b/main.spi
00:22:39 v #15009 > >
00:22:39 v #15010 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:39 v #15011 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:39 v #15012 > > │ ### unwrap'                                                                  │
00:22:39 v #15013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:39 v #15014 > >
00:22:39 v #15015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:39 v #15016 > > inl unwrap' forall t u. (x : result' t u) : t =
00:22:39 v #15017 > >     run_target function
00:22:39 v #15018 > >         | Rust _ => fun () => !\\(x, $'"$0.unwrap()"')
00:22:39 v #15019 > >         | _ => fun () => $'match !x with Ok x -> x | Error e -> failwith
00:22:39 v #15020 > > $"resultm.unwrap\' / e: {e}"'
00:22:39 v #15021 > 00:22:39 d #778 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b84ea07f42f2425e8b202f049fd6a5532cb2a6564822d84cb4d65842089e71f7/main.spi
00:22:40 v #15022 > >
00:22:40 v #15023 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:40 v #15024 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:40 v #15025 > > │ ### unwrap_err'                                                              │
00:22:40 v #15026 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:40 v #15027 > >
00:22:40 v #15028 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:40 v #15029 > > inl unwrap_err' forall t u. (x : result' t u) : u =
00:22:40 v #15030 > >     $'match !x with Ok x -> failwith $"resultm.unwrap_err\' / x: %A{x}" | Error
00:22:40 v #15031 > > x -> x'
00:22:40 v #15032 > 00:22:39 d #779 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a59dc9d1ffcdaf9097ee5e6d13897e56040143a45f6cd22d931cf1e6bdf00c2/main.spi
00:22:40 v #15033 > >
00:22:40 v #15034 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:40 v #15035 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:40 v #15036 > > │ ### unbox'                                                                   │
00:22:40 v #15037 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:40 v #15038 > >
00:22:40 v #15039 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:40 v #15040 > > inl unbox' forall t u. (x : result' t u) : result t u =
00:22:40 v #15041 > >     inl ok x : result t u = Ok x
00:22:40 v #15042 > >     inl ok = join ok
00:22:40 v #15043 > >     inl error x : result t u = Error x
00:22:40 v #15044 > >     inl error = join error
00:22:40 v #15045 > >     real
00:22:40 v #15046 > >         typecase t with
00:22:40 v #15047 > >         | () =>
00:22:40 v #15048 > >             (~!\\)
00:22:40 v #15049 > >                 `((result' t u -> result t u) * (result' t u -> result t u))
00:22:40 v #15050 > >                 `(result t u)
00:22:40 v #15051 > >                 ((ok, error, x), ($'"match $2 { Ok(()) => $0(()), Err(e) =>
00:22:40 v #15052 > > $1(e) }"' : string))
00:22:40 v #15053 > >         | _ =>
00:22:40 v #15054 > >             (~!\\)
00:22:40 v #15055 > >                 `((result' t u -> result t u) * (result' t u -> result t u))
00:22:40 v #15056 > >                 `(result t u)
00:22:40 v #15057 > >                 ((ok, error, x), ($'"match $2 { Ok(x) => $0(x), Err(e) => $1(e)
00:22:40 v #15058 > > }"' : string))
00:22:40 v #15059 > 00:22:39 d #780 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32f49a89f2447515994ab7850dd92e455f201d96ed7614047aaa05f512604a2f/main.spi
00:22:40 v #15060 > >
00:22:40 v #15061 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:40 v #15062 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:40 v #15063 > > │ ### map'                                                                     │
00:22:40 v #15064 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:40 v #15065 > >
00:22:40 v #15066 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:40 v #15067 > > inl map' forall t e u. (fn : t -> u) (source : result' t e) : result' u e =
00:22:40 v #15068 > >     (!\\(source, $'"true; let _result_map_ = $0.map(|x| { //"') : bool) |>
00:22:40 v #15069 > > ignore
00:22:40 v #15070 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:22:40 v #15071 > >     !\($'"_result_map_"')
00:22:41 v #15072 > 00:22:40 d #781 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f6e522c04368665a65af9b7e3ce495d4756f4a058048eb1e378af7905d66005c/main.spi
00:22:41 v #15073 > >
00:22:41 v #15074 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:41 v #15075 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:41 v #15076 > > │ ### map''                                                                    │
00:22:41 v #15077 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:41 v #15078 > >
00:22:41 v #15079 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:41 v #15080 > > inl map'' forall t e u. (fn : t -> u) (source : result' t e) : result' u e =
00:22:41 v #15081 > >     inl fn = join fn
00:22:41 v #15082 > >     inl source = join source
00:22:41 v #15083 > >     !\($'"!source.map(|x| !fn(x))"')
00:22:41 v #15084 > 00:22:40 d #782 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8b26106b9a12978dadc5982584fbc9708979d55e3762ab7b7bdd4f577506f00/main.spi
00:22:41 v #15085 > >
00:22:41 v #15086 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:41 v #15087 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:41 v #15088 > > │ ### map_error'                                                               │
00:22:41 v #15089 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:41 v #15090 > >
00:22:41 v #15091 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:41 v #15092 > > inl map_error' forall t e u. (fn : e -> u) (source : result' t e) : result' t u
00:22:41 v #15093 > > =
00:22:41 v #15094 > >     inl fn = join fn
00:22:41 v #15095 > >     run_target_args (fun () => fn) function
00:22:41 v #15096 > >         | Rust _ => fun fn =>
00:22:41 v #15097 > >             !\\((source, fn), $'"$0.map_err(|x| $1(x))"')
00:22:41 v #15098 > >         | _ => fun fn =>
00:22:41 v #15099 > >             $'match !source with Ok x -> Ok x | Error x -> Error (!fn x)' :
00:22:41 v #15100 > > result' t u
00:22:41 v #15101 > 00:22:41 d #783 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d3f618a2509507d883bf1f59fff0664a11b7565b9341e5a9f70dca16f19cd79/main.spi
00:22:42 v #15102 > >
00:22:42 v #15103 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:42 v #15104 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:42 v #15105 > > │ ### map_error''                                                              │
00:22:42 v #15106 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:42 v #15107 > >
00:22:42 v #15108 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:42 v #15109 > > inl map_error'' forall t e u. (fn : e -> u) (source : result' t e) : result' t u
00:22:42 v #15110 > > =
00:22:42 v #15111 > >     (!\\(source, $'"true; let _result_map_error__ = $0.map_err(|x| { //"') :
00:22:42 v #15112 > > bool) |> ignore
00:22:42 v #15113 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:22:42 v #15114 > >     !\($'"_result_map_error__"')
00:22:42 v #15115 > 00:22:41 d #784 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/173d12d9bb59cb9618773c5750df057a95f0c4043d0b81e07460622e883dff1f/main.spi
00:22:42 v #15116 > >
00:22:42 v #15117 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:42 v #15118 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:42 v #15119 > > │ ### option_ok_or                                                             │
00:22:42 v #15120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:42 v #15121 > >
00:22:42 v #15122 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:42 v #15123 > > inl option_ok_or forall t e. (e : e) (source : optionm'.option' t) : result' t e
00:22:42 v #15124 > > =
00:22:42 v #15125 > >     !\\(source, $'"$0.ok_or(!e)"')
00:22:42 v #15126 > 00:22:42 d #785 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b7ad981738c15ca2790d343bdb4c10faa238bb67f4c5c6b41d28f62bbca42f7f/main.spi
00:22:43 v #15127 > >
00:22:43 v #15128 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:43 v #15129 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:43 v #15130 > > │ ### unwrap_or_else                                                           │
00:22:43 v #15131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:43 v #15132 > >
00:22:43 v #15133 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:43 v #15134 > > inl unwrap_or_else forall t e u. (fn : e -> u) (source : result' t e) : u =
00:22:43 v #15135 > >     (!\\(source, $'"true; let _result_unwrap_or_else = $0.unwrap_or_else(|x| {
00:22:43 v #15136 > > //"') : bool) |> ignore
00:22:43 v #15137 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:22:43 v #15138 > >     !\($'"_result_unwrap_or_else"')
00:22:43 v #15139 > 00:22:42 d #786 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/171b051eb28ecc703a9789e4aadcb11f7ac0b9dd45ee64fa44c059ce4460c26f/main.spi
00:22:43 v #15140 > >
00:22:43 v #15141 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:43 v #15142 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:43 v #15143 > > │ ### map_or_else                                                              │
00:22:43 v #15144 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:43 v #15145 > >
00:22:43 v #15146 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:43 v #15147 > > inl map_or_else forall t e u v. (fn : e -> v) (fn2 : u -> v) (source : result' t
00:22:43 v #15148 > > e) : v =
00:22:43 v #15149 > >     (!\\(source, $'"true; let _result_map_or_else = $0.map_or_else(|x| { //"') :
00:22:43 v #15150 > > bool) |> ignore
00:22:43 v #15151 > >     (!\\(fn !\($'"x"'), $'"true; $0 }, |x| { //"') : bool) |> ignore
00:22:43 v #15152 > >     (!\\(fn2 !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:22:43 v #15153 > >     !\($'"_result_map_or_else"')
00:22:43 v #15154 > 00:22:42 d #787 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc466e4e603959af88a0037b2256fc34f560b4b7f296c88f7e0197e8dcb8c3a4/main.spi
00:22:43 v #15155 > >
00:22:43 v #15156 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:43 v #15157 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:43 v #15158 > > │ ### as_ref                                                                   │
00:22:43 v #15159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:43 v #15160 > >
00:22:43 v #15161 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:43 v #15162 > > inl as_ref forall t e. (source : result' t e) : result' (rust.ref t) (rust.ref
00:22:43 v #15163 > > e) =
00:22:43 v #15164 > >     !\($'"!source.as_ref()"')
00:22:44 v #15165 > 00:22:43 d #788 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d5fca658bd0699a8431c864b10c5954a61cf4527608f8cb841b452a570d5d16/main.spi
00:22:44 v #15166 > >
00:22:44 v #15167 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:44 v #15168 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:44 v #15169 > > │ ### as_ref'                                                                  │
00:22:44 v #15170 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:44 v #15171 > >
00:22:44 v #15172 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:44 v #15173 > > inl as_ref' forall t e. (source : rust.ref (result' t e)) : result' (rust.ref t)
00:22:44 v #15174 > > (rust.ref e) =
00:22:44 v #15175 > >     !\($'"!source.as_ref()"')
00:22:44 v #15176 > 00:22:43 d #789 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1597a9b023b7743b7157636089306816b367b56d53ab3e25dc333b10e7eb2611/main.spi
00:22:44 v #15177 > >
00:22:44 v #15178 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:44 v #15179 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:44 v #15180 > > │ ### unwrap_or'                                                               │
00:22:44 v #15181 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:44 v #15182 > >
00:22:44 v #15183 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:44 v #15184 > > inl unwrap_or' forall t u. (default : t) (x : result' t u) : t =
00:22:44 v #15185 > >     !\\((x, default), $'"$0.unwrap_or($1)"')
00:22:44 v #15186 > 00:22:44 d #790 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ed6c3f2640f6a2a67f16278d4a9f2b002b7d03504492f3aa2ddef0db10c0f5b/main.spi
00:22:45 v #15187 > >
00:22:45 v #15188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:45 v #15189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:45 v #15190 > > │ ### expect                                                                   │
00:22:45 v #15191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:45 v #15192 > >
00:22:45 v #15193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:45 v #15194 > > inl expect forall t u. (error : rust.ref string) (x : result' t u) : t =
00:22:45 v #15195 > >     !\($'"!x.expect(&!error)"')
00:22:45 v #15196 > 00:22:44 d #791 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6bf216059195f3255a67c47efe51c6787466dda461dd420d11a1231967000b30/main.spi
00:22:45 v #15197 > >
00:22:45 v #15198 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:45 v #15199 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:45 v #15200 > > │ ### is_err                                                                   │
00:22:45 v #15201 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:45 v #15202 > >
00:22:45 v #15203 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:45 v #15204 > > inl is_err forall t u. (x : result' t u) : bool =
00:22:45 v #15205 > >     run_target function
00:22:45 v #15206 > >         | Rust _ => fun () => !\\(x, $'"$0.is_err()"')
00:22:45 v #15207 > >         | _ => fun () => true
00:22:45 v #15208 > 00:22:45 d #792 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/01d027d402612fde3ece57cf4ff77a5418db186acebd3dac36edc12b3ce12044/main.spi
00:22:46 v #15209 > >
00:22:46 v #15210 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:46 v #15211 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:46 v #15212 > > │ ### ok'                                                                      │
00:22:46 v #15213 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:46 v #15214 > >
00:22:46 v #15215 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:46 v #15216 > > inl ok' forall t. (x : result' t _) : optionm'.option' t =
00:22:46 v #15217 > >     run_target function
00:22:46 v #15218 > >         | Rust _ => fun () => !\\(x, $'"$0.ok()"')
00:22:46 v #15219 > >         | _ => fun () => $'match !x with Ok x -> Some x | Error _ -> None'
00:22:46 v #15220 > 00:22:45 d #793 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc992e6275fa5a6f983f31706ebed39b3be4e218e35eb132956f8502a0412735/main.spi
00:22:47 v #15221 > >
00:22:47 v #15222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:47 v #15223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:47 v #15224 > > │ ### err                                                                      │
00:22:47 v #15225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:47 v #15226 > >
00:22:47 v #15227 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:47 v #15228 > > inl err forall t u. (x : u) : result' t u =
00:22:47 v #15229 > >     run_target function
00:22:47 v #15230 > >         | Rust _ => fun () => !\\(x, $'"Err($0)"')
00:22:47 v #15231 > >         | _ => fun () => $'!x |> Error'
00:22:47 v #15232 > 00:22:46 d #794 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2756d57c66e0d75eaff6834475ad760f773dd782de97418ec7cef88ed7183066/main.spi
00:22:47 v #15233 > >
00:22:47 v #15234 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:47 v #15235 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:47 v #15236 > > │ ### ok''                                                                     │
00:22:47 v #15237 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:47 v #15238 > >
00:22:47 v #15239 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:47 v #15240 > > inl ok'' forall t u. (x : t) : result' t u =
00:22:47 v #15241 > >     run_target function
00:22:47 v #15242 > >         | Rust _ => fun () => !\\(x, $'"Ok($0)"')
00:22:47 v #15243 > >         | _ => fun () => $'!x |> Ok'
00:22:47 v #15244 > 00:22:46 d #795 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/39ca08b971f94ca6dc47eb54da4368a5825a46e4dc9987248add687a73fe5c0d/main.spi
00:22:47 v #15245 > >
00:22:47 v #15246 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:47 v #15247 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:47 v #15248 > > │ ### transpose                                                                │
00:22:47 v #15249 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:47 v #15250 > >
00:22:47 v #15251 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:47 v #15252 > > inl transpose forall t u. (x : optionm'.option' (result' t u)) : result'
00:22:47 v #15253 > > (optionm'.option' t) u =
00:22:47 v #15254 > >     !\\(x, $'"$0.transpose()"')
00:22:48 v #15255 > 00:22:47 d #796 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2ebf25deeefff938940506510c703ca3840b0993ab291f19bf799ea7b7d3e7de/main.spi
00:22:48 v #15256 > >
00:22:48 v #15257 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:48 v #15258 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:48 v #15259 > > │ ### rc_try_unwrap                                                            │
00:22:48 v #15260 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:48 v #15261 > >
00:22:48 v #15262 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:48 v #15263 > > inl rc_try_unwrap forall t. (x : rust.rc t) : result' t (rust.rc t) =
00:22:48 v #15264 > >     !\\(x, $'"std::rc::Rc::try_unwrap($0)"')
00:22:48 v #15265 > 00:22:47 d #797 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f8c1bdb15f38f85106ad9d489e6ca5f5daa0eda5a65752d86757352edac5faa3/main.spi
00:22:48 v #15266 > >
00:22:48 v #15267 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:48 v #15268 > > //// test
00:22:48 v #15269 > > ///! rust
00:22:48 v #15270 > >
00:22:48 v #15271 > > rust.new_rc true
00:22:48 v #15272 > > |> rc_try_unwrap
00:22:48 v #15273 > > |> unbox
00:22:48 v #15274 > > |> _assert_eq (Ok true)
00:22:49 v #15275 > 00:22:48 d #798 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14d4e8e453f8953c51e2c46b8c3585b58a906ed86351dfa52690672b0565cb2a/main.spi
00:23:05 v #15276 > >
00:23:05 v #15277 > > ╭─[ 16.54s - return value ]────────────────────────────────────────────────────╮
00:23:05 v #15278 > > │ __assert_eq / actual: US0_0(true) / expected: US0_0(true)                    │
00:23:05 v #15279 > > │                                                                              │
00:23:05 v #15280 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:05 v #15281 > 00:00:40 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 23437 }
00:23:05 v #15282 > 00:00:40 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:07 v #15283 > 00:00:41 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb to html
00:23:07 v #15284 > 00:00:41 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:23:07 v #15285 > 00:00:41 v #7 !   validate(nb)
00:23:08 v #15286 > 00:00:42 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:23:08 v #15287 > 00:00:42 v #9 !   return _pygments_highlight(
00:23:08 v #15288 > 00:00:43 v #10 ! [NbConvertApp] Writing 350462 bytes to c:\home\git\polyglot\lib\spiral\resultm.dib.html
00:23:09 v #15289 > 00:00:43 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 856 }
00:23:09 v #15290 > 00:00:43 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 856 }
00:23:09 v #15291 > 00:00:43 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/resultm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/resultm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:09 v #15292 > 00:00:44 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:23:09 v #15293 > 00:00:44 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:23:09 v #15294 > 00:00:44 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 24352 }
00:23:09 d #15295 runtime.execute_with_options_async / { exit_code = 0; output_length = 27866 }
00:23:09 d #17 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path resultm.dib --retries 3
00:23:09 d #15296 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path console.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path console.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:09 v #15297 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "console.dib", "--retries", "3"])) }
00:23:09 v #15298 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/console.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/console.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/console.dib" --output-path "c:/home/git/polyglot/lib/spiral/console.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:23:12 v #15299 > >
00:23:12 v #15300 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:12 v #15301 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:12 v #15302 > > │ # console                                                                    │
00:23:12 v #15303 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:16 v #15304 > >
00:23:16 v #15305 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:16 v #15306 > > //// test
00:23:16 v #15307 > >
00:23:16 v #15308 > > open testing
00:23:16 v #15309 > 00:23:16 d #799 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:23:17 v #15310 > >
00:23:17 v #15311 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:17 v #15312 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:17 v #15313 > > │ ## fsharp                                                                    │
00:23:17 v #15314 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:17 v #15315 > >
00:23:17 v #15316 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:17 v #15317 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:17 v #15318 > > │ ### console_color                                                            │
00:23:17 v #15319 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:17 v #15320 > >
00:23:17 v #15321 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:17 v #15322 > > nominal console_color = $'System.ConsoleColor'
00:23:17 v #15323 > 00:23:17 d #800 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/96ee93cc39aabd1a2400d81adcac40e5e064bc89969421c61af0a57daada1596/main.spi
00:23:18 v #15324 > >
00:23:18 v #15325 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:18 v #15326 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:18 v #15327 > > │ ### reset_color                                                              │
00:23:18 v #15328 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:18 v #15329 > >
00:23:18 v #15330 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:18 v #15331 > > inl reset_color () : () =
00:23:18 v #15332 > >     run_target function
00:23:18 v #15333 > >         | Fsharp => fun () => $'System.Console.ResetColor ()'
00:23:18 v #15334 > >         | _ => fun () => ()
00:23:18 v #15335 > 00:23:17 d #801 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eedba5d09c77233354c5748202f7f6adee96a1796fb37e9b5032f6ba1418b680/main.spi
00:23:18 v #15336 > >
00:23:18 v #15337 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:18 v #15338 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:18 v #15339 > > │ ### set_foreground_color                                                     │
00:23:18 v #15340 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:18 v #15341 > >
00:23:18 v #15342 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:18 v #15343 > > inl set_foreground_color (color : console_color) : () =
00:23:18 v #15344 > >     run_target function
00:23:18 v #15345 > >         | Fsharp => fun () => $'System.Console.ForegroundColor <- !color '
00:23:18 v #15346 > >         | _ => fun () => ()
00:23:18 v #15347 > 00:23:17 d #802 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/501a34676fc57e8aa8de7fd335dc80ddedeb4faf4c73fa7aecdef7aeb9f10d4c/main.spi
00:23:18 v #15348 > >
00:23:18 v #15349 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:18 v #15350 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:18 v #15351 > > │ ## console                                                                   │
00:23:18 v #15352 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:18 v #15353 > >
00:23:18 v #15354 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:18 v #15355 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:18 v #15356 > > │ ### write_line                                                               │
00:23:18 v #15357 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:18 v #15358 > >
00:23:18 v #15359 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:18 v #15360 > > inl write_line obj : () =
00:23:18 v #15361 > >     backend_switch {
00:23:18 v #15362 > >         Fsharp = fun () =>
00:23:18 v #15363 > >             fun () => obj |> $'System.Console.WriteLine'
00:23:18 v #15364 > >             |> exec_unit
00:23:18 v #15365 > >         Python = fun () => $'print(!obj)' : ()
00:23:18 v #15366 > >     }
00:23:19 v #15367 > 00:23:18 d #803 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3d3d688ae5fc90fd6417646839efb4aa6c9f5e83b8ba6c785551b836a5273fe/main.spi
00:23:19 v #15368 > >
00:23:19 v #15369 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:19 v #15370 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:19 v #15371 > > │ ### write                                                                    │
00:23:19 v #15372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:19 v #15373 > >
00:23:19 v #15374 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:19 v #15375 > > inl write forall t. (x : t) : () =
00:23:19 v #15376 > >     inl s = x |> sm'.format
00:23:19 v #15377 > >     backend_switch {
00:23:19 v #15378 > >         Python = fun () => $'print(!s, end="")' : ()
00:23:19 v #15379 > >         Fsharp = fun () => $'!s |> System.Console.Write' : ()
00:23:19 v #15380 > >     }
00:23:19 v #15381 > 00:23:18 d #804 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c7df1d06f3f7fb72657e84b332bc95f0ef0be7cce3055bf535ae6d41b67c1f83/main.spi
00:23:19 v #15382 > >
00:23:19 v #15383 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:19 v #15384 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:19 v #15385 > > │ ### write_ln                                                                 │
00:23:19 v #15386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:19 v #15387 > >
00:23:19 v #15388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:19 v #15389 > > inl write_ln l : () =
00:23:19 v #15390 > >     write l
00:23:19 v #15391 > >     backend_switch {
00:23:19 v #15392 > >         Cuda = fun () => $'printf("\\n")' : ()
00:23:19 v #15393 > >         Python = fun () => $"print()" : ()
00:23:19 v #15394 > >         Fsharp = fun () => write_line () : ()
00:23:19 v #15395 > >     }
00:23:20 v #15396 > 00:23:19 d #805 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1232a057f16fc2bb551400ff1eff8725e1b47e31882af1800ceee1a9bb567675/main.spi
00:23:20 v #15397 > 00:00:10 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 4503 }
00:23:20 v #15398 > 00:00:10 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/console.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/console.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:22 v #15399 > 00:00:12 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/console.dib.ipynb to html
00:23:22 v #15400 > 00:00:12 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:23:22 v #15401 > 00:00:12 v #7 !   validate(nb)
00:23:23 v #15402 > 00:00:13 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:23:23 v #15403 > 00:00:13 v #9 !   return _pygments_highlight(
00:23:23 v #15404 > 00:00:13 v #10 ! [NbConvertApp] Writing 283391 bytes to c:\home\git\polyglot\lib\spiral\console.dib.html
00:23:23 v #15405 > 00:00:14 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 856 }
00:23:23 v #15406 > 00:00:14 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 856 }
00:23:23 v #15407 > 00:00:14 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/console.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/console.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:24 v #15408 > 00:00:14 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:23:24 v #15409 > 00:00:14 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:23:24 v #15410 > 00:00:14 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 5418 }
00:23:24 d #15411 runtime.execute_with_options_async / { exit_code = 0; output_length = 8174 }
00:23:24 d #18 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path console.dib --retries 3
00:23:24 d #15412 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path base.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path base.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:24 v #15413 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "base.dib", "--retries", "3"])) }
00:23:24 v #15414 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/base.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/base.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/base.dib" --output-path "c:/home/git/polyglot/lib/spiral/base.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:23:26 v #15415 > >
00:23:26 v #15416 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:26 v #15417 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:26 v #15418 > > │ # base                                                                       │
00:23:26 v #15419 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:30 v #15420 > >
00:23:30 v #15421 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:30 v #15422 > > //// test
00:23:30 v #15423 > >
00:23:30 v #15424 > > open testing
00:23:31 v #15425 > 00:23:30 d #806 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:23:32 v #15426 > >
00:23:32 v #15427 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:32 v #15428 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:32 v #15429 > > │ ## execution                                                                 │
00:23:32 v #15430 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:32 v #15431 > >
00:23:32 v #15432 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:32 v #15433 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:32 v #15434 > > │ ### emit                                                                     │
00:23:32 v #15435 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:32 v #15436 > >
00:23:32 v #15437 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:32 v #15438 > > inl emit forall t. (x : t) : t =
00:23:32 v #15439 > >     $'!x '
00:23:32 v #15440 > 00:23:31 d #807 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/648b92af66c7db6a77722a4a6300f8b9819861d85a6afe069d09153158c2e8fb/main.spi
00:23:32 v #15441 > >
00:23:32 v #15442 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:32 v #15443 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:32 v #15444 > > │ ### emit_unit                                                                │
00:23:32 v #15445 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:32 v #15446 > >
00:23:32 v #15447 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:32 v #15448 > > inl emit_unit forall t. (x : t) : () =
00:23:32 v #15449 > >     $'!x '
00:23:32 v #15450 > 00:23:32 d #808 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a68981bb224e67662ae65b1efd646f57c712748e5adb5a7453c50f0cb03cb098/main.spi
00:23:33 v #15451 > >
00:23:33 v #15452 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:33 v #15453 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:33 v #15454 > > │ ### use                                                                      │
00:23:33 v #15455 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:33 v #15456 > >
00:23:33 v #15457 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:33 v #15458 > > inl use forall t. (x : t) : t =
00:23:33 v #15459 > >     $'use !x = !x ' : ()
00:23:33 v #15460 > >     $'!x '
00:23:33 v #15461 > 00:23:32 d #809 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/255dc504edb81506a2836ae4ca98dc7ae9f1c46b0aa971409c339af5c43180db/main.spi
00:23:33 v #15462 > >
00:23:33 v #15463 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:33 v #15464 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:33 v #15465 > > │ ## target                                                                    │
00:23:33 v #15466 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:33 v #15467 > >
00:23:33 v #15468 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:33 v #15469 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:33 v #15470 > > │ ### backend_switch                                                           │
00:23:33 v #15471 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:33 v #15472 > >
00:23:33 v #15473 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:33 v #15474 > > inl backend_switch forall t. x : t =
00:23:33 v #15475 > >     real
00:23:33 v #15476 > >         inl backend key : t =
00:23:33 v #15477 > >             inl s = real_core.string_lit_to_symbol key
00:23:33 v #15478 > >             real_core.record_type_try_find `(`x) s
00:23:33 v #15479 > >                 (forall v'. => (x s) ())
00:23:33 v #15480 > >                 (fun () => $'' : t)
00:23:33 v #15481 > >         !!!!BackendSwitch (
00:23:33 v #15482 > >             ("Fsharp", backend "Fsharp"),
00:23:33 v #15483 > >             ("Python", backend "Python"),
00:23:33 v #15484 > >             ("Cuda", backend "Cuda")
00:23:33 v #15485 > >         )
00:23:33 v #15486 > 00:23:32 d #810 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9054738f9d81744854b1b3685214364aa68b910cf4837f26208db48e06f2b5f1/main.spi
00:23:33 v #15487 > >
00:23:33 v #15488 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:33 v #15489 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:33 v #15490 > > │ ### target_runtime                                                           │
00:23:33 v #15491 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:33 v #15492 > >
00:23:33 v #15493 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:33 v #15494 > > union target_runtime =
00:23:33 v #15495 > >     | Native
00:23:33 v #15496 > >     | Wasm
00:23:33 v #15497 > >     | Contract
00:23:34 v #15498 > 00:23:33 d #811 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6de5deb231ab8703150b71c20a5ffb753dc6ec6a6b755eff1bc556125ae92f88/main.spi
00:23:34 v #15499 > >
00:23:34 v #15500 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:34 v #15501 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:34 v #15502 > > │ ### target                                                                   │
00:23:34 v #15503 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:34 v #15504 > >
00:23:34 v #15505 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:34 v #15506 > > union target =
00:23:34 v #15507 > >     | Fsharp : target_runtime
00:23:34 v #15508 > >     | Cuda : target_runtime
00:23:34 v #15509 > >     | Rust : target_runtime
00:23:34 v #15510 > >     | TypeScript : target_runtime
00:23:34 v #15511 > >     | Python : target_runtime
00:23:34 v #15512 > 00:23:33 d #812 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/212555e699979423ab21936100a02d5c099ee43a8d755a9b1207a996416acfd4/main.spi
00:23:34 v #15513 > >
00:23:34 v #15514 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:34 v #15515 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:34 v #15516 > > │ ### run_target_args                                                          │
00:23:34 v #15517 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:34 v #15518 > >
00:23:34 v #15519 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:34 v #15520 > > inl run_target_args forall t u. (args : () -> u) (fn : target -> (u -> t)) : t =
00:23:34 v #15521 > >     inl args = args () |> dyn
00:23:34 v #15522 > >     backend_switch {
00:23:34 v #15523 > >         Fsharp = fun () =>
00:23:34 v #15524 > >             inl result = $'()' : $'unit'
00:23:34 v #15525 > >             inl emit_result x : () =
00:23:34 v #15526 > >                 $'let _!result = !x '
00:23:34 v #15527 > >             $'\n#if FABLE_COMPILER || WASM || CONTRACT'
00:23:34 v #15528 > >             $'\n#if FABLE_COMPILER_RUST && \!WASM && \!CONTRACT'
00:23:34 v #15529 > >             inl target = Rust Native
00:23:34 v #15530 > >             fn target args |> emit_result
00:23:34 v #15531 > >             $'#endif\n#if FABLE_COMPILER_RUST && WASM'
00:23:34 v #15532 > >             inl target = Rust Wasm
00:23:34 v #15533 > >             fn target args |> emit_result
00:23:34 v #15534 > >             $'#endif\n#if FABLE_COMPILER_RUST && CONTRACT'
00:23:34 v #15535 > >             inl target = Rust Contract
00:23:34 v #15536 > >             fn target args |> emit_result
00:23:34 v #15537 > >             $'#endif\n#if FABLE_COMPILER_TYPESCRIPT'
00:23:34 v #15538 > >             inl target = TypeScript Native
00:23:34 v #15539 > >             fn target args |> emit_result
00:23:34 v #15540 > >             $'#endif\n#if FABLE_COMPILER_PYTHON'
00:23:34 v #15541 > >             inl target = Python Native
00:23:34 v #15542 > >             fn target args |> emit_result
00:23:34 v #15543 > >             $'#endif\n#else'
00:23:34 v #15544 > >             inl target = Fsharp Native
00:23:34 v #15545 > >             fn target args |> emit_result
00:23:34 v #15546 > >             $'#endif'
00:23:34 v #15547 > >             $'_!result ' : t
00:23:34 v #15548 > >         Python = fun () =>
00:23:34 v #15549 > >             inl target = Cuda Native
00:23:34 v #15550 > >             fn target args
00:23:34 v #15551 > >     }
00:23:34 v #15552 > 00:23:34 d #813 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/37be9d34d915243db09ed846b6b18cf92199612932229f389b6d5aa1a52f8416/main.spi
00:23:35 v #15553 > >
00:23:35 v #15554 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:35 v #15555 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:35 v #15556 > > │ ### run_target                                                               │
00:23:35 v #15557 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:35 v #15558 > >
00:23:35 v #15559 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:35 v #15560 > > inl run_target forall t. (fn : target -> (() -> t)) : t =
00:23:35 v #15561 > >     run_target_args id fn
00:23:35 v #15562 > 00:23:34 d #814 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d8deaf846f6125f280afb433bd62c2909482c86072fd40a039995e6cac77f811/main.spi
00:23:35 v #15563 > >
00:23:35 v #15564 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:35 v #15565 > > //// test
00:23:35 v #15566 > > ///! fsharp
00:23:35 v #15567 > > ///! cuda
00:23:35 v #15568 > > ///! rust
00:23:35 v #15569 > > ///! typescript
00:23:35 v #15570 > > ///! python
00:23:35 v #15571 > >
00:23:35 v #15572 > > run_target function
00:23:35 v #15573 > >     | Fsharp (Native) => fun () => $'1uy'
00:23:35 v #15574 > >     | Cuda (Native) => fun () => $'1'
00:23:35 v #15575 > >     | Rust (Native) => fun () => $'1uy'
00:23:35 v #15576 > >     | TypeScript (Native) => fun () => $'1uy'
00:23:35 v #15577 > >     | Python (Native) => fun () => $'1uy'
00:23:35 v #15578 > >     | _ => fun () => $'2uy'
00:23:35 v #15579 > > |> _assert_eq 1u8
00:23:35 v #15580 > 00:23:34 d #815 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/278916ae96c79f94888be2be94d549cb851b2c779543eab5c68d26ae68ee3c2e/main.spi
00:23:35 v #15581 > 00:23:35 d #816 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0bfa53060f211259f7c6ab0297db32061996dbd2707d6d4df710c3c24a2d18c7/main.spi
00:24:03 v #15582 > >
00:24:03 v #15583 > > ╭─[ 27.52s - return value ]────────────────────────────────────────────────────╮
00:24:03 v #15584 > > │ .py output (Cuda):                                                           │
00:24:03 v #15585 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:24:03 v #15586 > > │                                                                              │
00:24:03 v #15587 > > │ .rs output:                                                                  │
00:24:03 v #15588 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:24:03 v #15589 > > │                                                                              │
00:24:03 v #15590 > > │ .ts output:                                                                  │
00:24:03 v #15591 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:24:03 v #15592 > > │                                                                              │
00:24:03 v #15593 > > │ .py output:                                                                  │
00:24:03 v #15594 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:24:03 v #15595 > > │                                                                              │
00:24:03 v #15596 > > │                                                                              │
00:24:03 v #15597 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:03 v #15598 > >
00:24:03 v #15599 > > ╭─[ 27.52s - stdout ]──────────────────────────────────────────────────────────╮
00:24:03 v #15600 > > │ .fsx output:                                                                 │
00:24:03 v #15601 > > │ __assert_eq / actual: 1uy / expected: 1uy                                    │
00:24:03 v #15602 > > │                                                                              │
00:24:03 v #15603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:03 v #15604 > >
00:24:03 v #15605 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:03 v #15606 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:03 v #15607 > > │ ## function                                                                  │
00:24:03 v #15608 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:03 v #15609 > >
00:24:03 v #15610 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:03 v #15611 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:03 v #15612 > > │ ### eval                                                                     │
00:24:03 v #15613 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:03 v #15614 > >
00:24:03 v #15615 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:03 v #15616 > > inl eval fn =
00:24:03 v #15617 > >     fn ()
00:24:03 v #15618 > 00:24:02 d #817 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cddc986246b470f6d104bdc6d03e46601c398cc87c35bce4a98c374d80dc6fe0/main.spi
00:24:03 v #15619 > >
00:24:03 v #15620 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:03 v #15621 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:03 v #15622 > > │ ### exec_unit                                                                │
00:24:03 v #15623 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:03 v #15624 > >
00:24:03 v #15625 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:03 v #15626 > > inl exec_unit (fn : () -> ()) : () =
00:24:03 v #15627 > >     backend_switch {
00:24:03 v #15628 > >         Fsharp = fun () =>
00:24:03 v #15629 > >             inl unit = $'()' : $'unit'
00:24:03 v #15630 > >             ($'(fun () -> !fn (); !unit) ()' : $'unit') |> ignore
00:24:03 v #15631 > >         Python = fun () => fn ()
00:24:03 v #15632 > >     }
00:24:03 v #15633 > 00:24:02 d #818 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab8133456496905641847a91573ebfc8bbe7f9fcec25945d5666db5163274288/main.spi
00:24:03 v #15634 > >
00:24:03 v #15635 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:03 v #15636 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:03 v #15637 > > │ ### lazy                                                                     │
00:24:03 v #15638 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:03 v #15639 > >
00:24:03 v #15640 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:03 v #15641 > > nominal lazy t = $'Lazy<`t>'
00:24:04 v #15642 > 00:24:03 d #819 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c62beafe966c29f2a425c77d8d2141a6e652537ba366e55b5df645936c2102c1/main.spi
00:24:04 v #15643 > >
00:24:04 v #15644 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:04 v #15645 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:04 v #15646 > > │ ### memoize                                                                  │
00:24:04 v #15647 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:04 v #15648 > >
00:24:04 v #15649 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:04 v #15650 > > nominal lazy t = $'Lazy<`t>'
00:24:04 v #15651 > >
00:24:04 v #15652 > > inl memoize forall t. (fn : () -> t) : () -> t =
00:24:04 v #15653 > >     inl fn = join fn
00:24:04 v #15654 > >     backend_switch {
00:24:04 v #15655 > >         Fsharp = fun () =>
00:24:04 v #15656 > >             inl result : lazy t = $'lazy !fn ()'
00:24:04 v #15657 > >             fun () => $'!result.Value' : t
00:24:04 v #15658 > >         Python = fun () =>
00:24:04 v #15659 > >             inl result = mut None
00:24:04 v #15660 > >             inl computed = mut false
00:24:04 v #15661 > >             fun () =>
00:24:04 v #15662 > >                 if *computed
00:24:04 v #15663 > >                 then *result
00:24:04 v #15664 > >                 else
00:24:04 v #15665 > >                     result <- fn () |> Some
00:24:04 v #15666 > >                     computed <- true
00:24:04 v #15667 > >                     *result
00:24:04 v #15668 > >                 |> optionm.value
00:24:04 v #15669 > >     }
00:24:04 v #15670 > 00:24:03 d #820 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/43aec187d9f99c145f6b4f43e3f23d024bba7baacc74f0cd1d7a94e5bc92da85/main.spi
00:24:04 v #15671 > >
00:24:04 v #15672 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:04 v #15673 > > //// test
00:24:04 v #15674 > > ///! fsharp
00:24:04 v #15675 > > ///! cuda
00:24:04 v #15676 > > ///! rust
00:24:04 v #15677 > > ///! typescript
00:24:04 v #15678 > > ///! python
00:24:04 v #15679 > >
00:24:04 v #15680 > > inl count = mut 0i32
00:24:04 v #15681 > > inl add =
00:24:04 v #15682 > >     fun () =>
00:24:04 v #15683 > >         count <- *count + 1
00:24:04 v #15684 > >         count
00:24:04 v #15685 > >     |> memoize
00:24:04 v #15686 > >
00:24:04 v #15687 > > add () |> ignore
00:24:04 v #15688 > > add () |> ignore
00:24:04 v #15689 > > add () |> ignore
00:24:04 v #15690 > >
00:24:04 v #15691 > > *count
00:24:04 v #15692 > > |> _assert_eq 1
00:24:05 v #15693 > 00:24:04 d #821 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/599b4ac5ee3d1ec8d75b1af14b4cbd5f426f14ed5d09564f20ecedc16952e0e7/main.spi
00:24:05 v #15694 > 00:24:04 d #822 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/227956c6d869849badb47ad838e12e9622b0759c8d3df014d029f7bcfaf41955/main.spi
00:24:26 v #15695 > >
00:24:26 v #15696 > > ╭─[ 21.44s - return value ]────────────────────────────────────────────────────╮
00:24:26 v #15697 > > │ .py output (Cuda):                                                           │
00:24:26 v #15698 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:24:26 v #15699 > > │                                                                              │
00:24:26 v #15700 > > │ .rs output:                                                                  │
00:24:26 v #15701 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:24:26 v #15702 > > │                                                                              │
00:24:26 v #15703 > > │ .ts output:                                                                  │
00:24:26 v #15704 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:24:26 v #15705 > > │                                                                              │
00:24:26 v #15706 > > │ .py output:                                                                  │
00:24:26 v #15707 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:24:26 v #15708 > > │                                                                              │
00:24:26 v #15709 > > │                                                                              │
00:24:26 v #15710 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:26 v #15711 > >
00:24:26 v #15712 > > ╭─[ 21.44s - stdout ]──────────────────────────────────────────────────────────╮
00:24:26 v #15713 > > │ .fsx output:                                                                 │
00:24:26 v #15714 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:24:26 v #15715 > > │                                                                              │
00:24:26 v #15716 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:26 v #15717 > >
00:24:26 v #15718 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:26 v #15719 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:26 v #15720 > > │ ### capture                                                                  │
00:24:26 v #15721 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:26 v #15722 > >
00:24:26 v #15723 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:26 v #15724 > > inl capture forall t. (fn : () -> t) : t =
00:24:26 v #15725 > >     inl result = dyn true
00:24:26 v #15726 > >     $'let mutable _!result : `t option = None '
00:24:26 v #15727 > >     $'('
00:24:26 v #15728 > >     $'(fun () ->'
00:24:26 v #15729 > >     $'(fun () ->'
00:24:26 v #15730 > >     fn () |> emit_unit
00:24:26 v #15731 > >     $')'
00:24:26 v #15732 > >     $'|> fun x -> x ()'
00:24:26 v #15733 > >     $') () )'
00:24:26 v #15734 > >     $'|> fun x -> _!result <- Some x'
00:24:26 v #15735 > >     $'match _!result with Some x -> x | None -> failwith "base.capture
00:24:26 v #15736 > > _!result=None"'
00:24:26 v #15737 > 00:24:25 d #823 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fd8e606744a1e3e6f9f4963beba18c21ddc66b0da862b70e843c8455fb1d7912/main.spi
00:24:26 v #15738 > >
00:24:26 v #15739 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:26 v #15740 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:26 v #15741 > > │ ## arithmetic                                                                │
00:24:26 v #15742 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:26 v #15743 > >
00:24:26 v #15744 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:26 v #15745 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:26 v #15746 > > │ ### (+.)                                                                     │
00:24:26 v #15747 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:26 v #15748 > >
00:24:26 v #15749 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:26 v #15750 > > inl (+.) forall t. (a : t) (b : t) : t =
00:24:26 v #15751 > >     $'!a + !b '
00:24:26 v #15752 > 00:24:26 d #824 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/040e0b3404acfeab04991812d48b18e7502fbe6ec4fd2dab6c666c1152b60f64/main.spi
00:24:27 v #15753 > >
00:24:27 v #15754 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:27 v #15755 > > //// test
00:24:27 v #15756 > > ///! fsharp
00:24:27 v #15757 > > ///! cuda
00:24:27 v #15758 > > ///! rust
00:24:27 v #15759 > > ///! typescript
00:24:27 v #15760 > > ///! python
00:24:27 v #15761 > >
00:24:27 v #15762 > > ($'3' : i32) +. ($'-6' : i32)
00:24:27 v #15763 > > |> _assert_eq -3i32
00:24:27 v #15764 > 00:24:26 d #825 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/077e8dafad0122b47fc8e6d9b9df33d9bfeb965eea6ee24e4cbe2dc5f1471128/main.spi
00:24:27 v #15765 > 00:24:26 d #826 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f8d7abcbfaad9d8883e26d99d8738fbba9525541d2e7ddd4e2a32b9d132e54ec/main.spi
00:24:47 v #15766 > >
00:24:47 v #15767 > > ╭─[ 20.13s - return value ]────────────────────────────────────────────────────╮
00:24:47 v #15768 > > │ .py output (Cuda):                                                           │
00:24:47 v #15769 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:24:47 v #15770 > > │                                                                              │
00:24:47 v #15771 > > │ .rs output:                                                                  │
00:24:47 v #15772 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:24:47 v #15773 > > │                                                                              │
00:24:47 v #15774 > > │ .ts output:                                                                  │
00:24:47 v #15775 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:24:47 v #15776 > > │                                                                              │
00:24:47 v #15777 > > │ .py output:                                                                  │
00:24:47 v #15778 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:24:47 v #15779 > > │                                                                              │
00:24:47 v #15780 > > │                                                                              │
00:24:47 v #15781 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:47 v #15782 > >
00:24:47 v #15783 > > ╭─[ 20.13s - stdout ]──────────────────────────────────────────────────────────╮
00:24:47 v #15784 > > │ .fsx output:                                                                 │
00:24:47 v #15785 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:24:47 v #15786 > > │                                                                              │
00:24:47 v #15787 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:47 v #15788 > >
00:24:47 v #15789 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:47 v #15790 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:47 v #15791 > > │ ### (-.)                                                                     │
00:24:47 v #15792 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:47 v #15793 > >
00:24:47 v #15794 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:47 v #15795 > > inl (-.) forall t. (a : t) (b : t) : t =
00:24:47 v #15796 > >     $'!a - !b '
00:24:47 v #15797 > 00:24:46 d #827 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/495e668f3fe8d3c21653a5141cbb15ba1b45b691de9eeab1a89ddb57794d8cad/main.spi
00:24:47 v #15798 > >
00:24:47 v #15799 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:47 v #15800 > > //// test
00:24:47 v #15801 > > ///! fsharp
00:24:47 v #15802 > > ///! cuda
00:24:47 v #15803 > > ///! rust
00:24:47 v #15804 > > ///! typescript
00:24:47 v #15805 > > ///! python
00:24:47 v #15806 > >
00:24:47 v #15807 > > ($'3' : i32) -. ($'6' : i32)
00:24:47 v #15808 > > |> _assert_eq -3i32
00:24:47 v #15809 > 00:24:47 d #828 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/400d11f3c08875f9c57bec2a70a4c4404e0c92829889d6d2c6d85cd2fbd7e1d1/main.spi
00:24:47 v #15810 > 00:24:47 d #829 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b86a8d13f3bd9521b02ac6916fd38e82853ba72469eb7bb0edfb6bf7653011d6/main.spi
00:25:06 v #15811 > >
00:25:06 v #15812 > > ╭─[ 19.01s - return value ]────────────────────────────────────────────────────╮
00:25:06 v #15813 > > │ .py output (Cuda):                                                           │
00:25:06 v #15814 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:06 v #15815 > > │                                                                              │
00:25:06 v #15816 > > │ .rs output:                                                                  │
00:25:06 v #15817 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:06 v #15818 > > │                                                                              │
00:25:06 v #15819 > > │ .ts output:                                                                  │
00:25:06 v #15820 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:06 v #15821 > > │                                                                              │
00:25:06 v #15822 > > │ .py output:                                                                  │
00:25:06 v #15823 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:06 v #15824 > > │                                                                              │
00:25:06 v #15825 > > │                                                                              │
00:25:06 v #15826 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:06 v #15827 > >
00:25:06 v #15828 > > ╭─[ 19.01s - stdout ]──────────────────────────────────────────────────────────╮
00:25:06 v #15829 > > │ .fsx output:                                                                 │
00:25:06 v #15830 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:06 v #15831 > > │                                                                              │
00:25:06 v #15832 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:06 v #15833 > >
00:25:06 v #15834 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:06 v #15835 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:06 v #15836 > > │ ### (*.)                                                                     │
00:25:06 v #15837 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:06 v #15838 > >
00:25:06 v #15839 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:06 v #15840 > > inl (*.) forall t. (a : t) (b : t) : t =
00:25:06 v #15841 > >     $'!a * !b '
00:25:06 v #15842 > 00:25:06 d #830 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/95a464b346edc0d9fde2ec30a4422cefc59060eaf5dc4699124131f8b1f49d9b/main.spi
00:25:07 v #15843 > >
00:25:07 v #15844 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:07 v #15845 > > //// test
00:25:07 v #15846 > > ///! fsharp
00:25:07 v #15847 > > ///! cuda
00:25:07 v #15848 > > ///! rust
00:25:07 v #15849 > > ///! typescript
00:25:07 v #15850 > > ///! python
00:25:07 v #15851 > >
00:25:07 v #15852 > > ($'3' : i32) *. ($'-1' : i32)
00:25:07 v #15853 > > |> _assert_eq -3i32
00:25:07 v #15854 > 00:25:06 d #831 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe27f16c828b111e950355ac5627c53912db1423df16c531b7f9bbdbb22125e7/main.spi
00:25:07 v #15855 > 00:25:06 d #832 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7eabb726e80351ec710d80658fab65ca2cbc1d60e822e47c9b13acbfadf17c83/main.spi
00:25:29 v #15856 > >
00:25:29 v #15857 > > ╭─[ 22.73s - return value ]────────────────────────────────────────────────────╮
00:25:29 v #15858 > > │ .py output (Cuda):                                                           │
00:25:29 v #15859 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:29 v #15860 > > │                                                                              │
00:25:29 v #15861 > > │ .rs output:                                                                  │
00:25:29 v #15862 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:29 v #15863 > > │                                                                              │
00:25:29 v #15864 > > │ .ts output:                                                                  │
00:25:29 v #15865 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:29 v #15866 > > │                                                                              │
00:25:29 v #15867 > > │ .py output:                                                                  │
00:25:29 v #15868 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:29 v #15869 > > │                                                                              │
00:25:29 v #15870 > > │                                                                              │
00:25:29 v #15871 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:29 v #15872 > >
00:25:29 v #15873 > > ╭─[ 22.73s - stdout ]──────────────────────────────────────────────────────────╮
00:25:29 v #15874 > > │ .fsx output:                                                                 │
00:25:29 v #15875 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:29 v #15876 > > │                                                                              │
00:25:29 v #15877 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:29 v #15878 > >
00:25:29 v #15879 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:29 v #15880 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:29 v #15881 > > │ ### (/.)                                                                     │
00:25:29 v #15882 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:29 v #15883 > >
00:25:29 v #15884 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:29 v #15885 > > inl (/.) forall t. (a : t) (b : t) : t =
00:25:29 v #15886 > >     $'!a / !b '
00:25:29 v #15887 > 00:25:29 d #833 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2034d43ac978d79199369338d0e51eba884c627d36cc25f4e27369c150bc4c0/main.spi
00:25:30 v #15888 > >
00:25:30 v #15889 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:30 v #15890 > > //// test
00:25:30 v #15891 > > ///! fsharp
00:25:30 v #15892 > > ///! cuda
00:25:30 v #15893 > > ///! rust
00:25:30 v #15894 > > ///! typescript
00:25:30 v #15895 > > ///! python
00:25:30 v #15896 > >
00:25:30 v #15897 > > ($'-3' : i32) /. ($'1' : i32)
00:25:30 v #15898 > > |> _assert_eq -3i32
00:25:30 v #15899 > 00:25:29 d #834 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/41f0e72cd92fcf025eb5e6bddd39ac862b0275b031803de19aaf8f227111ee2a/main.spi
00:25:30 v #15900 > 00:25:29 d #835 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aab65d1567e0d3b4cfd107350fa835c7c9a58859a58fa290f5ab31af507b88f7/main.spi
00:25:53 v #15901 > >
00:25:53 v #15902 > > ╭─[ 22.99s - return value ]────────────────────────────────────────────────────╮
00:25:53 v #15903 > > │ .py output (Cuda):                                                           │
00:25:53 v #15904 > > │ __assert_eq / actual: -3.0 / expected: -3                                    │
00:25:53 v #15905 > > │                                                                              │
00:25:53 v #15906 > > │ .rs output:                                                                  │
00:25:53 v #15907 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:53 v #15908 > > │                                                                              │
00:25:53 v #15909 > > │ .ts output:                                                                  │
00:25:53 v #15910 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:53 v #15911 > > │                                                                              │
00:25:53 v #15912 > > │ .py output:                                                                  │
00:25:53 v #15913 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:53 v #15914 > > │                                                                              │
00:25:53 v #15915 > > │                                                                              │
00:25:53 v #15916 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:53 v #15917 > >
00:25:53 v #15918 > > ╭─[ 22.99s - stdout ]──────────────────────────────────────────────────────────╮
00:25:53 v #15919 > > │ .fsx output:                                                                 │
00:25:53 v #15920 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:25:53 v #15921 > > │                                                                              │
00:25:53 v #15922 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:53 v #15923 > >
00:25:53 v #15924 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:53 v #15925 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:53 v #15926 > > │ ## comparison                                                                │
00:25:53 v #15927 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:53 v #15928 > >
00:25:53 v #15929 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:53 v #15930 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:53 v #15931 > > │ ### (=.)                                                                     │
00:25:53 v #15932 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:53 v #15933 > >
00:25:53 v #15934 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:53 v #15935 > > inl (=.) forall t. (a : t) (b : t) : bool =
00:25:53 v #15936 > >     backend_switch {
00:25:53 v #15937 > >         Fsharp = fun () => $'!a = !b ' : bool
00:25:53 v #15938 > >         Python = fun () => $'!a == !b ' : bool
00:25:53 v #15939 > >     }
00:25:53 v #15940 > 00:25:52 d #836 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b0be7dd05d767d419a000038d5663e56d61e7ecfb48f539c65e72358c6019a0/main.spi
00:25:53 v #15941 > >
00:25:53 v #15942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:53 v #15943 > > //// test
00:25:53 v #15944 > > ///! fsharp
00:25:53 v #15945 > > ///! cuda
00:25:53 v #15946 > > ///! rust
00:25:53 v #15947 > > ///! typescript
00:25:53 v #15948 > > ///! python
00:25:53 v #15949 > >
00:25:53 v #15950 > > ($'-3' : i32) =. ($'-3' : i32)
00:25:53 v #15951 > > |> _assert_eq true
00:25:54 v #15952 > 00:25:53 d #837 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/887e7f233a4eaa87a3af35199ccc8d541ff9c96c550e10ebf6570b98c1a30278/main.spi
00:25:54 v #15953 > 00:25:53 d #838 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/191e11282dec9475904ed14e29cdf012f1037cbb1316dcd02678914dccb30979/main.spi
00:26:17 v #15954 > >
00:26:17 v #15955 > > ╭─[ 23.33s - return value ]────────────────────────────────────────────────────╮
00:26:17 v #15956 > > │ .py output (Cuda):                                                           │
00:26:17 v #15957 > > │ __assert_eq / actual: True / expected: True                                  │
00:26:17 v #15958 > > │                                                                              │
00:26:17 v #15959 > > │ .rs output:                                                                  │
00:26:17 v #15960 > > │ __assert_eq / actual: true / expected: true                                  │
00:26:17 v #15961 > > │                                                                              │
00:26:17 v #15962 > > │ .ts output:                                                                  │
00:26:17 v #15963 > > │ __assert_eq / actual: true / expected: true                                  │
00:26:17 v #15964 > > │                                                                              │
00:26:17 v #15965 > > │ .py output:                                                                  │
00:26:17 v #15966 > > │ __assert_eq / actual: true / expected: true                                  │
00:26:17 v #15967 > > │                                                                              │
00:26:17 v #15968 > > │                                                                              │
00:26:17 v #15969 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:17 v #15970 > >
00:26:17 v #15971 > > ╭─[ 23.33s - stdout ]──────────────────────────────────────────────────────────╮
00:26:17 v #15972 > > │ .fsx output:                                                                 │
00:26:17 v #15973 > > │ __assert_eq / actual: true / expected: true                                  │
00:26:17 v #15974 > > │                                                                              │
00:26:17 v #15975 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:17 v #15976 > >
00:26:17 v #15977 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:17 v #15978 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:17 v #15979 > > │ ### (<>.)                                                                    │
00:26:17 v #15980 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:17 v #15981 > >
00:26:17 v #15982 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:17 v #15983 > > inl (<>.) forall t. (a : t) (b : t) : bool =
00:26:17 v #15984 > >     backend_switch {
00:26:17 v #15985 > >         Fsharp = fun () => $'!a <> !b ' : bool
00:26:17 v #15986 > >         Python = fun () => $'!a \!= !b ' : bool
00:26:17 v #15987 > >     }
00:26:17 v #15988 > 00:26:16 d #839 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ffc9e81d02e1384e906850f0ecc5ce02bb1b972126b630e7cd52d2528c33065/main.spi
00:26:17 v #15989 > >
00:26:17 v #15990 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:17 v #15991 > > //// test
00:26:17 v #15992 > > ///! fsharp
00:26:17 v #15993 > > ///! cuda
00:26:17 v #15994 > > ///! rust
00:26:17 v #15995 > > ///! typescript
00:26:17 v #15996 > > ///! python
00:26:17 v #15997 > >
00:26:17 v #15998 > > ($'-3' : i32) <>. ($'3' : i32)
00:26:17 v #15999 > > |> _assert_eq true
00:26:17 v #16000 > 00:26:16 d #840 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ec378fb64da126d035e09d1c2c2084fa9b78347f7f79d8060196637cf76beb0/main.spi
00:26:17 v #16001 > 00:26:17 d #841 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/67eac87bf77726c0098f0366c7d38279faa7f8d72261ba59f02b8f46071ae534/main.spi
00:26:38 v #16002 > >
00:26:38 v #16003 > > ╭─[ 20.74s - return value ]────────────────────────────────────────────────────╮
00:26:38 v #16004 > > │ .py output (Cuda):                                                           │
00:26:38 v #16005 > > │ __assert_eq / actual: True / expected: True                                  │
00:26:38 v #16006 > > │                                                                              │
00:26:38 v #16007 > > │ .rs output:                                                                  │
00:26:38 v #16008 > > │ __assert_eq / actual: true / expected: true                                  │
00:26:38 v #16009 > > │                                                                              │
00:26:38 v #16010 > > │ .ts output:                                                                  │
00:26:38 v #16011 > > │ __assert_eq / actual: true / expected: true                                  │
00:26:38 v #16012 > > │                                                                              │
00:26:38 v #16013 > > │ .py output:                                                                  │
00:26:38 v #16014 > > │ __assert_eq / actual: true / expected: true                                  │
00:26:38 v #16015 > > │                                                                              │
00:26:38 v #16016 > > │                                                                              │
00:26:38 v #16017 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:38 v #16018 > >
00:26:38 v #16019 > > ╭─[ 20.74s - stdout ]──────────────────────────────────────────────────────────╮
00:26:38 v #16020 > > │ .fsx output:                                                                 │
00:26:38 v #16021 > > │ __assert_eq / actual: true / expected: true                                  │
00:26:38 v #16022 > > │                                                                              │
00:26:38 v #16023 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:38 v #16024 > >
00:26:38 v #16025 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:38 v #16026 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:38 v #16027 > > │ ## (<>..)                                                                    │
00:26:38 v #16028 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:38 v #16029 > >
00:26:38 v #16030 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:38 v #16031 > > inl (<>..) a b =
00:26:38 v #16032 > >     fun () => a = b
00:26:38 v #16033 > >     |> dyn
00:26:38 v #16034 > >     |> eval
00:26:38 v #16035 > >     |> not
00:26:38 v #16036 > 00:26:37 d #842 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4619af67a573a39575301b442540af5793dcfc23bdd7a2c413a86bbd8cbca46c/main.spi
00:26:38 v #16037 > >
00:26:38 v #16038 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:38 v #16039 > > //// test
00:26:38 v #16040 > > ///! fsharp
00:26:38 v #16041 > > ///! cuda
00:26:38 v #16042 > > ///! rust
00:26:38 v #16043 > > ///! typescript
00:26:38 v #16044 > > ///! python
00:26:38 v #16045 > >
00:26:38 v #16046 > > ($'-3' : i32) <>.. ($'3' : i32)
00:26:38 v #16047 > > |> _assert_eq true
00:26:38 v #16048 > 00:26:38 d #843 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d0542850220b0d7e5612d7177472340989937e19b1154faca973d1f8a556c8c9/main.spi
00:26:39 v #16049 > 00:26:38 d #844 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ca9a617097c2ecd1c4dd4f689b52e3eae351a39db6dd1a46fb92037d77dd4a2/main.spi
00:27:05 v #16050 > >
00:27:05 v #16051 > > ╭─[ 26.52s - return value ]────────────────────────────────────────────────────╮
00:27:05 v #16052 > > │ .py output (Cuda):                                                           │
00:27:05 v #16053 > > │ __assert_eq / actual: True / expected: True                                  │
00:27:05 v #16054 > > │                                                                              │
00:27:05 v #16055 > > │ .rs output:                                                                  │
00:27:05 v #16056 > > │ __assert_eq / actual: true / expected: true                                  │
00:27:05 v #16057 > > │                                                                              │
00:27:05 v #16058 > > │ .ts output:                                                                  │
00:27:05 v #16059 > > │ __assert_eq / actual: true / expected: true                                  │
00:27:05 v #16060 > > │                                                                              │
00:27:05 v #16061 > > │ .py output:                                                                  │
00:27:05 v #16062 > > │ __assert_eq / actual: true / expected: true                                  │
00:27:05 v #16063 > > │                                                                              │
00:27:05 v #16064 > > │                                                                              │
00:27:05 v #16065 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:05 v #16066 > >
00:27:05 v #16067 > > ╭─[ 26.52s - stdout ]──────────────────────────────────────────────────────────╮
00:27:05 v #16068 > > │ .fsx output:                                                                 │
00:27:05 v #16069 > > │ __assert_eq / actual: true / expected: true                                  │
00:27:05 v #16070 > > │                                                                              │
00:27:05 v #16071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:05 v #16072 > >
00:27:05 v #16073 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:05 v #16074 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:05 v #16075 > > │ ## composition                                                               │
00:27:05 v #16076 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:05 v #16077 > >
00:27:05 v #16078 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:05 v #16079 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:05 v #16080 > > │ ### append                                                                   │
00:27:05 v #16081 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:05 v #16082 > >
00:27:05 v #16083 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:05 v #16084 > > prototype append t : t -> t -> t
00:27:05 v #16085 > 00:27:04 d #845 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b2686b69c0064af595055c77e896c913d2cac088b99a7837d87d4bcfc49b1b35/main.spi
00:27:05 v #16086 > >
00:27:05 v #16087 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:05 v #16088 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:05 v #16089 > > │ ### (++)                                                                     │
00:27:05 v #16090 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:05 v #16091 > >
00:27:05 v #16092 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:05 v #16093 > > inl (++) a b =
00:27:05 v #16094 > >     b |> append a
00:27:05 v #16095 > 00:27:05 d #846 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e5a1e54af3fdaa3a8872827b8db1c6b3842ca11b9d1fa5f52b7ab55be08e39ac/main.spi
00:27:06 v #16096 > >
00:27:06 v #16097 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:06 v #16098 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:06 v #16099 > > │ ## application                                                               │
00:27:06 v #16100 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:06 v #16101 > >
00:27:06 v #16102 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:06 v #16103 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:06 v #16104 > > │ ### (||>)                                                                    │
00:27:06 v #16105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:06 v #16106 > >
00:27:06 v #16107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:06 v #16108 > > inl (||>) (arg1, arg2) fn =
00:27:06 v #16109 > >     arg2 |> fn arg1
00:27:06 v #16110 > 00:27:05 d #847 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31ee76cb9ff32305a20fca147f371fba50b4e51a0c82d80e6c59923c6cc48f43/main.spi
00:27:06 v #16111 > >
00:27:06 v #16112 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:06 v #16113 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:06 v #16114 > > │ ### fix_condition                                                            │
00:27:06 v #16115 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:06 v #16116 > >
00:27:06 v #16117 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:06 v #16118 > > inl fix_condition x a b =
00:27:06 v #16119 > >     if x ()
00:27:06 v #16120 > >     then a () |> fun x => $'(*' : ()
00:27:06 v #16121 > >     else
00:27:06 v #16122 > >         $'*) else' : ()
00:27:06 v #16123 > >         b () |> fun x => $'(*' : ()
00:27:06 v #16124 > >     |> fun x => $'*)' : ()
00:27:06 v #16125 > 00:27:05 d #848 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/697014c9535d1d79494a907bd1dd5c565d80da0f5f214f68d739df83e38ecd0b/main.spi
00:27:06 v #16126 > >
00:27:06 v #16127 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:06 v #16128 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:06 v #16129 > > │ ## type                                                                      │
00:27:06 v #16130 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:06 v #16131 > >
00:27:06 v #16132 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:06 v #16133 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:06 v #16134 > > │ ### infer                                                                    │
00:27:06 v #16135 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:06 v #16136 > >
00:27:06 v #16137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:06 v #16138 > > nominal infer = $'_'
00:27:07 v #16139 > 00:27:06 d #849 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/293154a82012d4a510234c35e17f881979807b45d47941cd0549df6d6f3e5e66/main.spi
00:27:07 v #16140 > >
00:27:07 v #16141 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:07 v #16142 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:07 v #16143 > > │ ### infer'                                                                   │
00:27:07 v #16144 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:07 v #16145 > >
00:27:07 v #16146 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:07 v #16147 > > nominal infer' t = $'_'
00:27:07 v #16148 > 00:27:06 d #850 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aa0b8aaa335ab46a2bf1d502e98df9a59d53d008709d51db962a0fa2ae6a632c/main.spi
00:27:07 v #16149 > >
00:27:07 v #16150 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:07 v #16151 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:07 v #16152 > > │ ### any                                                                      │
00:27:07 v #16153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:07 v #16154 > >
00:27:07 v #16155 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:07 v #16156 > > nominal any = $'obj'
00:27:07 v #16157 > 00:27:07 d #851 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/67f1fd80d4007eab817550246039e85ad1a45321fad94f4d1486a0dc48a4bd69/main.spi
00:27:08 v #16158 > >
00:27:08 v #16159 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:08 v #16160 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:08 v #16161 > > │ ### unit                                                                     │
00:27:08 v #16162 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:08 v #16163 > >
00:27:08 v #16164 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:08 v #16165 > > nominal unit = $'unit'
00:27:08 v #16166 > 00:27:07 d #852 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2217bd60d03fbc644aac0a9993362f56dccbef51145834715eeba80835a53ba0/main.spi
00:27:08 v #16167 > >
00:27:08 v #16168 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:08 v #16169 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:08 v #16170 > > │ ### null                                                                     │
00:27:08 v #16171 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:08 v #16172 > >
00:27:08 v #16173 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:08 v #16174 > > inl null forall t. () : t =
00:27:08 v #16175 > >     backend_switch {
00:27:08 v #16176 > >         Fsharp = fun () => $'null |> unbox<`t>' : t
00:27:08 v #16177 > >         Python = fun () => $'None' : t
00:27:08 v #16178 > >     }
00:27:08 v #16179 > 00:27:08 d #853 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad2417c3047b05ed4c3986cd6dcd463ba583db5c490dcec1fceca3651f3b92bc/main.spi
00:27:09 v #16180 > >
00:27:09 v #16181 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:09 v #16182 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:09 v #16183 > > │ ### defaultof                                                                │
00:27:09 v #16184 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:09 v #16185 > >
00:27:09 v #16186 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:09 v #16187 > > inl defaultof forall t. () : t =
00:27:09 v #16188 > >     $'Unchecked.defaultof<`t>'
00:27:09 v #16189 > 00:27:08 d #854 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90acfb8d607144697db43d722c2aea88e374023fe4fec25c1afbe018c327ea3f/main.spi
00:27:09 v #16190 > >
00:27:09 v #16191 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:09 v #16192 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:09 v #16193 > > │ ### choice2'                                                                 │
00:27:09 v #16194 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:09 v #16195 > >
00:27:09 v #16196 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:09 v #16197 > > nominal choice2' a b = $'Choice<`a, `b>'
00:27:09 v #16198 > 00:27:08 d #855 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/45149901e8227607060d2c67008dc3e55593e0799858a6a28dfa9ba5add1f952/main.spi
00:27:09 v #16199 > >
00:27:09 v #16200 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:09 v #16201 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:09 v #16202 > > │ ### choice2_unbox                                                            │
00:27:09 v #16203 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:09 v #16204 > >
00:27:09 v #16205 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:09 v #16206 > > inl choice2_unbox forall t1 t2. (choice : choice2' t1 t2) : choice2 t1 t2 =
00:27:09 v #16207 > >     run_target function
00:27:09 v #16208 > >         | Fsharp (Native) => fun () =>
00:27:09 v #16209 > >             inl c1of2 (x : t1) : _ _ t2 = C1of2 x
00:27:09 v #16210 > >             inl c2of2 (x : t2) : _ t1 _ = C2of2 x
00:27:09 v #16211 > >             $'match !choice with Choice1Of2 x -> !c1of2 x | Choice2Of2 x ->
00:27:09 v #16212 > > !c2of2 x'
00:27:09 v #16213 > >         | _ => fun () => null ()
00:27:10 v #16214 > 00:27:09 d #856 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/37fe7f8df16cf0f8b0910a6688a824ba4985db6ba4ae7f83c3fd6b33fb8c8128/main.spi
00:27:10 v #16215 > >
00:27:10 v #16216 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:10 v #16217 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:10 v #16218 > > │ ## pair                                                                      │
00:27:10 v #16219 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:10 v #16220 > >
00:27:10 v #16221 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:10 v #16222 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:10 v #16223 > > │ ### pair                                                                     │
00:27:10 v #16224 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:10 v #16225 > >
00:27:10 v #16226 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:10 v #16227 > > nominal pair a b = $'(`a * `b)'
00:27:10 v #16228 > >
00:27:10 v #16229 > > inl pair x y =
00:27:10 v #16230 > >     x, y
00:27:10 v #16231 > 00:27:09 d #857 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/279f24795486d91581f983ac34f6b05554221e0ab995f6fa97129970a72dfc65/main.spi
00:27:10 v #16232 > >
00:27:10 v #16233 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:10 v #16234 > > //// test
00:27:10 v #16235 > > ///! fsharp
00:27:10 v #16236 > > ///! cuda
00:27:10 v #16237 > > ///! rust
00:27:10 v #16238 > > ///! typescript
00:27:10 v #16239 > > ///! python
00:27:10 v #16240 > >
00:27:10 v #16241 > > pair 1i32 2i32
00:27:10 v #16242 > > |> _assert_eq (1, 2)
00:27:10 v #16243 > 00:27:10 d #858 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06d16464120edd05a2e882016bf507de2de298d169f44158af9b02bd831d26d0/main.spi
00:27:10 v #16244 > 00:27:10 d #859 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d3890e5f6e5a0ea69e0d936765c0146a3ecf502e2f88b0ef41e48fad9ac15158/main.spi
00:27:30 v #16245 > >
00:27:30 v #16246 > > ╭─[ 19.61s - return value ]────────────────────────────────────────────────────╮
00:27:30 v #16247 > > │ .py output (Cuda):                                                           │
00:27:30 v #16248 > > │ __assert_eq / actual: (1, 2) / expected: (1, 2)                              │
00:27:30 v #16249 > > │                                                                              │
00:27:30 v #16250 > > │ .rs output:                                                                  │
00:27:30 v #16251 > > │ __assert_eq / actual: (1, 2) / expected: (1, 2)                              │
00:27:30 v #16252 > > │                                                                              │
00:27:30 v #16253 > > │ .ts output:                                                                  │
00:27:30 v #16254 > > │ __assert_eq / actual: 1,2 / expected: 1,2                                    │
00:27:30 v #16255 > > │                                                                              │
00:27:30 v #16256 > > │ .py output:                                                                  │
00:27:30 v #16257 > > │ __assert_eq / actual: (1, 2) / expected: (1, 2)                              │
00:27:30 v #16258 > > │                                                                              │
00:27:30 v #16259 > > │                                                                              │
00:27:30 v #16260 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:30 v #16261 > >
00:27:30 v #16262 > > ╭─[ 19.61s - stdout ]──────────────────────────────────────────────────────────╮
00:27:30 v #16263 > > │ .fsx output:                                                                 │
00:27:30 v #16264 > > │ __assert_eq / actual: struct (1, 2) / expected: struct (1, 2)                │
00:27:30 v #16265 > > │                                                                              │
00:27:30 v #16266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:30 v #16267 > >
00:27:30 v #16268 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:30 v #16269 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:30 v #16270 > > │ ### new_pair                                                                 │
00:27:30 v #16271 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:30 v #16272 > >
00:27:30 v #16273 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:30 v #16274 > > inl new_pair forall a b. (a : a) (b : b) : pair a b =
00:27:30 v #16275 > >     $'!a, !b '
00:27:30 v #16276 > 00:27:29 d #860 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d38b7e0fddb1e801c123e6b702e823ec7bba5c385020bb4d8b554c2f47b45f79/main.spi
00:27:30 v #16277 > >
00:27:30 v #16278 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:30 v #16279 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:30 v #16280 > > │ ### from_pair                                                                │
00:27:30 v #16281 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:30 v #16282 > >
00:27:30 v #16283 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:30 v #16284 > > inl from_pair forall a b. (pair : pair a b) : a * b =
00:27:30 v #16285 > >     backend_switch {
00:27:30 v #16286 > >         Fsharp = fun () =>
00:27:30 v #16287 > >             $'let (a, b) = !pair '
00:27:30 v #16288 > >             ($'a' : a), ($'b' : b)
00:27:30 v #16289 > >         Python = fun () =>
00:27:30 v #16290 > >             $'a, b = !pair '
00:27:30 v #16291 > >             ($'a' : a), ($'b' : b)
00:27:30 v #16292 > >     }
00:27:31 v #16293 > 00:27:30 d #861 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/16307a18b84b93e97fbe4310a65adc8c3aee388757ce384beb17e4eb3032b593/main.spi
00:27:31 v #16294 > >
00:27:31 v #16295 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:31 v #16296 > > //// test
00:27:31 v #16297 > > ///! fsharp
00:27:31 v #16298 > > ///! cuda
00:27:31 v #16299 > > ///! rust
00:27:31 v #16300 > > ///! typescript
00:27:31 v #16301 > > ///! python
00:27:31 v #16302 > >
00:27:31 v #16303 > > new_pair "a" (new_pair 1i32 "b")
00:27:31 v #16304 > > |> from_pair
00:27:31 v #16305 > > |> _assert_eq' ("a", (new_pair 1i32 "b"))
00:27:31 v #16306 > 00:27:30 d #862 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/994d670b2afdd74aae5b62e35198dee8ef18dae5e4e0f04ee6446795c370b1ad/main.spi
00:27:31 v #16307 > 00:27:30 d #863 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd4524aaca5396856a4afbff41012a235dcd27daadcaa9810051c53896b07c18/main.spi
00:27:50 v #16308 > >
00:27:50 v #16309 > > ╭─[ 19.44s - return value ]────────────────────────────────────────────────────╮
00:27:50 v #16310 > > │ .py output (Cuda):                                                           │
00:27:50 v #16311 > > │ __assert_eq' / actual: ('a', (1, 'b')) / expected: ('a', (1, 'b'))           │
00:27:50 v #16312 > > │                                                                              │
00:27:50 v #16313 > > │ .rs output:                                                                  │
00:27:50 v #16314 > > │ __assert_eq' / actual: ("a", (1, "b")) / expected: ("a", (1, "b"))           │
00:27:50 v #16315 > > │                                                                              │
00:27:50 v #16316 > > │ .ts output:                                                                  │
00:27:50 v #16317 > > │ __assert_eq' / actual: a,1,b / expected: a,1,b                               │
00:27:50 v #16318 > > │                                                                              │
00:27:50 v #16319 > > │ .py output:                                                                  │
00:27:50 v #16320 > > │ __assert_eq' / actual: ('a', (1, 'b')) / expected: ('a', (1, 'b'))           │
00:27:50 v #16321 > > │                                                                              │
00:27:50 v #16322 > > │                                                                              │
00:27:50 v #16323 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:50 v #16324 > >
00:27:50 v #16325 > > ╭─[ 19.44s - stdout ]──────────────────────────────────────────────────────────╮
00:27:50 v #16326 > > │ .fsx output:                                                                 │
00:27:50 v #16327 > > │ __assert_eq' / actual: struct ("a", (1, "b")) / expected: struct ("a", (1,   │
00:27:50 v #16328 > > │ "b"))                                                                        │
00:27:50 v #16329 > > │                                                                              │
00:27:50 v #16330 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:50 v #16331 > >
00:27:50 v #16332 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:50 v #16333 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:50 v #16334 > > │ ## ref                                                                       │
00:27:50 v #16335 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:50 v #16336 > >
00:27:50 v #16337 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:50 v #16338 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:50 v #16339 > > │ ### ref                                                                      │
00:27:50 v #16340 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:50 v #16341 > >
00:27:50 v #16342 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:50 v #16343 > > nominal ref t = $'`t ref'
00:27:50 v #16344 > 00:27:50 d #864 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/426fffba24b60464f82addaa235768ac2d3b021bcb01cbc52afccd98a6edb1be/main.spi
00:27:51 v #16345 > >
00:27:51 v #16346 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:51 v #16347 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:51 v #16348 > > │ ### new_ref                                                                  │
00:27:51 v #16349 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:51 v #16350 > >
00:27:51 v #16351 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:51 v #16352 > > inl new_ref forall t. (x : t) : ref t =
00:27:51 v #16353 > >     $'ref !x '
00:27:51 v #16354 > 00:27:50 d #865 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/698bff3028626d7e9e1a1f60240e0ff58d63db4ffe43afccfb7d31f7131e016d/main.spi
00:27:51 v #16355 > >
00:27:51 v #16356 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:51 v #16357 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:51 v #16358 > > │ ### ref_value                                                                │
00:27:51 v #16359 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:51 v #16360 > >
00:27:51 v #16361 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:51 v #16362 > > inl ref_value forall t. (x : ref t) : t =
00:27:51 v #16363 > >     $'!x.Value'
00:27:51 v #16364 > 00:27:50 d #866 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/57ac075b202d1d4c4995c5241c46139f5e2d312af1d06559000e1d4eff473b1a/main.spi
00:27:51 v #16365 > >
00:27:51 v #16366 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:51 v #16367 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:51 v #16368 > > │ ### ref_set_value                                                            │
00:27:51 v #16369 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:51 v #16370 > >
00:27:51 v #16371 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:51 v #16372 > > inl ref_set_value forall t. (value : t) (ref : ref t) : ref t =
00:27:51 v #16373 > >     $'!ref.Value <- !value '
00:27:51 v #16374 > >     ref
00:27:52 v #16375 > 00:27:51 d #867 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/684bf2fdc0ff0b600f31d24fe7f05b2e8b581d150476250fba2095ba6780ea15/main.spi
00:27:52 v #16376 > >
00:27:52 v #16377 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:52 v #16378 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:52 v #16379 > > │ ## convert                                                                   │
00:27:52 v #16380 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:52 v #16381 > >
00:27:52 v #16382 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:52 v #16383 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:52 v #16384 > > │ ### to                                                                       │
00:27:52 v #16385 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:52 v #16386 > >
00:27:52 v #16387 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:52 v #16388 > > inl to forall t u. (x : t) : u =
00:27:52 v #16389 > >     $'!x ' : u
00:27:52 v #16390 > 00:27:51 d #868 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1c36247118e8e087623c8e003a40c942b59ec7651e43af70ed279e3f11690e09/main.spi
00:27:52 v #16391 > >
00:27:52 v #16392 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:52 v #16393 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:52 v #16394 > > │ ### convert                                                                  │
00:27:52 v #16395 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:52 v #16396 > >
00:27:52 v #16397 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:52 v #16398 > > inl convert forall t u. (x : t) : u =
00:27:52 v #16399 > >     backend_switch {
00:27:52 v #16400 > >         Fsharp = fun () => $'!x |> `u ' : u
00:27:52 v #16401 > >         Python = fun () => x |> to : u
00:27:52 v #16402 > >     }
00:27:53 v #16403 > 00:27:52 d #869 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba42ab3170c88d483faa09155a14fc0fb494d1c04469ab5d676894ddac6496df/main.spi
00:27:53 v #16404 > >
00:27:53 v #16405 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:53 v #16406 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:53 v #16407 > > │ ### unbox                                                                    │
00:27:53 v #16408 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:53 v #16409 > >
00:27:53 v #16410 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:53 v #16411 > > inl unbox forall t u. (x : t) : u =
00:27:53 v #16412 > >     backend_switch {
00:27:53 v #16413 > >         Fsharp = fun () => $'!x |> unbox<`u>' : u
00:27:53 v #16414 > >         Python = fun () => x |> to : u
00:27:53 v #16415 > >     }
00:27:53 v #16416 > 00:27:52 d #870 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fcca34cde25762a594adc717be19fd74fd8d40c89c1c019813a5cf259e38b772/main.spi
00:27:53 v #16417 > >
00:27:53 v #16418 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:53 v #16419 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:53 v #16420 > > │ ### u8                                                                       │
00:27:53 v #16421 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:53 v #16422 > >
00:27:53 v #16423 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:53 v #16424 > > inl u8 forall t. (x : t) : u8 =
00:27:53 v #16425 > >     x |> $'uint8'
00:27:53 v #16426 > 00:27:52 d #871 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05fe61aa0502c9b4b3c7cb33e16e45ab9551d569d0153285223718d4e4025d07/main.spi
00:27:53 v #16427 > >
00:27:53 v #16428 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:53 v #16429 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:53 v #16430 > > │ ### u16                                                                      │
00:27:53 v #16431 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:53 v #16432 > >
00:27:53 v #16433 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:53 v #16434 > > inl u16 forall t. (x : t) : u16 =
00:27:53 v #16435 > >     x |> $'uint16'
00:27:54 v #16436 > 00:27:53 d #872 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3282abc5cd4e3a0bd2e9f8c2ec95edf302a2a67a7a70ebe5b52bae7ce301d49e/main.spi
00:27:54 v #16437 > >
00:27:54 v #16438 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:54 v #16439 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:54 v #16440 > > │ ### u64                                                                      │
00:27:54 v #16441 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:54 v #16442 > >
00:27:54 v #16443 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:54 v #16444 > > inl u64 forall t. (x : t) : u64 =
00:27:54 v #16445 > >     x |> $'uint64'
00:27:54 v #16446 > 00:27:53 d #873 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/41bb54abe15e97612e02105b6f96be44f3d91284e8f0a18dfdaacf5250c558e6/main.spi
00:27:54 v #16447 > >
00:27:54 v #16448 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:54 v #16449 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:54 v #16450 > > │ ### i32                                                                      │
00:27:54 v #16451 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:54 v #16452 > >
00:27:54 v #16453 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:54 v #16454 > > inl i32 forall t. (x : t) : i32 =
00:27:54 v #16455 > >     x |> $'int32'
00:27:54 v #16456 > 00:27:54 d #874 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a73d96f75e80591bc97328e8ff92e753c80c46ade2e92ea0ffa8bc269483d554/main.spi
00:27:55 v #16457 > >
00:27:55 v #16458 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:55 v #16459 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:55 v #16460 > > │ ### i64                                                                      │
00:27:55 v #16461 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:55 v #16462 > >
00:27:55 v #16463 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:55 v #16464 > > inl i64 forall t. (x : t) : i64 =
00:27:55 v #16465 > >     x |> $'int64'
00:27:55 v #16466 > 00:27:54 d #875 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f5064a2f1b5e6fdb2315040b6851b26701f2c71c5eefa42230c36cf41a119ef7/main.spi
00:27:55 v #16467 > >
00:27:55 v #16468 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:55 v #16469 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:55 v #16470 > > │ ### f32                                                                      │
00:27:55 v #16471 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:55 v #16472 > >
00:27:55 v #16473 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:55 v #16474 > > inl f32 forall t. (x : t) : f32 =
00:27:55 v #16475 > >     x |> $'float32'
00:27:55 v #16476 > 00:27:54 d #876 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32fce1b10d9b29903532b4e17aac2aa60432c66aa75684b9fd2931837abc408e/main.spi
00:27:55 v #16477 > >
00:27:55 v #16478 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:55 v #16479 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:55 v #16480 > > │ ### f64                                                                      │
00:27:55 v #16481 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:55 v #16482 > >
00:27:55 v #16483 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:55 v #16484 > > inl f64 forall t. (x : t) : f64 =
00:27:55 v #16485 > >     x |> $'float'
00:27:56 v #16486 > 00:27:55 d #877 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23cb5a39127f92f435c4630095544263275870f4a5191b8dc300987daec705ff/main.spi
00:27:56 v #16487 > >
00:27:56 v #16488 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:56 v #16489 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:56 v #16490 > > │ ### unativeint                                                               │
00:27:56 v #16491 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:56 v #16492 > >
00:27:56 v #16493 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:56 v #16494 > > nominal unativeint = $'unativeint'
00:27:56 v #16495 > 00:27:55 d #878 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd38c780e4694fcd99aed2928b1971679ce31b91b0da6be63274ae1799b179ea/main.spi
00:27:56 v #16496 > >
00:27:56 v #16497 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:56 v #16498 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:56 v #16499 > > │ ### convert_i32                                                              │
00:27:56 v #16500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:56 v #16501 > >
00:27:56 v #16502 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:56 v #16503 > > inl convert_i32 forall t. (x : t) : i32 =
00:27:56 v #16504 > >     x |> $'System.Convert.ToInt32'
00:27:56 v #16505 > 00:27:56 d #879 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8665e4780990f5c36fdb235a63199f6ded2afdf13470137d11980678cdf7bca2/main.spi
00:27:57 v #16506 > >
00:27:57 v #16507 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:57 v #16508 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:57 v #16509 > > │ ### convert_i32_base                                                         │
00:27:57 v #16510 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:57 v #16511 > >
00:27:57 v #16512 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:57 v #16513 > > inl convert_i32_base forall t. (base : i32) (x : t) : i32 =
00:27:57 v #16514 > >     $'System.Convert.ToInt32 (!x, !base)'
00:27:57 v #16515 > 00:27:56 d #880 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8627f73b55f4cc43f41846de58cfb4a17b74283dcf46395204757771213a6f4/main.spi
00:27:57 v #16516 > >
00:27:57 v #16517 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:57 v #16518 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:57 v #16519 > > │ ## error                                                                     │
00:27:57 v #16520 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:57 v #16521 > >
00:27:57 v #16522 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:57 v #16523 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:57 v #16524 > > │ ### exn                                                                      │
00:27:57 v #16525 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:57 v #16526 > >
00:27:57 v #16527 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:57 v #16528 > > nominal exn = $"backend_switch `({ Fsharp : $'exn'; Python : $'BaseException'
00:27:57 v #16529 > > })"
00:27:57 v #16530 > >
00:27:57 v #16531 > > inl exn x =
00:27:57 v #16532 > >     x |> $'`exn '
00:27:57 v #16533 > 00:27:57 d #881 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0207a485c6c49fe81ef7e3eceb7660dc7a0cbf315ef2294fabe86230f7a32419/main.spi
00:27:58 v #16534 > >
00:27:58 v #16535 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:58 v #16536 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:58 v #16537 > > │ ### try                                                                      │
00:27:58 v #16538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:58 v #16539 > >
00:27:58 v #16540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:58 v #16541 > > inl try forall t. (fn : () -> t) (ex_fn : exn -> option t) : option t =
00:27:58 v #16542 > >     backend_switch {
00:27:58 v #16543 > >         Fsharp = fun () =>
00:27:58 v #16544 > >             inl some x : option t = Some x
00:27:58 v #16545 > >             inl some = dyn some
00:27:58 v #16546 > >             inl fn = dyn fn
00:27:58 v #16547 > >             inl ex_fn = dyn ex_fn
00:27:58 v #16548 > >             $'let result = ref !(None : option t)'
00:27:58 v #16549 > >             $'try'
00:27:58 v #16550 > >             $'    result.Value <- !fn () |> !some '
00:27:58 v #16551 > >             $'with ex ->'
00:27:58 v #16552 > >             $'    result.Value <- !ex_fn ex '
00:27:58 v #16553 > >             $'result.Value' : option t
00:27:58 v #16554 > >         Python = fun () =>
00:27:58 v #16555 > >             $'result = !(None : option t)'
00:27:58 v #16556 > >             inl fn = dyn fn
00:27:58 v #16557 > >             inl ex_fn = dyn ex_fn
00:27:58 v #16558 > >             $'try:'
00:27:58 v #16559 > >             $'    result = !fn()\n        \'\'\''
00:27:58 v #16560 > >             $'\'\'\''
00:27:58 v #16561 > >             $'except Exception as e:'
00:27:58 v #16562 > >             $'    result = !ex_fn(e)'
00:27:58 v #16563 > >             $'result' : option t
00:27:58 v #16564 > >     }
00:27:58 v #16565 > 00:27:57 d #882 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86ec67f09579cff9f73396cacea600c9a26eadc5454108fd374fe3896bf4c9a5/main.spi
00:27:58 v #16566 > >
00:27:58 v #16567 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:58 v #16568 > > //// test
00:27:58 v #16569 > > ///! fsharp
00:27:58 v #16570 > > ////! cuda // cudaErrorInsufficientDriver: CUDA driver version is insufficient
00:27:58 v #16571 > > for CUDA runtime version
00:27:58 v #16572 > > ///! rust
00:27:58 v #16573 > > ///! typescript
00:27:58 v #16574 > > ///! python
00:27:58 v #16575 > >
00:27:58 v #16576 > > try
00:27:58 v #16577 > >     fun () => a ;[[ 0i32 ]] |> am'.index 1i32 |> sm'.format
00:27:58 v #16578 > >     (fun ex => $'!ex ' |> sm'.format_exception |> Some)
00:27:58 v #16579 > > |> optionm.value
00:27:58 v #16580 > > |> _assert_eq (run_target function
00:27:58 v #16581 > >     | Fsharp => fun () => "System.IndexOutOfRangeException: Index was outside
00:27:58 v #16582 > > the bounds of the array."
00:27:58 v #16583 > >     | Cuda => fun () => "array index out of range"
00:27:58 v #16584 > >     | Rust => fun () => "Exception { message: \"index out of bounds: the len is
00:27:58 v #16585 > > 1 but the index is 1\" }"
00:27:58 v #16586 > >     | TypeScript => fun () => "Error: Index was outside the bounds of the
00:27:58 v #16587 > > array.\\nParameter name: index"
00:27:58 v #16588 > >     | Python => fun () => "array index out of range"
00:27:58 v #16589 > > )
00:27:58 v #16590 > 00:27:57 d #883 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27c01b1b8c3cd401cb27c591afe5227fc901ffb636b5b4b0be6482a0c765aee4/main.spi
00:28:17 v #16591 > >
00:28:17 v #16592 > > ╭─[ 19.43s - return value ]────────────────────────────────────────────────────╮
00:28:17 v #16593 > > │ .rs output:                                                                  │
00:28:17 v #16594 > > │ __assert_eq / actual: "Exception { message: "index out of bounds: the len is │
00:28:17 v #16595 > > │ 1 but the index is 1" }" / expected: "Exception { message: "index out of     │
00:28:17 v #16596 > > │ bounds: the len is 1 but the index is 1" }"                                  │
00:28:17 v #16597 > > │                                                                              │
00:28:17 v #16598 > > │ .ts output:                                                                  │
00:28:17 v #16599 > > │ __assert_eq / actual: Error: Index was outside the bounds of the             │
00:28:17 v #16600 > > │ array.\nParameter name: index / expected: Error: Index was outside the       │
00:28:17 v #16601 > > │ bounds of the array.\nParameter name: index                                  │
00:28:17 v #16602 > > │                                                                              │
00:28:17 v #16603 > > │ .py output:                                                                  │
00:28:17 v #16604 > > │ __assert_eq / actual: array index out of range / expected: array index out   │
00:28:17 v #16605 > > │ of range                                                                     │
00:28:17 v #16606 > > │                                                                              │
00:28:17 v #16607 > > │                                                                              │
00:28:17 v #16608 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:17 v #16609 > >
00:28:17 v #16610 > > ╭─[ 19.43s - stdout ]──────────────────────────────────────────────────────────╮
00:28:17 v #16611 > > │ .fsx output:                                                                 │
00:28:17 v #16612 > > │ __assert_eq / actual: "System.IndexOutOfRangeException: Index was outside    │
00:28:17 v #16613 > > │ the bounds of the array." / expected: "System.IndexOutOfRangeException:      │
00:28:17 v #16614 > > │ Index was outside the bounds of the array."                                  │
00:28:17 v #16615 > > │                                                                              │
00:28:17 v #16616 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:17 v #16617 > >
00:28:17 v #16618 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:17 v #16619 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:17 v #16620 > > │ ### try_unit                                                                 │
00:28:17 v #16621 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:17 v #16622 > >
00:28:17 v #16623 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:17 v #16624 > > inl try_unit forall t. (fn : () -> ()) (ex_fn : exn -> ()) : t =
00:28:17 v #16625 > >     $'try'
00:28:17 v #16626 > >     fn ()
00:28:17 v #16627 > >     |> ignore
00:28:17 v #16628 > >     $'with ex ->'
00:28:17 v #16629 > >     ex_fn $'ex'
00:28:17 v #16630 > >     |> ignore
00:28:17 v #16631 > >     $'(*'
00:28:17 v #16632 > >     $'*)'
00:28:18 v #16633 > 00:28:17 d #884 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ecb2f36e6f3b39c4fccea58d7dcb711a6768ccc970c45c1da04b0b0df80c8f2/main.spi
00:28:18 v #16634 > >
00:28:18 v #16635 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:18 v #16636 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:18 v #16637 > > │ ### try_finally                                                              │
00:28:18 v #16638 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:18 v #16639 > >
00:28:18 v #16640 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:18 v #16641 > > inl try_finally forall t. (fn : () -> ()) (finally : () -> ()) : t =
00:28:18 v #16642 > >     $'try'
00:28:18 v #16643 > >     fn ()
00:28:18 v #16644 > >     |> ignore
00:28:18 v #16645 > >     $'finally'
00:28:18 v #16646 > >     finally ()
00:28:18 v #16647 > >     |> ignore
00:28:18 v #16648 > >     $'(*'
00:28:18 v #16649 > >     $'*)'
00:28:18 v #16650 > 00:28:17 d #885 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51c9bada07ba126ff24e3dcb4065d32d3582df4c4bb132e027cf2426507d41d3/main.spi
00:28:18 v #16651 > 00:04:54 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 58294 }
00:28:18 v #16652 > 00:04:54 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/base.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/base.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:28:20 v #16653 > 00:04:56 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/base.dib.ipynb to html
00:28:20 v #16654 > 00:04:56 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:28:20 v #16655 > 00:04:56 v #7 !   validate(nb)
00:28:21 v #16656 > 00:04:57 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:28:21 v #16657 > 00:04:57 v #9 !   return _pygments_highlight(
00:28:22 v #16658 > 00:04:57 v #10 ! [NbConvertApp] Writing 411990 bytes to c:\home\git\polyglot\lib\spiral\base.dib.html
00:28:22 v #16659 > 00:04:58 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 850 }
00:28:22 v #16660 > 00:04:58 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 850 }
00:28:22 v #16661 > 00:04:58 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/base.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/base.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:28:22 v #16662 > 00:04:58 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:28:22 v #16663 > 00:04:58 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:28:22 v #16664 > 00:04:58 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 59203 }
00:28:22 d #16665 runtime.execute_with_options_async / { exit_code = 0; output_length = 64064 }
00:28:22 d #19 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path base.dib --retries 3
00:28:22 d #16666 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path date_time.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path date_time.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:28:22 v #16667 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "date_time.dib", "--retries", "3"])) }
00:28:22 v #16668 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/date_time.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/date_time.dib" --output-path "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:28:24 v #16669 > >
00:28:24 v #16670 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:24 v #16671 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:24 v #16672 > > │ # date_time                                                                  │
00:28:24 v #16673 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:28 v #16674 > >
00:28:28 v #16675 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:28 v #16676 > > open rust.rust_operators
00:28:28 v #16677 > > open sm'_operators
00:28:29 v #16678 > 00:28:28 d #886 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ee17e9f72cb90671f0e951d428c4dec9e30a8a49cb5162328fc842debe96b71/main.spi
00:28:29 v #16679 > >
00:28:29 v #16680 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:29 v #16681 > > //// test
00:28:29 v #16682 > >
00:28:29 v #16683 > > open testing
00:28:30 v #16684 > 00:28:29 d #887 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9311f6f0df871546736c558f82d2c72ee24fa80c8badc5ab322a731a4c5ac065/main.spi
00:28:30 v #16685 > >
00:28:30 v #16686 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:30 v #16687 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:30 v #16688 > > │ ## date_time                                                                 │
00:28:30 v #16689 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:30 v #16690 > >
00:28:30 v #16691 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:30 v #16692 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:30 v #16693 > > │ ### timestamp                                                                │
00:28:30 v #16694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:30 v #16695 > >
00:28:30 v #16696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:30 v #16697 > > nominal timestamp = i64
00:28:30 v #16698 > 00:28:29 d #888 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ea20a353c1392e3d66c7af0c6dea8cff141ac2f116fa34048379a0ad38c7777/main.spi
00:28:30 v #16699 > >
00:28:30 v #16700 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:30 v #16701 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:30 v #16702 > > │ ### timestamp_guid                                                           │
00:28:30 v #16703 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:30 v #16704 > >
00:28:30 v #16705 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:30 v #16706 > > type timestamp_guid = guid.guid
00:28:31 v #16707 > 00:28:30 d #889 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44ec36bf2058578c966b302604d5c837f161eff58262caf9ca39fbe7e8595784/main.spi
00:28:31 v #16708 > >
00:28:31 v #16709 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:31 v #16710 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:31 v #16711 > > │ ### date_time_guid                                                           │
00:28:31 v #16712 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:31 v #16713 > >
00:28:31 v #16714 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:31 v #16715 > > type date_time_guid = guid.guid
00:28:31 v #16716 > 00:28:30 d #890 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f908b8ebf6ca5fcb1f33576d6116b59f0172445313a4ac89bbb6a81734d1317f/main.spi
00:28:31 v #16717 > >
00:28:31 v #16718 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:31 v #16719 > > //// test
00:28:31 v #16720 > >
00:28:31 v #16721 > > inl test_guid () =
00:28:31 v #16722 > >     guid.new_guid "FEDCBA98-7654-3210-FEDC-BA9876543210"
00:28:31 v #16723 > 00:28:31 d #891 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32f1fd31325e20b4ce3a5776d37f322d04b1f23d628863a8d8d6de28a28a7e5e/main.spi
00:28:32 v #16724 > >
00:28:32 v #16725 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:32 v #16726 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:32 v #16727 > > │ ## fsharp                                                                    │
00:28:32 v #16728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:32 v #16729 > >
00:28:32 v #16730 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:32 v #16731 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:32 v #16732 > > │ ### date_time                                                                │
00:28:32 v #16733 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:32 v #16734 > >
00:28:32 v #16735 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:32 v #16736 > > nominal date_time_python =
00:28:32 v #16737 > >     `(
00:28:32 v #16738 > >         backend_switch {
00:28:32 v #16739 > >             Python = fun () =>
00:28:32 v #16740 > >                 global "import datetime"
00:28:32 v #16741 > >         }
00:28:32 v #16742 > >         $'' : $'datetime.datetime'
00:28:32 v #16743 > >     )
00:28:32 v #16744 > > type date_time_switch =
00:28:32 v #16745 > >     {
00:28:32 v #16746 > >         Fsharp : $'System.DateTime'
00:28:32 v #16747 > >         Python : date_time_python
00:28:32 v #16748 > >     }
00:28:32 v #16749 > > nominal date_time = $'backend_switch `(date_time_switch)'
00:28:32 v #16750 > 00:28:31 d #892 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3bd6895fba094d37c9f6af17244860fb602ee2106c1034681664831cda4a6eb1/main.spi
00:28:32 v #16751 > >
00:28:32 v #16752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:32 v #16753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:32 v #16754 > > │ ### date_time_milliseconds                                                   │
00:28:32 v #16755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:32 v #16756 > >
00:28:32 v #16757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:32 v #16758 > > inl date_time_milliseconds
00:28:32 v #16759 > >     (year : int) (month : int) (day : int) (hour : int) (minute : int) (second :
00:28:32 v #16760 > > int) (millisecond : int)
00:28:32 v #16761 > >     : date_time
00:28:32 v #16762 > >     =
00:28:32 v #16763 > >     backend_switch {
00:28:32 v #16764 > >         Fsharp = fun () =>
00:28:32 v #16765 > >             $'System.DateTime (!year, !month, !day, !hour, !minute, !second,
00:28:32 v #16766 > > !millisecond)' : date_time
00:28:32 v #16767 > >         Python = fun () =>
00:28:32 v #16768 > >             $'datetime.datetime(!year, !month, !day, !hour, !minute, !second,
00:28:32 v #16769 > > !millisecond)' : date_time
00:28:32 v #16770 > >     }
00:28:32 v #16771 > 00:28:31 d #893 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/423a9f410b0c4c821f0bdaaf161e249d0edd69abaf8a9ccf64175adff9bb3c47/main.spi
00:28:32 v #16772 > >
00:28:32 v #16773 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:32 v #16774 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:32 v #16775 > > │ ### date_time_utc                                                            │
00:28:32 v #16776 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:32 v #16777 > >
00:28:32 v #16778 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:32 v #16779 > > inl date_time_utc
00:28:32 v #16780 > >     (year : int) (month : int) (day : int) (hour : int) (minute : int) (second :
00:28:32 v #16781 > > int)
00:28:32 v #16782 > >     : date_time
00:28:32 v #16783 > >     =
00:28:32 v #16784 > >     backend_switch {
00:28:32 v #16785 > >         Fsharp = fun () =>
00:28:32 v #16786 > >             $'System.DateTime (!year, !month, !day, !hour, !minute, !second,
00:28:32 v #16787 > > System.DateTimeKind.Utc)' : date_time
00:28:32 v #16788 > >         Python = fun () =>
00:28:32 v #16789 > >             $'datetime.datetime(!year, !month, !day, !hour, !minute, !second,
00:28:32 v #16790 > > tzinfo=datetime.timezone.utc)' : date_time
00:28:32 v #16791 > >     }
00:28:33 v #16792 > 00:28:32 d #894 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d47a40cec5e56ce8cfdb44e515b627cc548a5234a1c1e2e955e36b72eb72ea0b/main.spi
00:28:33 v #16793 > >
00:28:33 v #16794 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:33 v #16795 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:33 v #16796 > > │ ### ticks                                                                    │
00:28:33 v #16797 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:33 v #16798 > >
00:28:33 v #16799 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:33 v #16800 > > inl ticks (date_time : date_time) : timestamp =
00:28:33 v #16801 > >     backend_switch {
00:28:33 v #16802 > >         Fsharp = fun () => date_time |> $'_.Ticks' : timestamp
00:28:33 v #16803 > >         Python = fun () => $'!date_time.timestamp()' : timestamp
00:28:33 v #16804 > >     }
00:28:33 v #16805 > 00:28:32 d #895 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b0eada9e384869f21669be0e74391539ee8ba411e8e942a224c3ecc024d88dc/main.spi
00:28:33 v #16806 > >
00:28:33 v #16807 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:33 v #16808 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:33 v #16809 > > │ ### format                                                                   │
00:28:33 v #16810 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:33 v #16811 > >
00:28:33 v #16812 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:33 v #16813 > > inl format (format : string) (date_time : date_time) : string =
00:28:33 v #16814 > >     backend_switch {
00:28:33 v #16815 > >         Fsharp = fun () => $'!date_time.ToString' format : string
00:28:33 v #16816 > >         Python = fun () => $'!date_time.strftime(!format)' : string
00:28:33 v #16817 > >     }
00:28:33 v #16818 > 00:28:33 d #896 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/852c83c1997bde9998fed2dad2b23739bbe12b414c2e30342bd4dc5a769a3800/main.spi
00:28:34 v #16819 > >
00:28:34 v #16820 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:34 v #16821 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:34 v #16822 > > │ ### format_iso8601                                                           │
00:28:34 v #16823 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:34 v #16824 > >
00:28:34 v #16825 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:34 v #16826 > > inl format_iso8601 (date_time : date_time) : string =
00:28:34 v #16827 > >     backend_switch {
00:28:34 v #16828 > >         Fsharp = fun () => date_time |> format "yyyy-MM-ddTHH-mm-ss.fff" :
00:28:34 v #16829 > > string
00:28:34 v #16830 > >         Python = fun () => date_time |> format "%Y-%m-%dT%H-%M-%S.%f" : string
00:28:34 v #16831 > >     }
00:28:34 v #16832 > 00:28:33 d #897 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd8d2812ac0e1665657e0772ff8f2a943cf37a27798513aa411224f1f39d653e/main.spi
00:28:34 v #16833 > >
00:28:34 v #16834 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:34 v #16835 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:34 v #16836 > > │ ### min_value                                                                │
00:28:34 v #16837 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:34 v #16838 > >
00:28:34 v #16839 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:34 v #16840 > > inl min_value () : date_time =
00:28:34 v #16841 > >     backend_switch {
00:28:34 v #16842 > >         Fsharp = fun () => $'System.DateTime.MinValue' : date_time
00:28:34 v #16843 > >         Python = fun () => $'datetime.datetime.min' : date_time
00:28:34 v #16844 > >     }
00:28:34 v #16845 > 00:28:33 d #898 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/33ebf4f96eb30d846a9f6e88483c96815ecf663e19fe5b4716cc69bf01a17975/main.spi
00:28:34 v #16846 > >
00:28:34 v #16847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:34 v #16848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:34 v #16849 > > │ ### max_value                                                                │
00:28:34 v #16850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:34 v #16851 > >
00:28:34 v #16852 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:34 v #16853 > > inl max_value () : date_time =
00:28:34 v #16854 > >     backend_switch {
00:28:34 v #16855 > >         Fsharp = fun () => $'System.DateTime.MaxValue' : date_time
00:28:34 v #16856 > >         Python = fun () => $'datetime.datetime.max' : date_time
00:28:34 v #16857 > >     }
00:28:35 v #16858 > 00:28:34 d #899 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3153e432ae78fea943ca8be136d6c2b856bd6c188620097c1246c6cb616ca7a6/main.spi
00:28:35 v #16859 > >
00:28:35 v #16860 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:35 v #16861 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:35 v #16862 > > │ ### unix_epoch                                                               │
00:28:35 v #16863 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:35 v #16864 > >
00:28:35 v #16865 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:35 v #16866 > > inl unix_epoch () : date_time =
00:28:35 v #16867 > >     backend_switch {
00:28:35 v #16868 > >         Fsharp = fun () => $'System.DateTime.UnixEpoch' : date_time
00:28:35 v #16869 > >         Python = fun () => $'datetime.datetime(1970, 1, 1)' : date_time
00:28:35 v #16870 > >     }
00:28:35 v #16871 > 00:28:34 d #900 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6de097aec422fb85a79bc6ded3fa19ea377c66470079a7308b7805ccf07b1371/main.spi
00:28:35 v #16872 > >
00:28:35 v #16873 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:35 v #16874 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:35 v #16875 > > │ ### to_universal_time                                                        │
00:28:35 v #16876 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:35 v #16877 > >
00:28:35 v #16878 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:35 v #16879 > > inl to_universal_time (date_time : date_time) : date_time =
00:28:35 v #16880 > >     backend_switch {
00:28:35 v #16881 > >         Fsharp = fun () => date_time |> $'_.ToUniversalTime()' : date_time
00:28:35 v #16882 > >         Python = fun () => $'!date_time.astimezone(datetime.timezone.utc)' :
00:28:35 v #16883 > > date_time
00:28:35 v #16884 > >     }
00:28:35 v #16885 > 00:28:34 d #901 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db414fced994aba241d8e6bd600a7794221e303c5b253df6588d502085042b7c/main.spi
00:28:36 v #16886 > >
00:28:36 v #16887 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:36 v #16888 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:36 v #16889 > > │ ### date_time_kind                                                           │
00:28:36 v #16890 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:36 v #16891 > >
00:28:36 v #16892 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:36 v #16893 > > union date_time_kind =
00:28:36 v #16894 > >     | Unspecified
00:28:36 v #16895 > >     | Utc
00:28:36 v #16896 > >     | Local
00:28:36 v #16897 > 00:28:35 d #902 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b21ef6625510b8fac3f92851ac2245c172f7379e30534d2d0b5a5314ae115de/main.spi
00:28:36 v #16898 > >
00:28:36 v #16899 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:36 v #16900 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:36 v #16901 > > │ ### specify_date_kind                                                        │
00:28:36 v #16902 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:36 v #16903 > >
00:28:36 v #16904 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:36 v #16905 > > inl specify_date_kind (kind : date_time_kind) (date_time : date_time) :
00:28:36 v #16906 > > date_time =
00:28:36 v #16907 > >     inl kind : $'System.DateTimeKind' =
00:28:36 v #16908 > >         match kind with
00:28:36 v #16909 > >         | Unspecified => $'System.DateTimeKind.Unspecified'
00:28:36 v #16910 > >         | Utc => $'System.DateTimeKind.Utc'
00:28:36 v #16911 > >         | Local => $'System.DateTimeKind.Local'
00:28:36 v #16912 > >     $'System.DateTime.SpecifyKind (!date_time, !kind)'
00:28:36 v #16913 > 00:28:35 d #903 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a07d7f575f6e614c94cdead3bb2a689b957d820fe6bcd4d89db109431bc68d59/main.spi
00:28:36 v #16914 > >
00:28:36 v #16915 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:36 v #16916 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:36 v #16917 > > │ ### time_span                                                                │
00:28:36 v #16918 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:36 v #16919 > >
00:28:36 v #16920 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:36 v #16921 > > nominal time_span = $"backend_switch `({ Fsharp : $"System.TimeSpan"; Python :
00:28:36 v #16922 > > $"datetime.timedelta" })"
00:28:36 v #16923 > >
00:28:36 v #16924 > > inl time_span x : time_span =
00:28:36 v #16925 > >     backend_switch {
00:28:36 v #16926 > >         Fsharp = fun () => x |> $'`time_span ' : time_span
00:28:36 v #16927 > >         Python = fun () => $'datetime.timedelta(!x)' : time_span
00:28:36 v #16928 > >     }
00:28:37 v #16929 > 00:28:36 d #904 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a709df3cdee332624da22e9548048b345d1a78e0fd5f1d9f878aaf2c34ca5213/main.spi
00:28:37 v #16930 > >
00:28:37 v #16931 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:37 v #16932 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:37 v #16933 > > │ ### new_time_span                                                            │
00:28:37 v #16934 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:37 v #16935 > >
00:28:37 v #16936 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:37 v #16937 > > inl new_time_span (a : date_time) (b : date_time) : time_span =
00:28:37 v #16938 > >     $'!b - !a '
00:28:37 v #16939 > 00:28:36 d #905 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ceb53686e1f061a4d42c093b7a71ee17808baca974ecd9e98fbafb5d38387e2/main.spi
00:28:37 v #16940 > >
00:28:37 v #16941 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:37 v #16942 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:37 v #16943 > > │ ### time_span_format                                                         │
00:28:37 v #16944 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:37 v #16945 > >
00:28:37 v #16946 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:37 v #16947 > > inl time_span_format (format : string) (time_span : time_span) : string =
00:28:37 v #16948 > >     run_target function
00:28:37 v #16949 > >         | (TypeScript _ | Python _) => fun () =>
00:28:37 v #16950 > >             $'!time_span.ToString ("c",
00:28:37 v #16951 > > System.Globalization.CultureInfo.InvariantCulture)'
00:28:37 v #16952 > >         | _ => fun () =>
00:28:37 v #16953 > >             $'!time_span.ToString !format '
00:28:37 v #16954 > 00:28:37 d #906 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b4778d90b4925b9fdfcf94d13eb989cc4b3994ddbfd30c1cbeb1f0dc4c63654/main.spi
00:28:38 v #16955 > >
00:28:38 v #16956 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:38 v #16957 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:38 v #16958 > > │ ### hours                                                                    │
00:28:38 v #16959 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:38 v #16960 > >
00:28:38 v #16961 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:38 v #16962 > > inl hours (time_span : time_span) : i32 =
00:28:38 v #16963 > >     backend_switch {
00:28:38 v #16964 > >         Fsharp = fun () => time_span |> $'_.Hours' : i32
00:28:38 v #16965 > >         Python = fun () => $'!time_span.days * 24 + !time_span.seconds // 3600'
00:28:38 v #16966 > > : i32
00:28:38 v #16967 > >     }
00:28:38 v #16968 > 00:28:37 d #907 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c65e3450c157ff362572225f439bea897209717fc442354e6eda686011c3348d/main.spi
00:28:38 v #16969 > >
00:28:38 v #16970 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:38 v #16971 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:38 v #16972 > > │ ### milliseconds                                                             │
00:28:38 v #16973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:38 v #16974 > >
00:28:38 v #16975 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:38 v #16976 > > inl milliseconds (time_span : time_span) : i32 =
00:28:38 v #16977 > >     backend_switch {
00:28:38 v #16978 > >         Fsharp = fun () => time_span |> $'_.Milliseconds' : i32
00:28:38 v #16979 > >         Python = fun () => $'!time_span.microseconds // 1000' : i32
00:28:38 v #16980 > >     }
00:28:38 v #16981 > 00:28:38 d #908 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32bd8c4a5cef8065f25c73e9dfee39b4523eb1839ce4d05e81a1024261d7d84a/main.spi
00:28:39 v #16982 > >
00:28:39 v #16983 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:39 v #16984 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:39 v #16985 > > │ ### minutes                                                                  │
00:28:39 v #16986 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:39 v #16987 > >
00:28:39 v #16988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:39 v #16989 > > inl minutes (time_span : time_span) : i32 =
00:28:39 v #16990 > >     backend_switch {
00:28:39 v #16991 > >         Fsharp = fun () => time_span |> $'_.Minutes' : i32
00:28:39 v #16992 > >         Python = fun () => $'!time_span.seconds // 60' : i32
00:28:39 v #16993 > >     }
00:28:39 v #16994 > 00:28:38 d #909 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c3bc8bf841648f33e0d4957eee7064bbc2c2aa82f3ead8d100496a0ca44442e/main.spi
00:28:39 v #16995 > >
00:28:39 v #16996 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:39 v #16997 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:39 v #16998 > > │ ### seconds                                                                  │
00:28:39 v #16999 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:39 v #17000 > >
00:28:39 v #17001 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:39 v #17002 > > inl seconds (time_span : time_span) : i32 =
00:28:39 v #17003 > >     backend_switch {
00:28:39 v #17004 > >         Fsharp = fun () => time_span |> $'_.Seconds' : i32
00:28:39 v #17005 > >         Python = fun () => $'!time_span.seconds % 60' : i32
00:28:39 v #17006 > >     }
00:28:39 v #17007 > 00:28:38 d #910 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9db8a12d8c45c0b40694d982bc108ccc848afcbd6f74ba3a2666a09cd46cf0ea/main.spi
00:28:39 v #17008 > >
00:28:39 v #17009 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:39 v #17010 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:39 v #17011 > > │ ### total_seconds                                                            │
00:28:39 v #17012 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:39 v #17013 > >
00:28:39 v #17014 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:39 v #17015 > > inl total_seconds (time_span : time_span) : f64 =
00:28:39 v #17016 > >     backend_switch {
00:28:39 v #17017 > >         Fsharp = fun () => time_span |> $'_.TotalSeconds' : f64
00:28:39 v #17018 > >         Python = fun () => $'!time_span.total_seconds()' : f64
00:28:39 v #17019 > >     }
00:28:40 v #17020 > 00:28:39 d #911 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad35e9dd8f27e773115f04f06623be45958b683bdafd2f87a68fb1ad8bc73897/main.spi
00:28:40 v #17021 > >
00:28:40 v #17022 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:40 v #17023 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:40 v #17024 > > │ ### time_zone_info                                                           │
00:28:40 v #17025 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:40 v #17026 > >
00:28:40 v #17027 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:40 v #17028 > > nominal time_zone_info = $'System.TimeZoneInfo'
00:28:40 v #17029 > 00:28:39 d #912 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/064aced419f3ba5911eae230810b11ff3133d0dc1e7ce045f3148e71fb75afb4/main.spi
00:28:40 v #17030 > >
00:28:40 v #17031 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:40 v #17032 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:40 v #17033 > > │ ### add_days                                                                 │
00:28:40 v #17034 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:40 v #17035 > >
00:28:40 v #17036 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:40 v #17037 > > inl add_days (days : i32) (date_time : date_time) : date_time =
00:28:40 v #17038 > >     $'!date_time.AddDays' days
00:28:40 v #17039 > 00:28:40 d #913 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef5b7449686e95110d71519d03edd9fd07c4ec0174c6b0ede8f19f6eaa0e348b/main.spi
00:28:41 v #17040 > >
00:28:41 v #17041 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:41 v #17042 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:41 v #17043 > > │ ### now                                                                      │
00:28:41 v #17044 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:41 v #17045 > >
00:28:41 v #17046 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:41 v #17047 > > inl now () : date_time =
00:28:41 v #17048 > >     backend_switch {
00:28:41 v #17049 > >         Fsharp = fun () => $'System.DateTime.Now' : date_time
00:28:41 v #17050 > >         Python = fun () =>
00:28:41 v #17051 > >             backend_switch {
00:28:41 v #17052 > >                 Python = fun () =>
00:28:41 v #17053 > >                     global "import datetime"
00:28:41 v #17054 > >             }
00:28:41 v #17055 > >             $'datetime.datetime.now()' : date_time
00:28:41 v #17056 > >     }
00:28:41 v #17057 > 00:28:40 d #914 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6f958e3db0f40ed0a4d10335484e625b8fa903599e35bd817780561587760510/main.spi
00:28:41 v #17058 > >
00:28:41 v #17059 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:41 v #17060 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:41 v #17061 > > │ ### utc_now                                                                  │
00:28:41 v #17062 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:41 v #17063 > >
00:28:41 v #17064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:41 v #17065 > > inl utc_now () : date_time =
00:28:41 v #17066 > >     backend_switch {
00:28:41 v #17067 > >         Fsharp = fun () => $'System.DateTime.UtcNow' : date_time
00:28:41 v #17068 > >         Python = fun () =>
00:28:41 v #17069 > >             backend_switch {
00:28:41 v #17070 > >                 Python = fun () =>
00:28:41 v #17071 > >                     global "import datetime"
00:28:41 v #17072 > >             }
00:28:41 v #17073 > >             $'datetime.datetime.utcnow()' : date_time
00:28:41 v #17074 > >     }
00:28:41 v #17075 > 00:28:40 d #915 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a054db26841d9dcf6ca7b58de0f558cd48b8e517ced270e96c600cdd20c0a571/main.spi
00:28:41 v #17076 > >
00:28:41 v #17077 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:41 v #17078 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:41 v #17079 > > │ ### stopwatch                                                                │
00:28:41 v #17080 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:41 v #17081 > >
00:28:41 v #17082 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:41 v #17083 > > nominal stopwatch_python =
00:28:41 v #17084 > >     `(
00:28:41 v #17085 > >         global "import timeit"
00:28:41 v #17086 > >         $'' : $'timeit.default_timer'
00:28:41 v #17087 > >     )
00:28:41 v #17088 > > type stopwatch_switch =
00:28:41 v #17089 > >     {
00:28:41 v #17090 > >         Fsharp : $'System.Diagnostics.Stopwatch'
00:28:41 v #17091 > >         Python : stopwatch_python
00:28:41 v #17092 > >     }
00:28:41 v #17093 > > nominal stopwatch = $'backend_switch `(stopwatch_switch)'
00:28:41 v #17094 > >
00:28:41 v #17095 > > inl stopwatch () : stopwatch =
00:28:41 v #17096 > >     backend_switch {
00:28:41 v #17097 > >         Fsharp = fun () => $'`stopwatch ' () : stopwatch
00:28:41 v #17098 > >         Python = fun () => $'`stopwatch ' : stopwatch
00:28:41 v #17099 > >     }
00:28:42 v #17100 > 00:28:41 d #916 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6b0de527178d6565ceb6ca5b77ca571a45c7bf9c9c27d6db2615bd5556eed18f/main.spi
00:28:42 v #17101 > >
00:28:42 v #17102 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:42 v #17103 > > inl stopwatch_elapsed_milliseconds (stopwatch : stopwatch) : i64 =
00:28:42 v #17104 > >     $'!stopwatch.ElapsedMilliseconds'
00:28:42 v #17105 > 00:28:41 d #917 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/884e2513af2cc7c5509c3a1379171106fea4afde89fc08072a48b26a1615f2e5/main.spi
00:28:42 v #17106 > >
00:28:42 v #17107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:42 v #17108 > > inl stopwatch_start (stopwatch : stopwatch) : () =
00:28:42 v #17109 > >     $'!stopwatch.Start' ()
00:28:43 v #17110 > 00:28:42 d #918 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e332efd7ec011c7bcc8111395ab3df1e16a2abfb096299433edda459f0180ed5/main.spi
00:28:43 v #17111 > >
00:28:43 v #17112 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:43 v #17113 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:43 v #17114 > > │ ## rust                                                                      │
00:28:43 v #17115 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:43 v #17116 > >
00:28:43 v #17117 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:43 v #17118 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:43 v #17119 > > │ ### duration                                                                 │
00:28:43 v #17120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:43 v #17121 > >
00:28:43 v #17122 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:43 v #17123 > > nominal duration =
00:28:43 v #17124 > >     `(
00:28:43 v #17125 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:28:43 v #17126 > > Fable.Core.Emit(\"std::time::Duration\")>]]\n#endif\ntype std_time_Duration =
00:28:43 v #17127 > > class end"
00:28:43 v #17128 > >         $'' : $'std_time_Duration'
00:28:43 v #17129 > >     )
00:28:43 v #17130 > 00:28:42 d #919 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26b2cbe978d6f91dbcec2630a387b885da60fc18f770ef6b722faf952de832b6/main.spi
00:28:43 v #17131 > >
00:28:43 v #17132 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:43 v #17133 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:43 v #17134 > > │ ### date_time'                                                               │
00:28:43 v #17135 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:43 v #17136 > >
00:28:43 v #17137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:43 v #17138 > > nominal date_time' t =
00:28:43 v #17139 > >     `(
00:28:43 v #17140 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:28:43 v #17141 > > Fable.Core.Emit(\"chrono::DateTime<$0>\")>]]\n#endif\ntype chrono_DateTime<'T> =
00:28:43 v #17142 > > class end"
00:28:43 v #17143 > >         $'' : $'chrono_DateTime<`t>'
00:28:43 v #17144 > >     )
00:28:43 v #17145 > 00:28:43 d #920 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c918fd7aabbbc94fd9e38cf43bba954a4de6700440753b967efd559511d14845/main.spi
00:28:44 v #17146 > >
00:28:44 v #17147 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:44 v #17148 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:44 v #17149 > > │ ### local                                                                    │
00:28:44 v #17150 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:44 v #17151 > >
00:28:44 v #17152 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:44 v #17153 > > nominal local =
00:28:44 v #17154 > >     `(
00:28:44 v #17155 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:28:44 v #17156 > > Fable.Core.Emit(\"chrono::Local\")>]]\n#endif\ntype chrono_Local = class end"
00:28:44 v #17157 > >         $'' : $'chrono_Local'
00:28:44 v #17158 > >     )
00:28:44 v #17159 > 00:28:43 d #921 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f50c4d773c113f60c9e0fff1a95a118219387aa4b15fb583b8bb11aab65e488/main.spi
00:28:44 v #17160 > >
00:28:44 v #17161 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:44 v #17162 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:44 v #17163 > > │ ### naive_date_time                                                          │
00:28:44 v #17164 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:44 v #17165 > >
00:28:44 v #17166 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:44 v #17167 > > nominal naive_date_time =
00:28:44 v #17168 > >     `(
00:28:44 v #17169 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:28:44 v #17170 > > Fable.Core.Emit(\"chrono::NaiveDateTime\")>]]\n#endif\ntype chrono_NaiveDateTime
00:28:44 v #17171 > > = class end"
00:28:44 v #17172 > >         $'' : $'chrono_NaiveDateTime'
00:28:44 v #17173 > >     )
00:28:44 v #17174 > 00:28:43 d #922 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2622e38cb4ae6e0d1bbfd51abbe3f8e88b72f6b2a01a16e677fdc100f8bf3a89/main.spi
00:28:44 v #17175 > >
00:28:44 v #17176 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:44 v #17177 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:44 v #17178 > > │ ## utc                                                                       │
00:28:44 v #17179 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:44 v #17180 > >
00:28:44 v #17181 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:44 v #17182 > > nominal utc =
00:28:44 v #17183 > >     `(
00:28:44 v #17184 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:28:44 v #17185 > > Fable.Core.Emit(\"chrono::Utc\")>]]\n#endif\ntype chrono_Utc = class end"
00:28:44 v #17186 > >         $'' : $'chrono_Utc'
00:28:44 v #17187 > >     )
00:28:45 v #17188 > 00:28:44 d #923 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68539cb2b33c79b9a3dffb2a211e4839f3fca0adc1998f3edfde20b061d53ae8/main.spi
00:28:45 v #17189 > >
00:28:45 v #17190 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:45 v #17191 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:45 v #17192 > > │ ### naive_utc                                                                │
00:28:45 v #17193 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:45 v #17194 > >
00:28:45 v #17195 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:45 v #17196 > > inl naive_utc (date_time : date_time' utc) : naive_date_time =
00:28:45 v #17197 > >     !\\(date_time, $'"$0.naive_utc()"')
00:28:45 v #17198 > 00:28:44 d #924 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3d12aec449013a79a56b8c6a8c17abec3e92fe160615b7fc898ac8bcfddf6729/main.spi
00:28:45 v #17199 > >
00:28:45 v #17200 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:45 v #17201 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:45 v #17202 > > │ ### to_local                                                                 │
00:28:45 v #17203 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:45 v #17204 > >
00:28:45 v #17205 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:45 v #17206 > > inl to_local (date_time : date_time' utc) : date_time' local =
00:28:45 v #17207 > >     inl naive_date_time = date_time |> naive_utc
00:28:45 v #17208 > >     !\\(naive_date_time,
00:28:45 v #17209 > > $'"chrono::offset::TimeZone::from_utc_datetime(&chrono::Local, &$0)"')
00:28:45 v #17210 > 00:28:45 d #925 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2c2ea112262291b0b7fda535a9f795ee7655a738eef9dbd808ab62ca5c0997eb/main.spi
00:28:46 v #17211 > >
00:28:46 v #17212 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:46 v #17213 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:46 v #17214 > > │ ### from_timestamp_micros                                                    │
00:28:46 v #17215 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:46 v #17216 > >
00:28:46 v #17217 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:46 v #17218 > > inl from_timestamp_micros forall t {number; int}. (timestamp : t) : option
00:28:46 v #17219 > > (date_time' utc) =
00:28:46 v #17220 > >     inl result : optionm'.option' (date_time' utc) =
00:28:46 v #17221 > >         !\\(timestamp, $'"chrono::DateTime::from_timestamp_micros($0)"')
00:28:46 v #17222 > >     result |> optionm'.unbox
00:28:46 v #17223 > 00:28:45 d #926 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f6f82024ea0dba9169233129b76f353e6092e615571706dd707f77989c87105/main.spi
00:28:46 v #17224 > >
00:28:46 v #17225 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:46 v #17226 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:46 v #17227 > > │ ### format'                                                                  │
00:28:46 v #17228 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:46 v #17229 > >
00:28:46 v #17230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:46 v #17231 > > inl format' (format : string) (date_time : date_time' utc) : sm'.std_string =
00:28:46 v #17232 > >     !\\((date_time, #format), $'"$0.format($1).to_string()"')
00:28:46 v #17233 > 00:28:45 d #927 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b2a59a13274ed14090dd204c2a6388c55201abe0f50149e5653cf0ad006dc33a/main.spi
00:28:46 v #17234 > >
00:28:46 v #17235 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:46 v #17236 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:46 v #17237 > > │ ### format''                                                                 │
00:28:46 v #17238 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:46 v #17239 > >
00:28:46 v #17240 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:46 v #17241 > > inl format'' (format : string) (date_time : date_time' _) : sm'.std_string =
00:28:46 v #17242 > >     !\\((date_time, #format), $'"$0.format($1).to_string()"')
00:28:47 v #17243 > 00:28:46 d #928 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d3150d44342a5f013379f2004aedee59dd29b5ae2978f604f0d0dbb54331d2d3/main.spi
00:28:47 v #17244 > >
00:28:47 v #17245 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:47 v #17246 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:47 v #17247 > > │ ### format_timestamp                                                         │
00:28:47 v #17248 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:47 v #17249 > >
00:28:47 v #17250 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:47 v #17251 > > inl format_timestamp forall t {number; int}. (timestamp : t) =
00:28:47 v #17252 > >     inl timestamp = join timestamp
00:28:47 v #17253 > >     (timestamp / 1000)
00:28:47 v #17254 > >     |> from_timestamp_micros
00:28:47 v #17255 > >     |> optionm.map fun x =>
00:28:47 v #17256 > >         x
00:28:47 v #17257 > >         |> to_local
00:28:47 v #17258 > >         |> format'' "%Y-%m-%d %H:%M:%S"
00:28:47 v #17259 > >         |> sm'.from_std_string
00:28:47 v #17260 > >     |> resultm.from_option
00:28:47 v #17261 > 00:28:46 d #929 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e4a1ce10b532ea5176c705985f2e1d06b4508ce00534f4b0aa2e39f40380abbc/main.spi
00:28:47 v #17262 > >
00:28:47 v #17263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:47 v #17264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:47 v #17265 > > │ ### duration_from_millis                                                     │
00:28:47 v #17266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:47 v #17267 > >
00:28:47 v #17268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:47 v #17269 > > inl duration_from_millis (ms : u64) : duration =
00:28:47 v #17270 > >     inl ms = join ms
00:28:47 v #17271 > >     !\($'"std::time::Duration::from_millis(!ms)"')
00:28:48 v #17272 > 00:28:47 d #930 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/827ce869a987340eb0290533358cb4d8026ade33ac6b856bbc7b51bf63832b33/main.spi
00:28:48 v #17273 > >
00:28:48 v #17274 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:48 v #17275 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:48 v #17276 > > │ ## date_time                                                                 │
00:28:48 v #17277 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:48 v #17278 > >
00:28:48 v #17279 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:48 v #17280 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:48 v #17281 > > │ ### time_zone_local                                                          │
00:28:48 v #17282 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:48 v #17283 > >
00:28:48 v #17284 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:48 v #17285 > > inl time_zone_local () : time_zone_info =
00:28:48 v #17286 > >     run_target function
00:28:48 v #17287 > >         | Rust (Native) => fun () =>
00:28:48 v #17288 > >             open rust.rust_operators
00:28:48 v #17289 > >             !\($'"0i64.into()"')
00:28:48 v #17290 > >         | Fsharp _ => fun () =>
00:28:48 v #17291 > >             $'System.TimeZoneInfo.Local'
00:28:48 v #17292 > >         | _ => fun () => null ()
00:28:48 v #17293 > 00:28:47 d #931 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe4e2b173e70ac28bf715cb630b4f30fd857234fcd14d879484ee1cefff6a045/main.spi
00:28:48 v #17294 > >
00:28:48 v #17295 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:48 v #17296 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:48 v #17297 > > │ ### get_utc_offset                                                           │
00:28:48 v #17298 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:48 v #17299 > >
00:28:48 v #17300 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:48 v #17301 > > inl get_utc_offset (time_zone_info : time_zone_info) (date_time : date_time) :
00:28:48 v #17302 > > time_span =
00:28:48 v #17303 > >     run_target function
00:28:48 v #17304 > >         | Rust _ => fun () => time_span ()
00:28:48 v #17305 > >         | Fsharp _ => fun () => date_time |> $'_.GetUtcOffset' (time_zone_local
00:28:48 v #17306 > > ())
00:28:48 v #17307 > >         | target => fun () => failwith $'$"date_time.get_utc_offset / target:
00:28:48 v #17308 > > {!target}"'
00:28:48 v #17309 > 00:28:48 d #932 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d3466c7b5c5d04c69e90459be87afce0051efd35f83c9f94b69d0fe89337f751/main.spi
00:28:49 v #17310 > >
00:28:49 v #17311 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:49 v #17312 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:49 v #17313 > > │ ### date_time_guid_from_date_time                                            │
00:28:49 v #17314 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:49 v #17315 > >
00:28:49 v #17316 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:49 v #17317 > > let date_time_guid_from_date_time (guid : guid.guid) (date_time : date_time) =
00:28:49 v #17318 > >     inl create prefix time_zone : date_time_guid =
00:28:49 v #17319 > >         inl guid = guid |> sm'.obj_to_string
00:28:49 v #17320 > >         $'`date_time_guid $"{!prefix}{!time_zone}{!guid.[[!prefix.Length +
00:28:49 v #17321 > > !time_zone.Length..]]}"'
00:28:49 v #17322 > >     run_target function
00:28:49 v #17323 > >         | Rust (Contract) => fun () => null ()
00:28:49 v #17324 > >         | Rust (Native | Wasm) => fun () =>
00:28:49 v #17325 > >             inl epoch =
00:28:49 v #17326 > >                 date_time_utc 1970 1 1 0 0 0
00:28:49 v #17327 > >                 |> to_universal_time
00:28:49 v #17328 > >             inl date_time =
00:28:49 v #17329 > >                 date_time
00:28:49 v #17330 > >                 |> specify_date_kind Local
00:28:49 v #17331 > >                 |> to_universal_time
00:28:49 v #17332 > >             inl unixticks =
00:28:49 v #17333 > >                 match date_time |> ticks, epoch |> ticks with
00:28:49 v #17334 > >                 | timestamp date_time, timestamp epoch => date_time - epoch
00:28:49 v #17335 > >             inl prefix =
00:28:49 v #17336 > >                 unixticks / 10
00:28:49 v #17337 > >                 |> from_timestamp_micros
00:28:49 v #17338 > >                 |> optionm.map (
00:28:49 v #17339 > >                     to_local
00:28:49 v #17340 > >                     >> format'' "%Y%m%d-%H%M-%S%f"
00:28:49 v #17341 > >                     >> sm'.from_std_string
00:28:49 v #17342 > >                     >> fun s => $'$"{!s.[[0..17]]}-{!s.[[18..21]]}-{!s.[[22]]}"'
00:28:49 v #17343 > >                 )
00:28:49 v #17344 > >                 |> optionm'.default_value ""
00:28:49 v #17345 > >             inl time_zone = date_time |> get_utc_offset (time_zone_local ())
00:28:49 v #17346 > >             inl time_zone_signal = if hours time_zone > 0 then 1u8 else 0
00:28:49 v #17347 > >             inl time_zone_value = time_zone |> time_span_format (join "hh:mm")
00:28:49 v #17348 > >             inl time_zone =
00:28:49 v #17349 > > $'$"{!time_zone_signal}{!time_zone_value.[[0..1]]}{!time_zone_value.[[3..4]]}"'
00:28:49 v #17350 > > : string
00:28:49 v #17351 > >             create prefix time_zone
00:28:49 v #17352 > >         | target => fun () =>
00:28:49 v #17353 > >             inl prefix = date_time |> format (join "yyyyMMdd-HHmm-ssff-ffff-f")
00:28:49 v #17354 > >             inl time_zone = date_time |> get_utc_offset (time_zone_local ())
00:28:49 v #17355 > >             inl time_zone_signal = if hours time_zone > 0 then 1u8 else 0
00:28:49 v #17356 > >             inl time_zone_value = time_zone |> time_span_format (join "hhmm")
00:28:49 v #17357 > >             inl time_zone = $'$"{!time_zone_signal}{!time_zone_value}"' : string
00:28:49 v #17358 > >             create prefix time_zone
00:28:49 v #17359 > 00:28:48 d #933 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f9f7264413780860351ddcf4919759738f7ff3da8f7303047d9c5091b57de8dc/main.spi
00:28:49 v #17360 > >
00:28:49 v #17361 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:49 v #17362 > > //// test
00:28:49 v #17363 > >
00:28:49 v #17364 > > now () |> to_universal_time |> date_time_guid_from_date_time (test_guid ()) |>
00:28:49 v #17365 > > sm'.obj_to_string
00:28:49 v #17366 > > |> console.write_line
00:28:49 v #17367 > 00:28:48 d #934 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b28757145750aefea7c097cfd3ac16d2e03bb384c644a57451635e62fd6683b3/main.spi
00:28:51 v #17368 > >
00:28:51 v #17369 > > ╭─[ 1.93s - stdout ]───────────────────────────────────────────────────────────╮
00:28:51 v #17370 > > │ 20241018-1850-3156-5637-500300543210                                         │
00:28:51 v #17371 > > │                                                                              │
00:28:51 v #17372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:51 v #17373 > >
00:28:51 v #17374 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:51 v #17375 > > //// test
00:28:51 v #17376 > > ///! rust -d chrono
00:28:51 v #17377 > >
00:28:51 v #17378 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:28:51 v #17379 > > - 6i32) (am'.End id)
00:28:51 v #17380 > > now ()
00:28:51 v #17381 > > |> to_universal_time
00:28:51 v #17382 > > |> date_time_guid_from_date_time (test_guid ())
00:28:51 v #17383 > > |> sm'.obj_to_string
00:28:51 v #17384 > > |> fun s => s |> _assert_eq' $'$"{!s.[[0..29]]}{!suffix}"'
00:28:51 v #17385 > 00:28:50 d #935 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab33dd4699cf08edaccaa22ca2d7d0098c5e5c8b95f4f9a1b1a09e28d2c3775a/main.spi
00:29:05 v #17386 > >
00:29:05 v #17387 > > ╭─[ 14.55s - return value ]────────────────────────────────────────────────────╮
00:29:05 v #17388 > > │ __assert_eq' / actual: "20241018-1850-4603-8909-000000543210" / expected:    │
00:29:05 v #17389 > > │ "20241018-1850-4603-8909-000000543210"                                       │
00:29:05 v #17390 > > │                                                                              │
00:29:05 v #17391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:05 v #17392 > >
00:29:05 v #17393 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:05 v #17394 > > //// test
00:29:05 v #17395 > > ///! fsharp
00:29:05 v #17396 > > ///! rust -d chrono
00:29:05 v #17397 > >
00:29:05 v #17398 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:29:05 v #17399 > > - 6i32) (am'.End id)
00:29:05 v #17400 > > min_value ()
00:29:05 v #17401 > > |> specify_date_kind Local
00:29:05 v #17402 > > |> date_time_guid_from_date_time (test_guid ())
00:29:05 v #17403 > > |> sm'.obj_to_string
00:29:05 v #17404 > > |> fun s => s |> _assert_eq'
00:29:05 v #17405 > > $'$"00010101-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:29:06 v #17406 > 00:29:05 d #936 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5f83ccd3a5d10663386e8b07bbba290081cbfaf22d1ddac76282faba34d6746b/main.spi
00:29:20 v #17407 > >
00:29:20 v #17408 > > ╭─[ 14.22s - return value ]────────────────────────────────────────────────────╮
00:29:20 v #17409 > > │ .rs output (rust -d chrono):                                                 │
00:29:20 v #17410 > > │ __assert_eq' / actual: "00010101-0000-0000-0000-000000543210" / expected:    │
00:29:20 v #17411 > > │ "00010101-0000-0000-0000-000000543210"                                       │
00:29:20 v #17412 > > │                                                                              │
00:29:20 v #17413 > > │                                                                              │
00:29:20 v #17414 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:20 v #17415 > >
00:29:20 v #17416 > > ╭─[ 14.23s - stdout ]──────────────────────────────────────────────────────────╮
00:29:20 v #17417 > > │ .fsx output:                                                                 │
00:29:20 v #17418 > > │ __assert_eq' / actual: "00010101-0000-0000-0000-000200543210" / expected:    │
00:29:20 v #17419 > > │ "00010101-0000-0000-0000-000200543210"                                       │
00:29:20 v #17420 > > │                                                                              │
00:29:20 v #17421 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:20 v #17422 > >
00:29:20 v #17423 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:20 v #17424 > > //// test
00:29:20 v #17425 > > ///! fsharp
00:29:20 v #17426 > >
00:29:20 v #17427 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:29:20 v #17428 > > - 6i32) (am'.End id)
00:29:20 v #17429 > > max_value ()
00:29:20 v #17430 > > |> specify_date_kind Utc
00:29:20 v #17431 > > |> add_days -1
00:29:20 v #17432 > > |> date_time_guid_from_date_time (test_guid ())
00:29:20 v #17433 > > |> sm'.obj_to_string
00:29:20 v #17434 > > |> fun s => s |> _assert_eq
00:29:20 v #17435 > > $'$"99991230-2359-5999-9999-9{!s.[[25..29]]}{!suffix}"'
00:29:20 v #17436 > 00:29:19 d #937 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e1c78e20efd41a05f557cf87db48dca5b41bbb5273702b92d106e43f99872fdb/main.spi
00:29:20 v #17437 > >
00:29:20 v #17438 > > ╭─[ 649.18ms - stdout ]────────────────────────────────────────────────────────╮
00:29:20 v #17439 > > │ __assert_eq / actual: "99991230-2359-5999-9999-900300543210" / expected:     │
00:29:20 v #17440 > > │ "99991230-2359-5999-9999-900300543210"                                       │
00:29:20 v #17441 > > │                                                                              │
00:29:20 v #17442 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:20 v #17443 > >
00:29:20 v #17444 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:20 v #17445 > > //// test
00:29:20 v #17446 > > ///! rust -d chrono
00:29:20 v #17447 > >
00:29:20 v #17448 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:29:20 v #17449 > > - 6i32) (am'.End id)
00:29:20 v #17450 > > max_value ()
00:29:20 v #17451 > > |> specify_date_kind Utc
00:29:20 v #17452 > > |> add_days -1
00:29:20 v #17453 > > |> date_time_guid_from_date_time (test_guid ())
00:29:20 v #17454 > > |> sm'.obj_to_string
00:29:20 v #17455 > > |> fun s => s |> _assert_eq
00:29:20 v #17456 > > $'$"99991230-2359-5999-9999-0{!s.[[25..29]]}{!suffix}"'
00:29:21 v #17457 > 00:29:20 d #938 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/22dcdf3c9b12d2d15c36cea64731c007f71176283036a6e5f5ed34147c6c0626/main.spi
00:29:36 v #17458 > >
00:29:36 v #17459 > > ╭─[ 15.78s - return value ]────────────────────────────────────────────────────╮
00:29:36 v #17460 > > │ __assert_eq / actual: "99991230-2359-5999-9999-000000543210" / expected:     │
00:29:36 v #17461 > > │ "99991230-2359-5999-9999-000000543210"                                       │
00:29:36 v #17462 > > │                                                                              │
00:29:36 v #17463 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:36 v #17464 > >
00:29:36 v #17465 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:36 v #17466 > > //// test
00:29:36 v #17467 > >
00:29:36 v #17468 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:29:36 v #17469 > > - 6i32) (am'.End id)
00:29:36 v #17470 > > unix_epoch ()
00:29:36 v #17471 > > |> specify_date_kind Utc
00:29:36 v #17472 > > |> add_days 1
00:29:36 v #17473 > > |> date_time_guid_from_date_time (test_guid ())
00:29:36 v #17474 > > |> sm'.obj_to_string
00:29:36 v #17475 > > |> fun s => s |> _assert_eq
00:29:36 v #17476 > > $'$"19700102-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:29:36 v #17477 > 00:29:36 d #939 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff3eccf058e98a642e895d0288105988bbc9f7e19376a49500c253412fb4ad37/main.spi
00:29:37 v #17478 > >
00:29:37 v #17479 > > ╭─[ 599.17ms - stdout ]────────────────────────────────────────────────────────╮
00:29:37 v #17480 > > │ __assert_eq / actual: "19700102-0000-0000-0000-000200543210" / expected:     │
00:29:37 v #17481 > > │ "19700102-0000-0000-0000-000200543210"                                       │
00:29:37 v #17482 > > │                                                                              │
00:29:37 v #17483 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:37 v #17484 > >
00:29:37 v #17485 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:37 v #17486 > > //// test
00:29:37 v #17487 > > ///! rust -d chrono
00:29:37 v #17488 > >
00:29:37 v #17489 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:29:37 v #17490 > > - 6i32) (am'.End id)
00:29:37 v #17491 > > unix_epoch ()
00:29:37 v #17492 > > |> specify_date_kind Utc
00:29:37 v #17493 > > |> add_days 1
00:29:37 v #17494 > > |> date_time_guid_from_date_time (test_guid ())
00:29:37 v #17495 > > |> sm'.obj_to_string
00:29:37 v #17496 > > |> fun s => s |> _assert_eq
00:29:37 v #17497 > > $'$"19700102-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:29:37 v #17498 > 00:29:36 d #940 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6ae5532fb12cfe7ce8cc7aaea4bca886edd2f775d9d2734b34ddbc7ad5482a41/main.spi
00:29:53 v #17499 > >
00:29:53 v #17500 > > ╭─[ 16.04s - return value ]────────────────────────────────────────────────────╮
00:29:53 v #17501 > > │ __assert_eq / actual: "19700102-0000-0000-0000-000000543210" / expected:     │
00:29:53 v #17502 > > │ "19700102-0000-0000-0000-000000543210"                                       │
00:29:53 v #17503 > > │                                                                              │
00:29:53 v #17504 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:53 v #17505 > >
00:29:53 v #17506 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:53 v #17507 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:53 v #17508 > > │ ### date_time_from_guid                                                      │
00:29:53 v #17509 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:53 v #17510 > >
00:29:53 v #17511 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:53 v #17512 > > inl date_time_from_guid (date_time_guid : date_time_guid) =
00:29:53 v #17513 > >     inl date_time_guid = date_time_guid |> sm'.obj_to_string
00:29:53 v #17514 > >     inl sm_replace = sm'.replace "-" ""
00:29:53 v #17515 > >     run_target_args (fun () => sm_replace) function
00:29:53 v #17516 > >         | (Rust _ | TypeScript _) => fun sm_replace =>
00:29:53 v #17517 > >             $'System.DateTime.Parse (!date_time_guid.[[..24]] |> !sm_replace)' :
00:29:53 v #17518 > > date_time
00:29:53 v #17519 > >         | _ => fun sm_replace => $'System.DateTime.ParseExact
00:29:53 v #17520 > > (!date_time_guid.[[..24]] |> !sm_replace, "yyyyMMddHHmmssfffffff", null)' :
00:29:53 v #17521 > > date_time
00:29:53 v #17522 > 00:29:52 d #941 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ebcfbc9075e076b5a70012553733df5eb8d29e045f1d314297d0dbba29dd4146/main.spi
00:29:53 v #17523 > >
00:29:53 v #17524 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:53 v #17525 > > //// test
00:29:53 v #17526 > >
00:29:53 v #17527 > > date_time_from_guid (guid.new_guid "00010101-0000-0000-0000-0a9876543210")
00:29:53 v #17528 > > |> _assert_eq' (min_value ())
00:29:53 v #17529 > 00:29:53 d #942 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/66bbec75d62f400b2a8aa088bca5a9e93d885df564131443e0e8e7919b56f2f9/main.spi
00:29:54 v #17530 > >
00:29:54 v #17531 > > ╭─[ 478.47ms - stdout ]────────────────────────────────────────────────────────╮
00:29:54 v #17532 > > │ __assert_eq' / actual: 0001-01-01 12:00:00 AM / expected: 0001-01-01         │
00:29:54 v #17533 > > │ 12:00:00 AM                                                                  │
00:29:54 v #17534 > > │                                                                              │
00:29:54 v #17535 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:54 v #17536 > >
00:29:54 v #17537 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:54 v #17538 > > //// test
00:29:54 v #17539 > >
00:29:54 v #17540 > > date_time_from_guid (guid.new_guid $'$"99991231-2359-5999-9999-9{(!test_guid ()
00:29:54 v #17541 > > |> string).[[^10..]]}"')
00:29:54 v #17542 > > |> _assert_eq' (max_value ())
00:29:54 v #17543 > 00:29:53 d #943 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e519960ea79ae69db269d3d89a534a07c941a96ae58f353fc7555d2e792751ee/main.spi
00:29:54 v #17544 > >
00:29:54 v #17545 > > ╭─[ 459.60ms - stdout ]────────────────────────────────────────────────────────╮
00:29:54 v #17546 > > │ __assert_eq' / actual: 9999-12-31 11:59:59 PM / expected: 9999-12-31         │
00:29:54 v #17547 > > │ 11:59:59 PM                                                                  │
00:29:54 v #17548 > > │                                                                              │
00:29:54 v #17549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:54 v #17550 > >
00:29:54 v #17551 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:54 v #17552 > > //// test
00:29:54 v #17553 > >
00:29:54 v #17554 > > date_time_from_guid (guid.new_guid $'$"19700101-0000-0000-0000-0{(!test_guid ()
00:29:54 v #17555 > > |> string).[[^10..]]}"')
00:29:54 v #17556 > > |> _assert_eq' $'System.DateTime.UnixEpoch'
00:29:54 v #17557 > 00:29:54 d #944 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e6a59aa16048b4c0b83a141d809e76220e7783292983c4b4d95d99a58a9f20c/main.spi
00:29:55 v #17558 > >
00:29:55 v #17559 > > ╭─[ 463.27ms - stdout ]────────────────────────────────────────────────────────╮
00:29:55 v #17560 > > │ __assert_eq' / actual: 1970-01-01 12:00:00 AM / expected: 1970-01-01         │
00:29:55 v #17561 > > │ 12:00:00 AM                                                                  │
00:29:55 v #17562 > > │                                                                              │
00:29:55 v #17563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:55 v #17564 > >
00:29:55 v #17565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:55 v #17566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:55 v #17567 > > │ ### timestamp_guid_from_timestamp                                            │
00:29:55 v #17568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:55 v #17569 > >
00:29:55 v #17570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:55 v #17571 > > inl timestamp_guid_from_timestamp (guid : guid.guid) (timestamp : timestamp) :
00:29:55 v #17572 > > timestamp_guid =
00:29:55 v #17573 > >     inl guid = guid |> sm'.obj_to_string
00:29:55 v #17574 > >     inl timestamp = timestamp |> sm'.obj_to_string |> sm'.pad_left 18i32 '0'
00:29:55 v #17575 > >     $'`timestamp_guid
00:29:55 v #17576 > > $"{!timestamp.[[0..7]]}-{!timestamp.[[8..11]]}-{!timestamp.[[12..15]]}-{!timesta
00:29:55 v #17577 > > mp.[[16..17]]}{!guid.[[21..]]}"'
00:29:55 v #17578 > 00:29:54 d #945 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e3cca4ab2123cc943c6584d37fa48579dea9ecc47219ae43daf5312db999b06f/main.spi
00:29:55 v #17579 > >
00:29:55 v #17580 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:55 v #17581 > > //// test
00:29:55 v #17582 > >
00:29:55 v #17583 > > timestamp_guid_from_timestamp (test_guid ()) (timestamp 0i64)
00:29:55 v #17584 > > |> _assert_eq' (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")
00:29:55 v #17585 > 00:29:54 d #946 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fcd45e236feddfdd0702c60a120db00c07ec2ea2bfd557c67b9df543e4c56eb2/main.spi
00:29:55 v #17586 > >
00:29:55 v #17587 > > ╭─[ 466.76ms - stdout ]────────────────────────────────────────────────────────╮
00:29:55 v #17588 > > │ __assert_eq' / actual: 00000000-0000-0000-00dc-ba9876543210 / expected:      │
00:29:55 v #17589 > > │ 00000000-0000-0000-00dc-ba9876543210                                         │
00:29:55 v #17590 > > │                                                                              │
00:29:55 v #17591 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:55 v #17592 > >
00:29:55 v #17593 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:55 v #17594 > > //// test
00:29:55 v #17595 > >
00:29:55 v #17596 > > timestamp_guid_from_timestamp (test_guid ()) (timestamp 999999999999999999i64)
00:29:55 v #17597 > > |> _assert_eq' (guid.new_guid $'$"99999999-9999-9999-99dc-b{(!test_guid () |>
00:29:55 v #17598 > > string).[[^10..]]}"')
00:29:56 v #17599 > 00:29:55 d #947 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb294f861d2d3f291c07e4b833120d99c04a814e1d69afa0de9fcf668a2d7d68/main.spi
00:29:56 v #17600 > >
00:29:56 v #17601 > > ╭─[ 426.05ms - stdout ]────────────────────────────────────────────────────────╮
00:29:56 v #17602 > > │ __assert_eq' / actual: 99999999-9999-9999-99dc-ba9876543210 / expected:      │
00:29:56 v #17603 > > │ 99999999-9999-9999-99dc-ba9876543210                                         │
00:29:56 v #17604 > > │                                                                              │
00:29:56 v #17605 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:56 v #17606 > >
00:29:56 v #17607 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:56 v #17608 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:56 v #17609 > > │ ### timestamp_from_guid                                                      │
00:29:56 v #17610 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:56 v #17611 > >
00:29:56 v #17612 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:56 v #17613 > > inl timestamp_from_guid (guid : date_time_guid) : timestamp =
00:29:56 v #17614 > >     inl guid = guid |> sm'.obj_to_string
00:29:56 v #17615 > >     $'`i64
00:29:56 v #17616 > > $"{!guid.[[0..7]]}{!guid.[[9..12]]}{!guid.[[14..17]]}{!guid.[[19..20]]}"'
00:29:56 v #17617 > 00:29:55 d #948 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b4ad1e67580c521c65642d6015ca9e9b08d12e0edadbbcaddf3e9fdc4c3e1944/main.spi
00:29:56 v #17618 > >
00:29:56 v #17619 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:56 v #17620 > > //// test
00:29:56 v #17621 > >
00:29:56 v #17622 > > timestamp_from_guid (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")
00:29:56 v #17623 > > |> _assert_eq (timestamp 0)
00:29:56 v #17624 > 00:29:56 d #949 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a36ed935c2702739b7335f34541e597f96188e2206844ca4c8c2bce0743a01f6/main.spi
00:29:57 v #17625 > >
00:29:57 v #17626 > > ╭─[ 442.45ms - stdout ]────────────────────────────────────────────────────────╮
00:29:57 v #17627 > > │ __assert_eq / actual: 0L / expected: 0L                                      │
00:29:57 v #17628 > > │                                                                              │
00:29:57 v #17629 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:57 v #17630 > >
00:29:57 v #17631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:57 v #17632 > > //// test
00:29:57 v #17633 > >
00:29:57 v #17634 > > timestamp_from_guid (guid.new_guid $'$"99999999-9999-9999-99{(!test_guid () |>
00:29:57 v #17635 > > string).[[^14..]]}"')
00:29:57 v #17636 > > |> _assert_eq (timestamp 999999999999999999)
00:29:57 v #17637 > 00:29:56 d #950 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/472702d6205e1a7731b766a5b43dab9848f77d5af24d502a5c3327b627f16c42/main.spi
00:29:57 v #17638 > >
00:29:57 v #17639 > > ╭─[ 525.86ms - stdout ]────────────────────────────────────────────────────────╮
00:29:57 v #17640 > > │ __assert_eq / actual: 999999999999999999L / expected: 999999999999999999L    │
00:29:57 v #17641 > > │                                                                              │
00:29:57 v #17642 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:57 v #17643 > >
00:29:57 v #17644 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:57 v #17645 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:57 v #17646 > > │ ### new_guid_from_date_time                                                  │
00:29:57 v #17647 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:57 v #17648 > >
00:29:57 v #17649 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:57 v #17650 > > inl new_guid_from_date_time (date_time : date_time) =
00:29:57 v #17651 > >     inl guid = guid.new_raw_guid ()
00:29:57 v #17652 > >     date_time_guid_from_date_time guid date_time
00:29:57 v #17653 > 00:29:57 d #951 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae6deacc1728614284db3c0fb333feabf8e3ba82430b3ed5865094d9f18c24b6/main.spi
00:29:58 v #17654 > >
00:29:58 v #17655 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:58 v #17656 > > //// test
00:29:58 v #17657 > >
00:29:58 v #17658 > > utc_now ()
00:29:58 v #17659 > > |> new_guid_from_date_time
00:29:58 v #17660 > > |> date_time_from_guid
00:29:58 v #17661 > > |> fun date_time => new_time_span date_time (utc_now ()) |> total_seconds |> i32
00:29:58 v #17662 > > |> _assert_eq 0
00:29:58 v #17663 > 00:29:57 d #952 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2ae70c315851cc9c7551985098bdec57416679dd6a1e8fd40679a02d3c1766f6/main.spi
00:29:58 v #17664 > >
00:29:58 v #17665 > > ╭─[ 618.55ms - stdout ]────────────────────────────────────────────────────────╮
00:29:58 v #17666 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:29:58 v #17667 > > │                                                                              │
00:29:58 v #17668 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:58 v #17669 > >
00:29:58 v #17670 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:58 v #17671 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:58 v #17672 > > │ ### new_guid_from_timestamp                                                  │
00:29:58 v #17673 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:58 v #17674 > >
00:29:58 v #17675 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:58 v #17676 > > inl new_guid_from_timestamp (timestamp : timestamp) =
00:29:58 v #17677 > >     inl guid = guid.new_raw_guid ()
00:29:58 v #17678 > >     timestamp_guid_from_timestamp guid timestamp
00:29:59 v #17679 > 00:29:58 d #953 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/03254b8c91a8c46d33e15db4db09dc9985cfa52fa40c83fbea6c078f1f5ddfbd/main.spi
00:29:59 v #17680 > >
00:29:59 v #17681 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:59 v #17682 > > //// test
00:29:59 v #17683 > >
00:29:59 v #17684 > > utc_now ()
00:29:59 v #17685 > > |> ticks
00:29:59 v #17686 > > |> new_guid_from_timestamp
00:29:59 v #17687 > > |> timestamp_from_guid
00:29:59 v #17688 > > |> fun (timestamp timestamp) => (timestamp - (utc_now () |> ticks |> fun
00:29:59 v #17689 > > (timestamp x) => x)) / 100000i64
00:29:59 v #17690 > > |> _assert_eq 0i64
00:29:59 v #17691 > 00:29:58 d #954 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0eb02472e3fec95c92249f55c7bced75557e7d39f4fefcaa1b8f3c92b7ecafb0/main.spi
00:29:59 v #17692 > >
00:29:59 v #17693 > > ╭─[ 487.68ms - stdout ]────────────────────────────────────────────────────────╮
00:29:59 v #17694 > > │ __assert_eq / actual: 0L / expected: 0L                                      │
00:29:59 v #17695 > > │                                                                              │
00:29:59 v #17696 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:59 v #17697 > >
00:29:59 v #17698 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:59 v #17699 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:59 v #17700 > > │ ## main                                                                      │
00:29:59 v #17701 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:59 v #17702 > >
00:29:59 v #17703 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:59 v #17704 > > inl main () =
00:29:59 v #17705 > >     $'let date_time_guid_from_date_time x = !date_time_guid_from_date_time x' :
00:29:59 v #17706 > > ()
00:29:59 v #17707 > >     $'let date_time_from_guid x = !date_time_from_guid x' : ()
00:29:59 v #17708 > >     $'let timestamp_guid_from_timestamp x = !timestamp_guid_from_timestamp x' :
00:29:59 v #17709 > > ()
00:29:59 v #17710 > >     $'let timestamp_from_guid x = !timestamp_from_guid x' : ()
00:29:59 v #17711 > >     $'let new_guid_from_date_time x = !new_guid_from_date_time x' : ()
00:29:59 v #17712 > >     $'let new_guid_from_timestamp x = !new_guid_from_timestamp x' : ()
00:29:59 v #17713 > >     $'let format x = !format x' : ()
00:29:59 v #17714 > >     $'let format_iso8601 x = !format_iso8601 x' : ()
00:29:59 v #17715 > 00:29:59 d #955 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f27cf91fc16de75143eebc47e027a9f64dfd52d85fd92d956b0578a833e3ab6/main.spi
00:30:00 v #17716 > 00:01:37 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 46864 }
00:30:00 v #17717 > 00:01:37 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:30:02 v #17718 > 00:01:39 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb to html
00:30:02 v #17719 > 00:01:39 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:30:02 v #17720 > 00:01:39 v #7 !   validate(nb)
00:30:03 v #17721 > 00:01:41 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:30:03 v #17722 > 00:01:41 v #9 !   return _pygments_highlight(
00:30:05 v #17723 > 00:01:42 v #10 ! [NbConvertApp] Writing 411847 bytes to c:\home\git\polyglot\lib\spiral\date_time.dib.html
00:30:05 v #17724 > 00:01:42 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 860 }
00:30:05 v #17725 > 00:01:42 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 860 }
00:30:05 v #17726 > 00:01:42 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/date_time.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/date_time.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:30:05 v #17727 > 00:01:43 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:30:05 v #17728 > 00:01:43 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:30:05 v #17729 > 00:01:43 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 47783 }
00:30:05 d #17730 runtime.execute_with_options_async / { exit_code = 0; output_length = 52331 }
00:30:05 d #20 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path date_time.dib --retries 3
00:30:05 d #17731 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path math.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:30:05 v #17732 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "math.dib", "--retries", "3"])) }
00:30:05 v #17733 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/math.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/math.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/math.dib" --output-path "c:/home/git/polyglot/lib/spiral/math.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:30:08 v #17734 > >
00:30:08 v #17735 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:08 v #17736 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:08 v #17737 > > │ # math                                                                       │
00:30:08 v #17738 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:12 v #17739 > >
00:30:12 v #17740 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:12 v #17741 > > //// test
00:30:12 v #17742 > >
00:30:12 v #17743 > > open testing
00:30:13 v #17744 > 00:30:12 d #956 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:30:14 v #17745 > >
00:30:14 v #17746 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:14 v #17747 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:14 v #17748 > > │ ## math                                                                      │
00:30:14 v #17749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:14 v #17750 > >
00:30:14 v #17751 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:14 v #17752 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:14 v #17753 > > │ ### e                                                                        │
00:30:14 v #17754 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:14 v #17755 > >
00:30:14 v #17756 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:14 v #17757 > > inl e () =
00:30:14 v #17758 > >     exp 1f64
00:30:14 v #17759 > 00:30:13 d #957 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad8fe92be0dbc38e45aef60c1ef8263bc2c36b963b582c4daaa7a6231f197c37/main.spi
00:30:14 v #17760 > >
00:30:14 v #17761 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:14 v #17762 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:14 v #17763 > > │ ## square                                                                    │
00:30:14 v #17764 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:14 v #17765 > >
00:30:14 v #17766 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:14 v #17767 > > inl square x =
00:30:14 v #17768 > >     x ** 2
00:30:14 v #17769 > 00:30:14 d #958 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f777aa39b8f5387d4c32b6e3bccee1d0130085d98ddfcb94a8f66472f905006/main.spi
00:30:15 v #17770 > >
00:30:15 v #17771 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:15 v #17772 > > //// test
00:30:15 v #17773 > >
00:30:15 v #17774 > > 5f64
00:30:15 v #17775 > > |> sqrt
00:30:15 v #17776 > > |> square
00:30:15 v #17777 > > |> _assert_approx_eq None 5
00:30:15 v #17778 > 00:30:14 d #959 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27abda1843b1bbfcadf8a746514b5f9b4aed7baa93785d6b352c5b478793c0cb/main.spi
00:30:16 v #17779 > >
00:30:16 v #17780 > > ╭─[ 1.17s - stdout ]───────────────────────────────────────────────────────────╮
00:30:16 v #17781 > > │ __assert_approx_eq / actual: 5.0 / expected: 5.0                             │
00:30:16 v #17782 > > │                                                                              │
00:30:16 v #17783 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:16 v #17784 > >
00:30:16 v #17785 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:16 v #17786 > > //// test
00:30:16 v #17787 > >
00:30:16 v #17788 > > e () |> square
00:30:16 v #17789 > > |> _assert_approx_eq None 7.3890560989306495
00:30:16 v #17790 > 00:30:15 d #960 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/417634bcbae2b61fa4822bd5baddd804653f1e470adfbfe6e60ce30aaee154e7/main.spi
00:30:16 v #17791 > >
00:30:16 v #17792 > > ╭─[ 456.06ms - stdout ]────────────────────────────────────────────────────────╮
00:30:16 v #17793 > > │ __assert_approx_eq / actual: 7.389056099 / expected: 7.389056099             │
00:30:16 v #17794 > > │                                                                              │
00:30:16 v #17795 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:16 v #17796 > >
00:30:16 v #17797 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:16 v #17798 > > //// test
00:30:16 v #17799 > >
00:30:16 v #17800 > > 2 * 2 / 0.4f64 |> sqrt
00:30:16 v #17801 > > |> _assert_approx_eq None 3.1622776601683795
00:30:16 v #17802 > 00:30:16 d #961 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9803c2eeb0df6f028e71deedc9cf6fcfc95fd406c15fc3e28ef038d887e254c1/main.spi
00:30:17 v #17803 > >
00:30:17 v #17804 > > ╭─[ 413.20ms - stdout ]────────────────────────────────────────────────────────╮
00:30:17 v #17805 > > │ __assert_approx_eq / actual: 3.16227766 / expected: 3.16227766               │
00:30:17 v #17806 > > │                                                                              │
00:30:17 v #17807 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:17 v #17808 > >
00:30:17 v #17809 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:17 v #17810 > > //// test
00:30:17 v #17811 > >
00:30:17 v #17812 > > 2f64 / 3
00:30:17 v #17813 > > |> _assert_approx_eq None 0.6666666666666666
00:30:17 v #17814 > 00:30:16 d #962 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15fd9877050a993af976323a53d388a892895592a32716a1dac4a8a54ff66635/main.spi
00:30:17 v #17815 > >
00:30:17 v #17816 > > ╭─[ 435.73ms - stdout ]────────────────────────────────────────────────────────╮
00:30:17 v #17817 > > │ __assert_approx_eq / actual: 0.6666666667 / expected: 0.6666666667           │
00:30:17 v #17818 > > │                                                                              │
00:30:17 v #17819 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:17 v #17820 > >
00:30:17 v #17821 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:17 v #17822 > > //// test
00:30:17 v #17823 > >
00:30:17 v #17824 > > 2f64 |> log
00:30:17 v #17825 > > |> _assert_approx_eq None 0.6931471805599453
00:30:17 v #17826 > 00:30:17 d #963 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/91a5ac1fb9da5da905602bf6ccf6603aa4ef71599235328ca2f25392355606ee/main.spi
00:30:18 v #17827 > >
00:30:18 v #17828 > > ╭─[ 394.90ms - stdout ]────────────────────────────────────────────────────────╮
00:30:18 v #17829 > > │ __assert_approx_eq / actual: 0.6931471806 / expected: 0.6931471806           │
00:30:18 v #17830 > > │                                                                              │
00:30:18 v #17831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:18 v #17832 > >
00:30:18 v #17833 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:18 v #17834 > > //// test
00:30:18 v #17835 > >
00:30:18 v #17836 > > pi
00:30:18 v #17837 > > |> _assert_approx_eq None 3.141592653589793f64
00:30:18 v #17838 > 00:30:17 d #964 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6cbd694cb8cd1fd510130e43dceb50f76dd4ba103395c011b7163372aa93e671/main.spi
00:30:18 v #17839 > >
00:30:18 v #17840 > > ╭─[ 419.74ms - stdout ]────────────────────────────────────────────────────────╮
00:30:18 v #17841 > > │ __assert_approx_eq / actual: 3.141592654 / expected: 3.141592654             │
00:30:18 v #17842 > > │                                                                              │
00:30:18 v #17843 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:18 v #17844 > >
00:30:18 v #17845 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:18 v #17846 > > //// test
00:30:18 v #17847 > >
00:30:18 v #17848 > > pi |> cos
00:30:18 v #17849 > > |> _assert_eq -1f64
00:30:18 v #17850 > 00:30:17 d #965 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4e86be50b2c4461fca5f17fc2283ebc955689147f173956fc397f2872bc810ad/main.spi
00:30:18 v #17851 > >
00:30:18 v #17852 > > ╭─[ 431.01ms - stdout ]────────────────────────────────────────────────────────╮
00:30:18 v #17853 > > │ __assert_eq / actual: -1.0 / expected: -1.0                                  │
00:30:18 v #17854 > > │                                                                              │
00:30:18 v #17855 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:18 v #17856 > >
00:30:18 v #17857 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:18 v #17858 > > //// test
00:30:18 v #17859 > >
00:30:18 v #17860 > > pi
00:30:18 v #17861 > > |> cos
00:30:18 v #17862 > > |> fun n => n / 2f64
00:30:18 v #17863 > > |> _assert_approx_eq None -0.5
00:30:19 v #17864 > 00:30:18 d #966 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d11db61b5561f4a704bae6d53d12be936cd4c75f771130279db53516c47e3dae/main.spi
00:30:19 v #17865 > >
00:30:19 v #17866 > > ╭─[ 400.68ms - stdout ]────────────────────────────────────────────────────────╮
00:30:19 v #17867 > > │ __assert_approx_eq / actual: -0.5 / expected: -0.5                           │
00:30:19 v #17868 > > │                                                                              │
00:30:19 v #17869 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:19 v #17870 > >
00:30:19 v #17871 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:19 v #17872 > > //// test
00:30:19 v #17873 > >
00:30:19 v #17874 > > pi / 2 |> cos
00:30:19 v #17875 > > |> _assert_approx_eq None 0.00000000000000006123233995736766f64
00:30:19 v #17876 > 00:30:18 d #967 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/01f000f121901a943bdbae5303e9ffeab7ff49e3de12eda710518263da40599e/main.spi
00:30:19 v #17877 > >
00:30:19 v #17878 > > ╭─[ 436.71ms - stdout ]────────────────────────────────────────────────────────╮
00:30:19 v #17879 > > │ __assert_approx_eq / actual: 6.123233996e-17 / expected: 6.123233996e-17     │
00:30:19 v #17880 > > │                                                                              │
00:30:19 v #17881 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:19 v #17882 > >
00:30:19 v #17883 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:19 v #17884 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:19 v #17885 > > │ ## fsharp                                                                    │
00:30:19 v #17886 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:19 v #17887 > >
00:30:19 v #17888 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:19 v #17889 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:19 v #17890 > > │ ### atan2                                                                    │
00:30:19 v #17891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:19 v #17892 > >
00:30:19 v #17893 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:19 v #17894 > > inl atan2 (y : f64) (x : f64) : f64 =
00:30:19 v #17895 > >     $'System.Math.Atan2 (!y, !x)'
00:30:19 v #17896 > 00:30:19 d #968 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f795928ff928f6502b00f51adcfc5670325e0f8442775a415b42f837b298003/main.spi
00:30:20 v #17897 > >
00:30:20 v #17898 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:20 v #17899 > > //// test
00:30:20 v #17900 > >
00:30:20 v #17901 > > 0 |> atan2 1
00:30:20 v #17902 > > |> _assert_eq 1.5707963267948966
00:30:20 v #17903 > 00:30:19 d #969 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad4a765474445f31270422024044c4a17172f04d73cd93202313b0b3214a65a3/main.spi
00:30:20 v #17904 > >
00:30:20 v #17905 > > ╭─[ 605.03ms - stdout ]────────────────────────────────────────────────────────╮
00:30:20 v #17906 > > │ __assert_eq / actual: 1.570796327 / expected: 1.570796327                    │
00:30:20 v #17907 > > │                                                                              │
00:30:20 v #17908 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:20 v #17909 > >
00:30:20 v #17910 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:20 v #17911 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:20 v #17912 > > │ ## floor                                                                     │
00:30:20 v #17913 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:20 v #17914 > >
00:30:20 v #17915 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:20 v #17916 > > inl floor forall t {float}. (n : t) : t =
00:30:20 v #17917 > >     n |> $'floor'
00:30:20 v #17918 > 00:30:20 d #970 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2776e4a18130fb34519738dae7dd13a1f55428748c384c33e7bf585241f0773d/main.spi
00:30:21 v #17919 > >
00:30:21 v #17920 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:21 v #17921 > > //// test
00:30:21 v #17922 > >
00:30:21 v #17923 > > 0.6 |> floor
00:30:21 v #17924 > > |> _assert_eq 0f64
00:30:21 v #17925 > 00:30:20 d #971 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3279513f4fa0ca5bd482d1e9650f8cc8cb091f0ac77320be5f3172f57cdc315a/main.spi
00:30:21 v #17926 > >
00:30:21 v #17927 > > ╭─[ 506.60ms - stdout ]────────────────────────────────────────────────────────╮
00:30:21 v #17928 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:30:21 v #17929 > > │                                                                              │
00:30:21 v #17930 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:21 v #17931 > >
00:30:21 v #17932 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:21 v #17933 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:21 v #17934 > > │ ## ceil                                                                      │
00:30:21 v #17935 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:21 v #17936 > >
00:30:21 v #17937 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:21 v #17938 > > inl ceil forall t {float}. (n : t) : t =
00:30:21 v #17939 > >     n |> $'ceil'
00:30:21 v #17940 > 00:30:21 d #972 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f2deebd6f0612d0de94281b43c9d93bd7c0bf6592fd118f24594071024793104/main.spi
00:30:22 v #17941 > >
00:30:22 v #17942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:22 v #17943 > > //// test
00:30:22 v #17944 > >
00:30:22 v #17945 > > 0.6 |> ceil
00:30:22 v #17946 > > |> _assert_eq 1f64
00:30:22 v #17947 > 00:30:21 d #973 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/113dd8ce105485a83550e0df0f84a16a37d7c444280a0adf5cdc5df828f21ebd/main.spi
00:30:22 v #17948 > >
00:30:22 v #17949 > > ╭─[ 565.55ms - stdout ]────────────────────────────────────────────────────────╮
00:30:22 v #17950 > > │ __assert_eq / actual: 1.0 / expected: 1.0                                    │
00:30:22 v #17951 > > │                                                                              │
00:30:22 v #17952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:22 v #17953 > >
00:30:22 v #17954 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:22 v #17955 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:22 v #17956 > > │ ## round                                                                     │
00:30:22 v #17957 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:22 v #17958 > >
00:30:22 v #17959 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:22 v #17960 > > inl round forall t {float}. (n : t) : t =
00:30:22 v #17961 > >     n |> $'round'
00:30:22 v #17962 > 00:30:22 d #974 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/551698a8022b42ff500312d981ac7e4a2f55ac6ae42fac2aca58eef0acb3db00/main.spi
00:30:23 v #17963 > >
00:30:23 v #17964 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:23 v #17965 > > //// test
00:30:23 v #17966 > >
00:30:23 v #17967 > > 0.5 |> round
00:30:23 v #17968 > > |> _assert_eq 0f64
00:30:23 v #17969 > >
00:30:23 v #17970 > > 1.5 |> round
00:30:23 v #17971 > > |> _assert_eq 2f64
00:30:23 v #17972 > >
00:30:23 v #17973 > > 2.5 |> round
00:30:23 v #17974 > > |> _assert_eq 2f64
00:30:23 v #17975 > >
00:30:23 v #17976 > > 3.5 |> round
00:30:23 v #17977 > > |> _assert_eq 4f64
00:30:23 v #17978 > 00:30:22 d #975 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/edd7c077b840ea0e214886b7dc326331fc41d2875ee2656c67efa57d721e38bd/main.spi
00:30:23 v #17979 > >
00:30:23 v #17980 > > ╭─[ 473.67ms - stdout ]────────────────────────────────────────────────────────╮
00:30:23 v #17981 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:30:23 v #17982 > > │ __assert_eq / actual: 2.0 / expected: 2.0                                    │
00:30:23 v #17983 > > │ __assert_eq / actual: 2.0 / expected: 2.0                                    │
00:30:23 v #17984 > > │ __assert_eq / actual: 4.0 / expected: 4.0                                    │
00:30:23 v #17985 > > │                                                                              │
00:30:23 v #17986 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:23 v #17987 > >
00:30:23 v #17988 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:23 v #17989 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:23 v #17990 > > │ ## log_base                                                                  │
00:30:23 v #17991 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:23 v #17992 > >
00:30:23 v #17993 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:23 v #17994 > > inl log_base (new_base : f64) (a : f64) : f64 =
00:30:23 v #17995 > >     $'System.Math.Log (!a, !new_base)'
00:30:23 v #17996 > 00:30:22 d #976 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff6b4ebd65a25b655dafa88c4e6298d550e53475dc6f3245933eabb5a2e10eac/main.spi
00:30:23 v #17997 > >
00:30:23 v #17998 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:23 v #17999 > > //// test
00:30:23 v #18000 > >
00:30:23 v #18001 > > 100 |> log_base 10
00:30:23 v #18002 > > |> _assert_eq 2
00:30:24 v #18003 > 00:30:23 d #977 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21fe238390c53f8aeff5f03c0fc04aa447181b01c3b5cc44059e7adb74cf221a/main.spi
00:30:24 v #18004 > >
00:30:24 v #18005 > > ╭─[ 445.09ms - stdout ]────────────────────────────────────────────────────────╮
00:30:24 v #18006 > > │ __assert_eq / actual: 2.0 / expected: 2.0                                    │
00:30:24 v #18007 > > │                                                                              │
00:30:24 v #18008 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:24 v #18009 > >
00:30:24 v #18010 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:24 v #18011 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:24 v #18012 > > │ ## round                                                                     │
00:30:24 v #18013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:24 v #18014 > >
00:30:24 v #18015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:24 v #18016 > > inl round forall t {float}. (x : t) : t =
00:30:24 v #18017 > >     x |> $'round'
00:30:24 v #18018 > 00:30:23 d #978 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d5e986840ddc840e7f478982678bb4d73d260343f1aa22faac9484c656d5104/main.spi
00:30:24 v #18019 > >
00:30:24 v #18020 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:24 v #18021 > > //// test
00:30:24 v #18022 > >
00:30:24 v #18023 > > 0.5 |> round
00:30:24 v #18024 > > |> _assert_eq 0f64
00:30:25 v #18025 > 00:30:24 d #979 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/60e03150460852473585587083e836e23a357fb9462f4bec701279fd323ba429/main.spi
00:30:25 v #18026 > >
00:30:25 v #18027 > > ╭─[ 488.66ms - stdout ]────────────────────────────────────────────────────────╮
00:30:25 v #18028 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:30:25 v #18029 > > │                                                                              │
00:30:25 v #18030 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:25 v #18031 > >
00:30:25 v #18032 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:25 v #18033 > > //// test
00:30:25 v #18034 > >
00:30:25 v #18035 > > 0.6 |> round
00:30:25 v #18036 > > |> _assert_eq 1f64
00:30:25 v #18037 > 00:30:24 d #980 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/43afd09b490ef5fd462dd34af86683fb8d7f29219ecc63a18b33a0c70615ec42/main.spi
00:30:25 v #18038 > >
00:30:25 v #18039 > > ╭─[ 434.58ms - stdout ]────────────────────────────────────────────────────────╮
00:30:25 v #18040 > > │ __assert_eq / actual: 1.0 / expected: 1.0                                    │
00:30:25 v #18041 > > │                                                                              │
00:30:25 v #18042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:25 v #18043 > 00:00:19 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 12563 }
00:30:25 v #18044 > 00:00:19 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/math.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/math.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:30:27 v #18045 > 00:00:21 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/math.dib.ipynb to html
00:30:27 v #18046 > 00:00:21 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:30:27 v #18047 > 00:00:21 v #7 !   validate(nb)
00:30:27 v #18048 > 00:00:22 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:30:27 v #18049 > 00:00:22 v #9 !   return _pygments_highlight(
00:30:28 v #18050 > 00:00:22 v #10 ! [NbConvertApp] Writing 304842 bytes to c:\home\git\polyglot\lib\spiral\math.dib.html
00:30:28 v #18051 > 00:00:22 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 850 }
00:30:28 v #18052 > 00:00:22 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 850 }
00:30:28 v #18053 > 00:00:22 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:30:28 v #18054 > 00:00:22 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:30:28 v #18055 > 00:00:22 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:30:28 v #18056 > 00:00:22 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 13472 }
00:30:28 d #18057 runtime.execute_with_options_async / { exit_code = 0; output_length = 16589 }
00:30:28 d #21 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 3
00:30:28 d #18058 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path mapm.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path mapm.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:30:28 v #18059 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "mapm.dib", "--retries", "3"])) }
00:30:28 v #18060 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/mapm.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/mapm.dib" --output-path "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:30:30 v #18061 > >
00:30:30 v #18062 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:30 v #18063 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:30 v #18064 > > │ # mapm                                                                       │
00:30:30 v #18065 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:34 v #18066 > >
00:30:34 v #18067 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:34 v #18068 > > open rust.rust_operators
00:30:35 v #18069 > 00:30:34 d #981 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40daf77a2acec5ac15e1cf56631d4105f4f565759117828320eb559038e65549/main.spi
00:30:35 v #18070 > >
00:30:35 v #18071 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:35 v #18072 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:35 v #18073 > > │ ## rust                                                                      │
00:30:35 v #18074 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:35 v #18075 > >
00:30:35 v #18076 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:35 v #18077 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:35 v #18078 > > │ ### hash_map                                                                 │
00:30:35 v #18079 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:35 v #18080 > >
00:30:35 v #18081 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:35 v #18082 > > nominal hash_map k v =
00:30:35 v #18083 > >     `(
00:30:35 v #18084 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:30:35 v #18085 > > Fable.Core.Emit(\"std::collections::HashMap<$0, $1>\")>]]\n#endif\ntype
00:30:35 v #18086 > > std_collections_HashMap<'K, 'V> = class end"
00:30:35 v #18087 > >         $'' : $'std_collections_HashMap<`k, `v>'
00:30:35 v #18088 > >     )
00:30:36 v #18089 > 00:30:35 d #982 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92d3c1ba079870b06ae04173ba67eeba7527f9d50e018839a815127b2f5da48f/main.spi
00:30:36 v #18090 > >
00:30:36 v #18091 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:36 v #18092 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:36 v #18093 > > │ ### b_tree_map                                                               │
00:30:36 v #18094 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:36 v #18095 > >
00:30:36 v #18096 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:36 v #18097 > > nominal b_tree_map k v =
00:30:36 v #18098 > >     `(
00:30:36 v #18099 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:30:36 v #18100 > > Fable.Core.Emit(\"std::collections::BTreeMap<$0, $1>\")>]]\n#endif\ntype
00:30:36 v #18101 > > std_collections_BTreeMap<'K, 'V> = class end"
00:30:36 v #18102 > >         $'' : $'std_collections_BTreeMap<`k, `v>'
00:30:36 v #18103 > >     )
00:30:36 v #18104 > 00:30:35 d #983 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae9b85e49d017e91849f19efd7f169fbb58cac53fd6266f734e7c1ffbe468053/main.spi
00:30:36 v #18105 > >
00:30:36 v #18106 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:36 v #18107 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:36 v #18108 > > │ ### new_hash_map                                                             │
00:30:36 v #18109 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:36 v #18110 > >
00:30:36 v #18111 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:36 v #18112 > > inl new_hash_map () : hash_map _ _ =
00:30:36 v #18113 > >     !\($'"std::collections::HashMap::new()"')
00:30:36 v #18114 > 00:30:36 d #984 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/400453027a4e419f692c33e910faedbc5e61db307359208732f1f18f30378230/main.spi
00:30:37 v #18115 > >
00:30:37 v #18116 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:37 v #18117 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:37 v #18118 > > │ ### new_b_tree_map                                                           │
00:30:37 v #18119 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:37 v #18120 > >
00:30:37 v #18121 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:37 v #18122 > > inl new_b_tree_map () : b_tree_map _ _ =
00:30:37 v #18123 > >     !\($'"std::collections::BTreeMap::new()"')
00:30:37 v #18124 > 00:30:36 d #985 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e158c29c764d6ba1d61d5e19528074f56744d9ce4cfa204aa0d08fbb7891fca/main.spi
00:30:37 v #18125 > >
00:30:37 v #18126 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:37 v #18127 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:37 v #18128 > > │ ### get                                                                      │
00:30:37 v #18129 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:37 v #18130 > >
00:30:37 v #18131 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:37 v #18132 > > inl get forall k v. (key : k) (map : hash_map k v) : optionm'.option' v =
00:30:37 v #18133 > >     inl key = join key
00:30:37 v #18134 > >     !\\(map, $'"std::collections::HashMap::get(&$0, &!key).map(|x|
00:30:37 v #18135 > > x).cloned()"')
00:30:37 v #18136 > 00:30:36 d #986 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0679ef6d9bd02eeb3adb2fd0e7ab375d4dca81d1de7021b239bc7992e96f689e/main.spi
00:30:37 v #18137 > >
00:30:37 v #18138 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:37 v #18139 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:37 v #18140 > > │ ### insert                                                                   │
00:30:37 v #18141 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:37 v #18142 > >
00:30:37 v #18143 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:37 v #18144 > > inl insert forall k v. (key : k) (value : v) (map : hash_map k v) :
00:30:37 v #18145 > > optionm'.option' v =
00:30:37 v #18146 > >     inl key = join key
00:30:37 v #18147 > >     !\($'"let mut !map = !map"')
00:30:37 v #18148 > >     !\($'"std::collections::HashMap::insert(&mut !map, !key, !value)"')
00:30:38 v #18149 > 00:30:37 d #987 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b8864ee9478cfb28ab5ee4bb858b1f81d5a4383c1a5327af3a380e759a109f3e/main.spi
00:30:38 v #18150 > >
00:30:38 v #18151 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:38 v #18152 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:38 v #18153 > > │ ### map'                                                                     │
00:30:38 v #18154 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:38 v #18155 > >
00:30:38 v #18156 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:38 v #18157 > > inl map' forall k v w. (fn : v -> w) (map : hash_map k v) : hash_map k w =
00:30:38 v #18158 > >     !\\((map, fn), $'"$0.into_iter().map(|(k, v)| (k, $1(v))).collect()"')
00:30:38 v #18159 > 00:30:37 d #988 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0fbf148ee7b54b99624f079e6b4480832118e0bb81e66b84866e3ebb568a2330/main.spi
00:30:38 v #18160 > >
00:30:38 v #18161 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:38 v #18162 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:38 v #18163 > > │ ### hash_map_count                                                           │
00:30:38 v #18164 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:38 v #18165 > >
00:30:38 v #18166 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:38 v #18167 > > inl hash_map_count forall k v. (map : hash_map k v) : i32 =
00:30:38 v #18168 > >     !\\(map, $'"$0.count()"')
00:30:38 v #18169 > 00:30:38 d #989 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d782f09d7d300ec6b444108dca32a7e4176bad7be71d939044663851e3284c0/main.spi
00:30:39 v #18170 > >
00:30:39 v #18171 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:39 v #18172 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:39 v #18173 > > │ ### from_vec                                                                 │
00:30:39 v #18174 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:39 v #18175 > >
00:30:39 v #18176 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:39 v #18177 > > inl from_vec forall k v. (vec : am'.vec (k * v)) : hash_map k v =
00:30:39 v #18178 > >     !\($'"std::collections::HashMap::from_iter(!vec)"')
00:30:39 v #18179 > 00:30:38 d #990 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e6ee02c7fbd7f18d6fc0b6fcedd5cd91c16edf1b0e202486eee397999879ecec/main.spi
00:30:39 v #18180 > >
00:30:39 v #18181 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:39 v #18182 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:39 v #18183 > > │ ### from_vec_pairs                                                           │
00:30:39 v #18184 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:39 v #18185 > >
00:30:39 v #18186 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:39 v #18187 > > inl from_vec_pairs forall k v. (vec : am'.vec (pair k v)) : hash_map k v =
00:30:39 v #18188 > >     !\($'"std::collections::HashMap::from_iter(!vec.iter().map(|x|
00:30:39 v #18189 > > x.as_ref()).map(|&(ref k, ref v)| (k.clone(), v.clone())))"')
00:30:39 v #18190 > 00:30:39 d #991 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/023ef8e15e52bea00101a9949127a44529c5d756f73f2c1a47cc6396adf9101c/main.spi
00:30:40 v #18191 > >
00:30:40 v #18192 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:40 v #18193 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:40 v #18194 > > │ ### b_tree_map_from_vec_pairs                                                │
00:30:40 v #18195 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:40 v #18196 > >
00:30:40 v #18197 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:40 v #18198 > > inl b_tree_map_from_vec_pairs forall k v. (vec : am'.vec (pair k v)) :
00:30:40 v #18199 > > b_tree_map k v =
00:30:40 v #18200 > >     !\($'"std::collections::BTreeMap::from_iter(!vec.iter().map(|x|
00:30:40 v #18201 > > x.as_ref()).map(|&(ref k, ref v)| (k.clone(), v.clone())))"')
00:30:40 v #18202 > 00:30:39 d #992 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/445433042ff1865baa1b145fce159ddb576cf719f210d00aa1afb28c711978f1/main.spi
00:30:40 v #18203 > >
00:30:40 v #18204 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:40 v #18205 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:40 v #18206 > > │ ### from_array                                                               │
00:30:40 v #18207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:40 v #18208 > >
00:30:40 v #18209 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:40 v #18210 > > inl from_array forall k v. (array : array_base (k * v)) : hash_map k v =
00:30:40 v #18211 > >     array |> am'.to_vec |> from_vec
00:30:40 v #18212 > 00:30:39 d #993 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2707da4f85904f64a9a9660eea8b2cea45acd3cce6536b0c8a7e2f33b65f5a77/main.spi
00:30:40 v #18213 > >
00:30:40 v #18214 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:40 v #18215 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:40 v #18216 > > │ ### from_list                                                                │
00:30:40 v #18217 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:40 v #18218 > >
00:30:40 v #18219 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:40 v #18220 > > inl from_list forall k v. (list : list (k * v)) : hash_map k v =
00:30:40 v #18221 > >     inl (a list) : _ i32 _ = list |> listm.toArray
00:30:40 v #18222 > >     list |> am'.to_vec |> from_vec
00:30:41 v #18223 > 00:30:40 d #994 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f244c4e0e52d6006951178fdb3db4949fc14848c6143dceeb08f94d391b2bac2/main.spi
00:30:41 v #18224 > >
00:30:41 v #18225 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:41 v #18226 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:41 v #18227 > > │ ### to_vec                                                                   │
00:30:41 v #18228 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:41 v #18229 > >
00:30:41 v #18230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:41 v #18231 > > inl to_vec forall k v. (map : hash_map k v) : am'.vec (k * v) =
00:30:41 v #18232 > >     !\\(map, $'"$0.into_iter().map(|(k, v)| (k, v)).collect::<Vec<_>>()"')
00:30:41 v #18233 > 00:30:40 d #995 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2702979f0197cd7667c9c643a01ddcc88913ca1319e6c761c3b46ea569ed90e5/main.spi
00:30:41 v #18234 > >
00:30:41 v #18235 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:41 v #18236 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:41 v #18237 > > │ ## fsharp                                                                    │
00:30:41 v #18238 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:41 v #18239 > >
00:30:41 v #18240 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:41 v #18241 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:41 v #18242 > > │ ### map                                                                      │
00:30:41 v #18243 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:41 v #18244 > >
00:30:41 v #18245 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:41 v #18246 > > nominal map k v = $'Map<`k, `v>'
00:30:41 v #18247 > 00:30:41 d #996 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/20ce9a30b5a9a15d12e8fa680d1616e0111a55cab2190556d18aa032b70c59ce/main.spi
00:30:42 v #18248 > >
00:30:42 v #18249 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:42 v #18250 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:42 v #18251 > > │ ### item                                                                     │
00:30:42 v #18252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:42 v #18253 > >
00:30:42 v #18254 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:42 v #18255 > > inl item forall k v. (k : k) (map : map k v) : v =
00:30:42 v #18256 > >     $'!map.[[!k]]'
00:30:42 v #18257 > 00:30:41 d #997 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e22816a3298f28be7fc90c8101c03f0c596781ff287f3c3ec7e91eb51617dced/main.spi
00:30:42 v #18258 > >
00:30:42 v #18259 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:42 v #18260 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:42 v #18261 > > │ ### of_array                                                                 │
00:30:42 v #18262 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:42 v #18263 > >
00:30:42 v #18264 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:42 v #18265 > > inl of_array forall k v. (array : a _ (k * v)) : map k v =
00:30:42 v #18266 > >     $'!array |> Array.map (fun (struct (a, b)) -> a, b) |> Map.ofArray'
00:30:42 v #18267 > 00:30:41 d #998 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31773be5e65d51d2a107fc482f20f897deb886cea403ddc553049c8eb615d8dd/main.spi
00:30:43 v #18268 > 00:00:14 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 10516 }
00:30:43 v #18269 > 00:00:14 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:30:44 v #18270 > 00:00:15 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb to html
00:30:44 v #18271 > 00:00:15 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:30:44 v #18272 > 00:00:15 v #7 !   validate(nb)
00:30:45 v #18273 > 00:00:16 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:30:45 v #18274 > 00:00:16 v #9 !   return _pygments_highlight(
00:30:45 v #18275 > 00:00:16 v #10 ! [NbConvertApp] Writing 301372 bytes to c:\home\git\polyglot\lib\spiral\mapm.dib.html
00:30:45 v #18276 > 00:00:16 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 850 }
00:30:45 v #18277 > 00:00:16 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 850 }
00:30:45 v #18278 > 00:00:16 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/mapm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/mapm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:30:45 v #18279 > 00:00:17 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:30:45 v #18280 > 00:00:17 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:30:46 v #18281 > 00:00:17 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 11425 }
00:30:46 d #18282 runtime.execute_with_options_async / { exit_code = 0; output_length = 14352 }
00:30:45 d #22 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path mapm.dib --retries 3
00:30:46 d #18283 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path optionm'.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path optionm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:30:46 v #18284 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "optionm'.dib", "--retries", "3"])) }
00:30:46 v #18285 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/optionm'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/optionm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:30:48 v #18286 > >
00:30:48 v #18287 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:48 v #18288 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:48 v #18289 > > │ # optionm'                                                                   │
00:30:48 v #18290 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:51 v #18291 > >
00:30:51 v #18292 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:51 v #18293 > > open rust
00:30:51 v #18294 > > open rust_operators
00:30:52 v #18295 > 00:30:51 d #999 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd47537238fcdc924c2a6b0a99d4f87ecbbde40a43ba8772a0907b5bf4a50e9d/main.spi
00:30:53 v #18296 > >
00:30:53 v #18297 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:53 v #18298 > > //// test
00:30:53 v #18299 > >
00:30:53 v #18300 > > open testing
00:30:53 v #18301 > 00:30:52 d #1000 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f990f43922e45080129606975ec74b3f88780cb3b27c2ae1151c776db6e5e262/main.spi
00:30:53 v #18302 > >
00:30:53 v #18303 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:53 v #18304 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:53 v #18305 > > │ ## optionm'                                                                  │
00:30:53 v #18306 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:53 v #18307 > >
00:30:53 v #18308 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:53 v #18309 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:53 v #18310 > > │ ### default_value                                                            │
00:30:53 v #18311 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:53 v #18312 > >
00:30:53 v #18313 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:53 v #18314 > > inl default_value d =
00:30:53 v #18315 > >     optionm.defaultWith d
00:30:53 v #18316 > 00:30:52 d #1001 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15491795f5bf9644457494ef0342ae858a8aab5704c2379a4c280550bf9f3193/main.spi
00:30:53 v #18317 > >
00:30:53 v #18318 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:53 v #18319 > > //// test
00:30:53 v #18320 > >
00:30:53 v #18321 > > None
00:30:53 v #18322 > > |> default_value 3i32
00:30:53 v #18323 > > |> _assert_eq 3i32
00:30:54 v #18324 > 00:30:53 d #1002 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a81c85773fe422453b745c6420ba5125c316a64bf03dcec69ac84b3aefb359c/main.spi
00:30:54 v #18325 > >
00:30:54 v #18326 > > ╭─[ 1.02s - stdout ]───────────────────────────────────────────────────────────╮
00:30:54 v #18327 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:30:54 v #18328 > > │                                                                              │
00:30:54 v #18329 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:54 v #18330 > >
00:30:54 v #18331 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:54 v #18332 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:54 v #18333 > > │ ### (/??)                                                                    │
00:30:54 v #18334 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:54 v #18335 > >
00:30:54 v #18336 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:54 v #18337 > > inl (/??) a b =
00:30:54 v #18338 > >     a |> default_value b
00:30:55 v #18339 > 00:30:54 d #1003 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/50b906b2efeecb3856483875c9a57005bd50804cd50b8473112caf3eec6e13b1/main.spi
00:30:55 v #18340 > >
00:30:55 v #18341 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:55 v #18342 > > //// test
00:30:55 v #18343 > >
00:30:55 v #18344 > > None /?? 3i32
00:30:55 v #18345 > > |> _assert_eq 3i32
00:30:55 v #18346 > 00:30:54 d #1004 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/128918064316dbfa78f58a43a3c8f3ed2845053761b9fbf6aefaabdeec3c5eed/main.spi
00:30:55 v #18347 > >
00:30:55 v #18348 > > ╭─[ 384.23ms - stdout ]────────────────────────────────────────────────────────╮
00:30:55 v #18349 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:30:55 v #18350 > > │                                                                              │
00:30:55 v #18351 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:55 v #18352 > >
00:30:55 v #18353 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:55 v #18354 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:55 v #18355 > > │ ### default_with                                                             │
00:30:55 v #18356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:55 v #18357 > >
00:30:55 v #18358 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:55 v #18359 > > inl default_with fn = function
00:30:55 v #18360 > >     | Some x => x
00:30:55 v #18361 > >     | None => fn ()
00:30:55 v #18362 > 00:30:55 d #1005 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/664cf1c641091866450434715838d205452b8d4b6bde4c4a69e810eab75860c6/main.spi
00:30:56 v #18363 > >
00:30:56 v #18364 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:56 v #18365 > > //// test
00:30:56 v #18366 > >
00:30:56 v #18367 > > None
00:30:56 v #18368 > > |> default_with fun () => 3i32
00:30:56 v #18369 > > |> _assert_eq 3i32
00:30:56 v #18370 > 00:30:55 d #1006 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffa2bb76668ecb69c8b6ca3a629193264889d8cd49f40e74d0b5f28c2e7af786/main.spi
00:30:56 v #18371 > >
00:30:56 v #18372 > > ╭─[ 407.29ms - stdout ]────────────────────────────────────────────────────────╮
00:30:56 v #18373 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:30:56 v #18374 > > │                                                                              │
00:30:56 v #18375 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:56 v #18376 > >
00:30:56 v #18377 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:56 v #18378 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:56 v #18379 > > │ ### choose                                                                   │
00:30:56 v #18380 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:56 v #18381 > >
00:30:56 v #18382 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:56 v #18383 > > inl choose fn a b =
00:30:56 v #18384 > >     match a, b with
00:30:56 v #18385 > >     | Some x, Some y => fn x y |> Some
00:30:56 v #18386 > >     | _ => None
00:30:56 v #18387 > 00:30:55 d #1007 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b8a3776fb27c5519d96ae9cc6de26702ec3db4c831092f9e38fc0f7d2fe13926/main.spi
00:30:56 v #18388 > >
00:30:56 v #18389 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:56 v #18390 > > //// test
00:30:56 v #18391 > >
00:30:56 v #18392 > > (Some 2i32, Some 3)
00:30:56 v #18393 > > ||> choose (+)
00:30:56 v #18394 > > |> _assert_eq (Some 5)
00:30:57 v #18395 > 00:30:56 d #1008 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffb7c48ca7e5acf1e70bc0cfaa2ef003367b4331ba7079ae4dd7ed7862e070d8/main.spi
00:30:57 v #18396 > >
00:30:57 v #18397 > > ╭─[ 871.85ms - stdout ]────────────────────────────────────────────────────────╮
00:30:57 v #18398 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:30:57 v #18399 > > │                                                                              │
00:30:57 v #18400 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:57 v #18401 > >
00:30:57 v #18402 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:57 v #18403 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:57 v #18404 > > │ ### iter                                                                     │
00:30:57 v #18405 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:57 v #18406 > >
00:30:57 v #18407 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:57 v #18408 > > inl iter fn = function
00:30:57 v #18409 > >     | Some x => fn x
00:30:57 v #18410 > >     | None => ()
00:30:58 v #18411 > 00:30:57 d #1009 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e15d98968044560a3c65c1b59cc31564feac7412dd376208bfa0b8fa5002e272/main.spi
00:30:58 v #18412 > >
00:30:58 v #18413 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:58 v #18414 > > //// test
00:30:58 v #18415 > >
00:30:58 v #18416 > > inl n = mut 1i32
00:30:58 v #18417 > > inl fn =
00:30:58 v #18418 > >     fun n' =>
00:30:58 v #18419 > >         n <- *n + n'
00:30:58 v #18420 > > Some 1i32 |> iter fn
00:30:58 v #18421 > > None |> iter fn
00:30:58 v #18422 > > *n
00:30:58 v #18423 > > |> _assert_eq 2i32
00:30:58 v #18424 > 00:30:57 d #1010 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5eca052ea30b8328f9b254eba625290899b6ad250c17c3199d421f4add642dcd/main.spi
00:30:58 v #18425 > >
00:30:58 v #18426 > > ╭─[ 621.61ms - stdout ]────────────────────────────────────────────────────────╮
00:30:58 v #18427 > > │ __assert_eq / actual: 2 / expected: 2                                        │
00:30:58 v #18428 > > │                                                                              │
00:30:58 v #18429 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:58 v #18430 > >
00:30:58 v #18431 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:58 v #18432 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:58 v #18433 > > │ ### flatten                                                                  │
00:30:58 v #18434 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:58 v #18435 > >
00:30:58 v #18436 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:58 v #18437 > > inl flatten x =
00:30:58 v #18438 > >     match x with
00:30:58 v #18439 > >     | Some (Some x) => Some x
00:30:58 v #18440 > >     | _ => None
00:30:59 v #18441 > 00:30:58 d #1011 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc3431f249bb057b3b580bfd89d70f0fd75c1b478ac4fc20bc9f260727ac4bdc/main.spi
00:30:59 v #18442 > >
00:30:59 v #18443 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:59 v #18444 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:59 v #18445 > > │ ## fsharp                                                                    │
00:30:59 v #18446 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:59 v #18447 > >
00:30:59 v #18448 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:59 v #18449 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:59 v #18450 > > │ ### option'                                                                  │
00:30:59 v #18451 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:59 v #18452 > >
00:30:59 v #18453 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:59 v #18454 > > nominal option' t = $"backend_switch `({ Fsharp : $"`t option"; Python : t })"
00:30:59 v #18455 > 00:30:58 d #1012 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b2aa47a71b983f46a1d0ef50f20074497e0f2364a19e09a70c6b33f7938e4858/main.spi
00:30:59 v #18456 > >
00:30:59 v #18457 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:59 v #18458 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:59 v #18459 > > │ ### none'                                                                    │
00:30:59 v #18460 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:59 v #18461 > >
00:30:59 v #18462 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:59 v #18463 > > inl none' forall t. () : option' t =
00:30:59 v #18464 > >     $'None'
00:30:59 v #18465 > 00:30:59 d #1013 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a0e825e274880b03def70e5859a5b0d64e0b72ae9b70bee7312f2dad49f452ac/main.spi
00:31:00 v #18466 > >
00:31:00 v #18467 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:00 v #18468 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:00 v #18469 > > │ ### some'                                                                    │
00:31:00 v #18470 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:00 v #18471 > >
00:31:00 v #18472 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:00 v #18473 > > inl some' forall t. (x : t) : option' t =
00:31:00 v #18474 > >     backend_switch {
00:31:00 v #18475 > >         Fsharp = fun () => $'Some !x ' : option' t
00:31:00 v #18476 > >         Python = fun () => $'!x # some\' ' : option' t
00:31:00 v #18477 > >     }
00:31:00 v #18478 > 00:30:59 d #1014 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19ed3229a75fb4f198cbbc09451f5b4c344d6bd98c353d833aced109c115b66a/main.spi
00:31:00 v #18479 > >
00:31:00 v #18480 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:00 v #18481 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:00 v #18482 > > │ ### default_value'                                                           │
00:31:00 v #18483 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:00 v #18484 > >
00:31:00 v #18485 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:00 v #18486 > > inl default_value' forall t. (value : t) (x : option' t) : t =
00:31:00 v #18487 > >     backend_switch {
00:31:00 v #18488 > >         Fsharp = fun () => $'!x |> Option.defaultValue !value ' : t
00:31:00 v #18489 > >         Python = fun () => $'!x or !value ' : t
00:31:00 v #18490 > >     }
00:31:00 v #18491 > 00:30:59 d #1015 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7619850644c10e32fcd1d2ce14ea1ff11c518c69982f4a7a4394799da41784a2/main.spi
00:31:00 v #18492 > >
00:31:00 v #18493 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:00 v #18494 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:00 v #18495 > > │ ### value'                                                                   │
00:31:00 v #18496 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:00 v #18497 > >
00:31:00 v #18498 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:00 v #18499 > > inl value' forall t. (x : option' t) : t =
00:31:00 v #18500 > >     backend_switch {
00:31:00 v #18501 > >         Fsharp = fun () => $'!x |> Option.value' : t
00:31:00 v #18502 > >         Python = fun () => $'!x ' : t
00:31:00 v #18503 > >     }
00:31:01 v #18504 > 00:31:00 d #1016 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a590dab2a137a36418bb08fef57e867d8902f1a0c7f5a14449b96db9a2c1164/main.spi
00:31:01 v #18505 > >
00:31:01 v #18506 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:01 v #18507 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:01 v #18508 > > │ ### box                                                                      │
00:31:01 v #18509 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:01 v #18510 > >
00:31:01 v #18511 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:01 v #18512 > > inl box forall t. (x : option t) : option' t =
00:31:01 v #18513 > >     // x
00:31:01 v #18514 > >     // |> optionm.map some'
00:31:01 v #18515 > >     // |> default_with none'
00:31:01 v #18516 > >     match x with
00:31:01 v #18517 > >     | Some x => some' x
00:31:01 v #18518 > >     | None => none' ()
00:31:01 v #18519 > 00:31:00 d #1017 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2ce1eecf1513c5cb5c5fabc31e0197368f7cfceee51ae34970f4731d5a346d50/main.spi
00:31:01 v #18520 > >
00:31:01 v #18521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:01 v #18522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:01 v #18523 > > │ ### map                                                                      │
00:31:01 v #18524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:01 v #18525 > >
00:31:01 v #18526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:01 v #18527 > > inl map forall t u. (fn : t -> u) (x : option' t) : option' u =
00:31:01 v #18528 > >     inl x_ () =
00:31:01 v #18529 > >         backend_switch {
00:31:01 v #18530 > >             Fsharp = fun () =>
00:31:01 v #18531 > >                 inl result : mut (option' u) = none' () |> mut
00:31:01 v #18532 > >                 inl set_result x =
00:31:01 v #18533 > >                     result <- x
00:31:01 v #18534 > >                 inl get_result () =
00:31:01 v #18535 > >                     *result
00:31:01 v #18536 > >                 $'let _!result = !result '
00:31:01 v #18537 > >                 $'match !x with'
00:31:01 v #18538 > >                 $'| Some x -> ('
00:31:01 v #18539 > >                 $'(fun () ->'
00:31:01 v #18540 > >                 $'(fun () ->'
00:31:01 v #18541 > >                 inl x = dyn $'x'
00:31:01 v #18542 > >                 x |> fn |> emit_unit
00:31:01 v #18543 > >                 $')'
00:31:01 v #18544 > >                 $'|> fun x -> x () |> Some'
00:31:01 v #18545 > >                 $') () ) | None -> None'
00:31:01 v #18546 > >                 $'|> fun x -> !set_result x'
00:31:01 v #18547 > >                 $'!get_result ()' : option' u
00:31:01 v #18548 > >             Python = fun () =>
00:31:01 v #18549 > >                 if x =. none' ()
00:31:01 v #18550 > >                 then none' ()
00:31:01 v #18551 > >                 else fn $'!x ' |> fun x => $'!x ' : option' u
00:31:01 v #18552 > >         }
00:31:01 v #18553 > >
00:31:01 v #18554 > >     backend_switch {
00:31:01 v #18555 > >         Fsharp = fun () =>
00:31:01 v #18556 > >             inl fn = join fn
00:31:01 v #18557 > >             $'!x |> Option.map !fn ' : option' u
00:31:01 v #18558 > >         Python = fun () =>
00:31:01 v #18559 > >                 if x =. none' ()
00:31:01 v #18560 > >                 then none' ()
00:31:01 v #18561 > >                 else fn $'!x ' |> fun x => $'!x ' : option' u
00:31:01 v #18562 > >     }
00:31:01 v #18563 > 00:31:01 d #1018 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6eb35d952a736b87afe1eac94626432589fc02e2a036a51d3309890154e06d88/main.spi
00:31:02 v #18564 > >
00:31:02 v #18565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:02 v #18566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:02 v #18567 > > │ ### map''                                                                    │
00:31:02 v #18568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:02 v #18569 > >
00:31:02 v #18570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:02 v #18571 > > inl map'' forall t u. (fn : t -> u) (x : option' t) : option' u =
00:31:02 v #18572 > >     x |> map fn
00:31:02 v #18573 > 00:31:01 d #1019 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/71102dda4d3a950ec0200bbfeb83ad93e4c9145a8e9b5e7f8effe492d76cc17e/main.spi
00:31:02 v #18574 > >
00:31:02 v #18575 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:02 v #18576 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:02 v #18577 > > │ ### unbox                                                                    │
00:31:02 v #18578 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:02 v #18579 > >
00:31:02 v #18580 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:02 v #18581 > > inl unbox forall t. (x : option' t) : option t =
00:31:02 v #18582 > >     x |> map'' Some |> default_value' None
00:31:02 v #18583 > >     // inl some x : option t = Some x
00:31:02 v #18584 > >     // inl some = join some
00:31:02 v #18585 > >     // inl none : option t = None
00:31:02 v #18586 > >     // $'!x |> Option.map !some |> Option.defaultValue !none '
00:31:02 v #18587 > 00:31:02 d #1020 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aa4099f13de7d8eb863698644496adbad8e88c05fd78400bf442cb45103e9679/main.spi
00:31:03 v #18588 > >
00:31:03 v #18589 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:03 v #18590 > > //// test
00:31:03 v #18591 > > ///! fsharp
00:31:03 v #18592 > > ///! cuda
00:31:03 v #18593 > > ///! rust
00:31:03 v #18594 > > ///! typescript
00:31:03 v #18595 > > ///! python
00:31:03 v #18596 > >
00:31:03 v #18597 > > inl x = Some 3i32
00:31:03 v #18598 > > inl y : option i32 = None
00:31:03 v #18599 > > inl x' = x |> box |> unbox
00:31:03 v #18600 > > inl y' = y |> box |> map id |> unbox
00:31:03 v #18601 > > (x', y') |> _assert_eq' (x, y)
00:31:03 v #18602 > 00:31:02 d #1021 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f8792b746e38b7b7795770eed1a6bde90faf24891e62cf6be17408a1708b18f/main.spi
00:31:03 v #18603 > 00:31:02 d #1022 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/33071e8a9aed69b590a7c8a3b37faf173efb338a11cfbe98c0100d2cd5c17b67/main.spi
00:31:24 v #18604 > >
00:31:24 v #18605 > > ╭─[ 21.88s - return value ]────────────────────────────────────────────────────╮
00:31:24 v #18606 > > │ .py output (Cuda):                                                           │
00:31:24 v #18607 > > │ __assert_eq' / actual: (US0_0(v0=3), US0_1()) / expected: (US0_0(v0=3),      │
00:31:24 v #18608 > > │ US0_1())                                                                     │
00:31:24 v #18609 > > │                                                                              │
00:31:24 v #18610 > > │ .rs output:                                                                  │
00:31:24 v #18611 > > │ __assert_eq' / actual: (US0_0(3), US0_1) / expected: (US0_0(3), US0_1)       │
00:31:24 v #18612 > > │                                                                              │
00:31:24 v #18613 > > │ .ts output:                                                                  │
00:31:24 v #18614 > > │ __assert_eq' / actual: US0_0 3,US0_1 / expected: US0_0 3,US0_1               │
00:31:24 v #18615 > > │                                                                              │
00:31:24 v #18616 > > │ .py output:                                                                  │
00:31:24 v #18617 > > │ __assert_eq' / actual: (US0_0 3, US0_1) / expected: (US0_0 3, US0_1)         │
00:31:24 v #18618 > > │                                                                              │
00:31:24 v #18619 > > │                                                                              │
00:31:24 v #18620 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:24 v #18621 > >
00:31:24 v #18622 > > ╭─[ 21.89s - stdout ]──────────────────────────────────────────────────────────╮
00:31:24 v #18623 > > │ .fsx output:                                                                 │
00:31:24 v #18624 > > │ __assert_eq' / actual: struct (US0_0 3, US0_1) / expected: struct (US0_0 3,  │
00:31:24 v #18625 > > │ US0_1)                                                                       │
00:31:24 v #18626 > > │                                                                              │
00:31:24 v #18627 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:24 v #18628 > >
00:31:24 v #18629 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:24 v #18630 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:24 v #18631 > > │ ### of_obj                                                                   │
00:31:24 v #18632 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:24 v #18633 > >
00:31:24 v #18634 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:24 v #18635 > > inl of_obj forall t. (x : t) : option' t =
00:31:24 v #18636 > >     backend_switch {
00:31:24 v #18637 > >         Fsharp = fun () =>
00:31:24 v #18638 > >             $'let mutable _!x = None'
00:31:24 v #18639 > >             $'#if \!FABLE_COMPILER && \!WASM && \!CONTRACT'
00:31:24 v #18640 > >             ((x |> $'Option.ofObj') : option' t) |> emit_unit
00:31:24 v #18641 > >             $'#else'
00:31:24 v #18642 > >             $'Some !x '
00:31:24 v #18643 > >             $'#endif'
00:31:24 v #18644 > >             $'|> fun x -> _!x <- Some x'
00:31:24 v #18645 > >             $'match _!x with Some x -> x | None -> failwith "optionm\'.of_obj
00:31:24 v #18646 > > _!x=None"' : option' t
00:31:24 v #18647 > >         Python = fun () =>
00:31:24 v #18648 > >             $'!x ' : option' t
00:31:24 v #18649 > >     }
00:31:25 v #18650 > 00:31:24 d #1023 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bfe9cee1ada21a35133ff46913c0f1f7b06af0f400bd13dac1d3b6cac3d4bb70/main.spi
00:31:25 v #18651 > >
00:31:25 v #18652 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:25 v #18653 > > //// test
00:31:25 v #18654 > > ///! fsharp
00:31:25 v #18655 > > ///! cuda
00:31:25 v #18656 > > ////! rust // attempted to zero-initialize type `alloc::sync::Arc<dyn
00:31:25 v #18657 > > core::any::Any>`, which is invalid
00:31:25 v #18658 > > ///! typescript
00:31:25 v #18659 > > ///! python
00:31:25 v #18660 > >
00:31:25 v #18661 > > null ()
00:31:25 v #18662 > > |> of_obj
00:31:25 v #18663 > > |> unbox
00:31:25 v #18664 > > |> _assert_eq (None : option string)
00:31:25 v #18665 > 00:31:24 d #1024 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/578ff8ae93ec188d76d3eed20357c354e07a649064c8ef623b0219badebba98d/main.spi
00:31:25 v #18666 > 00:31:24 d #1025 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c86becd0f54acb580282e0f32272e766dc6afcf0affe1ee318457d96875f58c2/main.spi
00:31:42 v #18667 > >
00:31:42 v #18668 > > ╭─[ 17.56s - return value ]────────────────────────────────────────────────────╮
00:31:42 v #18669 > > │ .py output (Cuda):                                                           │
00:31:42 v #18670 > > │ __assert_eq / actual: US0_1() / expected: US0_1()                            │
00:31:42 v #18671 > > │                                                                              │
00:31:42 v #18672 > > │ .ts output:                                                                  │
00:31:42 v #18673 > > │ __assert_eq / actual: US0_1 / expected: US0_1                                │
00:31:42 v #18674 > > │                                                                              │
00:31:42 v #18675 > > │ .py output:                                                                  │
00:31:42 v #18676 > > │ __assert_eq / actual: US0_1 / expected: US0_1                                │
00:31:42 v #18677 > > │                                                                              │
00:31:42 v #18678 > > │                                                                              │
00:31:42 v #18679 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:42 v #18680 > >
00:31:42 v #18681 > > ╭─[ 17.56s - stdout ]──────────────────────────────────────────────────────────╮
00:31:42 v #18682 > > │ .fsx output:                                                                 │
00:31:42 v #18683 > > │ __assert_eq / actual: US0_1 / expected: US0_1                                │
00:31:42 v #18684 > > │                                                                              │
00:31:42 v #18685 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:42 v #18686 > >
00:31:42 v #18687 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:42 v #18688 > > //// test
00:31:42 v #18689 > > ///! fsharp
00:31:42 v #18690 > > ///! cuda
00:31:42 v #18691 > > ///! rust
00:31:42 v #18692 > > ///! typescript
00:31:42 v #18693 > > ///! python
00:31:42 v #18694 > >
00:31:42 v #18695 > > ""
00:31:42 v #18696 > > |> of_obj
00:31:42 v #18697 > > |> unbox
00:31:42 v #18698 > > |> _assert_eq' (Some "")
00:31:43 v #18699 > 00:31:42 d #1026 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eec8773990afc36af1c50e47c176c38f033f294ff243bb997d6f0a24f55f08b8/main.spi
00:31:43 v #18700 > 00:31:42 d #1027 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bebe2d4d8e18efe578332d5740dbf6f473005414e428b5f20c9124c7a386aa08/main.spi
00:32:03 v #18701 > >
00:32:03 v #18702 > > ╭─[ 20.75s - return value ]────────────────────────────────────────────────────╮
00:32:03 v #18703 > > │ .py output (Cuda):                                                           │
00:32:03 v #18704 > > │ __assert_eq' / actual: US0_0(v0='') / expected: US0_0(v0='')                 │
00:32:03 v #18705 > > │                                                                              │
00:32:03 v #18706 > > │ .rs output:                                                                  │
00:32:03 v #18707 > > │ __assert_eq' / actual: US0_0("") / expected: US0_0("")                       │
00:32:03 v #18708 > > │                                                                              │
00:32:03 v #18709 > > │ .ts output:                                                                  │
00:32:03 v #18710 > > │ __assert_eq' / actual: US0_0  / expected: US0_0                              │
00:32:03 v #18711 > > │                                                                              │
00:32:03 v #18712 > > │ .py output:                                                                  │
00:32:03 v #18713 > > │ __assert_eq' / actual: US0_0 "" / expected: US0_0 ""                         │
00:32:03 v #18714 > > │                                                                              │
00:32:03 v #18715 > > │                                                                              │
00:32:03 v #18716 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:03 v #18717 > >
00:32:03 v #18718 > > ╭─[ 20.75s - stdout ]──────────────────────────────────────────────────────────╮
00:32:03 v #18719 > > │ .fsx output:                                                                 │
00:32:03 v #18720 > > │ __assert_eq' / actual: US0_0 "" / expected: US0_0 ""                         │
00:32:03 v #18721 > > │                                                                              │
00:32:03 v #18722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:03 v #18723 > >
00:32:03 v #18724 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:03 v #18725 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:03 v #18726 > > │ ### flatten'                                                                 │
00:32:03 v #18727 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:03 v #18728 > >
00:32:03 v #18729 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:03 v #18730 > > inl flatten' x =
00:32:03 v #18731 > >     x
00:32:03 v #18732 > >     |> unbox
00:32:03 v #18733 > >     |> optionm.map unbox
00:32:03 v #18734 > >     |> flatten
00:32:03 v #18735 > 00:32:02 d #1028 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73fbefcf49a9d98c4a0aea5218179de5afca5bdab1b8e48abac63de4906078ee/main.spi
00:32:03 v #18736 > >
00:32:03 v #18737 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:03 v #18738 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:03 v #18739 > > │ ## rust                                                                      │
00:32:03 v #18740 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:03 v #18741 > >
00:32:03 v #18742 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:03 v #18743 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:03 v #18744 > > │ ### try'                                                                     │
00:32:03 v #18745 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:03 v #18746 > >
00:32:03 v #18747 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:03 v #18748 > > inl try' forall t. (x : option' t) : t =
00:32:03 v #18749 > >     !\\(x, $'"$0?"')
00:32:04 v #18750 > 00:32:03 d #1029 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/471309ee0fc4950d6d9733a2235c6d5dbdd66653fe76de44bf3e30b0bd14e983/main.spi
00:32:04 v #18751 > >
00:32:04 v #18752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:04 v #18753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:04 v #18754 > > │ ### map'                                                                     │
00:32:04 v #18755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:04 v #18756 > >
00:32:04 v #18757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:04 v #18758 > > inl map' forall t u. (fn : t -> u) (x : option' t) : option' u =
00:32:04 v #18759 > >     (!\\(x, $'"true; let _optionm_map_ = $0.map(|x| { //"') : bool) |> ignore
00:32:04 v #18760 > >     inl result = fn !\($'"x"')
00:32:04 v #18761 > >     (!\\(result, $'"true; $0 })"') : bool) |> ignore
00:32:04 v #18762 > >     !\($'"_optionm_map_"')
00:32:04 v #18763 > 00:32:03 d #1030 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f540eda555ea734bd8ce354307559ca68715c36a266c0d10130d960b4c80ba36/main.spi
00:32:04 v #18764 > >
00:32:04 v #18765 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:04 v #18766 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:04 v #18767 > > │ ### unwrap                                                                   │
00:32:04 v #18768 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:04 v #18769 > >
00:32:04 v #18770 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:04 v #18771 > > inl unwrap forall t. (x : option' t) : t =
00:32:04 v #18772 > >     !\\(x, $'"$0.unwrap()"')
00:32:05 v #18773 > 00:32:04 d #1031 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/67a93e2637ca09dc6143ad34b263ab35f2503aaaae19084dad0b59bfe405117b/main.spi
00:32:05 v #18774 > >
00:32:05 v #18775 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:05 v #18776 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:05 v #18777 > > │ ### take                                                                     │
00:32:05 v #18778 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:05 v #18779 > >
00:32:05 v #18780 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:05 v #18781 > > inl take forall t. (x : option' t) : option' t =
00:32:05 v #18782 > >     (!\\(x, $'"true; let mut !x = !x"') : bool) |> ignore
00:32:05 v #18783 > >     !\\(x, $'"Option::take(&mut $0)"')
00:32:05 v #18784 > 00:32:04 d #1032 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4815e013ce67bcab506321d7e6c756759614034e12cc27d56fe4074cdf370873/main.spi
00:32:05 v #18785 > >
00:32:05 v #18786 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:05 v #18787 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:05 v #18788 > > │ ### take_ref                                                                 │
00:32:05 v #18789 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:05 v #18790 > >
00:32:05 v #18791 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:05 v #18792 > > inl take_ref forall t. (x : rust.ref (option' t)) : option' t =
00:32:05 v #18793 > >     (!\\(x, $'"true; let mut !x = !x"') : bool) |> ignore
00:32:05 v #18794 > >     !\\(x, $'"Option::take(&mut $0)"')
00:32:05 v #18795 > 00:32:05 d #1033 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fd6ad1401021dbcacd90214f67ca6f2b7b723a6578009423f2dd764ce0491db8/main.spi
00:32:06 v #18796 > >
00:32:06 v #18797 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:06 v #18798 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:06 v #18799 > > │ ### take_ref_mut                                                             │
00:32:06 v #18800 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:06 v #18801 > >
00:32:06 v #18802 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:06 v #18803 > > inl take_ref_mut forall t. (x : rust.ref (rust.mut' (option' t))) : option' t =
00:32:06 v #18804 > >     !\\(x, $'"Option::take($0)"')
00:32:06 v #18805 > 00:32:05 d #1034 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5264c81f5791be197f865758cb9f2bdcfb9354a529e67f79955fcfa76bd14ae/main.spi
00:32:06 v #18806 > >
00:32:06 v #18807 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:06 v #18808 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:06 v #18809 > > │ ### cloned                                                                   │
00:32:06 v #18810 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:06 v #18811 > >
00:32:06 v #18812 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:06 v #18813 > > inl cloned forall t. (x : option' (rust.ref t)) : option' t =
00:32:06 v #18814 > >     !\\(x, $'"$0.cloned()"')
00:32:06 v #18815 > 00:32:05 d #1035 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eac9fe773ee5a7ea3d435b8560153892358cd97207e910f5abad33edb54845e1/main.spi
00:32:06 v #18816 > >
00:32:06 v #18817 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:06 v #18818 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:06 v #18819 > > │ ### as_ref                                                                   │
00:32:06 v #18820 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:06 v #18821 > >
00:32:06 v #18822 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:06 v #18823 > > inl as_ref forall t. (x : rust.ref (option' t)) : option' (rust.ref t) =
00:32:06 v #18824 > >     !\\(x, $'"$0.as_ref()"')
00:32:07 v #18825 > 00:32:06 d #1036 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff2d0e67e271b7482c18a01cc65e4fd84675be310dcadd6c3cb4f3d2bdb15da2/main.spi
00:32:07 v #18826 > >
00:32:07 v #18827 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:07 v #18828 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:07 v #18829 > > │ ### as_mut                                                                   │
00:32:07 v #18830 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:07 v #18831 > >
00:32:07 v #18832 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:07 v #18833 > > inl as_mut forall t. (x : rust.ref (rust.mut' (option' t))) : option' (rust.ref
00:32:07 v #18834 > > (rust.mut' t)) =
00:32:07 v #18835 > >     !\\(x, $'"$0.as_mut()"')
00:32:07 v #18836 > 00:32:06 d #1037 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d7873575d6d8303f0aba12b4ec082b21c7e0387ad7094cfb98ca52ce56df5106/main.spi
00:32:07 v #18837 > >
00:32:07 v #18838 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:07 v #18839 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:07 v #18840 > > │ ### unwrap_or                                                                │
00:32:07 v #18841 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:07 v #18842 > >
00:32:07 v #18843 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:07 v #18844 > > inl unwrap_or forall t. (def : t) (x : option' t) : t =
00:32:07 v #18845 > >     !\($'"!x.unwrap_or(!def)"')
00:32:07 v #18846 > 00:32:07 d #1038 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55ad00a85766fa5140055c1d695ea3a3d5a374f77a6cd9cfebc34aa3c026738b/main.spi
00:32:08 v #18847 > >
00:32:08 v #18848 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:08 v #18849 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:08 v #18850 > > │ ### and_then                                                                 │
00:32:08 v #18851 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:08 v #18852 > >
00:32:08 v #18853 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:08 v #18854 > > inl and_then forall t u. (fn : t -> option' u) (x : option' t) : option' u =
00:32:08 v #18855 > >     !\\((x, fn), $'"$0.and_then(|x| $1(x))"')
00:32:08 v #18856 > 00:32:07 d #1039 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/430fac83c1ab9b15b0de368d3773a4c0cdce70e3997c488aa844440632222ab4/main.spi
00:32:08 v #18857 > >
00:32:08 v #18858 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:08 v #18859 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:08 v #18860 > > │ ### rc_upgrade                                                               │
00:32:08 v #18861 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:08 v #18862 > >
00:32:08 v #18863 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:08 v #18864 > > inl rc_upgrade forall t. (x : rust.weak_rc t) : option' (rust.rc t) =
00:32:08 v #18865 > >     !\\(x, $'"std::rc::Weak::upgrade(&$0)"')
00:32:08 v #18866 > 00:32:07 d #1040 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6edb236b4f3a605622dc7e32664a42268b95974d18b2ab669b2c89604f1e09a7/main.spi
00:32:08 v #18867 > >
00:32:08 v #18868 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:08 v #18869 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:08 v #18870 > > │ ### rc_into_inner                                                            │
00:32:08 v #18871 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:08 v #18872 > >
00:32:08 v #18873 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:08 v #18874 > > inl rc_into_inner forall t. (x : rust.rc t) : option' t =
00:32:08 v #18875 > >     !\\(x, $'"std::rc::Rc::into_inner($0)"')
00:32:09 v #18876 > 00:32:08 d #1041 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00abbae0449c7ddac1d2f9b8a8b4178dcb93ed56b10480059ac1c9e940377047/main.spi
00:32:09 v #18877 > >
00:32:09 v #18878 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:09 v #18879 > > //// test
00:32:09 v #18880 > > ///! rust
00:32:09 v #18881 > >
00:32:09 v #18882 > > rust.new_rc 0i32
00:32:09 v #18883 > > |> rc_into_inner
00:32:09 v #18884 > > |> unbox
00:32:09 v #18885 > > |> _assert_eq' (Some 0i32)
00:32:09 v #18886 > 00:32:08 d #1042 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/315d8ebf70a784ba6a71813d426f71b7768a36c357885d5c3f54e895e6c4cb6c/main.spi
00:32:23 v #18887 > >
00:32:23 v #18888 > > ╭─[ 13.63s - return value ]────────────────────────────────────────────────────╮
00:32:23 v #18889 > > │ __assert_eq' / actual: US0_0(0) / expected: US0_0(0)                         │
00:32:23 v #18890 > > │                                                                              │
00:32:23 v #18891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:23 v #18892 > 00:01:37 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 27172 }
00:32:23 v #18893 > 00:01:37 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:32:24 v #18894 > 00:01:38 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb to html
00:32:24 v #18895 > 00:01:38 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:32:24 v #18896 > 00:01:38 v #7 !   validate(nb)
00:32:25 v #18897 > 00:01:39 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:32:25 v #18898 > 00:01:39 v #9 !   return _pygments_highlight(
00:32:26 v #18899 > 00:01:39 v #10 ! [NbConvertApp] Writing 347135 bytes to c:\home\git\polyglot\lib\spiral\optionm'.dib.html
00:32:26 v #18900 > 00:01:40 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 858 }
00:32:26 v #18901 > 00:01:40 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 858 }
00:32:26 v #18902 > 00:01:40 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/optionm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/optionm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:32:26 v #18903 > 00:01:40 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:32:26 v #18904 > 00:01:40 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:32:26 v #18905 > 00:01:40 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 28089 }
00:32:26 d #18906 runtime.execute_with_options_async / { exit_code = 0; output_length = 31800 }
00:32:26 d #23 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path optionm'.dib --retries 3
00:32:26 d #18907 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path listm'.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path listm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:32:26 v #18908 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "listm'.dib", "--retries", "3"])) }
00:32:26 v #18909 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/listm'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/listm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:32:28 v #18910 > >
00:32:28 v #18911 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:28 v #18912 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:28 v #18913 > > │ # listm'                                                                     │
00:32:28 v #18914 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:32 v #18915 > >
00:32:32 v #18916 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:32 v #18917 > > //// test
00:32:32 v #18918 > >
00:32:32 v #18919 > > open testing
00:32:32 v #18920 > 00:32:31 d #1043 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:32:33 v #18921 > >
00:32:33 v #18922 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:33 v #18923 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:33 v #18924 > > │ ## listm'                                                                    │
00:32:33 v #18925 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:33 v #18926 > >
00:32:33 v #18927 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:33 v #18928 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:33 v #18929 > > │ ### append                                                                   │
00:32:33 v #18930 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:33 v #18931 > >
00:32:33 v #18932 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:33 v #18933 > > instance append list t =
00:32:33 v #18934 > >     listm.append
00:32:33 v #18935 > 00:32:32 d #1044 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac2d50a7d27726add1bcb0372fd8edbfedd5a4cebc54a7d7ed47565e7d48af7a/main.spi
00:32:33 v #18936 > >
00:32:33 v #18937 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:33 v #18938 > > //// test
00:32:33 v #18939 > >
00:32:33 v #18940 > > [[ "a"; "b" ]] ++ [[ "c"; "d" ]]
00:32:33 v #18941 > > |> _assert_eq [[ "a"; "b"; "c"; "d" ]]
00:32:34 v #18942 > 00:32:33 d #1045 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86af39ebf815404325b75ab00b3547380beba07b357114185b526c84d0b4f4f6/main.spi
00:32:35 v #18943 > >
00:32:35 v #18944 > > ╭─[ 1.45s - stdout ]───────────────────────────────────────────────────────────╮
00:32:35 v #18945 > > │ __assert_eq / actual: UH0_1 ("a", UH0_1 ("b", UH0_1 ("c", UH0_1 ("d",        │
00:32:35 v #18946 > > │ UH0_0)))) / expected: UH0_1 ("a", UH0_1 ("b", UH0_1 ("c", UH0_1 ("d",        │
00:32:35 v #18947 > > │ UH0_0))))                                                                    │
00:32:35 v #18948 > > │                                                                              │
00:32:35 v #18949 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:35 v #18950 > >
00:32:35 v #18951 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:35 v #18952 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:35 v #18953 > > │ ### collect                                                                  │
00:32:35 v #18954 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:35 v #18955 > >
00:32:35 v #18956 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:35 v #18957 > > inl collect forall t r. (fn : t -> list r) (items : list t) : list r =
00:32:35 v #18958 > >     items
00:32:35 v #18959 > >     |> listm.map fn
00:32:35 v #18960 > >     |> listm.fold (++) [[]]
00:32:35 v #18961 > 00:32:34 d #1046 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6cab2bfe4d19f0c9cf526dce2e91a9144ee99603a6a751acad047b780a7baea5/main.spi
00:32:35 v #18962 > >
00:32:35 v #18963 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:35 v #18964 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:35 v #18965 > > │ ### init_series                                                              │
00:32:35 v #18966 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:35 v #18967 > >
00:32:35 v #18968 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:35 v #18969 > > inl init_series start end inc =
00:32:35 v #18970 > >     inl total : f64 = conv ((end - start) / inc) + 1
00:32:35 v #18971 > >     listm.init total (conv >> (*) inc >> (+) start)
00:32:35 v #18972 > 00:32:35 d #1047 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b70a8dcaf3befefe66bd978a8288673ed6710c1d5b3835e55cbc61c93c782c9/main.spi
00:32:36 v #18973 > >
00:32:36 v #18974 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:36 v #18975 > > //// test
00:32:36 v #18976 > >
00:32:36 v #18977 > > init_series 0 1 0.5
00:32:36 v #18978 > > |> _assert_eq [[ 0f64; 0.5; 1 ]]
00:32:36 v #18979 > 00:32:35 d #1048 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8c05ad6c161fc5da481fcb1e6f63d49be5509308075539183f2aff86f0a418a/main.spi
00:32:36 v #18980 > >
00:32:36 v #18981 > > ╭─[ 473.89ms - stdout ]────────────────────────────────────────────────────────╮
00:32:36 v #18982 > > │ __assert_eq / actual: UH0_1 (0.0, UH0_1 (0.5, UH0_1 (1.0, UH0_0))) /         │
00:32:36 v #18983 > > │ expected: UH0_1 (0.0, UH0_1 (0.5, UH0_1 (1.0, UH0_0)))                       │
00:32:36 v #18984 > > │                                                                              │
00:32:36 v #18985 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:36 v #18986 > >
00:32:36 v #18987 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:36 v #18988 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:36 v #18989 > > │ ### try_item                                                                 │
00:32:36 v #18990 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:36 v #18991 > >
00:32:36 v #18992 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:36 v #18993 > > inl rec try_item i = function
00:32:36 v #18994 > >     | Cons (x, _) when i = 0 => Some x
00:32:36 v #18995 > >     | Cons (_, xs) => try_item (i - 1) xs
00:32:36 v #18996 > >     | Nil => None
00:32:36 v #18997 > 00:32:35 d #1049 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ece2c0cff2a4144396eb7af0cefb80fadfc988ab05fbb632ecea95afcb34fef/main.spi
00:32:36 v #18998 > >
00:32:36 v #18999 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:36 v #19000 > > //// test
00:32:36 v #19001 > >
00:32:36 v #19002 > > listm.init 10i32 id
00:32:36 v #19003 > > |> try_item 9i32
00:32:36 v #19004 > > |> _assert_eq (Some 9)
00:32:37 v #19005 > 00:32:36 d #1050 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ddf0276108369c630833744f1dad952a4c26d5e0ecf0089874bb3a30180b4c8/main.spi
00:32:37 v #19006 > >
00:32:37 v #19007 > > ╭─[ 423.06ms - stdout ]────────────────────────────────────────────────────────╮
00:32:37 v #19008 > > │ __assert_eq / actual: US0_0 9 / expected: US0_0 9                            │
00:32:37 v #19009 > > │                                                                              │
00:32:37 v #19010 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:37 v #19011 > >
00:32:37 v #19012 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:37 v #19013 > > //// test
00:32:37 v #19014 > >
00:32:37 v #19015 > > listm.init 10i32 id
00:32:37 v #19016 > > |> try_item 10i32
00:32:37 v #19017 > > |> _assert_eq None
00:32:37 v #19018 > 00:32:36 d #1051 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97607e27ddbf94644fc1cd2cdfbe47241417004887a52b9c622d9078f2588f7b/main.spi
00:32:37 v #19019 > >
00:32:37 v #19020 > > ╭─[ 469.60ms - stdout ]────────────────────────────────────────────────────────╮
00:32:37 v #19021 > > │ __assert_eq / actual: US0_1 / expected: US0_1                                │
00:32:37 v #19022 > > │                                                                              │
00:32:37 v #19023 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:37 v #19024 > >
00:32:37 v #19025 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:37 v #19026 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:37 v #19027 > > │ ### item                                                                     │
00:32:37 v #19028 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:37 v #19029 > >
00:32:37 v #19030 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:37 v #19031 > > inl item i =
00:32:37 v #19032 > >     try_item i >> optionm.value
00:32:37 v #19033 > 00:32:37 d #1052 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09eee9e762823abd1bcef11058bacaecb52b4643288953048a5b2217369a89b1/main.spi
00:32:38 v #19034 > >
00:32:38 v #19035 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:38 v #19036 > > //// test
00:32:38 v #19037 > >
00:32:38 v #19038 > > listm.init 10i32 id
00:32:38 v #19039 > > |> item 9i32
00:32:38 v #19040 > > |> _assert_eq 9
00:32:38 v #19041 > 00:32:37 d #1053 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac6612e0e4c898638d1cbfafee9775e114d94b77844d42ea552b483bf69e75eb/main.spi
00:32:38 v #19042 > >
00:32:38 v #19043 > > ╭─[ 390.04ms - stdout ]────────────────────────────────────────────────────────╮
00:32:38 v #19044 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:32:38 v #19045 > > │                                                                              │
00:32:38 v #19046 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:38 v #19047 > >
00:32:38 v #19048 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:38 v #19049 > > //// test
00:32:38 v #19050 > >
00:32:38 v #19051 > > fun () =>
00:32:38 v #19052 > >     listm.init 10i32 id
00:32:38 v #19053 > >     |> item 10i32
00:32:38 v #19054 > >     |> ignore
00:32:38 v #19055 > > |> _throws
00:32:38 v #19056 > > |> optionm.map sm'.format_exception
00:32:38 v #19057 > > |> _assert_eq (Some "System.Exception: Option does not have a value.")
00:32:38 v #19058 > 00:32:37 d #1054 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9efe014a1bb64aa6050ac3179df7b67e222efc310825ea3639f983e24a2092a6/main.spi
00:32:39 v #19059 > >
00:32:39 v #19060 > > ╭─[ 605.62ms - stdout ]────────────────────────────────────────────────────────╮
00:32:39 v #19061 > > │ __assert_eq / actual: US1_0 "System.Exception: Option does not have a        │
00:32:39 v #19062 > > │ value." / expected: US1_0 "System.Exception: Option does not have a value."  │
00:32:39 v #19063 > > │                                                                              │
00:32:39 v #19064 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:39 v #19065 > >
00:32:39 v #19066 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:39 v #19067 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:39 v #19068 > > │ ### try_item_                                                                │
00:32:39 v #19069 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:39 v #19070 > >
00:32:39 v #19071 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:39 v #19072 > > let rec try_item_ i = function
00:32:39 v #19073 > >     | Cons (x, _) when i = 0 => Some x
00:32:39 v #19074 > >     | Cons (_, xs) => try_item_ (i - 1) xs
00:32:39 v #19075 > >     | Nil => None
00:32:39 v #19076 > 00:32:38 d #1055 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5c84714f74da96fda60b04e2049ee226f55faf56e0304d03c01aa9d0d29a65a/main.spi
00:32:39 v #19077 > >
00:32:39 v #19078 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:39 v #19079 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:39 v #19080 > > │ ### item_                                                                    │
00:32:39 v #19081 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:39 v #19082 > >
00:32:39 v #19083 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:39 v #19084 > > inl item_ i =
00:32:39 v #19085 > >     try_item_ i >> optionm.value
00:32:39 v #19086 > 00:32:39 d #1056 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec8d97a24caf5ba89408e5824cf34365bd9ee9a04c3163dca5e54f5889a0b4af/main.spi
00:32:40 v #19087 > >
00:32:40 v #19088 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:40 v #19089 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:40 v #19090 > > │ ### sum                                                                      │
00:32:40 v #19091 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:40 v #19092 > >
00:32:40 v #19093 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:40 v #19094 > > inl sum list =
00:32:40 v #19095 > >     list |> listm.fold (+) 0
00:32:40 v #19096 > 00:32:39 d #1057 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d16d7149b84e2452fe5e8d0038a8b7248e58bd7189534c4f53ed11221478261/main.spi
00:32:40 v #19097 > >
00:32:40 v #19098 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:40 v #19099 > > //// test
00:32:40 v #19100 > >
00:32:40 v #19101 > > listm.init 10i32 id
00:32:40 v #19102 > > |> sum
00:32:40 v #19103 > > |> _assert_eq 45
00:32:40 v #19104 > 00:32:39 d #1058 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a7110fb0a4fb98c8ebeaf774577d30899dcd2afd4810e3181215398426cee8a2/main.spi
00:32:40 v #19105 > >
00:32:40 v #19106 > > ╭─[ 413.50ms - stdout ]────────────────────────────────────────────────────────╮
00:32:40 v #19107 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:32:40 v #19108 > > │                                                                              │
00:32:40 v #19109 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:40 v #19110 > >
00:32:40 v #19111 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:40 v #19112 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:40 v #19113 > > │ ### unzip                                                                    │
00:32:40 v #19114 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:40 v #19115 > >
00:32:40 v #19116 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:40 v #19117 > > inl unzip list =
00:32:40 v #19118 > >     (([[]], [[]]), list)
00:32:40 v #19119 > >     ||> listm.fold fun (acc_x, acc_y) (x, y) =>
00:32:40 v #19120 > >         x :: acc_x, y :: acc_y
00:32:40 v #19121 > >     |> fun x, y =>
00:32:40 v #19122 > >         x |> listm.rev, y |> listm.rev
00:32:41 v #19123 > 00:32:40 d #1059 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2ed906661c54e10a79be7b7ae9b5600b05ab6dfd80c7975248acbc11aa6e2a7e/main.spi
00:32:41 v #19124 > >
00:32:41 v #19125 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:41 v #19126 > > //// test
00:32:41 v #19127 > >
00:32:41 v #19128 > > listm.init 10i32 id
00:32:41 v #19129 > > |> listm.map (fun x => x, x)
00:32:41 v #19130 > > |> unzip
00:32:41 v #19131 > > |> fun x, y =>
00:32:41 v #19132 > >     x |> sum
00:32:41 v #19133 > >     |> _assert_eq 45
00:32:41 v #19134 > >
00:32:41 v #19135 > >     y |> sum
00:32:41 v #19136 > >     |> _assert_eq 45
00:32:41 v #19137 > 00:32:40 d #1060 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/77f1c00d88f54ea461a23baef9f89ecd729eb33b7fd1eb4748170efe6bf71abb/main.spi
00:32:41 v #19138 > >
00:32:41 v #19139 > > ╭─[ 518.41ms - stdout ]────────────────────────────────────────────────────────╮
00:32:41 v #19140 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:32:41 v #19141 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:32:41 v #19142 > > │                                                                              │
00:32:41 v #19143 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:41 v #19144 > >
00:32:41 v #19145 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:41 v #19146 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:41 v #19147 > > │ ### try_index_of                                                             │
00:32:41 v #19148 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:41 v #19149 > >
00:32:41 v #19150 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:41 v #19151 > > inl try_index_of item list =
00:32:41 v #19152 > >     inl rec loop i = function
00:32:41 v #19153 > >         | [[]] => None
00:32:41 v #19154 > >         | x :: xs =>
00:32:41 v #19155 > >             if x = item
00:32:41 v #19156 > >             then Some i
00:32:41 v #19157 > >             else loop (i + 1) xs
00:32:41 v #19158 > >     loop 0 list
00:32:41 v #19159 > >
00:32:41 v #19160 > > inl index_of item =
00:32:41 v #19161 > >     try_index_of item >> optionm.value
00:32:41 v #19162 > >
00:32:41 v #19163 > > inl try_index_of_ item list =
00:32:41 v #19164 > >     let rec loop i = function
00:32:41 v #19165 > >         | [[]] => None
00:32:41 v #19166 > >         | x :: xs =>
00:32:41 v #19167 > >             if x = item
00:32:41 v #19168 > >             then Some i
00:32:41 v #19169 > >             else loop (i + 1) xs
00:32:41 v #19170 > >     loop 0 list
00:32:41 v #19171 > >
00:32:41 v #19172 > > inl index_of_ item =
00:32:41 v #19173 > >     try_index_of_ item >> optionm.value
00:32:41 v #19174 > >
00:32:41 v #19175 > > inl try_index_of__ item list =
00:32:41 v #19176 > >     inl i = mut 0
00:32:41 v #19177 > >     inl list = mut list
00:32:41 v #19178 > >     inl result = mut None
00:32:41 v #19179 > >     let rec loop () =
00:32:41 v #19180 > >         match *list with
00:32:41 v #19181 > >         | [[]] => result <- None
00:32:41 v #19182 > >         | x :: xs =>
00:32:41 v #19183 > >             if x = item
00:32:41 v #19184 > >             then result <- Some *i
00:32:41 v #19185 > >             else
00:32:41 v #19186 > >                 i <- *i + 1
00:32:41 v #19187 > >                 list <- xs
00:32:41 v #19188 > >                 loop ()
00:32:41 v #19189 > >     loop ()
00:32:41 v #19190 > >     *result
00:32:41 v #19191 > >
00:32:41 v #19192 > > inl index_of__ item =
00:32:41 v #19193 > >     try_index_of__ item >> optionm.value
00:32:41 v #19194 > 00:32:41 d #1061 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9410c20181f7476afe2394d55a1a43bb9e0c0b93ef9ab94da6bebd574bdbb1ac/main.spi
00:32:42 v #19195 > >
00:32:42 v #19196 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:42 v #19197 > > //// test
00:32:42 v #19198 > >
00:32:42 v #19199 > > listm.init 10i32 id
00:32:42 v #19200 > > |> index_of 5i32
00:32:42 v #19201 > > |> _assert_eq 5i32
00:32:42 v #19202 > 00:32:41 d #1062 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2748a0c24e0c5ff6cfc2364d7881e828f3e6484e31a9118c35f31efa43dcedb5/main.spi
00:32:42 v #19203 > >
00:32:42 v #19204 > > ╭─[ 452.60ms - stdout ]────────────────────────────────────────────────────────╮
00:32:42 v #19205 > > │ __assert_eq / actual: 5 / expected: 5                                        │
00:32:42 v #19206 > > │                                                                              │
00:32:42 v #19207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:42 v #19208 > >
00:32:42 v #19209 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:42 v #19210 > > //// test
00:32:42 v #19211 > >
00:32:42 v #19212 > > listm.init 10i32 id
00:32:42 v #19213 > > |> try_index_of 10i32
00:32:42 v #19214 > > |> _assert_eq (None : option i32)
00:32:42 v #19215 > 00:32:42 d #1063 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c700ac5e4646093f8d07ccd158e1be1fb43a76fd8d8402f4152eb478f87d2d22/main.spi
00:32:43 v #19216 > >
00:32:43 v #19217 > > ╭─[ 412.54ms - stdout ]────────────────────────────────────────────────────────╮
00:32:43 v #19218 > > │ __assert_eq / actual: US0_1 / expected: US0_1                                │
00:32:43 v #19219 > > │                                                                              │
00:32:43 v #19220 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:43 v #19221 > >
00:32:43 v #19222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:43 v #19223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:43 v #19224 > > │ ### try_find                                                                 │
00:32:43 v #19225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:43 v #19226 > >
00:32:43 v #19227 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:43 v #19228 > > inl try_find fn list =
00:32:43 v #19229 > >     inl rec loop = function
00:32:43 v #19230 > >         | [[]] => None
00:32:43 v #19231 > >         | x :: xs =>
00:32:43 v #19232 > >             if fn x
00:32:43 v #19233 > >             then Some x
00:32:43 v #19234 > >             else loop xs
00:32:43 v #19235 > >     loop list
00:32:43 v #19236 > >
00:32:43 v #19237 > > inl try_find_ fn list =
00:32:43 v #19238 > >     let rec loop = function
00:32:43 v #19239 > >         | [[]] => None
00:32:43 v #19240 > >         | x :: xs =>
00:32:43 v #19241 > >             if fn x
00:32:43 v #19242 > >             then Some x
00:32:43 v #19243 > >             else loop xs
00:32:43 v #19244 > >     loop list
00:32:43 v #19245 > 00:32:42 d #1064 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dfe320ac8ab68776ed36f0bf7fdcc5a87a13f2ea28e1ceb759e2fd90ac65a3c2/main.spi
00:32:43 v #19246 > >
00:32:43 v #19247 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:43 v #19248 > > //// test
00:32:43 v #19249 > >
00:32:43 v #19250 > > listm.init 10i32 id
00:32:43 v #19251 > > |> try_find ((=) 5i32)
00:32:43 v #19252 > > |> _assert_eq (Some 5i32)
00:32:43 v #19253 > 00:32:42 d #1065 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/da6df0c57eccfd46ec73c74d96f89420d247e56daf27900ab9c909c12444bcf4/main.spi
00:32:43 v #19254 > >
00:32:43 v #19255 > > ╭─[ 459.50ms - stdout ]────────────────────────────────────────────────────────╮
00:32:43 v #19256 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:32:43 v #19257 > > │                                                                              │
00:32:43 v #19258 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:43 v #19259 > >
00:32:43 v #19260 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:43 v #19261 > > inl find x =
00:32:43 v #19262 > >     try_find x >> optionm.value
00:32:43 v #19263 > >
00:32:43 v #19264 > > inl find_ x =
00:32:43 v #19265 > >     try_find_ x >> optionm.value
00:32:44 v #19266 > 00:32:43 d #1066 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1821aec9fa5e2801b042726b550b210f3fd0f77e057319c773b3280cb11d566/main.spi
00:32:44 v #19267 > >
00:32:44 v #19268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:44 v #19269 > > //// test
00:32:44 v #19270 > >
00:32:44 v #19271 > > listm.init 10i32 id
00:32:44 v #19272 > > |> find ((=) 5i32)
00:32:44 v #19273 > > |> _assert_eq 5i32
00:32:44 v #19274 > 00:32:43 d #1067 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54626bb7db8bf25e66e400bc0b2672653abb74fb28b030403992c48ae3d5e2de/main.spi
00:32:44 v #19275 > >
00:32:44 v #19276 > > ╭─[ 412.65ms - stdout ]────────────────────────────────────────────────────────╮
00:32:44 v #19277 > > │ __assert_eq / actual: 5 / expected: 5                                        │
00:32:44 v #19278 > > │                                                                              │
00:32:44 v #19279 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:44 v #19280 > >
00:32:44 v #19281 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:44 v #19282 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:44 v #19283 > > │ ### choose                                                                   │
00:32:44 v #19284 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:44 v #19285 > >
00:32:44 v #19286 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:44 v #19287 > > inl choose f l =
00:32:44 v #19288 > >     (l, [[]])
00:32:44 v #19289 > >     ||> listm.foldBack fun x acc =>
00:32:44 v #19290 > >         match f x with
00:32:44 v #19291 > >         | Some y => y :: acc
00:32:44 v #19292 > >         | None => acc
00:32:45 v #19293 > 00:32:44 d #1068 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc27e102a1774cd3266dc3e0000828fdb7417375f7bf974a23d5f2131a1e54cd/main.spi
00:32:45 v #19294 > >
00:32:45 v #19295 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:45 v #19296 > > //// test
00:32:45 v #19297 > >
00:32:45 v #19298 > > listm.init 10i32 id
00:32:45 v #19299 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:32:45 v #19300 > > |> _assert_eq [[ 0; 2; 4; 6; 8 ]]
00:32:45 v #19301 > 00:32:44 d #1069 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cba64b56c6f2a47619e841da8cf886d09ad2ea634606f60871d38ddc60ed326/main.spi
00:32:45 v #19302 > >
00:32:45 v #19303 > > ╭─[ 480.67ms - stdout ]────────────────────────────────────────────────────────╮
00:32:45 v #19304 > > │ __assert_eq / actual: UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8,      │
00:32:45 v #19305 > > │ UH0_0))))) / expected: UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8,     │
00:32:45 v #19306 > > │ UH0_0)))))                                                                   │
00:32:45 v #19307 > > │                                                                              │
00:32:45 v #19308 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:45 v #19309 > >
00:32:45 v #19310 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:45 v #19311 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:45 v #19312 > > │ ### filter                                                                   │
00:32:45 v #19313 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:45 v #19314 > >
00:32:45 v #19315 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:45 v #19316 > > inl filter forall t. (fn : t -> bool) (list : list t) : list t =
00:32:45 v #19317 > >     (list, Nil)
00:32:45 v #19318 > >     ||> listm.foldBack fun x acc =>
00:32:45 v #19319 > >         if fn x then x :: acc else acc
00:32:45 v #19320 > 00:32:45 d #1070 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c89e2877f6980ba0b691c887bd82f3505751f120357d2f8ec1196db746a0bec/main.spi
00:32:46 v #19321 > >
00:32:46 v #19322 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:46 v #19323 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:46 v #19324 > > │ ### zip_with                                                                 │
00:32:46 v #19325 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:46 v #19326 > >
00:32:46 v #19327 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:46 v #19328 > > inl zip_with fn xs ys =
00:32:46 v #19329 > >     inl rec loop acc xs ys =
00:32:46 v #19330 > >         match xs, ys with
00:32:46 v #19331 > >         | Cons (x, xs), Cons (y, ys) =>
00:32:46 v #19332 > >             loop (fn x y :: acc) xs ys
00:32:46 v #19333 > >         | _ => listm.rev acc
00:32:46 v #19334 > >     loop [[]] xs ys
00:32:46 v #19335 > >
00:32:46 v #19336 > > inl zip_with_ fn xs ys =
00:32:46 v #19337 > >     let rec loop acc xs ys =
00:32:46 v #19338 > >         match xs, ys with
00:32:46 v #19339 > >         | Cons (x, xs), Cons (y, ys) =>
00:32:46 v #19340 > >             loop (fn x y :: acc) xs ys
00:32:46 v #19341 > >         | _ => listm.rev acc
00:32:46 v #19342 > >     loop [[]] xs ys
00:32:46 v #19343 > 00:32:45 d #1071 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e72df7220c23bed98ed14a55ce842f6a6aa059186e76dcc7a201a2cfb70ccc8f/main.spi
00:32:46 v #19344 > >
00:32:46 v #19345 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:46 v #19346 > > //// test
00:32:46 v #19347 > >
00:32:46 v #19348 > > ([[ 1i32; 2; 3 ]], [[ 4; 5; 6 ]])
00:32:46 v #19349 > > ||> zip_with (+)
00:32:46 v #19350 > > |> _assert_eq [[ 5; 7; 9 ]]
00:32:46 v #19351 > 00:32:45 d #1072 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14da4286ed89be4b37a7c48e1ca86e8e63672fe3918696599958ade30b811e54/main.spi
00:32:47 v #19352 > >
00:32:47 v #19353 > > ╭─[ 462.92ms - stdout ]────────────────────────────────────────────────────────╮
00:32:47 v #19354 > > │ __assert_eq / actual: UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))) / expected:     │
00:32:47 v #19355 > > │ UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0)))                                       │
00:32:47 v #19356 > > │                                                                              │
00:32:47 v #19357 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:47 v #19358 > >
00:32:47 v #19359 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:47 v #19360 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:47 v #19361 > > │ ### zip                                                                      │
00:32:47 v #19362 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:47 v #19363 > >
00:32:47 v #19364 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:47 v #19365 > > inl zip xs ys =
00:32:47 v #19366 > >     zip_with pair xs ys
00:32:47 v #19367 > >
00:32:47 v #19368 > > inl zip_ xs ys =
00:32:47 v #19369 > >     zip_with_ pair xs ys
00:32:47 v #19370 > 00:32:46 d #1073 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e2e0f7f80191515ef21f7a5c0e07187fac8a46ed7f0131c404cd85aa1893c5f3/main.spi
00:32:47 v #19371 > >
00:32:47 v #19372 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:47 v #19373 > > //// test
00:32:47 v #19374 > >
00:32:47 v #19375 > > ([[ 1i32; 2; 3 ]], [[ 4i32; 5; 6 ]])
00:32:47 v #19376 > > ||> zip
00:32:47 v #19377 > > |> _assert_eq [[ 1, 4; 2, 5; 3, 6 ]]
00:32:47 v #19378 > 00:32:46 d #1074 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2092e6581b1b53dae5464546f30538c71f315e378806230ffed6e6ce63a07381/main.spi
00:32:47 v #19379 > >
00:32:47 v #19380 > > ╭─[ 445.03ms - stdout ]────────────────────────────────────────────────────────╮
00:32:47 v #19381 > > │ __assert_eq / actual: UH0_1 (1, 4, UH0_1 (2, 5, UH0_1 (3, 6, UH0_0))) /      │
00:32:47 v #19382 > > │ expected: UH0_1 (1, 4, UH0_1 (2, 5, UH0_1 (3, 6, UH0_0)))                    │
00:32:47 v #19383 > > │                                                                              │
00:32:47 v #19384 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:47 v #19385 > >
00:32:47 v #19386 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:47 v #19387 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:47 v #19388 > > │ ### indexed                                                                  │
00:32:47 v #19389 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:47 v #19390 > >
00:32:47 v #19391 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:47 v #19392 > > inl indexed list =
00:32:47 v #19393 > >     (([[]], 0), list)
00:32:47 v #19394 > >     ||> listm.fold fun (acc, i) x =>
00:32:47 v #19395 > >         (i, x) :: acc, i + 1
00:32:47 v #19396 > >     |> fst
00:32:47 v #19397 > >     |> listm.rev
00:32:48 v #19398 > 00:32:47 d #1075 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7790cdd4e704a1546e4155eaa513eb2684859039b9eca39bc7a542285c21f6de/main.spi
00:32:48 v #19399 > >
00:32:48 v #19400 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:48 v #19401 > > //// test
00:32:48 v #19402 > >
00:32:48 v #19403 > > listm.init 5i32 ((*) 2)
00:32:48 v #19404 > > |> indexed
00:32:48 v #19405 > > |> _assert_eq [[ 0i32, 0; 1, 2; 2, 4; 3, 6; 4, 8 ]]
00:32:48 v #19406 > 00:32:47 d #1076 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48b8239b3a9a61573ff10c54c56cae3352a51b0dd7ae36fb43851fec470b97f4/main.spi
00:32:48 v #19407 > >
00:32:48 v #19408 > > ╭─[ 482.14ms - stdout ]────────────────────────────────────────────────────────╮
00:32:48 v #19409 > > │ __assert_eq / actual: UH0_1 (0, 0, UH0_1 (1, 2, UH0_1 (2, 4, UH0_1 (3, 6,    │
00:32:48 v #19410 > > │ UH0_1 (4, 8, UH0_0))))) / expected: UH0_1 (0, 0, UH0_1 (1, 2, UH0_1 (2, 4,   │
00:32:48 v #19411 > > │ UH0_1 (3, 6, UH0_1 (4, 8, UH0_0)))))                                         │
00:32:48 v #19412 > > │                                                                              │
00:32:48 v #19413 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:48 v #19414 > >
00:32:48 v #19415 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:48 v #19416 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:48 v #19417 > > │ ### group_by                                                                 │
00:32:48 v #19418 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:48 v #19419 > >
00:32:48 v #19420 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:48 v #19421 > > inl group_by fn list =
00:32:48 v #19422 > >     (list, [[]])
00:32:48 v #19423 > >     ||> listm.foldBack fun x acc =>
00:32:48 v #19424 > >         inl xk = fn x
00:32:48 v #19425 > >         inl found, new_acc =
00:32:48 v #19426 > >             ((false, [[]]), acc)
00:32:48 v #19427 > >             ||> listm.fold fun (found, acc') (k, xs) =>
00:32:48 v #19428 > >                 if k = xk
00:32:48 v #19429 > >                 then true, (k, x :: xs) :: acc'
00:32:48 v #19430 > >                 else found, (k, xs) :: acc'
00:32:48 v #19431 > >         if found
00:32:48 v #19432 > >         then new_acc
00:32:48 v #19433 > >         else (xk, [[ x ]]) :: new_acc
00:32:48 v #19434 > 00:32:48 d #1077 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/195e6ad65fcb0882a9afd68cf1e99a00f941af283e8ec6d9b56f501a381b5d13/main.spi
00:32:49 v #19435 > >
00:32:49 v #19436 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:49 v #19437 > > //// test
00:32:49 v #19438 > >
00:32:49 v #19439 > > listm.init 10i32 id
00:32:49 v #19440 > > |> group_by (fun x => x % 2 = 0)
00:32:49 v #19441 > > |> _assert_eq [[ true, [[ 0; 2; 4; 6; 8 ]]; false, [[ 1; 3; 5; 7; 9 ]] ]]
00:32:49 v #19442 > 00:32:48 d #1078 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92a891871c62ff507482306f406c9ffc02859257b9f695f5f880f829e2aa625c/main.spi
00:32:49 v #19443 > >
00:32:49 v #19444 > > ╭─[ 487.65ms - stdout ]────────────────────────────────────────────────────────╮
00:32:49 v #19445 > > │ __assert_eq / actual: UH1_1                                                  │
00:32:49 v #19446 > > │   (true, UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8, UH0_0))))),       │
00:32:49 v #19447 > > │    UH1_1                                                                     │
00:32:49 v #19448 > > │      (false, UH0_1 (1, UH0_1 (3, UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))))),   │
00:32:49 v #19449 > > │ UH1_0)) / expected: UH1_1                                                    │
00:32:49 v #19450 > > │   (true, UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8, UH0_0))))),       │
00:32:49 v #19451 > > │    UH1_1                                                                     │
00:32:49 v #19452 > > │      (false, UH0_1 (1, UH0_1 (3, UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))))),   │
00:32:49 v #19453 > > │ UH1_0))                                                                      │
00:32:49 v #19454 > > │                                                                              │
00:32:49 v #19455 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:49 v #19456 > >
00:32:49 v #19457 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:49 v #19458 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:49 v #19459 > > │ ### forall'                                                                  │
00:32:49 v #19460 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:49 v #19461 > >
00:32:49 v #19462 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:49 v #19463 > > inl forall' fn (head :: tail) =
00:32:49 v #19464 > >     (true, tail)
00:32:49 v #19465 > >     ||> listm.fold fun acc x =>
00:32:49 v #19466 > >         acc && x = head
00:32:49 v #19467 > 00:32:49 d #1079 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b9d2d1ff5bfcf87f01a2aa0cc43982fe88fd6c85f7f968c30b142c45aa2fe98/main.spi
00:32:50 v #19468 > >
00:32:50 v #19469 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:50 v #19470 > > //// test
00:32:50 v #19471 > >
00:32:50 v #19472 > > [[ 1i32; 1; 1; 1; 1 ]]
00:32:50 v #19473 > > |> forall' ((=) 1i32)
00:32:50 v #19474 > > |> _assert_eq true
00:32:50 v #19475 > 00:32:49 d #1080 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e274c07f1e0d30263eae35dd53ecdf071733f2fd87bc4bb66ca415ff91bb91e/main.spi
00:32:50 v #19476 > >
00:32:50 v #19477 > > ╭─[ 398.34ms - stdout ]────────────────────────────────────────────────────────╮
00:32:50 v #19478 > > │ __assert_eq / actual: true / expected: true                                  │
00:32:50 v #19479 > > │                                                                              │
00:32:50 v #19480 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:50 v #19481 > >
00:32:50 v #19482 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:50 v #19483 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:50 v #19484 > > │ ### last                                                                     │
00:32:50 v #19485 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:50 v #19486 > >
00:32:50 v #19487 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:50 v #19488 > > inl last list =
00:32:50 v #19489 > >     list
00:32:50 v #19490 > >     |> listm.rev
00:32:50 v #19491 > >     |> item 0i32
00:32:50 v #19492 > 00:32:49 d #1081 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b818ebef9e709fa2747c8affd06d9e430875f66132f7e3656a1942ee4293cc8f/main.spi
00:32:50 v #19493 > >
00:32:50 v #19494 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:50 v #19495 > > //// test
00:32:50 v #19496 > >
00:32:50 v #19497 > > listm.init 10i32 id
00:32:50 v #19498 > > |> last
00:32:50 v #19499 > > |> _assert_eq 9
00:32:51 v #19500 > 00:32:50 d #1082 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba6754a77758facec97723b3d569d9109cb6015ecd9d9efec438e2a95c6ec886/main.spi
00:32:51 v #19501 > >
00:32:51 v #19502 > > ╭─[ 425.17ms - stdout ]────────────────────────────────────────────────────────╮
00:32:51 v #19503 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:32:51 v #19504 > > │                                                                              │
00:32:51 v #19505 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:51 v #19506 > >
00:32:51 v #19507 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:51 v #19508 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:51 v #19509 > > │ ### try_pick                                                                 │
00:32:51 v #19510 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:51 v #19511 > >
00:32:51 v #19512 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:51 v #19513 > > inl try_pick fn list =
00:32:51 v #19514 > >     inl rec body fn = function
00:32:51 v #19515 > >         | [[]] => None
00:32:51 v #19516 > >         | x :: xs =>
00:32:51 v #19517 > >             match fn x with
00:32:51 v #19518 > >             | Some y => Some y
00:32:51 v #19519 > >             | None => loop xs
00:32:51 v #19520 > >     and inl loop list =
00:32:51 v #19521 > >         if var_is list |> not
00:32:51 v #19522 > >         then body fn list
00:32:51 v #19523 > >         else
00:32:51 v #19524 > >             inl fn = join fn
00:32:51 v #19525 > >             inl list = dyn list
00:32:51 v #19526 > >             join body fn list
00:32:51 v #19527 > >     loop list
00:32:51 v #19528 > 00:32:50 d #1083 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44699bcd3e14dfe2949bedb41b2099f064971d5ef69c22fc0470e7880cde34fb/main.spi
00:32:51 v #19529 > >
00:32:51 v #19530 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:51 v #19531 > > //// test
00:32:51 v #19532 > >
00:32:51 v #19533 > > listm.init 10i32 id
00:32:51 v #19534 > > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:32:51 v #19535 > > |> _assert_eq (Some 5i32)
00:32:51 v #19536 > 00:32:51 d #1084 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e412b3deeacf64930140305b47ade398b853cf7bbec13c5a887858e63195a59/main.spi
00:32:52 v #19537 > >
00:32:52 v #19538 > > ╭─[ 446.23ms - stdout ]────────────────────────────────────────────────────────╮
00:32:52 v #19539 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:32:52 v #19540 > > │                                                                              │
00:32:52 v #19541 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:52 v #19542 > >
00:32:52 v #19543 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:52 v #19544 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:52 v #19545 > > │ ### exists'                                                                  │
00:32:52 v #19546 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:52 v #19547 > >
00:32:52 v #19548 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:52 v #19549 > > inl exists' f x =
00:32:52 v #19550 > >     inl length_x : i64 = x |> listm.length
00:32:52 v #19551 > >     let rec loop i =
00:32:52 v #19552 > >         if i >= length_x
00:32:52 v #19553 > >         then false
00:32:52 v #19554 > >         elif x |> item i |> f
00:32:52 v #19555 > >         then true
00:32:52 v #19556 > >         else loop (i + 1)
00:32:52 v #19557 > >     loop 0
00:32:52 v #19558 > 00:32:51 d #1085 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac298a668672d93f64eb8e9ffca419fec4833723f905c1644e1737c9dce3573d/main.spi
00:32:52 v #19559 > >
00:32:52 v #19560 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:52 v #19561 > > //// test
00:32:52 v #19562 > >
00:32:52 v #19563 > > [[ 'a'; 'b'; 'c' ]]
00:32:52 v #19564 > > |> exists' fun x => x = 'b'
00:32:52 v #19565 > > |> _assert_eq true
00:32:52 v #19566 > >
00:32:52 v #19567 > > [[ 'a'; 'b' ]]
00:32:52 v #19568 > > |> exists' fun x => x = 'c'
00:32:52 v #19569 > > |> _assert_eq false
00:32:52 v #19570 > >
00:32:52 v #19571 > > [[]]
00:32:52 v #19572 > > |> exists' fun x => x = 'a'
00:32:52 v #19573 > > |> _assert_eq false
00:32:52 v #19574 > 00:32:51 d #1086 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9c5445379b3e3455f365331f6d0ba17fb6e14aad833a707aa55760256d6653dd/main.spi
00:32:53 v #19575 > >
00:32:53 v #19576 > > ╭─[ 501.12ms - stdout ]────────────────────────────────────────────────────────╮
00:32:53 v #19577 > > │ __assert_eq / actual: true / expected: true                                  │
00:32:53 v #19578 > > │ __assert_eq / actual: false / expected: false                                │
00:32:53 v #19579 > > │ __assert_eq / actual: false / expected: false                                │
00:32:53 v #19580 > > │                                                                              │
00:32:53 v #19581 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:53 v #19582 > >
00:32:53 v #19583 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:53 v #19584 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:53 v #19585 > > │ ## fsharp                                                                    │
00:32:53 v #19586 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:53 v #19587 > >
00:32:53 v #19588 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:53 v #19589 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:53 v #19590 > > │ ### list'                                                                    │
00:32:53 v #19591 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:53 v #19592 > >
00:32:53 v #19593 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:53 v #19594 > > nominal list' t = $"backend_switch `({ Fsharp : $'`t list'; Python :
00:32:53 v #19595 > > $'List[[`t]]' })"
00:32:53 v #19596 > 00:32:52 d #1087 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc41ed68f166c8007ab7e930b199a9f0376a0d8b7220eef3fadee76cf688923b/main.spi
00:32:53 v #19597 > >
00:32:53 v #19598 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:53 v #19599 > > inl empty' forall t. () : list' t =
00:32:53 v #19600 > >     $'[[]]'
00:32:53 v #19601 > 00:32:52 d #1088 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4228352ff945d47ad00895cc766c80681c03fafb00fbff735a6baf3db88b291c/main.spi
00:32:53 v #19602 > >
00:32:53 v #19603 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:53 v #19604 > > inl cons' forall t. (head : t) (tail : list' t) : list' t =
00:32:53 v #19605 > >     backend_switch {
00:32:53 v #19606 > >         Fsharp = fun () => $'!head :: !tail ' : list' t
00:32:53 v #19607 > >         Python = fun () =>
00:32:53 v #19608 > >             $'!tail.insert(0, !head)'
00:32:53 v #19609 > >             $'!tail ' : list' t
00:32:53 v #19610 > >     }
00:32:54 v #19611 > 00:32:53 d #1089 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51124402b26b82a57afc07366f5a9c8c41df375cb4713a1e59655bd6965bd02e/main.spi
00:32:54 v #19612 > >
00:32:54 v #19613 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:54 v #19614 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:54 v #19615 > > │ ### box                                                                      │
00:32:54 v #19616 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:54 v #19617 > >
00:32:54 v #19618 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:54 v #19619 > > inl box forall t. (list : list t) : list' t =
00:32:54 v #19620 > >     (list, empty' ())
00:32:54 v #19621 > >     ||> listm.foldBack fun x acc =>
00:32:54 v #19622 > >         acc |> cons' x
00:32:54 v #19623 > 00:32:53 d #1090 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35ab1849b21ae783fc28309cce0eccbaac352daf4df53b1259fe24c6fb12b11b/main.spi
00:32:54 v #19624 > >
00:32:54 v #19625 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:54 v #19626 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:54 v #19627 > > │ ### fold'                                                                    │
00:32:54 v #19628 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:54 v #19629 > >
00:32:54 v #19630 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:54 v #19631 > > inl fold' forall t u. (fn : t -> u) (init : list u) (list : list' t) : list u =
00:32:54 v #19632 > >     backend_switch {
00:32:54 v #19633 > >         Fsharp = fun () =>
00:32:54 v #19634 > >             (init, list)
00:32:54 v #19635 > >             ||> $'List.fold' join fun acc x => Cons (fn x, acc)
00:32:54 v #19636 > >             : list u
00:32:54 v #19637 > >         Python = fun () =>
00:32:54 v #19638 > >             $'x = !init '
00:32:54 v #19639 > >             $'for x in !list: x = !fn(x)'
00:32:54 v #19640 > >             $'x' : list u
00:32:54 v #19641 > >     }
00:32:55 v #19642 > 00:32:54 d #1091 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/41eed85454897c606d69ab05d696a6e8eaa1e5d47028a65daa36c12b72a4c57b/main.spi
00:32:55 v #19643 > >
00:32:55 v #19644 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:55 v #19645 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:55 v #19646 > > │ ### fold_back'                                                               │
00:32:55 v #19647 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:55 v #19648 > >
00:32:55 v #19649 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:55 v #19650 > > inl fold_back' forall t u. (fn : t -> u) (list : list' t) (init : list u) : list
00:32:55 v #19651 > > u =
00:32:55 v #19652 > >     backend_switch {
00:32:55 v #19653 > >         Fsharp = fun () =>
00:32:55 v #19654 > >             (list, init)
00:32:55 v #19655 > >             ||> $'List.foldBack' join fun x acc => Cons (fn x, acc)
00:32:55 v #19656 > >             : list u
00:32:55 v #19657 > >         Python = fun () =>
00:32:55 v #19658 > >             $'x = !init '
00:32:55 v #19659 > >             $'for x in reversed(!list): x = !fn(x)'
00:32:55 v #19660 > >             $'x' : list u
00:32:55 v #19661 > >     }
00:32:55 v #19662 > 00:32:54 d #1092 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5ba365603ae86a2e4752c6bec5c8755597c68e2e4492e12fe6e9650c66f4682/main.spi
00:32:55 v #19663 > >
00:32:55 v #19664 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:55 v #19665 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:55 v #19666 > > │ ### filter'                                                                  │
00:32:55 v #19667 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:55 v #19668 > >
00:32:55 v #19669 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:55 v #19670 > > inl filter' forall t. (fn : t -> bool) (list : list' t) : list' t =
00:32:55 v #19671 > >     backend_switch {
00:32:55 v #19672 > >         Fsharp = fun () => list |> $'"List.filter !fn"' : list' t
00:32:55 v #19673 > >         Python = fun () => $'list(filter(!fn, !list))' : list' t
00:32:55 v #19674 > >     }
00:32:55 v #19675 > 00:32:55 d #1093 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/519d116cfb210de81a8d77b9265008d585244714099a9c4249297fd49bb72c3f/main.spi
00:32:56 v #19676 > >
00:32:56 v #19677 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:56 v #19678 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:56 v #19679 > > │ ### map                                                                      │
00:32:56 v #19680 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:56 v #19681 > >
00:32:56 v #19682 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:56 v #19683 > > inl map forall t u. (fn : t -> u) (list : list' t) : list' u =
00:32:56 v #19684 > >     backend_switch {
00:32:56 v #19685 > >         Fsharp = fun () => list |> $'List.map' fn : list' u
00:32:56 v #19686 > >         Python = fun () => $'list(map(!fn, !list))' : list' u
00:32:56 v #19687 > >     }
00:32:56 v #19688 > 00:32:55 d #1094 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/999b4a8a741111821ee91ab04f56cb357cf8c4974c9beaa0e450825e5a3cef55/main.spi
00:32:56 v #19689 > >
00:32:56 v #19690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:56 v #19691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:56 v #19692 > > │ ### unbox                                                                    │
00:32:56 v #19693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:56 v #19694 > >
00:32:56 v #19695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:56 v #19696 > > inl unbox forall t. (list : list' t) : list t =
00:32:56 v #19697 > >     (list, Nil)
00:32:56 v #19698 > >     ||> fold_back' id
00:32:56 v #19699 > 00:32:55 d #1095 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/259beec62d897679f5f2d7bfbc413aeb2ba147c53575a2ce4b572e2f3f8cb111/main.spi
00:32:56 v #19700 > >
00:32:56 v #19701 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:56 v #19702 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:56 v #19703 > > │ ### distinct'                                                                │
00:32:56 v #19704 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:56 v #19705 > >
00:32:56 v #19706 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:56 v #19707 > > inl distinct' forall t. (list : list' t) : list' t =
00:32:56 v #19708 > >     backend_switch {
00:32:56 v #19709 > >         Fsharp = fun () => list |> $'List.distinct' : list' t
00:32:56 v #19710 > >         Python = fun () => $'list(set(!list))' : list' t
00:32:56 v #19711 > >     }
00:32:57 v #19712 > 00:32:56 d #1096 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ea3172eca6510064925eb2bb736f43799fbd09049af3faedddd2d6b654a73fd/main.spi
00:32:57 v #19713 > >
00:32:57 v #19714 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:57 v #19715 > > //// test
00:32:57 v #19716 > >
00:32:57 v #19717 > > [[ "1"; "2"; "2"; "3" ]]
00:32:57 v #19718 > > |> box
00:32:57 v #19719 > > |> distinct'
00:32:57 v #19720 > > |> unbox
00:32:57 v #19721 > > |> _assert_eq [[ "1"; "2"; "3" ]]
00:32:57 v #19722 > 00:32:56 d #1097 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/08b005aedc9eba44762be4f5a7e9c4527a2d911f59a9715ababb2e08c0636a9d/main.spi
00:32:57 v #19723 > >
00:32:57 v #19724 > > ╭─[ 455.03ms - stdout ]────────────────────────────────────────────────────────╮
00:32:57 v #19725 > > │ __assert_eq / actual: UH0_1 ("1", UH0_1 ("2", UH0_1 ("3", UH0_0))) /         │
00:32:57 v #19726 > > │ expected: UH0_1 ("1", UH0_1 ("2", UH0_1 ("3", UH0_0)))                       │
00:32:57 v #19727 > > │                                                                              │
00:32:57 v #19728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:57 v #19729 > >
00:32:57 v #19730 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:57 v #19731 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:57 v #19732 > > │ ### to_array'                                                                │
00:32:57 v #19733 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:57 v #19734 > >
00:32:57 v #19735 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:57 v #19736 > > inl to_array' forall t. (items : list' t) : array_base t =
00:32:57 v #19737 > >     backend_switch {
00:32:57 v #19738 > >         Fsharp = fun () => items |> $'List.toArray' : array_base t
00:32:57 v #19739 > >         Python = fun () => $'cp.array(!items)' : array_base t
00:32:57 v #19740 > >     }
00:32:58 v #19741 > 00:32:57 d #1098 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9fa875c208245b60c0430c5074806f3035b1b924967cc598429aaf4ecbee6017/main.spi
00:32:58 v #19742 > 00:00:31 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 32996 }
00:32:58 v #19743 > 00:00:31 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:32:59 v #19744 > 00:00:33 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb to html
00:32:59 v #19745 > 00:00:33 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:32:59 v #19746 > 00:00:33 v #7 !   validate(nb)
00:33:00 v #19747 > 00:00:33 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:33:00 v #19748 > 00:00:33 v #9 !   return _pygments_highlight(
00:33:01 v #19749 > 00:00:34 v #10 ! [NbConvertApp] Writing 380373 bytes to c:\home\git\polyglot\lib\spiral\listm'.dib.html
00:33:01 v #19750 > 00:00:34 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 854 }
00:33:01 v #19751 > 00:00:34 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 854 }
00:33:01 v #19752 > 00:00:34 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/listm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/listm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:33:01 v #19753 > 00:00:35 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:33:01 v #19754 > 00:00:35 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:33:01 v #19755 > 00:00:35 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 33909 }
00:33:01 d #19756 runtime.execute_with_options_async / { exit_code = 0; output_length = 38030 }
00:33:01 d #24 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path listm'.dib --retries 3
00:33:01 d #19757 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path reflection.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path reflection.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:33:01 v #19758 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "reflection.dib", "--retries", "3"])) }
00:33:01 v #19759 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/reflection.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/reflection.dib" --output-path "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:33:03 v #19760 > >
00:33:03 v #19761 > > ── markdown ────────────────────────────────────────────────────────────────────
00:33:03 v #19762 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:33:03 v #19763 > > │ # reflection                                                                 │
00:33:03 v #19764 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:33:07 v #19765 > >
00:33:07 v #19766 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:33:07 v #19767 > > //// test
00:33:07 v #19768 > >
00:33:07 v #19769 > > open testing
00:33:07 v #19770 > 00:33:07 d #1099 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:33:08 v #19771 > >
00:33:08 v #19772 > > ── markdown ────────────────────────────────────────────────────────────────────
00:33:08 v #19773 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:33:08 v #19774 > > │ ## reflection                                                                │
00:33:08 v #19775 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:33:08 v #19776 > >
00:33:08 v #19777 > > ── markdown ────────────────────────────────────────────────────────────────────
00:33:08 v #19778 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:33:08 v #19779 > > │ ### get_union_fields                                                         │
00:33:08 v #19780 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:33:08 v #19781 > >
00:33:08 v #19782 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:33:08 v #19783 > > inl get_union_fields forall union_type. () : list (string * union_type) =
00:33:08 v #19784 > >     real
00:33:08 v #19785 > >         real_core.union_to_record
00:33:08 v #19786 > >             `union_type
00:33:08 v #19787 > >             forall union_record_type. =>
00:33:08 v #19788 > >                 real_core.record_type_fold
00:33:08 v #19789 > >                     fun acc key =>
00:33:08 v #19790 > >                         forall value. =>
00:33:08 v #19791 > >                             inl value =
00:33:08 v #19792 > >                                 typecase value with
00:33:08 v #19793 > >                                 | () => $'' : value
00:33:08 v #19794 > >                                 | _ =>
00:33:08 v #19795 > >                                     backend_switch `value `({}) {
00:33:08 v #19796 > >                                         Fsharp =
00:33:08 v #19797 > >                                             (fun () =>
00:33:08 v #19798 > >                                                 $'Unchecked.defaultof<_>' :
00:33:08 v #19799 > > value
00:33:08 v #19800 > >                                             ) : () -> value
00:33:08 v #19801 > >                                         Python =
00:33:08 v #19802 > >                                             (fun () =>
00:33:08 v #19803 > >                                                 $'None' : value
00:33:08 v #19804 > >                                             ) : () -> value
00:33:08 v #19805 > >                                     }
00:33:08 v #19806 > >                             inl item = real_core.nominal_create `union_type
00:33:08 v #19807 > > (key, value)
00:33:08 v #19808 > >                             inl key' = sm'_real.symbol_to_string `(`key)
00:33:08 v #19809 > >                             (::) `(string * union_type) (key', item) acc
00:33:08 v #19810 > >                     (Nil `(string * union_type))
00:33:08 v #19811 > >                     `union_record_type
00:33:08 v #19812 > 00:33:07 d #1100 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7954af145e0fe89627aca865b2721e9a7f2c4796e0cf3c14e64a9bd6bdfabe6f/main.spi
00:33:08 v #19813 > >
00:33:08 v #19814 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:33:08 v #19815 > > //// test
00:33:08 v #19816 > > ///! fsharp
00:33:08 v #19817 > > ///! rust
00:33:08 v #19818 > > ///! typescript
00:33:08 v #19819 > > ///! python
00:33:08 v #19820 > >
00:33:08 v #19821 > > get_union_fields ()
00:33:08 v #19822 > > |> listm'.box
00:33:08 v #19823 > > |> listm'.to_array'
00:33:08 v #19824 > > |> a
00:33:08 v #19825 > > |> am'.sort_by snd
00:33:08 v #19826 > > |> fun (a x : _ int _) => x
00:33:08 v #19827 > > |> _assert_eq' ;[[ "Native", Native; "Wasm", Wasm; "Contract", Contract ]]
00:33:09 v #19828 > 00:33:08 d #1101 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/04dbbf6629f124cf78de0217488a9fb6e8f1a23ac90eda5862d3c53116521c43/main.spi
00:33:30 v #19829 > >
00:33:30 v #19830 > > ╭─[ 21.08s - return value ]────────────────────────────────────────────────────╮
00:33:30 v #19831 > > │ .rs output:                                                                  │
00:33:30 v #19832 > > │ __assert_eq' / actual: Array(MutCell([("Native", US0_0), ("Wasm", US0_1),    │
00:33:30 v #19833 > > │ ("Contract", US0_2)])) / expected: Array(MutCell([("Native", US0_0),         │
00:33:30 v #19834 > > │ ("Wasm", US0_1), ("Contract", US0_2)]))                                      │
00:33:30 v #19835 > > │                                                                              │
00:33:30 v #19836 > > │ .ts output:                                                                  │
00:33:30 v #19837 > > │ __assert_eq' / actual: Native,US0_0,Wasm,US0_1,Contract,US0_2 / expected:    │
00:33:30 v #19838 > > │ Native,US0_0,Wasm,US0_1,Contract,US0_2                                       │
00:33:30 v #19839 > > │                                                                              │
00:33:30 v #19840 > > │ .py output:                                                                  │
00:33:30 v #19841 > > │ __assert_eq' / actual: [('Native', US0_0), ('Wasm', US0_1), ('Contract',     │
00:33:30 v #19842 > > │ US0_2)] / expected: [('Native', US0_0), ('Wasm', US0_1), ('Contract',        │
00:33:30 v #19843 > > │ US0_2)]                                                                      │
00:33:30 v #19844 > > │                                                                              │
00:33:30 v #19845 > > │                                                                              │
00:33:30 v #19846 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:33:30 v #19847 > >
00:33:30 v #19848 > > ╭─[ 21.09s - stdout ]──────────────────────────────────────────────────────────╮
00:33:30 v #19849 > > │ .fsx output:                                                                 │
00:33:30 v #19850 > > │ __assert_eq' / actual: [|struct ("Native", US0_0); struct ("Wasm", US0_1);   │
00:33:30 v #19851 > > │ struct ("Contract", US0_2)|] / expected: [|struct ("Native", US0_0); struct  │
00:33:30 v #19852 > > │ ("Wasm", US0_1); struct ("Contract", US0_2)|]                                │
00:33:30 v #19853 > > │                                                                              │
00:33:30 v #19854 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:33:30 v #19855 > >
00:33:30 v #19856 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:33:30 v #19857 > > //// test
00:33:30 v #19858 > > ///! fsharp
00:33:30 v #19859 > > ///! rust
00:33:30 v #19860 > > ///! typescript
00:33:30 v #19861 > > ///! python
00:33:30 v #19862 > >
00:33:30 v #19863 > > get_union_fields ()
00:33:30 v #19864 > > |> listm'.box
00:33:30 v #19865 > > |> listm'.to_array'
00:33:30 v #19866 > > |> a
00:33:30 v #19867 > > |> am'.sort_by snd
00:33:30 v #19868 > > |> fun (a x : _ int _) => x
00:33:30 v #19869 > > |> _assert_eq' ;[[ "Some", Some 0i32; "None", None ]]
00:33:30 v #19870 > 00:33:29 d #1102 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a71a6e85d9d9ea0257d4a53fb6dc13297f59b2019fe0ca8c720afb294373dd1f/main.spi
00:33:50 v #19871 > >
00:33:50 v #19872 > > ╭─[ 20.40s - return value ]────────────────────────────────────────────────────╮
00:33:50 v #19873 > > │ .rs output:                                                                  │
00:33:50 v #19874 > > │ __assert_eq' / actual: Array(MutCell([("Some", US0_0(0)), ("None", US0_1)])) │
00:33:50 v #19875 > > │ / expected: Array(MutCell([("Some", US0_0(0)), ("None", US0_1)]))            │
00:33:50 v #19876 > > │                                                                              │
00:33:50 v #19877 > > │ .ts output:                                                                  │
00:33:50 v #19878 > > │ __assert_eq' / actual: Some,US0_0 0,None,US0_1 / expected: Some,US0_0        │
00:33:50 v #19879 > > │ 0,None,US0_1                                                                 │
00:33:50 v #19880 > > │                                                                              │
00:33:50 v #19881 > > │ .py output:                                                                  │
00:33:50 v #19882 > > │ __assert_eq' / actual: [('Some', US0_0 0), ('None', US0_1)] / expected: [    │
00:33:50 v #19883 > > │ ('Some', US0_0 0), ('None', US0_1)]                                          │
00:33:50 v #19884 > > │                                                                              │
00:33:50 v #19885 > > │                                                                              │
00:33:50 v #19886 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:33:50 v #19887 > >
00:33:50 v #19888 > > ╭─[ 20.40s - stdout ]──────────────────────────────────────────────────────────╮
00:33:50 v #19889 > > │ .fsx output:                                                                 │
00:33:50 v #19890 > > │ __assert_eq' / actual: [|struct ("Some", US0_0 0); struct ("None", US0_1)|]  │
00:33:50 v #19891 > > │ / expected: [|struct ("Some", US0_0 0); struct ("None", US0_1)|]             │
00:33:50 v #19892 > > │                                                                              │
00:33:50 v #19893 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:33:50 v #19894 > >
00:33:50 v #19895 > > ── markdown ────────────────────────────────────────────────────────────────────
00:33:50 v #19896 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:33:50 v #19897 > > │ ### get_union_fields_untag                                                   │
00:33:50 v #19898 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:33:50 v #19899 > >
00:33:50 v #19900 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:33:50 v #19901 > > inl get_union_fields_untag forall union_type. () : list (string * union_type) =
00:33:50 v #19902 > >     real
00:33:50 v #19903 > >         real_core.union_to_record
00:33:50 v #19904 > >             `union_type
00:33:50 v #19905 > >             forall union_record_type. =>
00:33:50 v #19906 > >                 inl result =
00:33:50 v #19907 > >                     real_core.record_type_fold_back
00:33:50 v #19908 > >                         fun _key =>
00:33:50 v #19909 > >                             forall value. (acc, (i : i32)) =>
00:33:50 v #19910 > >                                 inl key, item : (string * union_type) =
00:33:50 v #19911 > >                                     real_core.union_untag `union_type i
00:33:50 v #19912 > >                                         (fun key => forall value. =>
00:33:50 v #19913 > >                                             inl key' = sm'_real.symbol_to_string
00:33:50 v #19914 > > `(`key)
00:33:50 v #19915 > >                                             inl value =
00:33:50 v #19916 > >                                                 typecase value with
00:33:50 v #19917 > >                                                 | () => $'' : value
00:33:50 v #19918 > >                                                 | _ =>
00:33:50 v #19919 > >                                                     backend_switch `value `({})
00:33:50 v #19920 > > {
00:33:50 v #19921 > >                                                         Fsharp =
00:33:50 v #19922 > >                                                             (fun () =>
00:33:50 v #19923 > >
00:33:50 v #19924 > > $'Unchecked.defaultof<_>' : value
00:33:50 v #19925 > >                                                             ) : () -> value
00:33:50 v #19926 > >                                                         Python =
00:33:50 v #19927 > >                                                             (fun () =>
00:33:50 v #19928 > >                                                                 $'None' : value
00:33:50 v #19929 > >                                                             ) : () -> value
00:33:50 v #19930 > >                                                     }
00:33:50 v #19931 > >                                             inl item = real_core.nominal_create
00:33:50 v #19932 > > `union_type (key, value)
00:33:50 v #19933 > >                                             key', item
00:33:50 v #19934 > >                                         )
00:33:50 v #19935 > >                                         (fun _ =>
00:33:50 v #19936 > >                                             failwith
00:33:50 v #19937 > >                                                 `(string * union_type)
00:33:50 v #19938 > >
00:33:50 v #19939 > > "reflection.get_union_fields_untag / invalid tag"
00:33:50 v #19940 > >                                         )
00:33:50 v #19941 > >                                 (::) `(string * union_type) (key, item) acc, (+)
00:33:50 v #19942 > > `i32 i 1
00:33:50 v #19943 > >                         `union_record_type
00:33:50 v #19944 > >                         (Nil `(string * union_type), 0i32)
00:33:50 v #19945 > >                 inl result = fst `(list (string * union_type)) `i32 result
00:33:50 v #19946 > >                 listm.rev `(string * union_type) result
00:33:50 v #19947 > 00:33:49 d #1103 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73888d9a5530b2f351a585193f5e0c9f39b2aef58d3ad6d848204ff3494bc49f/main.spi
00:33:50 v #19948 > >
00:33:50 v #19949 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:33:50 v #19950 > > //// test
00:33:50 v #19951 > > ///! fsharp
00:33:50 v #19952 > > ///! cuda
00:33:50 v #19953 > > ///! rust
00:33:50 v #19954 > > ///! typescript
00:33:50 v #19955 > > ///! python
00:33:50 v #19956 > >
00:33:50 v #19957 > > get_union_fields_untag ()
00:33:50 v #19958 > > |> _assert_eq' [[ "Native", Native; "Wasm", Wasm; "Contract", Contract ]]
00:33:51 v #19959 > 00:33:50 d #1104 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/45a39fd0325905e3a6e44aaa1e2514b973e2300cbca08ec0067e8e572edcde5d/main.spi
00:33:51 v #19960 > 00:33:50 d #1105 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/edcac2b3a9bb5d4c70d1d42b70120c3fd490d55bd0615ef5432a0799f1a7568a/main.spi
00:34:11 v #19961 > >
00:34:11 v #19962 > > ╭─[ 21.05s - return value ]────────────────────────────────────────────────────╮
00:34:11 v #19963 > > │ .py output (Cuda):                                                           │
00:34:11 v #19964 > > │ __assert_eq' / actual: UH0_1(v0='Native', v1=US0_0(), v2=UH0_1(v0='Wasm',    │
00:34:11 v #19965 > > │ v1=US0_1(), v2=UH0_1(v0='Contract', v1=US0_2(), v2=UH0_0()))) / expected:    │
00:34:11 v #19966 > > │ UH0_1(v0='Native', v1=US0_0(), v2=UH0_1(v0='Wasm', v1=US0_1(),               │
00:34:11 v #19967 > > │ v2=UH0_1(v0='Contract', v1=US0_2(), v2=UH0_0())))                            │
00:34:11 v #19968 > > │                                                                              │
00:34:11 v #19969 > > │ .rs output:                                                                  │
00:34:11 v #19970 > > │ __assert_eq' / actual: UH0_1("Native", US0_0, UH0_1("Wasm", US0_1,           │
00:34:11 v #19971 > > │ UH0_1("Contract", US0_2, UH0_0))) / expected: UH0_1("Native", US0_0,         │
00:34:11 v #19972 > > │ UH0_1("Wasm", US0_1, UH0_1("Contract", US0_2, UH0_0)))                       │
00:34:11 v #19973 > > │                                                                              │
00:34:11 v #19974 > > │ .ts output:                                                                  │
00:34:11 v #19975 > > │ __assert_eq' / actual: UH0_1 (Native, US0_0, UH0_1 (Wasm, US0_1, UH0_1       │
00:34:11 v #19976 > > │ (Contract, US0_2, UH0_0))) / expected: UH0_1 (Native, US0_0, UH0_1 (Wasm,    │
00:34:11 v #19977 > > │ US0_1, UH0_1 (Contract, US0_2, UH0_0)))                                      │
00:34:11 v #19978 > > │                                                                              │
00:34:11 v #19979 > > │ .py output:                                                                  │
00:34:11 v #19980 > > │ __assert_eq' / actual: UH0_1 ("Native", US0_0, UH0_1 ("Wasm", US0_1, UH0_1   │
00:34:11 v #19981 > > │ ("Contract", US0_2, UH0_0))) / expected: UH0_1 ("Native", US0_0, UH0_1       │
00:34:11 v #19982 > > │ ("Wasm", US0_1, UH0_1 ("Contract", US0_2, UH0_0)))                           │
00:34:11 v #19983 > > │                                                                              │
00:34:11 v #19984 > > │                                                                              │
00:34:11 v #19985 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:11 v #19986 > >
00:34:11 v #19987 > > ╭─[ 21.06s - stdout ]──────────────────────────────────────────────────────────╮
00:34:11 v #19988 > > │ .fsx output:                                                                 │
00:34:11 v #19989 > > │ __assert_eq' / actual: UH0_1 ("Native", US0_0, UH0_1 ("Wasm", US0_1, UH0_1   │
00:34:11 v #19990 > > │ ("Contract", US0_2, UH0_0))) / expected: UH0_1 ("Native", US0_0, UH0_1       │
00:34:11 v #19991 > > │ ("Wasm", US0_1, UH0_1 ("Contract", US0_2, UH0_0)))                           │
00:34:11 v #19992 > > │                                                                              │
00:34:11 v #19993 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:11 v #19994 > >
00:34:11 v #19995 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:34:11 v #19996 > > //// test
00:34:11 v #19997 > > ///! fsharp
00:34:11 v #19998 > > ///! cuda
00:34:11 v #19999 > > ///! rust
00:34:11 v #20000 > > ///! typescript
00:34:11 v #20001 > > ///! python
00:34:11 v #20002 > >
00:34:11 v #20003 > > get_union_fields_untag ()
00:34:11 v #20004 > > |> _assert_eq' [[ "Some", Some (); "None", None ]]
00:34:12 v #20005 > 00:34:11 d #1106 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ac9ac708049412b0154e941e91c4f81343357f8df9ccf5516764a27246540d7/main.spi
00:34:12 v #20006 > 00:34:11 d #1107 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0978a90623ed62d4b9ec0ad9dbd8d4cb59614638b00888ad86152dc6d04e943c/main.spi
00:34:34 v #20007 > >
00:34:34 v #20008 > > ╭─[ 22.16s - return value ]────────────────────────────────────────────────────╮
00:34:34 v #20009 > > │ .py output (Cuda):                                                           │
00:34:34 v #20010 > > │ __assert_eq' / actual: UH0_1(v0='Some', v1=US0_0(), v2=UH0_1(v0='None',      │
00:34:34 v #20011 > > │ v1=US0_1(), v2=UH0_0())) / expected: UH0_1(v0='Some', v1=US0_0(),            │
00:34:34 v #20012 > > │ v2=UH0_1(v0='None', v1=US0_1(), v2=UH0_0()))                                 │
00:34:34 v #20013 > > │                                                                              │
00:34:34 v #20014 > > │ .rs output:                                                                  │
00:34:34 v #20015 > > │ __assert_eq' / actual: UH0_1("Some", US0_0, UH0_1("None", US0_1, UH0_0)) /   │
00:34:34 v #20016 > > │ expected: UH0_1("Some", US0_0, UH0_1("None", US0_1, UH0_0))                  │
00:34:34 v #20017 > > │                                                                              │
00:34:34 v #20018 > > │ .ts output:                                                                  │
00:34:34 v #20019 > > │ __assert_eq' / actual: UH0_1 (Some, US0_0, UH0_1 (None, US0_1, UH0_0)) /     │
00:34:34 v #20020 > > │ expected: UH0_1 (Some, US0_0, UH0_1 (None, US0_1, UH0_0))                    │
00:34:34 v #20021 > > │                                                                              │
00:34:34 v #20022 > > │ .py output:                                                                  │
00:34:34 v #20023 > > │ __assert_eq' / actual: UH0_1 ("Some", US0_0, UH0_1 ("None", US0_1, UH0_0)) / │
00:34:34 v #20024 > > │ expected: UH0_1 ("Some", US0_0, UH0_1 ("None", US0_1, UH0_0))                │
00:34:34 v #20025 > > │                                                                              │
00:34:34 v #20026 > > │                                                                              │
00:34:34 v #20027 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:34 v #20028 > >
00:34:34 v #20029 > > ╭─[ 22.17s - stdout ]──────────────────────────────────────────────────────────╮
00:34:34 v #20030 > > │ .fsx output:                                                                 │
00:34:34 v #20031 > > │ __assert_eq' / actual: UH0_1 ("Some", US0_0, UH0_1 ("None", US0_1, UH0_0)) / │
00:34:34 v #20032 > > │ expected: UH0_1 ("Some", US0_0, UH0_1 ("None", US0_1, UH0_0))                │
00:34:34 v #20033 > > │                                                                              │
00:34:34 v #20034 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:34 v #20035 > >
00:34:34 v #20036 > > ── markdown ────────────────────────────────────────────────────────────────────
00:34:34 v #20037 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:34:34 v #20038 > > │ ### union_try_pick                                                           │
00:34:34 v #20039 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:34 v #20040 > >
00:34:34 v #20041 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:34:34 v #20042 > > inl union_try_pick forall t. (key : string) : option t =
00:34:34 v #20043 > >     real get_union_fields_untag `t ()
00:34:34 v #20044 > >     |> listm'.try_pick fun key', x =>
00:34:34 v #20045 > >         if key' = key
00:34:34 v #20046 > >         then Some x
00:34:34 v #20047 > >         else None
00:34:34 v #20048 > 00:34:33 d #1108 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7affa8f0cce96990b03dcd4ff11382a41c2934efdf76a848b37ed696be407e69/main.spi
00:34:34 v #20049 > >
00:34:34 v #20050 > > ── markdown ────────────────────────────────────────────────────────────────────
00:34:34 v #20051 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:34:34 v #20052 > > │ ### union_to_string                                                          │
00:34:34 v #20053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:34 v #20054 > >
00:34:34 v #20055 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:34:34 v #20056 > > inl union_to_string forall t. (x : t) : string =
00:34:34 v #20057 > >     real get_union_fields_untag `t ()
00:34:34 v #20058 > >     |> listm'.try_pick fun key, x' =>
00:34:34 v #20059 > >         if x' = x
00:34:34 v #20060 > >         then Some key
00:34:34 v #20061 > >         else
00:34:34 v #20062 > >             inl has_case =
00:34:34 v #20063 > >                 real
00:34:34 v #20064 > >                     real_core.union_to_record
00:34:34 v #20065 > >                         `t
00:34:34 v #20066 > >                         forall union_record_type. =>
00:34:34 v #20067 > >                             real_core.record_type_fold_back
00:34:34 v #20068 > >                                 fun _key =>
00:34:34 v #20069 > >                                     forall value. acc =>
00:34:34 v #20070 > >                                         if acc
00:34:34 v #20071 > >                                         then acc
00:34:34 v #20072 > >                                         else
00:34:34 v #20073 > >                                             typecase value with
00:34:34 v #20074 > >                                             | () => false
00:34:34 v #20075 > >                                             | _ => true
00:34:34 v #20076 > >                                 `union_record_type
00:34:34 v #20077 > >                                 false
00:34:34 v #20078 > >             if has_case |> not
00:34:34 v #20079 > >             then None
00:34:34 v #20080 > >             else
00:34:34 v #20081 > >                 inl separator =
00:34:34 v #20082 > >                     backend_switch {
00:34:34 v #20083 > >                         Fsharp = fun () =>
00:34:34 v #20084 > >                             run_target function
00:34:34 v #20085 > >                                 | Rust _ => fun () => join "("
00:34:34 v #20086 > >                                 | _ => fun () => join " "
00:34:34 v #20087 > >                         Python = fun () => "("
00:34:34 v #20088 > >                     }
00:34:34 v #20089 > >                 inl x' = x' |> sm'.format |> sm'.split separator |>
00:34:34 v #20090 > > am'.index_base 0
00:34:34 v #20091 > >                 if x |> sm'.format |> sm'.starts_with x'
00:34:34 v #20092 > >                 then Some key
00:34:34 v #20093 > >                 else None
00:34:34 v #20094 > >     |> optionm.value
00:34:34 v #20095 > 00:34:33 d #1109 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/02e51f005388c516c36b9e040a5171e8ae841f2a70d968164ab52b4087f146ea/main.spi
00:34:34 v #20096 > >
00:34:34 v #20097 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:34:34 v #20098 > > //// test
00:34:34 v #20099 > > ///! fsharp
00:34:34 v #20100 > > ///! cuda
00:34:34 v #20101 > > ///! rust
00:34:34 v #20102 > > ///! typescript
00:34:34 v #20103 > > ///! python
00:34:34 v #20104 > >
00:34:34 v #20105 > > Some true
00:34:34 v #20106 > > |> union_to_string
00:34:34 v #20107 > > |> _assert_eq' "Some"
00:34:35 v #20108 > 00:34:34 d #1110 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6eaee557d4b6304ebe324da3cdad7207bdf7d13fc95c0151b82a61dcb06e32ec/main.spi
00:34:35 v #20109 > 00:34:34 d #1111 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76eb0e3276285dc0e703012bf48ca926cb720848cf18f9dd89fc258930e14a38/main.spi
00:34:57 v #20110 > >
00:34:57 v #20111 > > ╭─[ 22.10s - return value ]────────────────────────────────────────────────────╮
00:34:57 v #20112 > > │ .py output (Cuda):                                                           │
00:34:57 v #20113 > > │ __assert_eq' / actual: Some / expected: Some                                 │
00:34:57 v #20114 > > │                                                                              │
00:34:57 v #20115 > > │ .rs output:                                                                  │
00:34:57 v #20116 > > │ __assert_eq' / actual: "Some" / expected: "Some"                             │
00:34:57 v #20117 > > │                                                                              │
00:34:57 v #20118 > > │ .ts output:                                                                  │
00:34:57 v #20119 > > │ __assert_eq' / actual: Some / expected: Some                                 │
00:34:57 v #20120 > > │                                                                              │
00:34:57 v #20121 > > │ .py output:                                                                  │
00:34:57 v #20122 > > │ __assert_eq' / actual: Some / expected: Some                                 │
00:34:57 v #20123 > > │                                                                              │
00:34:57 v #20124 > > │                                                                              │
00:34:57 v #20125 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:57 v #20126 > >
00:34:57 v #20127 > > ╭─[ 22.10s - stdout ]──────────────────────────────────────────────────────────╮
00:34:57 v #20128 > > │ .fsx output:                                                                 │
00:34:57 v #20129 > > │ __assert_eq' / actual: "Some" / expected: "Some"                             │
00:34:57 v #20130 > > │                                                                              │
00:34:57 v #20131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:57 v #20132 > >
00:34:57 v #20133 > > ── markdown ────────────────────────────────────────────────────────────────────
00:34:57 v #20134 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:34:57 v #20135 > > │ ### nameof                                                                   │
00:34:57 v #20136 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:57 v #20137 > >
00:34:57 v #20138 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:34:57 v #20139 > > inl nameof forall t. (x : t) : string =
00:34:57 v #20140 > >     real
00:34:57 v #20141 > >         real_core.record_type_fold_back
00:34:57 v #20142 > >             fun key =>
00:34:57 v #20143 > >                 forall value. _ =>
00:34:57 v #20144 > >                     sm'_real.symbol_to_string `(`key)
00:34:57 v #20145 > >             `t
00:34:57 v #20146 > >             ""
00:34:57 v #20147 > 00:34:56 d #1112 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb6e5c780c891e23607208af365503138c722d4e1be49d29fb58a69d3c205821/main.spi
00:34:57 v #20148 > >
00:34:57 v #20149 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:34:57 v #20150 > > //// test
00:34:57 v #20151 > >
00:34:57 v #20152 > > { test1 = ""; test2 = "" }
00:34:57 v #20153 > > |> nameof
00:34:57 v #20154 > > |> _assert_eq' "test1"
00:34:57 v #20155 > 00:34:56 d #1113 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e37bdbf55cc36d7518d96e8862c4ef92eecb06e5554747828d70360631c1353/main.spi
00:34:57 v #20156 > >
00:34:57 v #20157 > > ╭─[ 449.98ms - stdout ]────────────────────────────────────────────────────────╮
00:34:57 v #20158 > > │ __assert_eq' / actual: "test1" / expected: "test1"                           │
00:34:57 v #20159 > > │                                                                              │
00:34:57 v #20160 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:57 v #20161 > >
00:34:57 v #20162 > > ── markdown ────────────────────────────────────────────────────────────────────
00:34:57 v #20163 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:34:57 v #20164 > > │ ### get_record_fields                                                        │
00:34:57 v #20165 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:57 v #20166 > >
00:34:57 v #20167 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:34:57 v #20168 > > inl get_record_fields forall t u. (x : t) : list (string * u) =
00:34:57 v #20169 > >     real
00:34:57 v #20170 > >         real_core.record_type_fold_back
00:34:57 v #20171 > >             fun key =>
00:34:57 v #20172 > >                 forall u'. acc =>
00:34:57 v #20173 > >                     inl k = sm'_real.symbol_to_string `(`key)
00:34:57 v #20174 > >                     inl v = x key
00:34:57 v #20175 > >                     (::) `(string * u') (k, v) acc
00:34:57 v #20176 > >             `t
00:34:57 v #20177 > >             (Nil `(string * u))
00:34:58 v #20178 > 00:34:57 d #1114 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f3487a29221946bf6d724b1c30ba94759869ceeaba5a6daee1655b6a99a24902/main.spi
00:34:58 v #20179 > >
00:34:58 v #20180 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:34:58 v #20181 > > //// test
00:34:58 v #20182 > >
00:34:58 v #20183 > > { a = "1"; b = "2" }
00:34:58 v #20184 > > |> get_record_fields
00:34:58 v #20185 > > |> _assert_eq' [[ "a", "1"; "b", "2" ]]
00:34:58 v #20186 > 00:34:57 d #1115 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cdfc6e3ed7d16765f92a3cc0d40c03d4ed598e2be61d25026199c4b846ad76a1/main.spi
00:34:58 v #20187 > >
00:34:58 v #20188 > > ╭─[ 466.15ms - stdout ]────────────────────────────────────────────────────────╮
00:34:58 v #20189 > > │ __assert_eq' / actual: UH0_1 ("a", "1", UH0_1 ("b", "2", UH0_0)) / expected: │
00:34:58 v #20190 > > │ UH0_1 ("a", "1", UH0_1 ("b", "2", UH0_0))                                    │
00:34:58 v #20191 > > │                                                                              │
00:34:58 v #20192 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:58 v #20193 > >
00:34:58 v #20194 > > ── markdown ────────────────────────────────────────────────────────────────────
00:34:58 v #20195 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:34:58 v #20196 > > │ ### get_functions_types                                                      │
00:34:58 v #20197 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:58 v #20198 > >
00:34:58 v #20199 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:34:58 v #20200 > > inl get_functions_types forall t {record}. (fns : t) =
00:34:58 v #20201 > >     real
00:34:58 v #20202 > >         inl get_function_type forall t. =
00:34:58 v #20203 > >             inl args forall t {record}. : list (string * string) =
00:34:58 v #20204 > >                 real_core.record_type_fold_back
00:34:58 v #20205 > >                     fun key =>
00:34:58 v #20206 > >                         forall v. acc =>
00:34:58 v #20207 > >                             inl k = sm'_real.symbol_to_string `(`key)
00:34:58 v #20208 > >                             inl v = $'"`v"' : string
00:34:58 v #20209 > >                             (::) `(string * string) (k, v) acc
00:34:58 v #20210 > >                     `t
00:34:58 v #20211 > >                     (Nil `(string * string))
00:34:58 v #20212 > >
00:34:58 v #20213 > >             typecase t with
00:34:58 v #20214 > >             | ~t -> ~u => args `t, ($'"`u"' : string)
00:34:58 v #20215 > >
00:34:58 v #20216 > >         real_core.record_type_fold_back
00:34:58 v #20217 > >             fun key =>
00:34:58 v #20218 > >                 forall v. acc =>
00:34:58 v #20219 > >                     inl k = sm'_real.symbol_to_string `(`key)
00:34:58 v #20220 > >                     inl args, result = get_function_type `v
00:34:58 v #20221 > >                     (::) `(string * (list (string * string) * string)) (k,
00:34:58 v #20222 > > (args, result)) acc
00:34:58 v #20223 > >             `(`fns)
00:34:58 v #20224 > >             (Nil `(string * (list (string * string) * string)))
00:34:58 v #20225 > >     |> fun x => x : list (string * (list (string * string) * string))
00:34:58 v #20226 > 00:34:58 d #1116 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6aadfecb8be222c42c4dcbaa00fb28b26b40bd495b954359de81ad3843f10276/main.spi
00:34:59 v #20227 > >
00:34:59 v #20228 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:34:59 v #20229 > > //// test
00:34:59 v #20230 > >
00:34:59 v #20231 > > inl one ({ a } : { a : i32 }) : i32 = a + 1
00:34:59 v #20232 > > inl two ({ a b } : { a : i32; b : i32 }) : i32 = a + b + 2
00:34:59 v #20233 > > inl fns = { one two }
00:34:59 v #20234 > >
00:34:59 v #20235 > > fns
00:34:59 v #20236 > > |> get_functions_types
00:34:59 v #20237 > > |> listm.map fun (name, args, result) => name, (args |> listm'.box |>
00:34:59 v #20238 > > listm'.to_array', result)
00:34:59 v #20239 > > |> listm'.box
00:34:59 v #20240 > > |> listm'.to_array'
00:34:59 v #20241 > > |> sm'.format
00:34:59 v #20242 > > |> _assert_eq' (
00:34:59 v #20243 > >     [[
00:34:59 v #20244 > >         "one", [["a", "int32"]], "int32"
00:34:59 v #20245 > >         "two", [["a", "int32"; "b", "int32"]], "int32"
00:34:59 v #20246 > >     ]]
00:34:59 v #20247 > >     |> listm.map fun (name, args, result) => name, (args |> listm'.box |>
00:34:59 v #20248 > > listm'.to_array', result)
00:34:59 v #20249 > >     |> listm'.box
00:34:59 v #20250 > >     |> listm'.to_array'
00:34:59 v #20251 > >     |> sm'.format
00:34:59 v #20252 > > )
00:34:59 v #20253 > 00:34:58 d #1117 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac1a79a87510745b1652f3701fb0a8228e074b3889f0e78a95f7510ac6f4193c/main.spi
00:34:59 v #20254 > >
00:34:59 v #20255 > > ╭─[ 482.93ms - stdout ]────────────────────────────────────────────────────────╮
00:34:59 v #20256 > > │ __assert_eq' / actual: "[|struct ("one", [|struct ("a", "int32")|],          │
00:34:59 v #20257 > > │ "int32");                                                                    │
00:34:59 v #20258 > > │   struct ("two", [|struct ("a", "int32"); struct ("b", "int32")|],           │
00:34:59 v #20259 > > │ "int32")|]" / expected: "[|struct ("one", [|struct ("a", "int32")|],         │
00:34:59 v #20260 > > │ "int32");                                                                    │
00:34:59 v #20261 > > │   struct ("two", [|struct ("a", "int32"); struct ("b", "int32")|],           │
00:34:59 v #20262 > > │ "int32")|]"                                                                  │
00:34:59 v #20263 > > │                                                                              │
00:34:59 v #20264 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:34:59 v #20265 > 00:01:57 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 24693 }
00:34:59 v #20266 > 00:01:57 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:35:01 v #20267 > 00:01:59 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb to html
00:35:01 v #20268 > 00:01:59 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:35:01 v #20269 > 00:01:59 v #7 !   validate(nb)
00:35:01 v #20270 > 00:02:00 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:35:01 v #20271 > 00:02:00 v #9 !   return _pygments_highlight(
00:35:02 v #20272 > 00:02:00 v #10 ! [NbConvertApp] Writing 326982 bytes to c:\home\git\polyglot\lib\spiral\reflection.dib.html
00:35:02 v #20273 > 00:02:00 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 862 }
00:35:02 v #20274 > 00:02:00 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 862 }
00:35:02 v #20275 > 00:02:00 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/reflection.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/reflection.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:35:02 v #20276 > 00:02:01 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:35:02 v #20277 > 00:02:01 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:35:03 v #20278 > 00:02:01 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 25614 }
00:35:03 d #20279 runtime.execute_with_options_async / { exit_code = 0; output_length = 29189 }
00:35:02 d #25 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path reflection.dib --retries 3
00:35:03 d #20280 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path iter.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path iter.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:35:03 v #20281 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "iter.dib", "--retries", "3"])) }
00:35:03 v #20282 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/iter.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/iter.dib" --output-path "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:35:05 v #20283 > >
00:35:05 v #20284 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:05 v #20285 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:05 v #20286 > > │ # iter                                                                       │
00:35:05 v #20287 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:08 v #20288 > >
00:35:08 v #20289 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:08 v #20290 > > open rust
00:35:08 v #20291 > > open rust_operators
00:35:09 v #20292 > 00:35:08 d #1118 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd47537238fcdc924c2a6b0a99d4f87ecbbde40a43ba8772a0907b5bf4a50e9d/main.spi
00:35:10 v #20293 > >
00:35:10 v #20294 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:10 v #20295 > > //// test
00:35:10 v #20296 > >
00:35:10 v #20297 > > open testing
00:35:10 v #20298 > 00:35:09 d #1119 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f990f43922e45080129606975ec74b3f88780cb3b27c2ae1151c776db6e5e262/main.spi
00:35:10 v #20299 > >
00:35:10 v #20300 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:10 v #20301 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:10 v #20302 > > │ ## rust                                                                      │
00:35:10 v #20303 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:10 v #20304 > >
00:35:10 v #20305 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:10 v #20306 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:10 v #20307 > > │ ### enumerate                                                                │
00:35:10 v #20308 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:10 v #20309 > >
00:35:10 v #20310 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:10 v #20311 > > inl enumerate forall t. (iter : into_iterator t) : into_iterator (pair
00:35:10 v #20312 > > unativeint t) =
00:35:10 v #20313 > >     !\($'"!iter.enumerate().map(std::sync::Arc::new)"')
00:35:10 v #20314 > 00:35:10 d #1120 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1bfbfbb53412075476d22c3851c0ca6a3da7604567c68eaaaf9c73f57851a2cf/main.spi
00:35:11 v #20315 > >
00:35:11 v #20316 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:11 v #20317 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:11 v #20318 > > │ ### into_iter                                                                │
00:35:11 v #20319 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:11 v #20320 > >
00:35:11 v #20321 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:11 v #20322 > > inl into_iter forall (t : * -> *) u. (x : t u) : into_iterator u =
00:35:11 v #20323 > >     !\($'"!x.into_iter()"')
00:35:11 v #20324 > 00:35:10 d #1121 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/406ee2ce1de1284849de6586e90fd54c3cf5865e42f3c4f8ed784cd3c670008b/main.spi
00:35:11 v #20325 > >
00:35:11 v #20326 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:11 v #20327 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:11 v #20328 > > │ ### iter                                                                     │
00:35:11 v #20329 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:11 v #20330 > >
00:35:11 v #20331 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:11 v #20332 > > inl iter forall (t : * -> *) u. (x : t u) : into_iterator u =
00:35:11 v #20333 > >     !\\(x, $'"$0.iter()"')
00:35:11 v #20334 > 00:35:11 d #1122 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aacc18e99d5ca60494a6de739afd99fcbc0b783b5747cf9055649f9de66f83fe/main.spi
00:35:12 v #20335 > >
00:35:12 v #20336 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:12 v #20337 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:12 v #20338 > > │ ### iter_ref                                                                 │
00:35:12 v #20339 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:12 v #20340 > >
00:35:12 v #20341 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:12 v #20342 > > inl iter_ref forall (t : * -> *) u. (x : t u) : into_iterator (rust.ref u) =
00:35:12 v #20343 > >     !\\(x, $'"$0.iter()"')
00:35:12 v #20344 > 00:35:11 d #1123 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c4e0678e79fca683911ee81a927a29a8689e6c5c25a6a3caa629eab2b7a4d56c/main.spi
00:35:12 v #20345 > >
00:35:12 v #20346 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:12 v #20347 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:12 v #20348 > > │ ### iter_ref'                                                                │
00:35:12 v #20349 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:12 v #20350 > >
00:35:12 v #20351 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:12 v #20352 > > inl iter_ref' forall (t : * -> *) u. (x : rust.ref (t u)) : into_iterator
00:35:12 v #20353 > > (rust.ref u) =
00:35:12 v #20354 > >     !\\(x, $'"$0.iter()"')
00:35:12 v #20355 > 00:35:11 d #1124 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ebed4fef211d38ffa301e215f960c9f82dccccde6d8161dfb4da9398af7f143d/main.spi
00:35:12 v #20356 > >
00:35:12 v #20357 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:12 v #20358 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:12 v #20359 > > │ ### iter_ref''                                                               │
00:35:12 v #20360 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:12 v #20361 > >
00:35:12 v #20362 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:12 v #20363 > > inl iter_ref'' forall (t : * -> *) u (v : * -> *). (x : v (t u)) : into_iterator
00:35:12 v #20364 > > (rust.ref u) =
00:35:12 v #20365 > >     !\\(x, $'"$0.iter()"')
00:35:13 v #20366 > 00:35:12 d #1125 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd05f9476295cb980d3fd16c6f3ecc599b7111e89f732850491d9dadb3fd9c6a/main.spi
00:35:13 v #20367 > >
00:35:13 v #20368 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:13 v #20369 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:13 v #20370 > > │ ### iter_ref'''                                                              │
00:35:13 v #20371 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:13 v #20372 > >
00:35:13 v #20373 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:13 v #20374 > > inl iter_ref''' forall (t : * -> *) u (v : * -> *) (w : * -> *). (x : w (v (t
00:35:13 v #20375 > > u))) : into_iterator (rust.ref u) =
00:35:13 v #20376 > >     !\\(x, $'"$0.iter()"')
00:35:13 v #20377 > 00:35:12 d #1126 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b69b448d14c7873a1221766678606d9e1f913388a88332355bd05e926cd3a57/main.spi
00:35:13 v #20378 > >
00:35:13 v #20379 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:13 v #20380 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:13 v #20381 > > │ ### map                                                                      │
00:35:13 v #20382 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:13 v #20383 > >
00:35:13 v #20384 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:13 v #20385 > > inl map forall t u. (fn : t -> u) (iter : into_iterator t) : into_iterator u =
00:35:13 v #20386 > >     !\\(fn, $'"!iter.map(|x| $0(x))"')
00:35:14 v #20387 > 00:35:13 d #1127 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c017317ef509ef47527383efaa3ea783d96b2177cf7886887b846a0a696a476/main.spi
00:35:14 v #20388 > >
00:35:14 v #20389 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:14 v #20390 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:14 v #20391 > > │ ### cloned                                                                   │
00:35:14 v #20392 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:14 v #20393 > >
00:35:14 v #20394 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:14 v #20395 > > inl cloned forall t. (iter : into_iterator (rust.ref t)) : into_iterator t =
00:35:14 v #20396 > >     !\($'"!iter.cloned()"')
00:35:14 v #20397 > 00:35:13 d #1128 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47df16c6a38b0670e20963e2dd10cdc744f2f96b7be1f01d6f4caf8dd0b08b56/main.spi
00:35:14 v #20398 > >
00:35:14 v #20399 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:14 v #20400 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:14 v #20401 > > │ ### for_each                                                                 │
00:35:14 v #20402 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:14 v #20403 > >
00:35:14 v #20404 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:14 v #20405 > > inl for_each forall t. (fn : t -> ()) (iter : into_iterator t) : () =
00:35:14 v #20406 > >     (!\\(fn, $'"true; !iter.for_each(|x| $0(x))"') : bool) |> ignore
00:35:14 v #20407 > 00:35:13 d #1129 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/924adafddc6e1a0a848154bbcea1155abc59ab9227a1ccb7089f45cf70559375/main.spi
00:35:14 v #20408 > >
00:35:14 v #20409 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:14 v #20410 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:14 v #20411 > > │ ### try_for_each                                                             │
00:35:14 v #20412 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:14 v #20413 > >
00:35:14 v #20414 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:14 v #20415 > > inl try_for_each forall t. (fn : t -> rust.try ()) x : resultm.result' () string
00:35:14 v #20416 > > =
00:35:14 v #20417 > >     (!\($'"true; let mut !x = !x; let _iter_try_for_each = !x.try_for_each(|x| {
00:35:14 v #20418 > > //"') : bool) |> ignore
00:35:14 v #20419 > >     (!\\(fn !\($'"x"'), $'"true; $0 }); //"') : bool) |> ignore
00:35:14 v #20420 > >     !\($'"_iter_try_for_each.map_err(|x| x.into())"')
00:35:15 v #20421 > 00:35:14 d #1130 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06b854e46edd7815e2e6415e60d5c39a21c7eb4edddc28b9d9fdd9af3bcd2b2a/main.spi
00:35:15 v #20422 > >
00:35:15 v #20423 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:15 v #20424 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:15 v #20425 > > │ ### all                                                                      │
00:35:15 v #20426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:15 v #20427 > >
00:35:15 v #20428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:15 v #20429 > > inl all forall t. (fn : t -> bool) (x : rust.mut' (into_iterator t)) : bool =
00:35:15 v #20430 > >     x |> rust.to_mut
00:35:15 v #20431 > >     !\\(fn, $'$"!x.all(|x| $0(x))"')
00:35:15 v #20432 > 00:35:14 d #1131 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6110ff2f14474325eeecc09c5d421f327fdac4045e188b3c649cf5714478c11d/main.spi
00:35:15 v #20433 > >
00:35:15 v #20434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:15 v #20435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:15 v #20436 > > │ ### enumerate                                                                │
00:35:15 v #20437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:15 v #20438 > >
00:35:15 v #20439 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:15 v #20440 > > inl enumerate forall dim {int; number} t. (ar : a dim t) : a dim (unativeint *
00:35:15 v #20441 > > t) =
00:35:15 v #20442 > >     inl (a ar) = ar
00:35:15 v #20443 > >     ar
00:35:15 v #20444 > >     |> am'.to_vec
00:35:15 v #20445 > >     |> into_iter
00:35:15 v #20446 > >     |> enumerate
00:35:15 v #20447 > >     |> iter_collect
00:35:15 v #20448 > >     |> am'.vec_map' from_pair
00:35:15 v #20449 > >     |> am'.from_vec
00:35:16 v #20450 > 00:35:15 d #1132 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c394ad704814ede5998990a8815cf3c3a9271271763883cff755f60358c0bbe0/main.spi
00:35:16 v #20451 > >
00:35:16 v #20452 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:16 v #20453 > > //// test
00:35:16 v #20454 > > ///! rust
00:35:16 v #20455 > >
00:35:16 v #20456 > > am'.init_series 0i32 2 1
00:35:16 v #20457 > > |> fun x => a x : _ int _
00:35:16 v #20458 > > |> enumerate
00:35:16 v #20459 > > |> fun (a x : _ int _) => x
00:35:16 v #20460 > > |> _assert_eq' ;[[ convert 0i32, 0; convert 1i32, 1; convert 2i32, 2 ]]
00:35:16 v #20461 > 00:35:15 d #1133 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/88570b73dbe1901912015089cc2bdb8cc97a6b7cd833a36a5d8d79454e946623/main.spi
00:35:31 v #20462 > >
00:35:31 v #20463 > > ╭─[ 15.73s - return value ]────────────────────────────────────────────────────╮
00:35:31 v #20464 > > │ __assert_eq' / actual: Array(MutCell([(0, 0), (1, 1), (2, 2)])) / expected:  │
00:35:31 v #20465 > > │ Array(MutCell([(0, 0), (1, 1), (2, 2)]))                                     │
00:35:31 v #20466 > > │                                                                              │
00:35:31 v #20467 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:32 v #20468 > 00:00:29 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 8683 }
00:35:32 v #20469 > 00:00:29 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:35:33 v #20470 > 00:00:30 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/iter.dib.ipynb to html
00:35:33 v #20471 > 00:00:30 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:35:33 v #20472 > 00:00:30 v #7 !   validate(nb)
00:35:34 v #20473 > 00:00:31 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:35:34 v #20474 > 00:00:31 v #9 !   return _pygments_highlight(
00:35:34 v #20475 > 00:00:31 v #10 ! [NbConvertApp] Writing 299004 bytes to c:\home\git\polyglot\lib\spiral\iter.dib.html
00:35:34 v #20476 > 00:00:31 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 850 }
00:35:34 v #20477 > 00:00:31 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 850 }
00:35:34 v #20478 > 00:00:31 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/iter.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/iter.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:35:35 v #20479 > 00:00:32 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:35:35 v #20480 > 00:00:32 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:35:35 v #20481 > 00:00:32 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 9592 }
00:35:35 d #20482 runtime.execute_with_options_async / { exit_code = 0; output_length = 12477 }
00:35:35 d #26 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path iter.dib --retries 3
00:35:35 d #20483 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path wasm.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path wasm.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:35:35 v #20484 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "wasm.dib", "--retries", "3"])) }
00:35:35 v #20485 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/wasm.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/wasm.dib" --output-path "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:35:37 v #20486 > >
00:35:37 v #20487 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:37 v #20488 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:37 v #20489 > > │ # wasm                                                                       │
00:35:37 v #20490 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:40 v #20491 > >
00:35:40 v #20492 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:40 v #20493 > > open rust
00:35:40 v #20494 > > open rust_operators
00:35:41 v #20495 > 00:35:40 d #1134 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd47537238fcdc924c2a6b0a99d4f87ecbbde40a43ba8772a0907b5bf4a50e9d/main.spi
00:35:42 v #20496 > >
00:35:42 v #20497 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:42 v #20498 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:42 v #20499 > > │ ### rexie                                                                    │
00:35:42 v #20500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:42 v #20501 > >
00:35:42 v #20502 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:42 v #20503 > > nominal rexie =
00:35:42 v #20504 > >     `(
00:35:42 v #20505 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:42 v #20506 > > Fable.Core.Emit(\"rexie::Rexie\")>]]\n#endif\ntype rexie_Rexie = class end"
00:35:42 v #20507 > >         $'' : $'rexie_Rexie'
00:35:42 v #20508 > >     )
00:35:42 v #20509 > 00:35:41 d #1135 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9b3f0988d95e5fc6564e8574b2b6f9da1e66bae3540dfd2fa1760f1611e0719f/main.spi
00:35:42 v #20510 > >
00:35:42 v #20511 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:42 v #20512 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:42 v #20513 > > │ ### rexie_store                                                              │
00:35:42 v #20514 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:42 v #20515 > >
00:35:42 v #20516 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:42 v #20517 > > nominal rexie_store =
00:35:42 v #20518 > >     `(
00:35:42 v #20519 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:42 v #20520 > > Fable.Core.Emit(\"rexie::Store\")>]]\n#endif\ntype rexie_Store = class end"
00:35:42 v #20521 > >         $'' : $'rexie_Store'
00:35:42 v #20522 > >     )
00:35:42 v #20523 > 00:35:41 d #1136 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a0f613c8d43920e0b233e34729a8f68c6b0bfd398ed27cedf00e78ba38e7d787/main.spi
00:35:42 v #20524 > >
00:35:42 v #20525 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:42 v #20526 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:42 v #20527 > > │ ### rexie_transaction                                                        │
00:35:42 v #20528 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:42 v #20529 > >
00:35:42 v #20530 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:42 v #20531 > > nominal rexie_transaction =
00:35:42 v #20532 > >     `(
00:35:42 v #20533 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:42 v #20534 > > Fable.Core.Emit(\"rexie::Transaction\")>]]\n#endif\ntype rexie_Transaction =
00:35:42 v #20535 > > class end"
00:35:42 v #20536 > >         $'' : $'rexie_Transaction'
00:35:42 v #20537 > >     )
00:35:43 v #20538 > 00:35:42 d #1137 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c0dbc6ff6ba51692b2e431f322ef5f68a2f64aeac394595f3541d3b53255f06a/main.spi
00:35:43 v #20539 > >
00:35:43 v #20540 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:43 v #20541 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:43 v #20542 > > │ ### rexie_error                                                              │
00:35:43 v #20543 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:43 v #20544 > >
00:35:43 v #20545 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:43 v #20546 > > nominal rexie_error =
00:35:43 v #20547 > >     `(
00:35:43 v #20548 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:43 v #20549 > > Fable.Core.Emit(\"rexie::Error\")>]]\n#endif\ntype rexie_Error = class end"
00:35:43 v #20550 > >         $'' : $'rexie_Error'
00:35:43 v #20551 > >     )
00:35:43 v #20552 > 00:35:42 d #1138 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/17f98250a768de20bec262e70f500cc70047034051338002105137e67ad3ef9e/main.spi
00:35:43 v #20553 > >
00:35:43 v #20554 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:43 v #20555 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:43 v #20556 > > │ ### js_value                                                                 │
00:35:43 v #20557 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:43 v #20558 > >
00:35:43 v #20559 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:43 v #20560 > > nominal js_value =
00:35:43 v #20561 > >     `(
00:35:43 v #20562 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:43 v #20563 > > Fable.Core.Emit(\"wasm_bindgen::JsValue\")>]]\n#endif\ntype wasm_bindgen_JsValue
00:35:43 v #20564 > > = class end"
00:35:43 v #20565 > >         $'' : $'wasm_bindgen_JsValue'
00:35:43 v #20566 > >     )
00:35:43 v #20567 > 00:35:43 d #1139 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7518691ddae4c95492efdc5df519534cd0fdad79328e88e879e1d52d14613ef9/main.spi
00:35:44 v #20568 > >
00:35:44 v #20569 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:44 v #20570 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:44 v #20571 > > │ ### closure                                                                  │
00:35:44 v #20572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:44 v #20573 > >
00:35:44 v #20574 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:44 v #20575 > > nominal closure t =
00:35:44 v #20576 > >     `(
00:35:44 v #20577 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:44 v #20578 > > Fable.Core.Emit(\"wasm_bindgen::closure::Closure<$0>\")>]]\n#endif\ntype
00:35:44 v #20579 > > wasm_bindgen_closure_Closure<'T> = class end"
00:35:44 v #20580 > >         $'' : $'wasm_bindgen_closure_Closure<`t>'
00:35:44 v #20581 > >     )
00:35:44 v #20582 > 00:35:43 d #1140 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6f22d2ced8166f491871792eb520fdc4090035f86fb606a844ed6157520ecb72/main.spi
00:35:44 v #20583 > >
00:35:44 v #20584 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:44 v #20585 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:44 v #20586 > > │ ### js_function                                                              │
00:35:44 v #20587 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:44 v #20588 > >
00:35:44 v #20589 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:44 v #20590 > > nominal js_function =
00:35:44 v #20591 > >     `(
00:35:44 v #20592 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:44 v #20593 > > Fable.Core.Emit(\"js_sys::Function\")>]]\n#endif\ntype js_sys_Function = class
00:35:44 v #20594 > > end"
00:35:44 v #20595 > >         $'' : $'js_sys_Function'
00:35:44 v #20596 > >     )
00:35:44 v #20597 > 00:35:43 d #1141 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/edd58bd98168e208751ae416b813b48e218beee8951271d0d4b484829d451af3/main.spi
00:35:44 v #20598 > >
00:35:44 v #20599 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:44 v #20600 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:44 v #20601 > > │ ### window                                                                   │
00:35:44 v #20602 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:44 v #20603 > >
00:35:44 v #20604 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:44 v #20605 > > nominal window =
00:35:44 v #20606 > >     `(
00:35:44 v #20607 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:44 v #20608 > > Fable.Core.Emit(\"web_sys::Window\")>]]\n#endif\ntype web_sys_Window = class
00:35:44 v #20609 > > end"
00:35:44 v #20610 > >         $'' : $'web_sys_Window'
00:35:44 v #20611 > >     )
00:35:45 v #20612 > 00:35:44 d #1142 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e607b4fd0a26049f76303b365aa696051c52a16c859fa124584c8138cc73bb2a/main.spi
00:35:45 v #20613 > >
00:35:45 v #20614 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:45 v #20615 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:45 v #20616 > > │ ### document                                                                 │
00:35:45 v #20617 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:45 v #20618 > >
00:35:45 v #20619 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:45 v #20620 > > nominal document =
00:35:45 v #20621 > >     `(
00:35:45 v #20622 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:45 v #20623 > > Fable.Core.Emit(\"web_sys::Document\")>]]\n#endif\ntype web_sys_Document = class
00:35:45 v #20624 > > end"
00:35:45 v #20625 > >         $'' : $'web_sys_Document'
00:35:45 v #20626 > >     )
00:35:45 v #20627 > 00:35:44 d #1143 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00e330ce825b95c436bb07267039e76726e3b5a2906fa5d93bdc7bcaedddff41/main.spi
00:35:45 v #20628 > >
00:35:45 v #20629 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:45 v #20630 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:45 v #20631 > > │ ### html_element                                                             │
00:35:45 v #20632 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:45 v #20633 > >
00:35:45 v #20634 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:45 v #20635 > > nominal html_element =
00:35:45 v #20636 > >     `(
00:35:45 v #20637 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:45 v #20638 > > Fable.Core.Emit(\"web_sys::HtmlElement\")>]]\n#endif\ntype web_sys_HtmlElement =
00:35:45 v #20639 > > class end"
00:35:45 v #20640 > >         $'' : $'web_sys_HtmlElement'
00:35:45 v #20641 > >     )
00:35:45 v #20642 > 00:35:45 d #1144 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f680cc15339ba7b465371ceb0c5aef41af4b64a8da9fece14a6bc77e22eafcb4/main.spi
00:35:46 v #20643 > >
00:35:46 v #20644 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:46 v #20645 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:46 v #20646 > > │ ### storage                                                                  │
00:35:46 v #20647 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:46 v #20648 > >
00:35:46 v #20649 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:46 v #20650 > > nominal storage =
00:35:46 v #20651 > >     `(
00:35:46 v #20652 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:46 v #20653 > > Fable.Core.Emit(\"web_sys::Storage\")>]]\n#endif\ntype web_sys_Storage = class
00:35:46 v #20654 > > end"
00:35:46 v #20655 > >         $'' : $'web_sys_Storage'
00:35:46 v #20656 > >     )
00:35:46 v #20657 > 00:35:45 d #1145 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/664c9b75cb2af4cac8ee7cc576966986450cb60e10bcfb8782ac9471ab2f1201/main.spi
00:35:46 v #20658 > >
00:35:46 v #20659 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:46 v #20660 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:46 v #20661 > > │ ### closure_wrap                                                             │
00:35:46 v #20662 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:46 v #20663 > >
00:35:46 v #20664 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:46 v #20665 > > inl closure_wrap forall t. (x : rust.box t) : closure t =
00:35:46 v #20666 > >     inl x = join x
00:35:46 v #20667 > >     !\($'"wasm_bindgen::closure::Closure::wrap(!x)"')
00:35:46 v #20668 > 00:35:45 d #1146 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a89cdd7f10eb486d81fa2597ad5bd890d9538bb4fc3478f94bc0d10628979434/main.spi
00:35:46 v #20669 > >
00:35:46 v #20670 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:46 v #20671 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:46 v #20672 > > │ ### closure_forget                                                           │
00:35:46 v #20673 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:46 v #20674 > >
00:35:46 v #20675 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:46 v #20676 > > inl closure_forget forall t. (closure : closure t) =
00:35:46 v #20677 > >     !\($'"!closure.forget()"') : ()
00:35:47 v #20678 > 00:35:46 d #1147 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55416f6ba2aac90e7feda837d1f595c23fb0c8719ad46685c70170ef6df2de09/main.spi
00:35:47 v #20679 > >
00:35:47 v #20680 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:47 v #20681 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:47 v #20682 > > │ ### closure_as_ref                                                           │
00:35:47 v #20683 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:47 v #20684 > >
00:35:47 v #20685 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:47 v #20686 > > inl closure_as_ref forall t. (closure : closure t) : rust.ref js_value =
00:35:47 v #20687 > >     !\($'"wasm_bindgen::closure::Closure::as_ref(&!closure)"')
00:35:47 v #20688 > 00:35:46 d #1148 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54e10a84bcba14940f3aa8bad5e251b5c2eda33bb48e3b74e73145478351d0df/main.spi
00:35:47 v #20689 > >
00:35:47 v #20690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:47 v #20691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:47 v #20692 > > │ ### unchecked_ref                                                            │
00:35:47 v #20693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:47 v #20694 > >
00:35:47 v #20695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:47 v #20696 > > inl unchecked_ref (ref : rust.ref js_value) : rust.ref js_function =
00:35:47 v #20697 > >     !\($'"wasm_bindgen::JsCast::unchecked_ref(!ref)"')
00:35:47 v #20698 > 00:35:47 d #1149 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d1a0435f41bab6d7193a49f6ac0f6ceef0d20e48ec483a2c02990c97da6dfed/main.spi
00:35:48 v #20699 > >
00:35:48 v #20700 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:48 v #20701 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:48 v #20702 > > │ ### set_inner_html                                                           │
00:35:48 v #20703 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:48 v #20704 > >
00:35:48 v #20705 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:48 v #20706 > > inl set_inner_html (html : string) (el : html_element) =
00:35:48 v #20707 > >     inl html = join html
00:35:48 v #20708 > >     inl html = html |> sm'.as_str
00:35:48 v #20709 > >     inl el = join el
00:35:48 v #20710 > >     !\\(html, $'"!el.set_inner_html($0)"')
00:35:48 v #20711 > 00:35:47 d #1150 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6fc306e9eb8259b1d968b57c75613b720d3eb9c3f8e40fd72357ec2135fbcb04/main.spi
00:35:48 v #20712 > >
00:35:48 v #20713 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:48 v #20714 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:48 v #20715 > > │ ### from_js_value                                                            │
00:35:48 v #20716 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:48 v #20717 > >
00:35:48 v #20718 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:48 v #20719 > > inl from_js_value (value : js_value) : resultm.result' (optionm'.option'
00:35:48 v #20720 > > sm'.json_value) sm'.std_string =
00:35:48 v #20721 > >     inl value = join value
00:35:48 v #20722 > >     !\($'"serde_wasm_bindgen::from_value(!value)"')
00:35:48 v #20723 > >     |> resultm.map_error' fun (x : sm'.serde_wasm_bindgen_error) => x |>
00:35:48 v #20724 > > sm'.format'
00:35:48 v #20725 > 00:35:47 d #1151 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8a772e3985d7e2501d47c8b18a1958ab3f6348c290441157b63b9331fded3cbd/main.spi
00:35:49 v #20726 > 00:00:13 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 10635 }
00:35:49 v #20727 > 00:00:13 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:35:50 v #20728 > 00:00:15 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb to html
00:35:50 v #20729 > 00:00:15 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:35:50 v #20730 > 00:00:15 v #7 !   validate(nb)
00:35:51 v #20731 > 00:00:16 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:35:51 v #20732 > 00:00:16 v #9 !   return _pygments_highlight(
00:35:51 v #20733 > 00:00:16 v #10 ! [NbConvertApp] Writing 302376 bytes to c:\home\git\polyglot\lib\spiral\wasm.dib.html
00:35:51 v #20734 > 00:00:16 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 850 }
00:35:51 v #20735 > 00:00:16 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 850 }
00:35:51 v #20736 > 00:00:16 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/wasm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/wasm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:35:52 v #20737 > 00:00:16 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:35:52 v #20738 > 00:00:16 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:35:52 v #20739 > 00:00:16 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 11544 }
00:35:52 d #20740 runtime.execute_with_options_async / { exit_code = 0; output_length = 14537 }
00:35:52 d #27 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path wasm.dib --retries 3
00:35:52 d #20741 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path leptos/leptos.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path leptos/leptos.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:35:52 v #20742 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "leptos/leptos.dib", "--retries", "3"])) }
00:35:52 v #20743 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib" --output-path "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:35:54 v #20744 > >
00:35:54 v #20745 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:54 v #20746 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:54 v #20747 > > │ # leptos                                                                     │
00:35:54 v #20748 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:57 v #20749 > >
00:35:57 v #20750 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:57 v #20751 > > open rust.rust_operators
00:35:57 v #20752 > > open rust
00:35:57 v #20753 > > open sm'_operators
00:35:58 v #20754 > 00:35:57 d #1152 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97c3b504fa1f560fdc0258569742b97a5f05d5b6377297ae83d67ca590b45d34/main.spi
00:35:58 v #20755 > >
00:35:58 v #20756 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:58 v #20757 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:58 v #20758 > > │ ### a'                                                                       │
00:35:58 v #20759 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:58 v #20760 > >
00:35:58 v #20761 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:58 v #20762 > > nominal a' =
00:35:58 v #20763 > >     `(
00:35:58 v #20764 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:58 v #20765 > > Fable.Core.Emit(\"leptos::html::A\")>]]\n#endif\ntype leptos_html_A = class end"
00:35:58 v #20766 > >         $'' : $'leptos_html_A'
00:35:58 v #20767 > >     )
00:35:59 v #20768 > 00:35:58 d #1153 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e6abe4a012940134873721b1b2b98602a66856ad8c2fc89e23d4aa52e64ecfe2/main.spi
00:35:59 v #20769 > >
00:35:59 v #20770 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:59 v #20771 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:59 v #20772 > > │ ### event                                                                    │
00:35:59 v #20773 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:59 v #20774 > >
00:35:59 v #20775 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:59 v #20776 > > nominal event =
00:35:59 v #20777 > >     `(
00:35:59 v #20778 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:59 v #20779 > > Fable.Core.Emit(\"leptos::ev::Event\")>]]\n#endif\ntype leptos_ev_Event = class
00:35:59 v #20780 > > end"
00:35:59 v #20781 > >         $'' : $'leptos_ev_Event'
00:35:59 v #20782 > >     )
00:35:59 v #20783 > 00:35:58 d #1154 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/434ce3e7c0b50f456ac0ee53c7ea8008a1a96f87d4d5f5a10aaaab14ea91fb01/main.spi
00:35:59 v #20784 > >
00:35:59 v #20785 > > ── markdown ────────────────────────────────────────────────────────────────────
00:35:59 v #20786 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:35:59 v #20787 > > │ ### mouse_event                                                              │
00:35:59 v #20788 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:35:59 v #20789 > >
00:35:59 v #20790 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:35:59 v #20791 > > nominal mouse_event =
00:35:59 v #20792 > >     `(
00:35:59 v #20793 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:35:59 v #20794 > > Fable.Core.Emit(\"leptos::ev::MouseEvent\")>]]\n#endif\ntype
00:35:59 v #20795 > > leptos_ev_MouseEvent = class end"
00:35:59 v #20796 > >         $'' : $'leptos_ev_MouseEvent'
00:35:59 v #20797 > >     )
00:35:59 v #20798 > 00:35:59 d #1155 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/56672743673583a2f0038275bff208bb6db40523ae344162287d1caa62d05319/main.spi
00:36:00 v #20799 > >
00:36:00 v #20800 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:00 v #20801 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:00 v #20802 > > │ ### button                                                                   │
00:36:00 v #20803 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:00 v #20804 > >
00:36:00 v #20805 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:00 v #20806 > > nominal button =
00:36:00 v #20807 > >     `(
00:36:00 v #20808 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:00 v #20809 > > Fable.Core.Emit(\"leptos::html::Button\")>]]\n#endif\ntype leptos_html_Button =
00:36:00 v #20810 > > class end"
00:36:00 v #20811 > >         $'' : $'leptos_html_Button'
00:36:00 v #20812 > >     )
00:36:00 v #20813 > 00:35:59 d #1156 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5dc44485d0ad3e305354c28730e808edb7025b849e8ea506bb448d67bc6686da/main.spi
00:36:00 v #20814 > >
00:36:00 v #20815 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:00 v #20816 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:00 v #20817 > > │ ### details                                                                  │
00:36:00 v #20818 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:00 v #20819 > >
00:36:00 v #20820 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:00 v #20821 > > nominal details =
00:36:00 v #20822 > >     `(
00:36:00 v #20823 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:00 v #20824 > > Fable.Core.Emit(\"leptos::html::Details\")>]]\n#endif\ntype leptos_html_Details
00:36:00 v #20825 > > = class end"
00:36:00 v #20826 > >         $'' : $'leptos_html_Details'
00:36:00 v #20827 > >     )
00:36:00 v #20828 > 00:35:59 d #1157 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5f9d42e7ce0d244ba8d153dede86b1f7b45d478d330b4618d6659740b24f90a2/main.spi
00:36:00 v #20829 > >
00:36:00 v #20830 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:00 v #20831 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:00 v #20832 > > │ ### dd                                                                       │
00:36:00 v #20833 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:00 v #20834 > >
00:36:00 v #20835 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:00 v #20836 > > nominal dd =
00:36:00 v #20837 > >     `(
00:36:00 v #20838 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:00 v #20839 > > Fable.Core.Emit(\"leptos::html::Dd\")>]]\n#endif\ntype leptos_html_Dd = class
00:36:00 v #20840 > > end"
00:36:00 v #20841 > >         $'' : $'leptos_html_Dd'
00:36:00 v #20842 > >     )
00:36:01 v #20843 > 00:36:00 d #1158 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36e05d776509eae34615bd6fee7667005b59df01c71459d8f6446670a5420c36/main.spi
00:36:01 v #20844 > >
00:36:01 v #20845 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:01 v #20846 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:01 v #20847 > > │ ### div                                                                      │
00:36:01 v #20848 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:01 v #20849 > >
00:36:01 v #20850 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:01 v #20851 > > nominal div =
00:36:01 v #20852 > >     `(
00:36:01 v #20853 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:01 v #20854 > > Fable.Core.Emit(\"leptos::html::Div\")>]]\n#endif\ntype leptos_html_Div = class
00:36:01 v #20855 > > end"
00:36:01 v #20856 > >         $'' : $'leptos_html_Div'
00:36:01 v #20857 > >     )
00:36:01 v #20858 > 00:36:00 d #1159 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ea9ca609df2761d1a8ded87dfe9aec9bc7c86abaa5ed101ed379ed4e7609b315/main.spi
00:36:01 v #20859 > >
00:36:01 v #20860 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:01 v #20861 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:01 v #20862 > > │ ### dl                                                                       │
00:36:01 v #20863 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:01 v #20864 > >
00:36:01 v #20865 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:01 v #20866 > > nominal dl =
00:36:01 v #20867 > >     `(
00:36:01 v #20868 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:01 v #20869 > > Fable.Core.Emit(\"leptos::html::Dl\")>]]\n#endif\ntype leptos_html_Dl = class
00:36:01 v #20870 > > end"
00:36:01 v #20871 > >         $'' : $'leptos_html_Dl'
00:36:01 v #20872 > >     )
00:36:02 v #20873 > 00:36:01 d #1160 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7ecf082f46db4dfb8a58b9fa92735ce18ecd1d47810c41b1aa7441d6d3648eb4/main.spi
00:36:02 v #20874 > >
00:36:02 v #20875 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:02 v #20876 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:02 v #20877 > > │ ### dt                                                                       │
00:36:02 v #20878 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:02 v #20879 > >
00:36:02 v #20880 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:02 v #20881 > > nominal dt =
00:36:02 v #20882 > >     `(
00:36:02 v #20883 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:02 v #20884 > > Fable.Core.Emit(\"leptos::html::Dt\")>]]\n#endif\ntype leptos_html_Dt = class
00:36:02 v #20885 > > end"
00:36:02 v #20886 > >         $'' : $'leptos_html_Dt'
00:36:02 v #20887 > >     )
00:36:02 v #20888 > 00:36:01 d #1161 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a23751ade04fb8e6d5a51963d043d9d996a2af7a2029cc33655df768aa741ae/main.spi
00:36:02 v #20889 > >
00:36:02 v #20890 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:02 v #20891 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:02 v #20892 > > │ ### footer                                                                   │
00:36:02 v #20893 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:02 v #20894 > >
00:36:02 v #20895 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:02 v #20896 > > nominal footer =
00:36:02 v #20897 > >     `(
00:36:02 v #20898 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:02 v #20899 > > Fable.Core.Emit(\"leptos::html::Footer\")>]]\n#endif\ntype leptos_html_Footer =
00:36:02 v #20900 > > class end"
00:36:02 v #20901 > >         $'' : $'leptos_html_Footer'
00:36:02 v #20902 > >     )
00:36:02 v #20903 > 00:36:02 d #1162 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d7d81e5369600d9fc7898a85c3ca3e4e280e7ed7da3939eb11800e8bb81dc4ad/main.spi
00:36:03 v #20904 > >
00:36:03 v #20905 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:03 v #20906 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:03 v #20907 > > │ ### header                                                                   │
00:36:03 v #20908 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:03 v #20909 > >
00:36:03 v #20910 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:03 v #20911 > > nominal header =
00:36:03 v #20912 > >     `(
00:36:03 v #20913 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:03 v #20914 > > Fable.Core.Emit(\"leptos::html::Header\")>]]\n#endif\ntype leptos_html_Header =
00:36:03 v #20915 > > class end"
00:36:03 v #20916 > >         $'' : $'leptos_html_Header'
00:36:03 v #20917 > >     )
00:36:03 v #20918 > 00:36:02 d #1163 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/886033ecedb58fadfda1225cebc35bd43c150fe6330367443300c6e8bcbda511/main.spi
00:36:03 v #20919 > >
00:36:03 v #20920 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:03 v #20921 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:03 v #20922 > > │ ### input                                                                    │
00:36:03 v #20923 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:03 v #20924 > >
00:36:03 v #20925 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:03 v #20926 > > nominal input =
00:36:03 v #20927 > >     `(
00:36:03 v #20928 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:03 v #20929 > > Fable.Core.Emit(\"leptos::html::Input\")>]]\n#endif\ntype leptos_html_Input =
00:36:03 v #20930 > > class end"
00:36:03 v #20931 > >         $'' : $'leptos_html_Input'
00:36:03 v #20932 > >     )
00:36:03 v #20933 > 00:36:02 d #1164 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/655c98aad3de6b218dac7911c1795936bb7294c933611e49844bca3f907a4013/main.spi
00:36:03 v #20934 > >
00:36:03 v #20935 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:03 v #20936 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:03 v #20937 > > │ ### label                                                                    │
00:36:03 v #20938 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:03 v #20939 > >
00:36:03 v #20940 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:03 v #20941 > > nominal label =
00:36:03 v #20942 > >     `(
00:36:03 v #20943 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:03 v #20944 > > Fable.Core.Emit(\"leptos::html::Label\")>]]\n#endif\ntype leptos_html_Label =
00:36:03 v #20945 > > class end"
00:36:03 v #20946 > >         $'' : $'leptos_html_Label'
00:36:03 v #20947 > >     )
00:36:04 v #20948 > 00:36:03 d #1165 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/52cbaf96d00c8398e121f825799f227d13469e8e1015083d22d74fd0cb898645/main.spi
00:36:04 v #20949 > >
00:36:04 v #20950 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:04 v #20951 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:04 v #20952 > > │ ### main                                                                     │
00:36:04 v #20953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:04 v #20954 > >
00:36:04 v #20955 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:04 v #20956 > > nominal main =
00:36:04 v #20957 > >     `(
00:36:04 v #20958 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:04 v #20959 > > Fable.Core.Emit(\"leptos::html::Main\")>]]\n#endif\ntype leptos_html_Main =
00:36:04 v #20960 > > class end"
00:36:04 v #20961 > >         $'' : $'leptos_html_Main'
00:36:04 v #20962 > >     )
00:36:04 v #20963 > 00:36:03 d #1166 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7dff43698b01046a50ded48414442f52f37c953ddc6e7042207062e7ba73ffd8/main.spi
00:36:04 v #20964 > >
00:36:04 v #20965 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:04 v #20966 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:04 v #20967 > > │ ### nav                                                                      │
00:36:04 v #20968 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:04 v #20969 > >
00:36:04 v #20970 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:04 v #20971 > > nominal nav =
00:36:04 v #20972 > >     `(
00:36:04 v #20973 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:04 v #20974 > > Fable.Core.Emit(\"leptos::html::Nav\")>]]\n#endif\ntype leptos_html_Nav = class
00:36:04 v #20975 > > end"
00:36:04 v #20976 > >         $'' : $'leptos_html_Nav'
00:36:04 v #20977 > >     )
00:36:04 v #20978 > 00:36:04 d #1167 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a50c8634f9c55b861688ab13009d5436db51579688f251079a148f81021c42e1/main.spi
00:36:05 v #20979 > >
00:36:05 v #20980 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:05 v #20981 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:05 v #20982 > > │ ### option'                                                                  │
00:36:05 v #20983 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:05 v #20984 > >
00:36:05 v #20985 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:05 v #20986 > > nominal option' =
00:36:05 v #20987 > >     `(
00:36:05 v #20988 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:05 v #20989 > > Fable.Core.Emit(\"leptos::html::Option_\")>]]\n#endif\ntype leptos_html_Option =
00:36:05 v #20990 > > class end"
00:36:05 v #20991 > >         $'' : $'leptos_html_Option'
00:36:05 v #20992 > >     )
00:36:05 v #20993 > 00:36:04 d #1168 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44eb148798f9c789eb98f155452c940f14547281660e5a5b883b5e7192586cf0/main.spi
00:36:05 v #20994 > >
00:36:05 v #20995 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:05 v #20996 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:05 v #20997 > > │ ### pre                                                                      │
00:36:05 v #20998 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:05 v #20999 > >
00:36:05 v #21000 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:05 v #21001 > > nominal pre =
00:36:05 v #21002 > >     `(
00:36:05 v #21003 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:05 v #21004 > > Fable.Core.Emit(\"leptos::html::Pre\")>]]\n#endif\ntype leptos_html_Pre = class
00:36:05 v #21005 > > end"
00:36:05 v #21006 > >         $'' : $'leptos_html_Pre'
00:36:05 v #21007 > >     )
00:36:05 v #21008 > 00:36:04 d #1169 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6e6ebe2f76756f98728e6e2a5848c70c3bc65fef9bcf84495b4f979814be298c/main.spi
00:36:05 v #21009 > >
00:36:05 v #21010 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:05 v #21011 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:05 v #21012 > > │ ### select                                                                   │
00:36:05 v #21013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:05 v #21014 > >
00:36:05 v #21015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:05 v #21016 > > nominal select =
00:36:05 v #21017 > >     `(
00:36:05 v #21018 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:05 v #21019 > > Fable.Core.Emit(\"leptos::html::Select\")>]]\n#endif\ntype leptos_html_Select =
00:36:05 v #21020 > > class end"
00:36:05 v #21021 > >         $'' : $'leptos_html_Select'
00:36:05 v #21022 > >     )
00:36:06 v #21023 > 00:36:05 d #1170 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/37030649c58077752f40f7144dd365be6eaca9e45ee03eba6f638c287882ae5a/main.spi
00:36:06 v #21024 > >
00:36:06 v #21025 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:06 v #21026 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:06 v #21027 > > │ ### span                                                                     │
00:36:06 v #21028 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:06 v #21029 > >
00:36:06 v #21030 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:06 v #21031 > > nominal span =
00:36:06 v #21032 > >     `(
00:36:06 v #21033 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:06 v #21034 > > Fable.Core.Emit(\"leptos::html::Span\")>]]\n#endif\ntype leptos_html_Span =
00:36:06 v #21035 > > class end"
00:36:06 v #21036 > >         $'' : $'leptos_html_Span'
00:36:06 v #21037 > >     )
00:36:06 v #21038 > 00:36:05 d #1171 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/52769fffd3f4fd505b07ded5654694a1b2c1e2bebe751a7364c6064f33c43208/main.spi
00:36:06 v #21039 > >
00:36:06 v #21040 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:06 v #21041 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:06 v #21042 > > │ ### summary                                                                  │
00:36:06 v #21043 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:06 v #21044 > >
00:36:06 v #21045 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:06 v #21046 > > nominal summary =
00:36:06 v #21047 > >     `(
00:36:06 v #21048 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:06 v #21049 > > Fable.Core.Emit(\"leptos::html::Summary\")>]]\n#endif\ntype leptos_html_Summary
00:36:06 v #21050 > > = class end"
00:36:06 v #21051 > >         $'' : $'leptos_html_Summary'
00:36:06 v #21052 > >     )
00:36:06 v #21053 > 00:36:06 d #1172 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/831c01e906276ade4c7231e0d349bbb163aeda29f4f3b4bfaf8d9bb44c8add26/main.spi
00:36:07 v #21054 > >
00:36:07 v #21055 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:07 v #21056 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:07 v #21057 > > │ ### table                                                                    │
00:36:07 v #21058 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:07 v #21059 > >
00:36:07 v #21060 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:07 v #21061 > > nominal table =
00:36:07 v #21062 > >     `(
00:36:07 v #21063 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:07 v #21064 > > Fable.Core.Emit(\"leptos::html::Table\")>]]\n#endif\ntype leptos_html_Table =
00:36:07 v #21065 > > class end"
00:36:07 v #21066 > >         $'' : $'leptos_html_Table'
00:36:07 v #21067 > >     )
00:36:07 v #21068 > 00:36:06 d #1173 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9c587470de1612895e8e47921f64bf3646fcf560679f0e56eb706ccd8306aea6/main.spi
00:36:07 v #21069 > >
00:36:07 v #21070 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:07 v #21071 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:07 v #21072 > > │ ### thead                                                                    │
00:36:07 v #21073 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:07 v #21074 > >
00:36:07 v #21075 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:07 v #21076 > > nominal thead =
00:36:07 v #21077 > >     `(
00:36:07 v #21078 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:07 v #21079 > > Fable.Core.Emit(\"leptos::html::Thead\")>]]\n#endif\ntype leptos_html_Thead =
00:36:07 v #21080 > > class end"
00:36:07 v #21081 > >         $'' : $'leptos_html_Thead'
00:36:07 v #21082 > >     )
00:36:07 v #21083 > 00:36:06 d #1174 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a3e3710f9006399212888bf54f01006996d9f1c0c1af9eb5fea40295d1422e0f/main.spi
00:36:07 v #21084 > >
00:36:07 v #21085 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:07 v #21086 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:07 v #21087 > > │ ### tbody                                                                    │
00:36:07 v #21088 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:07 v #21089 > >
00:36:07 v #21090 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:07 v #21091 > > nominal tbody =
00:36:07 v #21092 > >     `(
00:36:07 v #21093 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:07 v #21094 > > Fable.Core.Emit(\"leptos::html::Tbody\")>]]\n#endif\ntype leptos_html_Tbody =
00:36:07 v #21095 > > class end"
00:36:07 v #21096 > >         $'' : $'leptos_html_Tbody'
00:36:07 v #21097 > >     )
00:36:08 v #21098 > 00:36:07 d #1175 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5f722e368aa731e17d8ecebae666d26c1c7e24ec0d1e597bdbeabce3d7537822/main.spi
00:36:08 v #21099 > >
00:36:08 v #21100 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:08 v #21101 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:08 v #21102 > > │ ### tr                                                                       │
00:36:08 v #21103 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:08 v #21104 > >
00:36:08 v #21105 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:08 v #21106 > > nominal tr =
00:36:08 v #21107 > >     `(
00:36:08 v #21108 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:08 v #21109 > > Fable.Core.Emit(\"leptos::html::Tr\")>]]\n#endif\ntype leptos_html_Tr = class
00:36:08 v #21110 > > end"
00:36:08 v #21111 > >         $'' : $'leptos_html_Tr'
00:36:08 v #21112 > >     )
00:36:08 v #21113 > 00:36:07 d #1176 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4e4924f14cbecd2b7ef5100f71a4c5be0bf1e26f86bf5569dfbe8b3b6a8e3bf8/main.spi
00:36:08 v #21114 > >
00:36:08 v #21115 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:08 v #21116 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:08 v #21117 > > │ ### th                                                                       │
00:36:08 v #21118 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:08 v #21119 > >
00:36:08 v #21120 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:08 v #21121 > > nominal th =
00:36:08 v #21122 > >     `(
00:36:08 v #21123 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:08 v #21124 > > Fable.Core.Emit(\"leptos::html::Th\")>]]\n#endif\ntype leptos_html_Th = class
00:36:08 v #21125 > > end"
00:36:08 v #21126 > >         $'' : $'leptos_html_Th'
00:36:08 v #21127 > >     )
00:36:08 v #21128 > 00:36:08 d #1177 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aab5d391889e62833a5ed6189fbf65ffda1bf8849e742626b38077e0e007a350/main.spi
00:36:09 v #21129 > >
00:36:09 v #21130 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:09 v #21131 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:09 v #21132 > > │ ### td                                                                       │
00:36:09 v #21133 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:09 v #21134 > >
00:36:09 v #21135 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:09 v #21136 > > nominal td =
00:36:09 v #21137 > >     `(
00:36:09 v #21138 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:09 v #21139 > > Fable.Core.Emit(\"leptos::html::Td\")>]]\n#endif\ntype leptos_html_Td = class
00:36:09 v #21140 > > end"
00:36:09 v #21141 > >         $'' : $'leptos_html_Td'
00:36:09 v #21142 > >     )
00:36:09 v #21143 > 00:36:08 d #1178 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6218f4fbf15e0da93a48b5936e70d5335683c5a3376553f44c2622062458efee/main.spi
00:36:09 v #21144 > >
00:36:09 v #21145 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:09 v #21146 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:09 v #21147 > > │ ### svg                                                                      │
00:36:09 v #21148 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:09 v #21149 > >
00:36:09 v #21150 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:09 v #21151 > > nominal svg =
00:36:09 v #21152 > >     `(
00:36:09 v #21153 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:09 v #21154 > > Fable.Core.Emit(\"leptos::svg::Svg\")>]]\n#endif\ntype leptos_svg_Svg = class
00:36:09 v #21155 > > end"
00:36:09 v #21156 > >         $'' : $'leptos_svg_Svg'
00:36:09 v #21157 > >     )
00:36:09 v #21158 > 00:36:09 d #1179 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db9bf7cf5ed561af3ddd312a785bc8c8d42913b0daf1537bec4385e20c1051ca/main.spi
00:36:10 v #21159 > >
00:36:10 v #21160 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:10 v #21161 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:10 v #21162 > > │ ### path                                                                     │
00:36:10 v #21163 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:10 v #21164 > >
00:36:10 v #21165 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:10 v #21166 > > nominal path =
00:36:10 v #21167 > >     `(
00:36:10 v #21168 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:10 v #21169 > > Fable.Core.Emit(\"leptos::svg::Path\")>]]\n#endif\ntype leptos_svg_Path = class
00:36:10 v #21170 > > end"
00:36:10 v #21171 > >         $'' : $'leptos_svg_Path'
00:36:10 v #21172 > >     )
00:36:10 v #21173 > 00:36:09 d #1180 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d836d1a547006cf726a50eda620960dc98e1d06e73c7483170a1d6327c78b521/main.spi
00:36:10 v #21174 > >
00:36:10 v #21175 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:10 v #21176 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:10 v #21177 > > │ ### circle                                                                   │
00:36:10 v #21178 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:10 v #21179 > >
00:36:10 v #21180 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:10 v #21181 > > nominal circle =
00:36:10 v #21182 > >     `(
00:36:10 v #21183 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:10 v #21184 > > Fable.Core.Emit(\"leptos::svg::Circle\")>]]\n#endif\ntype leptos_svg_Circle =
00:36:10 v #21185 > > class end"
00:36:10 v #21186 > >         $'' : $'leptos_svg_Circle'
00:36:10 v #21187 > >     )
00:36:10 v #21188 > 00:36:09 d #1181 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19ae491ca2874923e370b79d9d2f6845e702f29dfc904727085d18aec246f352/main.spi
00:36:10 v #21189 > >
00:36:10 v #21190 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:10 v #21191 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:10 v #21192 > > │ ### rect                                                                     │
00:36:10 v #21193 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:10 v #21194 > >
00:36:10 v #21195 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:10 v #21196 > > nominal rect =
00:36:10 v #21197 > >     `(
00:36:10 v #21198 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:10 v #21199 > > Fable.Core.Emit(\"leptos::svg::Rect\")>]]\n#endif\ntype leptos_svg_Rect = class
00:36:10 v #21200 > > end"
00:36:10 v #21201 > >         $'' : $'leptos_svg_Rect'
00:36:10 v #21202 > >     )
00:36:11 v #21203 > 00:36:10 d #1182 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11c524822b1e1f1502f8dce0af5d802a17af46fbbf6fee40ab3046b4f33503bb/main.spi
00:36:11 v #21204 > >
00:36:11 v #21205 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:11 v #21206 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:11 v #21207 > > │ ### animate                                                                  │
00:36:11 v #21208 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:11 v #21209 > >
00:36:11 v #21210 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:11 v #21211 > > nominal animate =
00:36:11 v #21212 > >     `(
00:36:11 v #21213 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:11 v #21214 > > Fable.Core.Emit(\"leptos::svg::Animate\")>]]\n#endif\ntype leptos_svg_Animate =
00:36:11 v #21215 > > class end"
00:36:11 v #21216 > >         $'' : $'leptos_svg_Animate'
00:36:11 v #21217 > >     )
00:36:11 v #21218 > 00:36:10 d #1183 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a445147c3a16dc9cc0de6712665deb20ae75bb6330feb1fc32ea18f8e56a6c0a/main.spi
00:36:11 v #21219 > >
00:36:11 v #21220 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:11 v #21221 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:11 v #21222 > > │ ### action                                                                   │
00:36:11 v #21223 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:11 v #21224 > >
00:36:11 v #21225 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:11 v #21226 > > nominal action t u =
00:36:11 v #21227 > >     `(
00:36:11 v #21228 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:11 v #21229 > > Fable.Core.Emit(\"leptos::prelude::Action<$0, $1>\")>]]\n#endif\ntype
00:36:11 v #21230 > > leptos_prelude_Action<'T, 'U> = class end"
00:36:11 v #21231 > >         $'' : $'leptos_prelude_Action<`t, `u>'
00:36:11 v #21232 > >     )
00:36:11 v #21233 > 00:36:11 d #1184 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fc0c4c6cc8ba93f86918fd9f7350ddb9ea19aba564f6e2dc5bc1436be08d822a/main.spi
00:36:12 v #21234 > >
00:36:12 v #21235 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:12 v #21236 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:12 v #21237 > > │ ### for                                                                      │
00:36:12 v #21238 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:12 v #21239 > >
00:36:12 v #21240 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:12 v #21241 > > nominal for =
00:36:12 v #21242 > >     `(
00:36:12 v #21243 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:12 v #21244 > > Fable.Core.Emit(\"leptos::prelude::For\")>]]\n#endif\ntype leptos_prelude_For =
00:36:12 v #21245 > > class end"
00:36:12 v #21246 > >         $'' : $'leptos_prelude_For'
00:36:12 v #21247 > >     )
00:36:12 v #21248 > 00:36:11 d #1185 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/88094862ea8661abdb8f024ba6b5f56ba143e3335a444b2ee3f60461e1fcf21a/main.spi
00:36:12 v #21249 > >
00:36:12 v #21250 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:12 v #21251 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:12 v #21252 > > │ ### show                                                                     │
00:36:12 v #21253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:12 v #21254 > >
00:36:12 v #21255 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:12 v #21256 > > nominal show =
00:36:12 v #21257 > >     `(
00:36:12 v #21258 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:12 v #21259 > > Fable.Core.Emit(\"leptos::prelude::Show\")>]]\n#endif\ntype leptos_prelude_Show
00:36:12 v #21260 > > = class end"
00:36:12 v #21261 > >         $'' : $'leptos_prelude_Show'
00:36:12 v #21262 > >     )
00:36:12 v #21263 > 00:36:12 d #1186 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/93954edfa868ae8e033009e32d30b9ee89c7fa036acd532f932d9035183f2a11/main.spi
00:36:13 v #21264 > >
00:36:13 v #21265 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:13 v #21266 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:13 v #21267 > > │ ### fragment                                                                 │
00:36:13 v #21268 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:13 v #21269 > >
00:36:13 v #21270 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:13 v #21271 > > nominal fragment =
00:36:13 v #21272 > >     `(
00:36:13 v #21273 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:13 v #21274 > > Fable.Core.Emit(\"leptos::Fragment\")>]]\n#endif\ntype leptos_dom_Fragment =
00:36:13 v #21275 > > class end"
00:36:13 v #21276 > >         $'' : $'leptos_dom_Fragment'
00:36:13 v #21277 > >     )
00:36:13 v #21278 > 00:36:12 d #1187 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54c14b452b9ace7d1d44cdc9010c31bda41a5a1f4adf4bde9add2d4898cb6f1c/main.spi
00:36:13 v #21279 > >
00:36:13 v #21280 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:13 v #21281 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:13 v #21282 > > │ ### interval_handle                                                          │
00:36:13 v #21283 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:13 v #21284 > >
00:36:13 v #21285 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:13 v #21286 > > nominal interval_handle =
00:36:13 v #21287 > >     `(
00:36:13 v #21288 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:13 v #21289 > > Fable.Core.Emit(\"leptos::leptos_dom::helpers::IntervalHandle\")>]]\n#endif\ntyp
00:36:13 v #21290 > > e leptos_dom_IntervalHandle = class end"
00:36:13 v #21291 > >         $'' : $'leptos_dom_IntervalHandle'
00:36:13 v #21292 > >     )
00:36:13 v #21293 > 00:36:12 d #1188 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0829f3905c6142eb22bf2467cef215eb48fce3f9da24e0125d755517df1dac1d/main.spi
00:36:13 v #21294 > >
00:36:13 v #21295 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:13 v #21296 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:13 v #21297 > > │ ### text                                                                     │
00:36:13 v #21298 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:13 v #21299 > >
00:36:13 v #21300 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:13 v #21301 > > nominal text =
00:36:13 v #21302 > >     `(
00:36:13 v #21303 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:13 v #21304 > > Fable.Core.Emit(\"leptos::svg::Text\")>]]\n#endif\ntype leptos_svg_Text = class
00:36:13 v #21305 > > end"
00:36:13 v #21306 > >         $'' : $'leptos_svg_Text'
00:36:13 v #21307 > >     )
00:36:14 v #21308 > 00:36:13 d #1189 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/22dd7de5fcc1254d79fc942cb2bcb9afa5111a0ee9caa48d4258fcdea2c04869/main.spi
00:36:14 v #21309 > >
00:36:14 v #21310 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:14 v #21311 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:14 v #21312 > > │ ### transparent                                                              │
00:36:14 v #21313 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:14 v #21314 > >
00:36:14 v #21315 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:14 v #21316 > > nominal transparent =
00:36:14 v #21317 > >     `(
00:36:14 v #21318 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:14 v #21319 > > Fable.Core.Emit(\"leptos::leptos_dom::Transparent\")>]]\n#endif\ntype
00:36:14 v #21320 > > leptos_dom_Transparent = class end"
00:36:14 v #21321 > >         $'' : $'leptos_dom_Transparent'
00:36:14 v #21322 > >     )
00:36:14 v #21323 > 00:36:13 d #1190 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e438b6adb16b8a6cbbab2caef61489401a91c0dc5688a9f98a26158e734ca72a/main.spi
00:36:14 v #21324 > >
00:36:14 v #21325 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:14 v #21326 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:14 v #21327 > > │ ### route                                                                    │
00:36:14 v #21328 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:14 v #21329 > >
00:36:14 v #21330 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:14 v #21331 > > nominal route =
00:36:14 v #21332 > >     `(
00:36:14 v #21333 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:14 v #21334 > > Fable.Core.Emit(\"leptos_router::Route\")>]]\n#endif\ntype leptos_router_Route =
00:36:14 v #21335 > > class end"
00:36:14 v #21336 > >         $'' : $'leptos_router_Route'
00:36:14 v #21337 > >     )
00:36:14 v #21338 > 00:36:14 d #1191 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7003f6fe99af9e4f138e1fe53bfce4d504c3b3a0077d94dac20e2bad3750801e/main.spi
00:36:15 v #21339 > >
00:36:15 v #21340 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:15 v #21341 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:15 v #21342 > > │ ### route_definition                                                         │
00:36:15 v #21343 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:15 v #21344 > >
00:36:15 v #21345 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:15 v #21346 > > nominal route_definition =
00:36:15 v #21347 > >     `(
00:36:15 v #21348 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:15 v #21349 > > Fable.Core.Emit(\"leptos_router::RouteDefinition\")>]]\n#endif\ntype
00:36:15 v #21350 > > leptos_router_RouteDefinition = class end"
00:36:15 v #21351 > >         $'' : $'leptos_router_RouteDefinition'
00:36:15 v #21352 > >     )
00:36:15 v #21353 > 00:36:14 d #1192 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5f840d7eafeb13d9e233ba8b8a53041e188f114f80991bcda2c70bfef178ee21/main.spi
00:36:15 v #21354 > >
00:36:15 v #21355 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:15 v #21356 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:15 v #21357 > > │ ### router                                                                   │
00:36:15 v #21358 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:15 v #21359 > >
00:36:15 v #21360 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:15 v #21361 > > nominal router =
00:36:15 v #21362 > >     `(
00:36:15 v #21363 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:15 v #21364 > > Fable.Core.Emit(\"leptos_router::Router\")>]]\n#endif\ntype leptos_router_Router
00:36:15 v #21365 > > = class end"
00:36:15 v #21366 > >         $'' : $'leptos_router_Router'
00:36:15 v #21367 > >     )
00:36:15 v #21368 > 00:36:15 d #1193 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ded4774d566eb6ecfaa712f9fbe030a6b56c237bdb473e8aa01030cff9c65020/main.spi
00:36:16 v #21369 > >
00:36:16 v #21370 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:16 v #21371 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:16 v #21372 > > │ ### routes                                                                   │
00:36:16 v #21373 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:16 v #21374 > >
00:36:16 v #21375 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:16 v #21376 > > nominal routes =
00:36:16 v #21377 > >     `(
00:36:16 v #21378 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:16 v #21379 > > Fable.Core.Emit(\"leptos_router::Routes\")>]]\n#endif\ntype leptos_router_Routes
00:36:16 v #21380 > > = class end"
00:36:16 v #21381 > >         $'' : $'leptos_router_Routes'
00:36:16 v #21382 > >     )
00:36:16 v #21383 > 00:36:15 d #1194 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92ce9b0cff040080e4da153aa6d87f0362977de9258d12a352b02bc1341d6f7a/main.spi
00:36:16 v #21384 > >
00:36:16 v #21385 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:16 v #21386 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:16 v #21387 > > │ ### html_element                                                             │
00:36:16 v #21388 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:16 v #21389 > >
00:36:16 v #21390 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:16 v #21391 > > nominal html_element t =
00:36:16 v #21392 > >     `(
00:36:16 v #21393 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:16 v #21394 > > Fable.Core.Emit(\"leptos_dom::html::HtmlElement<$0>\")>]]\n#endif\ntype
00:36:16 v #21395 > > leptos_dom_html_HtmlElement<'T> = class end"
00:36:16 v #21396 > >         $'' : $'leptos_dom_html_HtmlElement<`t>'
00:36:16 v #21397 > >     )
00:36:16 v #21398 > 00:36:15 d #1195 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/34d4c2544704c5fe3be9206f0bed91356896553e1bf872aac1bbd82921d17167/main.spi
00:36:16 v #21399 > >
00:36:16 v #21400 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:16 v #21401 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:16 v #21402 > > │ ### into_view                                                                │
00:36:16 v #21403 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:16 v #21404 > >
00:36:16 v #21405 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:16 v #21406 > > nominal into_view =
00:36:16 v #21407 > >     `(
00:36:16 v #21408 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:16 v #21409 > > Fable.Core.Emit(\"leptos::IntoView\")>]]\n#endif\ntype leptos_IntoView = class
00:36:16 v #21410 > > end"
00:36:16 v #21411 > >         $'' : $'leptos_IntoView'
00:36:16 v #21412 > >     )
00:36:17 v #21413 > 00:36:16 d #1196 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7de6c49fd105bcef79f01dddca338eb841c6b38c7568db8a0a508550acb95742/main.spi
00:36:17 v #21414 > >
00:36:17 v #21415 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:17 v #21416 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:17 v #21417 > > │ ### location                                                                 │
00:36:17 v #21418 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:17 v #21419 > >
00:36:17 v #21420 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:17 v #21421 > > nominal location =
00:36:17 v #21422 > >     `(
00:36:17 v #21423 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:17 v #21424 > > Fable.Core.Emit(\"leptos_router::location::Location\")>]]\n#endif\ntype
00:36:17 v #21425 > > leptos_router_location_Location = class end"
00:36:17 v #21426 > >         $'' : $'leptos_router_location_Location'
00:36:17 v #21427 > >     )
00:36:17 v #21428 > 00:36:16 d #1197 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/72a16a08f082dc2e5fb3ae1dc15e71bd221d910266ea35045eefb315e9baf378/main.spi
00:36:17 v #21429 > >
00:36:17 v #21430 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:17 v #21431 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:17 v #21432 > > │ ### navigate_options                                                         │
00:36:17 v #21433 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:17 v #21434 > >
00:36:17 v #21435 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:17 v #21436 > > nominal navigate_options =
00:36:17 v #21437 > >     `(
00:36:17 v #21438 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:17 v #21439 > > Fable.Core.Emit(\"leptos_router::NavigateOptions\")>]]\n#endif\ntype
00:36:17 v #21440 > > leptos_router_NavigateOptions = class end"
00:36:17 v #21441 > >         $'' : $'leptos_router_NavigateOptions'
00:36:17 v #21442 > >     )
00:36:17 v #21443 > 00:36:17 d #1198 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b7b7d945eb4e7631a08f3d7c07aa507b7d90f0c8d49d3359cf8bb10cf939a9fa/main.spi
00:36:18 v #21444 > >
00:36:18 v #21445 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:18 v #21446 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:18 v #21447 > > │ ### url                                                                      │
00:36:18 v #21448 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:18 v #21449 > >
00:36:18 v #21450 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:18 v #21451 > > nominal url =
00:36:18 v #21452 > >     `(
00:36:18 v #21453 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:18 v #21454 > > Fable.Core.Emit(\"leptos_router::location::Url\")>]]\n#endif\ntype
00:36:18 v #21455 > > leptos_router_Url = class end"
00:36:18 v #21456 > >         $'' : $'leptos_router_Url'
00:36:18 v #21457 > >     )
00:36:18 v #21458 > 00:36:17 d #1199 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19f6b684392dd1b65b43449b727641ece3e111ec1268a3df62fae3618b03c6df/main.spi
00:36:18 v #21459 > >
00:36:18 v #21460 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:18 v #21461 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:18 v #21462 > > │ ### memo                                                                     │
00:36:18 v #21463 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:18 v #21464 > >
00:36:18 v #21465 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:18 v #21466 > > nominal memo t =
00:36:18 v #21467 > >     `(
00:36:18 v #21468 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:18 v #21469 > > Fable.Core.Emit(\"leptos::prelude::Memo<$0>\")>]]\n#endif\ntype
00:36:18 v #21470 > > leptos_prelude_Memo<'T> = class end"
00:36:18 v #21471 > >         $'' : $'leptos_prelude_Memo<`t>'
00:36:18 v #21472 > >     )
00:36:18 v #21473 > 00:36:17 d #1200 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7dcf9d9cbb045f3132637a5778b6d9689c207bcb0b512c62aad6a36dbe098c0f/main.spi
00:36:18 v #21474 > >
00:36:18 v #21475 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:18 v #21476 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:18 v #21477 > > │ ### rw_signal                                                                │
00:36:18 v #21478 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:18 v #21479 > >
00:36:18 v #21480 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:18 v #21481 > > nominal rw_signal t =
00:36:18 v #21482 > >     `(
00:36:18 v #21483 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:18 v #21484 > > Fable.Core.Emit(\"leptos::prelude::RwSignal<$0>\")>]]\n#endif\ntype
00:36:18 v #21485 > > leptos_prelude_RwSignal<'T> = class end"
00:36:18 v #21486 > >         $'' : $'leptos_prelude_RwSignal<`t>'
00:36:18 v #21487 > >     )
00:36:18 v #21488 > 00:36:18 d #1201 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5d91f1f638665cdd17704303726747708b54ab78c799938503677e2a31d5792/main.spi
00:36:19 v #21489 > >
00:36:19 v #21490 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:19 v #21491 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:19 v #21492 > > │ ### signal                                                                   │
00:36:19 v #21493 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:19 v #21494 > >
00:36:19 v #21495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:19 v #21496 > > nominal signal t =
00:36:19 v #21497 > >     `(
00:36:19 v #21498 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:19 v #21499 > > Fable.Core.Emit(\"leptos::prelude::Signal<$0>\")>]]\n#endif\ntype
00:36:19 v #21500 > > leptos_prelude_Signal<'T> = class end"
00:36:19 v #21501 > >         $'' : $'leptos_prelude_Signal<`t>'
00:36:19 v #21502 > >     )
00:36:19 v #21503 > 00:36:18 d #1202 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/939ffac946a7649b260f1f7981ffa1d5e7251f1b551b2d11f6c067ddbbf91398/main.spi
00:36:19 v #21504 > >
00:36:19 v #21505 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:19 v #21506 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:19 v #21507 > > │ ### read_signal                                                              │
00:36:19 v #21508 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:19 v #21509 > >
00:36:19 v #21510 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:19 v #21511 > > nominal read_signal t =
00:36:19 v #21512 > >     `(
00:36:19 v #21513 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:19 v #21514 > > Fable.Core.Emit(\"leptos::prelude::ReadSignal<$0>\")>]]\n#endif\ntype
00:36:19 v #21515 > > leptos_prelude_ReadSignal<'T> = class end"
00:36:19 v #21516 > >         $'' : $'leptos_prelude_ReadSignal<`t>'
00:36:19 v #21517 > >     )
00:36:19 v #21518 > 00:36:19 d #1203 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a7524224da0964d601edfe2142c2ac47f32fcdbba93df5feceabd2c6678a138c/main.spi
00:36:20 v #21519 > >
00:36:20 v #21520 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:20 v #21521 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:20 v #21522 > > │ ### write_signal                                                             │
00:36:20 v #21523 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:20 v #21524 > >
00:36:20 v #21525 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:20 v #21526 > > nominal write_signal t =
00:36:20 v #21527 > >     `(
00:36:20 v #21528 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:20 v #21529 > > Fable.Core.Emit(\"leptos::prelude::WriteSignal<$0>\")>]]\n#endif\ntype
00:36:20 v #21530 > > leptos_prelude_WriteSignal<'T> = class end"
00:36:20 v #21531 > >         $'' : $'leptos_prelude_WriteSignal<`t>'
00:36:20 v #21532 > >     )
00:36:20 v #21533 > 00:36:19 d #1204 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/642e0249fe821b3bd8df3a3f5e6b07bc84667be8dba8db74e9124ca4d09b9dd6/main.spi
00:36:20 v #21534 > >
00:36:20 v #21535 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:20 v #21536 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:20 v #21537 > > │ ### resource                                                                 │
00:36:20 v #21538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:20 v #21539 > >
00:36:20 v #21540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:20 v #21541 > > nominal resource t u =
00:36:20 v #21542 > >     `(
00:36:20 v #21543 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:20 v #21544 > > Fable.Core.Emit(\"leptos::prelude::Resource<$0, $1>\")>]]\n#endif\ntype
00:36:20 v #21545 > > leptos_prelude_Resource<'T, 'U> = class end"
00:36:20 v #21546 > >         $'' : $'leptos_prelude_Resource<`t, `u>'
00:36:20 v #21547 > >     )
00:36:20 v #21548 > 00:36:19 d #1205 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c8d7904759ddff704f88b6282d6c10722bbd2960a3c571bb21c809bc07f9580/main.spi
00:36:20 v #21549 > >
00:36:20 v #21550 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:20 v #21551 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:20 v #21552 > > │ ### view                                                                     │
00:36:20 v #21553 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:20 v #21554 > >
00:36:20 v #21555 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:20 v #21556 > > nominal view =
00:36:20 v #21557 > >     `(
00:36:20 v #21558 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:36:20 v #21559 > > Fable.Core.Emit(\"leptos::prelude::View<_>\")>]]\n#endif\ntype
00:36:20 v #21560 > > leptos_prelude_View = class end"
00:36:20 v #21561 > >         $'' : $'leptos_prelude_View'
00:36:20 v #21562 > >     )
00:36:21 v #21563 > 00:36:20 d #1206 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/920247574a80960f34bdd46ae2d01ad8ace8d12f0eebdfbb455b61a4258fa76e/main.spi
00:36:21 v #21564 > >
00:36:21 v #21565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:21 v #21566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:21 v #21567 > > │ ### signal_get                                                               │
00:36:21 v #21568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:21 v #21569 > >
00:36:21 v #21570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:21 v #21571 > > prototype signal_get signal t : signal t -> t
00:36:21 v #21572 > 00:36:20 d #1207 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc769b6828e88a53c194a13589f1b83aec7f3a9b54bef6a88d30eb1821476957/main.spi
00:36:21 v #21573 > >
00:36:21 v #21574 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:21 v #21575 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:21 v #21576 > > │ ### signal_get_untracked                                                     │
00:36:21 v #21577 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:21 v #21578 > >
00:36:21 v #21579 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:21 v #21580 > > prototype signal_get_untracked signal t : signal t -> t
00:36:21 v #21581 > 00:36:21 d #1208 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1538a4fe70626c0c74757e33ea072fa660061b75f201c646bc86d2b2bcb59438/main.spi
00:36:22 v #21582 > >
00:36:22 v #21583 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:22 v #21584 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:22 v #21585 > > │ ### signal_update                                                            │
00:36:22 v #21586 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:22 v #21587 > >
00:36:22 v #21588 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:22 v #21589 > > prototype signal_update signal t : (t -> t) -> signal t -> ()
00:36:22 v #21590 > 00:36:21 d #1209 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19f4f6458d6aa503b469b8d3cf1b41e6627dbef4120f13a37d0a3db8bb0f4044/main.spi
00:36:22 v #21591 > >
00:36:22 v #21592 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:22 v #21593 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:22 v #21594 > > │ ### signal_set                                                               │
00:36:22 v #21595 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:22 v #21596 > >
00:36:22 v #21597 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:22 v #21598 > > prototype signal_set signal t : t -> signal t -> ()
00:36:22 v #21599 > 00:36:21 d #1210 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92cf966cd50acc12772b16ec5c73ecc78526bd6d0a79670fb51aec7cb53e9d92/main.spi
00:36:22 v #21600 > >
00:36:22 v #21601 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:22 v #21602 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:22 v #21603 > > │ ### log_string                                                               │
00:36:22 v #21604 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:22 v #21605 > >
00:36:22 v #21606 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:22 v #21607 > > inl log_string (text : string) =
00:36:22 v #21608 > >     (!\($'@@"true; leptos::logging::log\!(""" + !text + @@""");"') : bool) |>
00:36:22 v #21609 > > ignore
00:36:23 v #21610 > 00:36:22 d #1211 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/941dfb9c0ea375044c62c8afb3138e1869b1b991810a23ace447b83d7d9d5524/main.spi
00:36:23 v #21611 > >
00:36:23 v #21612 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:23 v #21613 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:23 v #21614 > > │ ### log                                                                      │
00:36:23 v #21615 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:23 v #21616 > >
00:36:23 v #21617 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:23 v #21618 > > inl log (text : string) =
00:36:23 v #21619 > >     (!\\(text, $'@@$"true; leptos::logging::log\!(""{{}}"", $0)"') : bool) |>
00:36:23 v #21620 > > ignore
00:36:23 v #21621 > 00:36:22 d #1212 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f8d19f6b53e2fce12174e91b968688445e9c25a00389cb9eba09ba84b8182fa4/main.spi
00:36:23 v #21622 > >
00:36:23 v #21623 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:23 v #21624 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:23 v #21625 > > │ ### log_debug                                                                │
00:36:23 v #21626 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:23 v #21627 > >
00:36:23 v #21628 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:23 v #21629 > > inl log_debug (text : string) =
00:36:23 v #21630 > >     (!\\(text, $'@@$"true; leptos::logging::log\!(""{{:?}}"", $0)"') : bool) |>
00:36:23 v #21631 > > ignore
00:36:23 v #21632 > 00:36:23 d #1213 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d919c057682ef7ab513a2d5917fdaf8fb83edf2f3be5317377c70d39020c2a30/main.spi
00:36:24 v #21633 > >
00:36:24 v #21634 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:24 v #21635 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:24 v #21636 > > │ ### log_pretty                                                               │
00:36:24 v #21637 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:24 v #21638 > >
00:36:24 v #21639 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:24 v #21640 > > inl log_pretty (text : string) =
00:36:24 v #21641 > >     (!\\(text, $'@@$"true; leptos::logging::log\!(""{{:#?}}"", $0)"') : bool) |>
00:36:24 v #21642 > > ignore
00:36:24 v #21643 > 00:36:23 d #1214 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e8a69d8e51fc040d4ddf88f82619a66fcdb37d25271bd752af1c6d6f97693d0/main.spi
00:36:24 v #21644 > >
00:36:24 v #21645 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:24 v #21646 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:24 v #21647 > > │ ### log_format                                                               │
00:36:24 v #21648 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:24 v #21649 > >
00:36:24 v #21650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:24 v #21651 > > inl log_format fn obj =
00:36:24 v #21652 > >     inl obj_log = obj |> sm'.format_debug
00:36:24 v #21653 > >     inl text = fn obj_log |> sm'.ellipsis_end 200
00:36:24 v #21654 > >     log text
00:36:24 v #21655 > >     obj
00:36:24 v #21656 > 00:36:23 d #1215 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1bf38c7e9ce83614ec8b573e50a1a1ebb0e3b5d70bbc677de2e24acdbc54e9e/main.spi
00:36:24 v #21657 > >
00:36:24 v #21658 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:24 v #21659 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:24 v #21660 > > │ ### mount_to_body                                                            │
00:36:24 v #21661 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:24 v #21662 > >
00:36:24 v #21663 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:24 v #21664 > > inl mount_to_body (view_fn : () -> rust.impl into_view) : () =
00:36:24 v #21665 > >     (!\\(view_fn, $'"true; leptos::prelude::mount_to_body(|| $0());"') : bool)
00:36:24 v #21666 > > |> ignore
00:36:25 v #21667 > 00:36:24 d #1216 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15d370ad90c1fc59aace0755089f8d794fedf386e36a7a3ee85390be3afac9bb/main.spi
00:36:25 v #21668 > >
00:36:25 v #21669 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:25 v #21670 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:25 v #21671 > > │ ### view_vec_to_fragment                                                     │
00:36:25 v #21672 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:25 v #21673 > >
00:36:25 v #21674 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:25 v #21675 > > inl view_vec_to_fragment (view : am'.vec view) : fragment =
00:36:25 v #21676 > >     !\\(view, $'"leptos::leptos_dom::Fragment::new($0)"')
00:36:25 v #21677 > 00:36:24 d #1217 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec6be843169d6b0500b79e6b52c9a7f82b25632e4c7aa9f7bb80554f0cb1c8c4/main.spi
00:36:25 v #21678 > >
00:36:25 v #21679 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:25 v #21680 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:25 v #21681 > > │ ### view_array_to_fragment                                                   │
00:36:25 v #21682 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:25 v #21683 > >
00:36:25 v #21684 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:25 v #21685 > > inl view_array_to_fragment (view : array_base view) : fragment =
00:36:25 v #21686 > >     view |> am'.to_vec |> view_vec_to_fragment
00:36:25 v #21687 > 00:36:25 d #1218 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/411897e258a2bcf70a52b20ddac0a3aeff820a1b4d70b3d622d7de45df6d2cd5/main.spi
00:36:26 v #21688 > >
00:36:26 v #21689 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:26 v #21690 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:26 v #21691 > > │ ### element_to_view                                                          │
00:36:26 v #21692 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:26 v #21693 > >
00:36:26 v #21694 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:26 v #21695 > > inl element_to_view (view : html_element _) : view =
00:36:26 v #21696 > >     !\\(view, $'"leptos::IntoView::into_view($0)"')
00:36:26 v #21697 > 00:36:25 d #1219 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e40f0b68e1da64f5e42f86c44dfa3f79c25a24caf173d4d3a43e78ac7b2b44b/main.spi
00:36:26 v #21698 > >
00:36:26 v #21699 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:26 v #21700 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:26 v #21701 > > │ ### view_to_fragment                                                         │
00:36:26 v #21702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:26 v #21703 > >
00:36:26 v #21704 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:26 v #21705 > > inl view_to_fragment (view : view) : fragment =
00:36:26 v #21706 > >     ;[[view]] |> view_array_to_fragment
00:36:26 v #21707 > 00:36:25 d #1220 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/66c5786a19f753b5dfb814d6c9cadac216f6bbd7476b344445d2ab63ffb194f1/main.spi
00:36:26 v #21708 > >
00:36:26 v #21709 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:26 v #21710 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:26 v #21711 > > │ ### fragment_to_view                                                         │
00:36:26 v #21712 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:26 v #21713 > >
00:36:26 v #21714 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:26 v #21715 > > inl fragment_to_view (fragment : fragment) : view =
00:36:26 v #21716 > >     !\\(fragment, $'"leptos::IntoView::into_view($0)"')
00:36:27 v #21717 > 00:36:26 d #1221 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68da82a7670bd09248008808151cee03556d4f3e43bc904ba5cc353484fd2ab4/main.spi
00:36:27 v #21718 > >
00:36:27 v #21719 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:27 v #21720 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:27 v #21721 > > │ ### element_to_fragment                                                      │
00:36:27 v #21722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:27 v #21723 > >
00:36:27 v #21724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:27 v #21725 > > inl element_to_fragment (view : html_element _) : fragment =
00:36:27 v #21726 > >     view
00:36:27 v #21727 > >     |> element_to_view
00:36:27 v #21728 > >     |> view_to_fragment
00:36:27 v #21729 > 00:36:26 d #1222 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55ac0c9fb8efa643435e185a8b9d72ce2e711a7747440c7fc1040e0f8d08645b/main.spi
00:36:27 v #21730 > >
00:36:27 v #21731 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:27 v #21732 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:27 v #21733 > > │ ### (~:>) fragment                                                           │
00:36:27 v #21734 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:27 v #21735 > >
00:36:27 v #21736 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:27 v #21737 > > instance (~:>) fragment = fun x =>
00:36:27 v #21738 > >     real
00:36:27 v #21739 > >         typecase t with
00:36:27 v #21740 > >         | array_base (html_element ~el) =>
00:36:27 v #21741 > >             inl x = am'.to_vec `(html_element el) x
00:36:27 v #21742 > >             inl x = am'.vec_map' `(html_element el) `view (element_to_view `el)
00:36:27 v #21743 > > x
00:36:27 v #21744 > >             inl x : a i32 view = am'.from_vec `i32 `view x
00:36:27 v #21745 > >             inl (a x) = x
00:36:27 v #21746 > >             view_array_to_fragment x
00:36:27 v #21747 > >         | array_base view => view_array_to_fragment x
00:36:27 v #21748 > >         | _ => x
00:36:27 v #21749 > 00:36:27 d #1223 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e4f141f6bbed84941419d6d6a6bb3a724f1b8d9efdcb4f29b9ffed421a792174/main.spi
00:36:28 v #21750 > >
00:36:28 v #21751 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:28 v #21752 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:28 v #21753 > > │ ### (~:>) view                                                               │
00:36:28 v #21754 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:28 v #21755 > >
00:36:28 v #21756 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:28 v #21757 > > instance (~:>) view = fun x =>
00:36:28 v #21758 > >     real
00:36:28 v #21759 > >         typecase t with
00:36:28 v #21760 > >         | html_element _ => element_to_view x
00:36:28 v #21761 > >         | _ => x
00:36:28 v #21762 > 00:36:27 d #1224 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4090a0428b0245b5ba63fefbf783f082f65c7eaa8a31ad08911e4bf9732bd792/main.spi
00:36:28 v #21763 > >
00:36:28 v #21764 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:28 v #21765 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:28 v #21766 > > │ ### view_trait_to_element                                                    │
00:36:28 v #21767 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:28 v #21768 > >
00:36:28 v #21769 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:28 v #21770 > > inl view_trait_to_element (view : rust.impl into_view) : html_element _ =
00:36:28 v #21771 > >     $'!view |> unbox'
00:36:28 v #21772 > 00:36:27 d #1225 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a102240486623a1bc691ebb7a3eabeb15cde8900292f4b34ec35223fab60657f/main.spi
00:36:28 v #21773 > >
00:36:28 v #21774 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:28 v #21775 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:28 v #21776 > > │ ### view_trait_to_route_definition                                           │
00:36:28 v #21777 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:28 v #21778 > >
00:36:28 v #21779 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:28 v #21780 > > inl view_trait_to_route_definition (view : rust.impl into_view) :
00:36:28 v #21781 > > route_definition =
00:36:28 v #21782 > >     $'!view |> unbox'
00:36:29 v #21783 > 00:36:28 d #1226 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a5665d471b2c12357514e48e9117dbf02271170c9d153f167a9f5821c41af9e9/main.spi
00:36:29 v #21784 > >
00:36:29 v #21785 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:29 v #21786 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:29 v #21787 > > │ ### to_element_view                                                          │
00:36:29 v #21788 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:29 v #21789 > >
00:36:29 v #21790 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:29 v #21791 > > inl to_element_view (view : html_element _) : rust.impl into_view =
00:36:29 v #21792 > >     $'!view |> unbox'
00:36:29 v #21793 > 00:36:28 d #1227 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/91d094467f718f621c049e24ef76ac81cf78ad704d274969866ed15a72ea0fe9/main.spi
00:36:29 v #21794 > >
00:36:29 v #21795 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:29 v #21796 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:29 v #21797 > > │ ### to_view_trait                                                            │
00:36:29 v #21798 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:29 v #21799 > >
00:36:29 v #21800 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:29 v #21801 > > inl to_view_trait (view : view) : rust.impl into_view =
00:36:29 v #21802 > >     $'!view |> unbox'
00:36:30 v #21803 > 00:36:29 d #1228 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42ba96ad32cdd9da774377263493b2c8b968ccdafde5f2d1989184974c4c2cde/main.spi
00:36:30 v #21804 > >
00:36:30 v #21805 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:30 v #21806 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:30 v #21807 > > │ ### to_fragment_unbox                                                        │
00:36:30 v #21808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:30 v #21809 > >
00:36:30 v #21810 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:30 v #21811 > > inl to_fragment_unbox view : fragment =
00:36:30 v #21812 > >     $'!view |> unbox'
00:36:30 v #21813 > 00:36:29 d #1229 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4aa3df58a54e4bf8a3878084c21c4646fcec53b00ee4991a8a5774cb445208a4/main.spi
00:36:30 v #21814 > >
00:36:30 v #21815 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:30 v #21816 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:30 v #21817 > > │ ### from_fragment_unbox                                                      │
00:36:30 v #21818 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:30 v #21819 > >
00:36:30 v #21820 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:30 v #21821 > > inl from_fragment_unbox (fragment : fragment) =
00:36:30 v #21822 > >     $'!fragment |> unbox'
00:36:30 v #21823 > 00:36:30 d #1230 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90c3b8ab742c7ac71200f2fdda3e737a344641b5b04092e4dd42303d9cccdf3f/main.spi
00:36:30 v #21824 > >
00:36:30 v #21825 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:30 v #21826 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:30 v #21827 > > │ ### element_to_view_trait                                                    │
00:36:30 v #21828 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:30 v #21829 > >
00:36:30 v #21830 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:30 v #21831 > > inl element_to_view_trait (macro : html_element _) : rust.impl into_view =
00:36:30 v #21832 > >     !\($'"leptos::prelude::view\! { {!macro} }"')
00:36:31 v #21833 > 00:36:30 d #1231 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2630096027647ed33c98c158f5222fb9e0681f8f71c017e650388bc9484d97a3/main.spi
00:36:31 v #21834 > >
00:36:31 v #21835 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:31 v #21836 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:31 v #21837 > > │ ### macro_to_view_trait                                                      │
00:36:31 v #21838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:31 v #21839 > >
00:36:31 v #21840 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:31 v #21841 > > inl macro_to_view_trait (macro : string) : rust.impl into_view =
00:36:31 v #21842 > >     !\($'"leptos::prelude::view\! { " + !macro + " }"')
00:36:31 v #21843 > 00:36:30 d #1232 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/270c5c5c636b839df1d5eda29b93be0c648ec4ae666bce3a2248d6d1b93cd4ff/main.spi
00:36:31 v #21844 > >
00:36:31 v #21845 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:31 v #21846 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:31 v #21847 > > │ ### macro_to_fragment                                                        │
00:36:31 v #21848 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:31 v #21849 > >
00:36:31 v #21850 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:31 v #21851 > > inl macro_to_fragment (macro : string) : fragment =
00:36:31 v #21852 > >     !\($'"leptos::prelude::view\! { " + !macro + " }"')
00:36:31 v #21853 > 00:36:31 d #1233 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b78359929f774b42b029d212f1c15c95f7a96cf62776c93c34e8496f4b9f667d/main.spi
00:36:32 v #21854 > >
00:36:32 v #21855 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:32 v #21856 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:32 v #21857 > > │ ### new_transparent                                                          │
00:36:32 v #21858 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:32 v #21859 > >
00:36:32 v #21860 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:32 v #21861 > > inl new_transparent x : transparent =
00:36:32 v #21862 > >     !\\(x, $'"leptos::leptos_dom::Transparent::new($0)"')
00:36:32 v #21863 > 00:36:31 d #1234 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e71e56895b80641024511f030985e8ee54bfc6e326f90abfd735679614da3a5e/main.spi
00:36:32 v #21864 > >
00:36:32 v #21865 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:32 v #21866 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:32 v #21867 > > │ ### closure_to_view                                                          │
00:36:32 v #21868 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:32 v #21869 > >
00:36:32 v #21870 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:32 v #21871 > > inl closure_to_view (closure : rust.func0 view) : view =
00:36:32 v #21872 > >     !\\(closure, $'"leptos::IntoView::into_view(move || $0())"')
00:36:32 v #21873 > 00:36:31 d #1235 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/427359b461e1c4f3fc3676ddbe423520d49ff42b95da6dc02af316fa5ec37b2e/main.spi
00:36:32 v #21874 > >
00:36:32 v #21875 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:32 v #21876 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:32 v #21877 > > │ ### batch                                                                    │
00:36:32 v #21878 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:32 v #21879 > >
00:36:32 v #21880 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:32 v #21881 > > inl batch (fn : () -> ()) : () =
00:36:32 v #21882 > >     (!\\(fn, $'"true; leptos::prelude::batch(move || $0());"') : bool) |> ignore
00:36:33 v #21883 > 00:36:32 d #1236 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc5ef329f2a4937ace3b6cbb7e70a2656fa44ea3d6229c4ce82c3c0874dc8212/main.spi
00:36:33 v #21884 > >
00:36:33 v #21885 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:33 v #21886 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:33 v #21887 > > │ ### closure_to_fragment                                                      │
00:36:33 v #21888 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:33 v #21889 > >
00:36:33 v #21890 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:33 v #21891 > > inl closure_to_fragment (closure : rust.func0 fragment) : fragment =
00:36:33 v #21892 > >     !\\(closure, $'"leptos::IntoView::into_view(move || $0())"')
00:36:33 v #21893 > >     |> view_to_fragment
00:36:33 v #21894 > 00:36:32 d #1237 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4319b67d3377a54e4603e9f426893e48c1877684345c60efb5acb3a3a1802ae9/main.spi
00:36:33 v #21895 > >
00:36:33 v #21896 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:33 v #21897 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:33 v #21898 > > │ ### array_to_view                                                            │
00:36:33 v #21899 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:33 v #21900 > >
00:36:33 v #21901 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:33 v #21902 > > inl array_to_view (view : a _ view) : view =
00:36:33 v #21903 > >     !\\(view, $'"leptos::prelude::CollectView::collect_view($0.to_vec())"')
00:36:33 v #21904 > 00:36:33 d #1238 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9222627d3cb00e48625ae2c2e71117ed74629dd2a817426ae6b7bd5ca3f4e7d0/main.spi
00:36:34 v #21905 > >
00:36:34 v #21906 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:34 v #21907 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:34 v #21908 > > │ ### to_fragment                                                              │
00:36:34 v #21909 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:34 v #21910 > >
00:36:34 v #21911 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:34 v #21912 > > inl to_fragment x : fragment =
00:36:34 v #21913 > >     $'!x |> unbox'
00:36:34 v #21914 > 00:36:33 d #1239 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d7c8a0f57daddd82ed9fc94421076389b92fb7ef03e0f51bc1f03875148078a/main.spi
00:36:34 v #21915 > >
00:36:34 v #21916 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:34 v #21917 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:34 v #21918 > > │ ### text_to_view                                                             │
00:36:34 v #21919 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:34 v #21920 > >
00:36:34 v #21921 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:34 v #21922 > > inl text_to_view (text : text) : view =
00:36:34 v #21923 > >     !\\(text, $'"leptos::IntoView::into_view($0)"')
00:36:34 v #21924 > 00:36:34 d #1240 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f7218e2ace8531c630e54637b8b6630309838b89e1230601caca6f45b1eea0fc/main.spi
00:36:34 v #21925 > >
00:36:34 v #21926 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:34 v #21927 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:34 v #21928 > > │ ### text_to_fragment                                                         │
00:36:34 v #21929 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:34 v #21930 > >
00:36:34 v #21931 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:34 v #21932 > > inl text_to_fragment (text : text) : fragment =
00:36:34 v #21933 > >     text
00:36:34 v #21934 > >     |> text_to_view
00:36:34 v #21935 > >     |> view_to_fragment
00:36:35 v #21936 > 00:36:34 d #1241 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/250b865a6987ee99c15b9de075bd2a39f21b36f03a773967d6c68e104746ade9/main.spi
00:36:35 v #21937 > >
00:36:35 v #21938 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:35 v #21939 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:35 v #21940 > > │ ### macro_to_view                                                            │
00:36:35 v #21941 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:35 v #21942 > >
00:36:35 v #21943 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:35 v #21944 > > inl macro_to_view (macro : string) : view =
00:36:35 v #21945 > >     !\($'"leptos::IntoView::into_view(leptos::prelude::view\! { " + !macro + "
00:36:35 v #21946 > > })"')
00:36:35 v #21947 > 00:36:34 d #1242 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c7b985f7a054e4b1ba39f260d19ee741a7ceb9ff2330ece1d3400949434cbfa3/main.spi
00:36:35 v #21948 > >
00:36:35 v #21949 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:35 v #21950 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:35 v #21951 > > │ ### transparent_to_view                                                      │
00:36:35 v #21952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:35 v #21953 > >
00:36:35 v #21954 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:35 v #21955 > > inl transparent_to_view (transparent : transparent) : view =
00:36:35 v #21956 > >     !\\(transparent, $'"leptos::IntoView::into_view($0)"')
00:36:35 v #21957 > 00:36:35 d #1243 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f41789794cf2cd72d59a36357e0692eafcffa52028e794d86a18b5d94b82d4f/main.spi
00:36:36 v #21958 > >
00:36:36 v #21959 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:36 v #21960 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:36 v #21961 > > │ ### transparent_to_fragment                                                  │
00:36:36 v #21962 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:36 v #21963 > >
00:36:36 v #21964 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:36 v #21965 > > inl transparent_to_fragment (transparent : transparent) : fragment =
00:36:36 v #21966 > >     transparent
00:36:36 v #21967 > >     |> transparent_to_view
00:36:36 v #21968 > >     |> view_to_fragment
00:36:36 v #21969 > 00:36:35 d #1244 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/02ff722275a1d76b437cff827e180b731130157c83c33db62fce90305d27cc49/main.spi
00:36:36 v #21970 > >
00:36:36 v #21971 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:36 v #21972 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:36 v #21973 > > │ ### macro_to_element                                                         │
00:36:36 v #21974 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:36 v #21975 > >
00:36:36 v #21976 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:36 v #21977 > > inl macro_to_element (view : string) : html_element _ =
00:36:36 v #21978 > >     view |> macro_to_view_trait |> view_trait_to_element
00:36:36 v #21979 > 00:36:35 d #1245 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2427631334031a26a17aaf081ac1272f704f5353387b9458bad6ddb17c267144/main.spi
00:36:36 v #21980 > >
00:36:36 v #21981 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:36 v #21982 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:36 v #21983 > > │ ### transparents_fragment                                                    │
00:36:36 v #21984 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:36 v #21985 > >
00:36:36 v #21986 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:36 v #21987 > > inl transparents_fragment (items : array_base transparent) : fragment =
00:36:36 v #21988 > >     inl items = items |> am'.to_vec
00:36:36 v #21989 > >     !\\((items, transparent_to_view), $'"$0.iter().map(|x|
00:36:36 v #21990 > > $1(x.clone())).collect::<Fragment>()"')
00:36:37 v #21991 > 00:36:36 d #1246 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3d9a0a9d6ac1de99abc006ef91d6db87fb9fb51664fc746f2c1a84190abac71e/main.spi
00:36:37 v #21992 > >
00:36:37 v #21993 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:37 v #21994 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:37 v #21995 > > │ ### views_to_view                                                            │
00:36:37 v #21996 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:37 v #21997 > >
00:36:37 v #21998 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:37 v #21999 > > inl views_to_view (items : array_base view) : view =
00:36:37 v #22000 > >     inl items = join items
00:36:37 v #22001 > >     items
00:36:37 v #22002 > >     // |> fun x => a (join x) : a u64 _
00:36:37 v #22003 > >     |> fun x => a x : a u64 _
00:36:37 v #22004 > >     |> array_to_view
00:36:37 v #22005 > 00:36:36 d #1247 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c603ae53ccae5f159370b42997f72efefe0f3262f0fc1459c8426afa0227e901/main.spi
00:36:37 v #22006 > >
00:36:37 v #22007 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:37 v #22008 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:37 v #22009 > > │ ### new_text                                                                 │
00:36:37 v #22010 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:37 v #22011 > >
00:36:37 v #22012 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:37 v #22013 > > inl new_text (text : string) : text =
00:36:37 v #22014 > >     inl text = text |> sm'.to_std_string
00:36:37 v #22015 > >     !\\(text, $'"text($0)"')
00:36:38 v #22016 > 00:36:37 d #1248 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc54e8cfd9a138d9b749bcb397220538afba80b56d8bbf57792d12a714594199/main.spi
00:36:38 v #22017 > >
00:36:38 v #22018 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:38 v #22019 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:38 v #22020 > > │ ### text_view                                                                │
00:36:38 v #22021 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:38 v #22022 > >
00:36:38 v #22023 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:38 v #22024 > > inl text_view (text : string) : view =
00:36:38 v #22025 > >     text
00:36:38 v #22026 > >     |> new_text
00:36:38 v #22027 > >     |> text_to_view
00:36:38 v #22028 > 00:36:37 d #1249 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a65746d1f0f69d9e9fa58935ce429ce5664de5318768dc9f97f291976f2678f/main.spi
00:36:38 v #22029 > >
00:36:38 v #22030 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:38 v #22031 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:38 v #22032 > > │ ### text_fragment                                                            │
00:36:38 v #22033 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:38 v #22034 > >
00:36:38 v #22035 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:38 v #22036 > > inl text_fragment (text : string) : fragment =
00:36:38 v #22037 > >     text
00:36:38 v #22038 > >     |> text_view
00:36:38 v #22039 > >     |> view_to_fragment
00:36:38 v #22040 > 00:36:38 d #1250 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b9c5a4de639718dbec3cfb525ffdfb995656e8c6d07cbc6c929fd5af6f3b707/main.spi
00:36:38 v #22041 > >
00:36:38 v #22042 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:38 v #22043 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:38 v #22044 > > │ ### provide_meta_context                                                     │
00:36:38 v #22045 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:38 v #22046 > >
00:36:38 v #22047 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:38 v #22048 > > inl provide_meta_context () =
00:36:38 v #22049 > >     (!\($'"true; leptos_meta::provide_meta_context()"') : bool) |> ignore
00:36:39 v #22050 > 00:36:38 d #1251 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5782d2197a7e368b48cb4c953144c9af66ce0c636026107ee9ece65b0759c4d4/main.spi
00:36:39 v #22051 > >
00:36:39 v #22052 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:39 v #22053 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:39 v #22054 > > │ ### provide_context                                                          │
00:36:39 v #22055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:39 v #22056 > >
00:36:39 v #22057 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:39 v #22058 > > inl provide_context forall t. (x : t) =
00:36:39 v #22059 > >     (!\\(x, $'$"true; leptos::provide_context::<std::sync::Arc<`t>>($0)"') :
00:36:39 v #22060 > > bool) |> ignore
00:36:39 v #22061 > 00:36:38 d #1252 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/53d6a034d2a387bdd6e7df2f2dfdf77b93af955165090a324b414a62c2046b3d/main.spi
00:36:39 v #22062 > >
00:36:39 v #22063 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:39 v #22064 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:39 v #22065 > > │ ### create_signal                                                            │
00:36:39 v #22066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:39 v #22067 > >
00:36:39 v #22068 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:39 v #22069 > > inl create_signal forall t. (value : t) : read_signal t * write_signal t =
00:36:39 v #22070 > >     !\\(value, $'$"leptos::prelude::create_signal($0)"')
00:36:40 v #22071 > 00:36:39 d #1253 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d61ddef6a4ae7069eb5f6de0cddbb3bb35d0c9df037836725b160a40fb1c8936/main.spi
00:36:40 v #22072 > >
00:36:40 v #22073 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:40 v #22074 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:40 v #22075 > > │ ### create_rw_signal                                                         │
00:36:40 v #22076 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:40 v #22077 > >
00:36:40 v #22078 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:40 v #22079 > > inl create_rw_signal forall t. (value : t) : rw_signal t =
00:36:40 v #22080 > >     !\\(value, $'$"leptos::prelude::create_rw_signal($0)"')
00:36:40 v #22081 > 00:36:39 d #1254 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8daad4e61c87d2c12ee2ae8247836b7cfc740eb9de47b7bad0d2607ad7a19a79/main.spi
00:36:40 v #22082 > >
00:36:40 v #22083 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:40 v #22084 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:40 v #22085 > > │ ### read_only                                                                │
00:36:40 v #22086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:40 v #22087 > >
00:36:40 v #22088 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:40 v #22089 > > inl read_only forall t. (value : rw_signal t) : read_signal t =
00:36:40 v #22090 > >     !\\(value, $'$"leptos::prelude::RwSignal::read_only(&$0)"')
00:36:40 v #22091 > 00:36:40 d #1255 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fef61bf788dcb458e713ccd0c3e8ab68a704a2cf597318c71fbed66acee94d76/main.spi
00:36:40 v #22092 > >
00:36:40 v #22093 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:40 v #22094 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:40 v #22095 > > │ ### write_only                                                               │
00:36:40 v #22096 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:40 v #22097 > >
00:36:40 v #22098 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:40 v #22099 > > inl write_only forall t. (value : rw_signal t) : write_signal t =
00:36:40 v #22100 > >     !\\(value, $'$"leptos::prelude::RwSignal::write_only(&$0)"')
00:36:41 v #22101 > 00:36:40 d #1256 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5591db49d9372ce8d02c017110321b16ed39fb3d8255b5d462dd113a81a7b5d/main.spi
00:36:41 v #22102 > >
00:36:41 v #22103 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:41 v #22104 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:41 v #22105 > > │ ### typecheck_signal                                                         │
00:36:41 v #22106 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:41 v #22107 > >
00:36:41 v #22108 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:41 v #22109 > > inl typecheck_signal forall (t : * -> *) u. (signal : t u) : () =
00:36:41 v #22110 > >     real
00:36:41 v #22111 > >         typecase t with
00:36:41 v #22112 > >         | signal => ()
00:36:41 v #22113 > >         | rw_signal => ()
00:36:41 v #22114 > >         | read_signal => ()
00:36:41 v #22115 > >         | write_signal => ()
00:36:41 v #22116 > >         | memo => ()
00:36:41 v #22117 > >         | _ => error_type `(()) ("invalid signal", ``(t u))
00:36:41 v #22118 > 00:36:40 d #1257 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e2a23a36e0a93f2af8597ecc98094a1ddb81bcb182a845f454007f99f0db0fdf/main.spi
00:36:41 v #22119 > >
00:36:41 v #22120 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:41 v #22121 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:41 v #22122 > > │ ### memo_get'                                                                │
00:36:41 v #22123 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:41 v #22124 > >
00:36:41 v #22125 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:41 v #22126 > > inl memo_get' forall t. (memo : memo t) : t =
00:36:41 v #22127 > >     !\\(memo, $'$"$0()"')
00:36:42 v #22128 > 00:36:41 d #1258 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/632c45a2a7a70d8a4e50513cdbc4e96c4fbc4ddfa621492f73b7e80883a27702/main.spi
00:36:42 v #22129 > >
00:36:42 v #22130 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:42 v #22131 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:42 v #22132 > > │ ### signal_get'                                                              │
00:36:42 v #22133 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:42 v #22134 > >
00:36:42 v #22135 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:42 v #22136 > > inl signal_get' forall (t : * -> *) u. (signal : t u) : u =
00:36:42 v #22137 > >     signal |> typecheck_signal
00:36:42 v #22138 > >     !\\(signal, $'$"SignalGet::get(&$0)"')
00:36:42 v #22139 > 00:36:41 d #1259 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae4ff6e64df69d37e3a46fa5662b484ac8205714eb724bd0d9e7f29db8116aec/main.spi
00:36:42 v #22140 > >
00:36:42 v #22141 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:42 v #22142 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:42 v #22143 > > │ ### signal_get signal                                                        │
00:36:42 v #22144 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:42 v #22145 > >
00:36:42 v #22146 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:42 v #22147 > > instance signal_get signal = signal_get'
00:36:42 v #22148 > 00:36:42 d #1260 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e6fc64d10b349a64d3b0d50b4fcee0f741e2ca739fc7ce0f5619fc500330c5f2/main.spi
00:36:43 v #22149 > >
00:36:43 v #22150 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:43 v #22151 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:43 v #22152 > > │ ### signal_get rw_signal                                                     │
00:36:43 v #22153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:43 v #22154 > >
00:36:43 v #22155 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:43 v #22156 > > instance signal_get rw_signal = signal_get'
00:36:43 v #22157 > 00:36:42 d #1261 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5199d5316eb25476017e7e118ecdc503b28e25714f94e6c2d8484e1bd229ac74/main.spi
00:36:43 v #22158 > >
00:36:43 v #22159 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:43 v #22160 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:43 v #22161 > > │ ### signal_get read_signal                                                   │
00:36:43 v #22162 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:43 v #22163 > >
00:36:43 v #22164 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:43 v #22165 > > instance signal_get read_signal = signal_get'
00:36:43 v #22166 > 00:36:42 d #1262 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/058f9ea66d4107d01035183363f0415fbe6779c36f76fc29be99754e84d73c46/main.spi
00:36:43 v #22167 > >
00:36:43 v #22168 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:43 v #22169 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:43 v #22170 > > │ ### signal_get memo                                                          │
00:36:43 v #22171 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:43 v #22172 > >
00:36:43 v #22173 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:43 v #22174 > > instance signal_get memo = memo_get'
00:36:44 v #22175 > 00:36:43 d #1263 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/80001f6b5b3422418138da343333d6d752ceeeb105f6d05eb52c5a0698986bb9/main.spi
00:36:44 v #22176 > >
00:36:44 v #22177 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:44 v #22178 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:44 v #22179 > > │ ### signal_update'                                                           │
00:36:44 v #22180 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:44 v #22181 > >
00:36:44 v #22182 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:44 v #22183 > > inl signal_update' forall (t : * -> *) u. (fn : u -> u) (signal : t u) : () =
00:36:44 v #22184 > >     signal |> typecheck_signal
00:36:44 v #22185 > >     (!\\((signal, fn), $'"true; leptos::prelude::SignalUpdate::update(&$0, |x| {
00:36:44 v #22186 > > *x = $1(x.clone()) });"') : bool) |> ignore
00:36:44 v #22187 > 00:36:43 d #1264 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3b84fd4ce02319e4630c215a65a15e0dabb38362f88f9554cb7fae7a7cabf494/main.spi
00:36:44 v #22188 > >
00:36:44 v #22189 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:44 v #22190 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:44 v #22191 > > │ ### signal_update rw_signal                                                  │
00:36:44 v #22192 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:44 v #22193 > >
00:36:44 v #22194 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:44 v #22195 > > instance signal_update rw_signal = signal_update'
00:36:44 v #22196 > 00:36:44 d #1265 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21b947e0e5225f5ee2f683e1996bf8d09b32c32b68d301177ed387f5f1b5e72e/main.spi
00:36:45 v #22197 > >
00:36:45 v #22198 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:45 v #22199 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:45 v #22200 > > │ ### signal_update write_signal                                               │
00:36:45 v #22201 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:45 v #22202 > >
00:36:45 v #22203 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:45 v #22204 > > instance signal_update write_signal = signal_update'
00:36:45 v #22205 > 00:36:44 d #1266 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2725b7249fde75639280abfca0773d92ae008204b7c43547a6bd4874e22473c9/main.spi
00:36:45 v #22206 > >
00:36:45 v #22207 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:45 v #22208 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:45 v #22209 > > │ ### signal_get_untracked'                                                    │
00:36:45 v #22210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:45 v #22211 > >
00:36:45 v #22212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:45 v #22213 > > inl signal_get_untracked' forall (t : * -> *) u. (signal : t u) : u =
00:36:45 v #22214 > >     signal |> typecheck_signal
00:36:45 v #22215 > >     !\\(signal, $'$"leptos::SignalGetUntracked::get_untracked(&$0)"')
00:36:45 v #22216 > 00:36:44 d #1267 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df69dbd85d9030e179f480f4d4bd466a4763291116b3b2f0c18150ca2f1e3e80/main.spi
00:36:45 v #22217 > >
00:36:45 v #22218 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:45 v #22219 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:45 v #22220 > > │ ### signal_get_untracked rw_signal                                           │
00:36:45 v #22221 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:45 v #22222 > >
00:36:45 v #22223 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:45 v #22224 > > instance signal_get_untracked rw_signal = signal_get_untracked'
00:36:46 v #22225 > 00:36:45 d #1268 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/973af44e3e3fbe64e8650f3897e00fe6820e625587bc1a5ddea1c859c355fa86/main.spi
00:36:46 v #22226 > >
00:36:46 v #22227 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:46 v #22228 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:46 v #22229 > > │ ### signal_get_untracked read_signal                                         │
00:36:46 v #22230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:46 v #22231 > >
00:36:46 v #22232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:46 v #22233 > > instance signal_get_untracked read_signal = signal_get_untracked'
00:36:46 v #22234 > 00:36:45 d #1269 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1dfd1c0415fc0ba640cc10f39179559d8d6c8efbc946156766bf82cc40fe8464/main.spi
00:36:46 v #22235 > >
00:36:46 v #22236 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:46 v #22237 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:46 v #22238 > > │ ### signal_get_untracked memo                                                │
00:36:46 v #22239 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:46 v #22240 > >
00:36:46 v #22241 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:46 v #22242 > > instance signal_get_untracked memo = signal_get_untracked'
00:36:46 v #22243 > 00:36:46 d #1270 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0707a372631f7420faf07883218e99b3ab3d87b7a463c9512a6b0b18eacdfa18/main.spi
00:36:47 v #22244 > >
00:36:47 v #22245 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:47 v #22246 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:47 v #22247 > > │ ### signal_set'                                                              │
00:36:47 v #22248 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:47 v #22249 > >
00:36:47 v #22250 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:47 v #22251 > > inl signal_set' forall (t : * -> *) u. (value : u) (signal : t u) =
00:36:47 v #22252 > >     signal |> typecheck_signal
00:36:47 v #22253 > >     (!\\((signal, value), $'$"true; leptos::prelude::SignalSet::set(&$0, $1);"')
00:36:47 v #22254 > > : bool) |> ignore
00:36:47 v #22255 > 00:36:46 d #1271 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9edbd7ebf86187db262c4766999a5ab965606aaeef52e135dc4ac7c1c0d57213/main.spi
00:36:47 v #22256 > >
00:36:47 v #22257 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:47 v #22258 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:47 v #22259 > > │ ### signal_set rw_signal                                                     │
00:36:47 v #22260 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:47 v #22261 > >
00:36:47 v #22262 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:47 v #22263 > > instance signal_set rw_signal = signal_set'
00:36:47 v #22264 > 00:36:46 d #1272 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d464aaad450ec03559c825fef7f0c1a522e31e69926aaa2aedc3a863474a8169/main.spi
00:36:47 v #22265 > >
00:36:47 v #22266 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:47 v #22267 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:47 v #22268 > > │ ### signal_set write_signal                                                  │
00:36:47 v #22269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:47 v #22270 > >
00:36:47 v #22271 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:47 v #22272 > > instance signal_set write_signal = signal_set'
00:36:48 v #22273 > 00:36:47 d #1273 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f735b7d44876abd4da87f9993c73e91e4e28ca171cbd958af9017d4fa8edb28d/main.spi
00:36:48 v #22274 > >
00:36:48 v #22275 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:48 v #22276 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:48 v #22277 > > │ ### create_local_resource                                                    │
00:36:48 v #22278 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:48 v #22279 > >
00:36:48 v #22280 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:48 v #22281 > > inl create_local_resource forall t u.
00:36:48 v #22282 > >     (source : () -> t)
00:36:48 v #22283 > >     (fetcher : t -> async.future_pin u)
00:36:48 v #22284 > >     : resource t u
00:36:48 v #22285 > >     =
00:36:48 v #22286 > >     // inl fetcher x = rust.move fun () =>
00:36:48 v #22287 > >     //    fetcher x
00:36:48 v #22288 > >     // inl fetcher = join fetcher
00:36:48 v #22289 > >     // !\($'"leptos::create_local_resource(move || !source(), move |x| async
00:36:48 v #22290 > > move { !fetcher(x)().await })"')
00:36:48 v #22291 > >
00:36:48 v #22292 > >     // ---
00:36:48 v #22293 > >
00:36:48 v #22294 > >     // inl fn x = async.new_future fun () =>
00:36:48 v #22295 > >     //     inl x' = fetcher x
00:36:48 v #22296 > >     //     x' |> async.await
00:36:48 v #22297 > >
00:36:48 v #22298 > >     // !\\((source, fn), $'"leptos::create_local_resource(move || $0(), |x|
00:36:48 v #22299 > > async move { $1(x).await })"')
00:36:48 v #22300 > >
00:36:48 v #22301 > >
00:36:48 v #22302 > >     join
00:36:48 v #22303 > >         !\\(source, $'"let __create_local_resource = create_local_resource(move
00:36:48 v #22304 > > || $0(), |x| async move { //"')
00:36:48 v #22305 > >
00:36:48 v #22306 > >         inl x = !\($'"x"')
00:36:48 v #22307 > >         inl x' = fetcher x
00:36:48 v #22308 > >         inl x' = join x'
00:36:48 v #22309 > >         inl x' = x' |> async.await
00:36:48 v #22310 > >
00:36:48 v #22311 > >         inl closure_fix = 2u8, 1u8
00:36:48 v #22312 > >         x' |> rust.fix_closure closure_fix
00:36:48 v #22313 > >
00:36:48 v #22314 > >         !\($'"__create_local_resource"')
00:36:48 v #22315 > 00:36:47 d #1274 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eca0eadf81fd2dfe291c9dfd917391ea5217dfd120f00faa10d662136e21f099/main.spi
00:36:48 v #22316 > >
00:36:48 v #22317 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:48 v #22318 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:48 v #22319 > > │ ### create_resource                                                          │
00:36:48 v #22320 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:48 v #22321 > >
00:36:48 v #22322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:48 v #22323 > > // inl create_resource forall t u. (source : () -> t) (fetcher : t ->
00:36:48 v #22324 > > async.future_pin u) : resource t u =
00:36:48 v #22325 > > //     inl source = join source
00:36:48 v #22326 > > //     !\\(fetcher, $'"leptos::create_resource(move || !source(), |x| async move
00:36:48 v #22327 > > { $0(x).await })"')
00:36:48 v #22328 > 00:36:48 d #1275 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7411d80c9fe72329ec135e89fc7775f2ddcc12ce0c1edaf778d4c96e7f39758/main.spi
00:36:49 v #22329 > >
00:36:49 v #22330 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:49 v #22331 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:49 v #22332 > > │ ### create_action                                                            │
00:36:49 v #22333 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:49 v #22334 > >
00:36:49 v #22335 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:49 v #22336 > > inl create_action forall t u. (action_fn : t -> async.future_pin u) : action t u
00:36:49 v #22337 > > =
00:36:49 v #22338 > >     !\\(action_fn, $'"leptos::prelude::create_action(move |value:
00:36:49 v #22339 > > &std::sync::Arc<`t>| $0(value.clone()))"')
00:36:49 v #22340 > 00:36:48 d #1276 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a082b82fdae04b18fbfaebbeb9d1e0cd007a3744f41acf113588fcf8cb02838/main.spi
00:36:49 v #22341 > >
00:36:49 v #22342 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:49 v #22343 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:49 v #22344 > > │ ### action_dispatch                                                          │
00:36:49 v #22345 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:49 v #22346 > >
00:36:49 v #22347 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:49 v #22348 > > inl action_dispatch forall t u. (value : heap t) (action : action (heap t) u) :
00:36:49 v #22349 > > () =
00:36:49 v #22350 > >     (!\\((action, value), $'"true; leptos::prelude::Action::dispatch(&$0,
00:36:49 v #22351 > > $1.clone())"') : bool) |> ignore
00:36:49 v #22352 > 00:36:49 d #1277 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5c4fd556d49167a0d333d5d080c4a0f4934e3b1abba23201136bd5fc33d71fef/main.spi
00:36:49 v #22353 > >
00:36:49 v #22354 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:49 v #22355 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:49 v #22356 > > │ ### action_input                                                             │
00:36:49 v #22357 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:49 v #22358 > >
00:36:49 v #22359 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:49 v #22360 > > inl action_input forall t u. (action : action (heap t) u) : rw_signal
00:36:49 v #22361 > > (optionm'.option' t) =
00:36:49 v #22362 > >     !\\(action, $'"leptos::prelude::Action::input(&$0)"')
00:36:50 v #22363 > 00:36:49 d #1278 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad4364d5e3fac0079a4aea9aff2efb8573a6663b4053cf940dfaa99fc74f6ef9/main.spi
00:36:50 v #22364 > >
00:36:50 v #22365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:50 v #22366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:50 v #22367 > > │ ### action_pending                                                           │
00:36:50 v #22368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:50 v #22369 > >
00:36:50 v #22370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:50 v #22371 > > inl action_pending forall t u. (action : action (heap t) u) : read_signal bool =
00:36:50 v #22372 > >     !\\(action, $'"leptos::prelude::Action::pending(&$0)"')
00:36:50 v #22373 > 00:36:49 d #1279 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e2b975bcd9e96f298a5d8421e5f931950c81fb84a58e0061122e04b6b0c72e59/main.spi
00:36:50 v #22374 > >
00:36:50 v #22375 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:50 v #22376 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:50 v #22377 > > │ ### action_value                                                             │
00:36:50 v #22378 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:50 v #22379 > >
00:36:50 v #22380 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:50 v #22381 > > inl action_value forall t u. (action : action (heap t) u) : rw_signal
00:36:50 v #22382 > > (optionm'.option' u) =
00:36:50 v #22383 > >     !\\(action, $'"leptos::prelude::Action::value(&$0)"')
00:36:50 v #22384 > 00:36:50 d #1280 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/726c72fa6d1f0c4e9638dfaa25e99e95cc276f2b68cb1c5292f576d99d07ec14/main.spi
00:36:51 v #22385 > >
00:36:51 v #22386 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:51 v #22387 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:51 v #22388 > > │ ### use_context                                                              │
00:36:51 v #22389 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:51 v #22390 > >
00:36:51 v #22391 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:51 v #22392 > > inl use_context forall t. () : optionm'.option' t =
00:36:51 v #22393 > >     !\($'"leptos::hooks::use_context::<std::sync::Arc<`t>>()"')
00:36:51 v #22394 > 00:36:50 d #1281 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/80637f236c2079a92051cf3510b9939c635f058ac216d473784f3b9b6c8cef40/main.spi
00:36:51 v #22395 > >
00:36:51 v #22396 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:51 v #22397 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:51 v #22398 > > │ ### resource_loading                                                         │
00:36:51 v #22399 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:51 v #22400 > >
00:36:51 v #22401 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:51 v #22402 > > inl resource_loading forall t u. (resource : resource t u) : signal bool =
00:36:51 v #22403 > >     !\\(resource, $'$"leptos::prelude::Resource::loading(&$0)"')
00:36:51 v #22404 > 00:36:51 d #1282 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5127d6ad24b800e5fca9f972f1e0fe90c01801fed6fd0be30bec45764eba00dd/main.spi
00:36:51 v #22405 > >
00:36:51 v #22406 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:51 v #22407 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:51 v #22408 > > │ ### resource_get                                                             │
00:36:51 v #22409 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:51 v #22410 > >
00:36:51 v #22411 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:51 v #22412 > > inl resource_get forall t u. (resource : resource t u) : optionm'.option' u =
00:36:51 v #22413 > >     !\\(resource, $'$"SignalGet::get(&$0)"')
00:36:52 v #22414 > 00:36:51 d #1283 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27fd74c671425157253b650f8289f72ac9bda349f343ca5a87862b8cf98bc9d0/main.spi
00:36:52 v #22415 > >
00:36:52 v #22416 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:52 v #22417 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:52 v #22418 > > │ ### resource_with                                                            │
00:36:52 v #22419 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:52 v #22420 > >
00:36:52 v #22421 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:52 v #22422 > > inl resource_with forall t u v. (resource : resource t u) (fn : optionm'.option'
00:36:52 v #22423 > > u -> v) : v =
00:36:52 v #22424 > >     !\\((resource, fn), $'$"leptos::prelude::SignalWith::with(&$0, |x|
00:36:52 v #22425 > > $1(x.clone()))"')
00:36:52 v #22426 > 00:36:51 d #1284 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d85cb624bea2f6e6742e75298cb93b9af8b05c6175c752d4ba7571de0969e661/main.spi
00:36:52 v #22427 > >
00:36:52 v #22428 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:52 v #22429 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:52 v #22430 > > │ ### create_effect                                                            │
00:36:52 v #22431 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:52 v #22432 > >
00:36:52 v #22433 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:52 v #22434 > > inl create_effect (fn : () -> ()) : () =
00:36:52 v #22435 > >     inl fn = fn |> rust.emit
00:36:52 v #22436 > >     (!\($'"true; leptos::prelude::create_effect(move |_| { !fn(()) })"') : bool)
00:36:52 v #22437 > > |> ignore
00:36:52 v #22438 > 00:36:52 d #1285 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a35316e020ab8bf2c60c7dda456db8ae6787ea8a06f930fdbd4c3b3466f9c3f4/main.spi
00:36:53 v #22439 > >
00:36:53 v #22440 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:53 v #22441 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:53 v #22442 > > │ ### create_effect'                                                           │
00:36:53 v #22443 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:53 v #22444 > >
00:36:53 v #22445 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:53 v #22446 > > inl create_effect' forall t. (fn : optionm'.option' t -> t) : () =
00:36:53 v #22447 > >     (!\\(fn, $'"true; leptos::prelude::create_effect(move |x| { $0(x) })"') :
00:36:53 v #22448 > > bool) |> ignore
00:36:53 v #22449 > 00:36:52 d #1286 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42385af082f02ae3345aebdb46cde9dfb81d7426d8aeac8ff2864a46920df5f2/main.spi
00:36:53 v #22450 > >
00:36:53 v #22451 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:53 v #22452 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:53 v #22453 > > │ ### interval_handle_clear                                                    │
00:36:53 v #22454 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:53 v #22455 > >
00:36:53 v #22456 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:53 v #22457 > > inl interval_handle_clear (interval_handle : interval_handle) =
00:36:53 v #22458 > >     (!\\(interval_handle, $'$"true;
00:36:53 v #22459 > > leptos::leptos_dom::helpers::IntervalHandle::clear(&$0)"') : bool) |> ignore
00:36:53 v #22460 > 00:36:53 d #1287 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73664f99ac9780324e146e7b9dfee3c52c39bc4ae2893bbb3c5fc41145888915/main.spi
00:36:54 v #22461 > >
00:36:54 v #22462 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:54 v #22463 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:54 v #22464 > > │ ### set_interval_with_handle                                                 │
00:36:54 v #22465 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:54 v #22466 > >
00:36:54 v #22467 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:54 v #22468 > > inl set_interval_with_handle
00:36:54 v #22469 > >     (fn : () -> ())
00:36:54 v #22470 > >     (interval_millis : date_time.duration)
00:36:54 v #22471 > >     : resultm.result' interval_handle wasm.js_value
00:36:54 v #22472 > >     =
00:36:54 v #22473 > >     !\\((fn, interval_millis), $'$"leptos::set_interval_with_handle(move ||
00:36:54 v #22474 > > $0(), $1)"')
00:36:54 v #22475 > 00:36:53 d #1288 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b4c6b7eca12486401d6d1ab8d2e367c59f24a15090c4ea6b3222b40278f2c2ce/main.spi
00:36:54 v #22476 > >
00:36:54 v #22477 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:54 v #22478 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:54 v #22479 > > │ ### create_memo                                                              │
00:36:54 v #22480 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:54 v #22481 > >
00:36:54 v #22482 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:54 v #22483 > > inl create_memo forall t. (fn : () -> t) : memo t =
00:36:54 v #22484 > >     inl fn = fn |> rust.emit
00:36:54 v #22485 > >     !\($'"leptos::prelude::create_memo(move |_| { !fn(()) })"')
00:36:54 v #22486 > 00:36:53 d #1289 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/307ffd4f34813e70bfe35105e5a3a86e49db02fa2465d9d3da8f027b0b439dda/main.spi
00:36:54 v #22487 > >
00:36:54 v #22488 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:54 v #22489 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:54 v #22490 > > │ ### window                                                                   │
00:36:54 v #22491 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:54 v #22492 > >
00:36:54 v #22493 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:54 v #22494 > > let window () : wasm.window =
00:36:54 v #22495 > >     !\($'"leptos::leptos_dom::window()"')
00:36:55 v #22496 > 00:36:54 d #1290 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c688175906abd3feb5009bef352626132fd5537fa61f0c7781c61e01c3c59943/main.spi
00:36:55 v #22497 > >
00:36:55 v #22498 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:55 v #22499 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:55 v #22500 > > │ ### bool_prop                                                                │
00:36:55 v #22501 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:55 v #22502 > >
00:36:55 v #22503 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:55 v #22504 > > inl bool_prop (prop : string) (fn : () -> bool) : string =
00:36:55 v #22505 > >     inl fn = join fn
00:36:55 v #22506 > >     $'"" + !prop + "={move || !fn()}"'
00:36:55 v #22507 > 00:36:54 d #1291 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/53eeedc0a95bc52171db25b12d15d0400dbf11a403604d9524d2322880adc73c/main.spi
00:36:55 v #22508 > >
00:36:55 v #22509 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:55 v #22510 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:55 v #22511 > > │ ### concat_props                                                             │
00:36:55 v #22512 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:55 v #22513 > >
00:36:55 v #22514 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:55 v #22515 > > inl concat_props props =
00:36:55 v #22516 > >     ("", props)
00:36:55 v #22517 > >     ||> listm.fold fun acc (x : string) =>
00:36:55 v #22518 > >         $'" " + !x + !acc + ""'
00:36:55 v #22519 > 00:36:55 d #1292 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cdd05f421df50e48270a4348127fef837eb1e9494ebc3a8c9cb9b391bcf09458/main.spi
00:36:56 v #22520 > >
00:36:56 v #22521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:56 v #22522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:56 v #22523 > > │ ### move_to_fragment                                                         │
00:36:56 v #22524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:56 v #22525 > >
00:36:56 v #22526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:56 v #22527 > > inl move_to_fragment fn =
00:36:56 v #22528 > >     rust.move fn
00:36:56 v #22529 > >     |> closure_to_fragment
00:36:56 v #22530 > 00:36:55 d #1293 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac861f0b7061ea9da70ad1dab49fb7dbb25b25ae24ac10f68c9d57092416dd3c/main.spi
00:36:56 v #22531 > >
00:36:56 v #22532 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:56 v #22533 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:56 v #22534 > > │ ### tag_raw                                                                  │
00:36:56 v #22535 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:56 v #22536 > >
00:36:56 v #22537 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:56 v #22538 > > inl tag_raw tag props children =
00:36:56 v #22539 > >     inl tag : string = tag
00:36:56 v #22540 > >     inl props = props |> concat_props
00:36:56 v #22541 > >     inl children = join children
00:36:56 v #22542 > >     inl children = fun () => children |> move_to_fragment
00:36:56 v #22543 > >     inl children : () -> fragment = join children
00:36:56 v #22544 > >     $'"<" + !tag + " " + !props + ">{!children()}</" + !tag + ">"'
00:36:56 v #22545 > 00:36:55 d #1294 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/509b4463a6b559754f3efc3fbe857b3c25ba20bbd3eb976127b65cd15961c714/main.spi
00:36:56 v #22546 > >
00:36:56 v #22547 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:56 v #22548 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:56 v #22549 > > │ ### tag_element                                                              │
00:36:56 v #22550 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:56 v #22551 > >
00:36:56 v #22552 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:56 v #22553 > > inl tag_element tag props children : html_element _ =
00:36:56 v #22554 > >     inl children = join children
00:36:56 v #22555 > >     tag_raw tag props children
00:36:56 v #22556 > >     |> macro_to_element
00:36:57 v #22557 > 00:36:56 d #1295 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7af99e581a0a008a88fe94a336231e285579d34665b9d0140fea343b8fef589b/main.spi
00:36:57 v #22558 > >
00:36:57 v #22559 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:57 v #22560 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:57 v #22561 > > │ ### tag_closed_raw                                                           │
00:36:57 v #22562 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:57 v #22563 > >
00:36:57 v #22564 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:57 v #22565 > > inl tag_closed_raw tag props =
00:36:57 v #22566 > >     inl tag : string = tag
00:36:57 v #22567 > >     inl props = props |> concat_props
00:36:57 v #22568 > >     $'"<" + !tag + " " + !props + " />"'
00:36:57 v #22569 > 00:36:56 d #1296 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/124e99b6b3592209b1cafe571efbc6ce62babdf1354ad618f12cb844ff50cf00/main.spi
00:36:57 v #22570 > >
00:36:57 v #22571 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:57 v #22572 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:57 v #22573 > > │ ### tag_closed                                                               │
00:36:57 v #22574 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:57 v #22575 > >
00:36:57 v #22576 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:57 v #22577 > > inl tag_closed tag props : html_element _ =
00:36:57 v #22578 > >     tag_closed_raw tag props
00:36:57 v #22579 > >     |> macro_to_element
00:36:57 v #22580 > 00:36:57 d #1297 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/916d665ee53d557147d82fb03d27a72e21ec9f26e7333181f4de929148ba5dd6/main.spi
00:36:58 v #22581 > >
00:36:58 v #22582 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:58 v #22583 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:58 v #22584 > > │ ### for                                                                      │
00:36:58 v #22585 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:58 v #22586 > >
00:36:58 v #22587 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:58 v #22588 > > inl for props : view =
00:36:58 v #22589 > >     tag_closed_raw "leptos::prelude::For" props
00:36:58 v #22590 > >     |> macro_to_view
00:36:58 v #22591 > 00:36:57 d #1298 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f8b57295155a2090d33b0277fd5386db0891689b3406205f33cd7039d7f123a3/main.spi
00:36:58 v #22592 > >
00:36:58 v #22593 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:58 v #22594 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:58 v #22595 > > │ ### for                                                                      │
00:36:58 v #22596 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:58 v #22597 > >
00:36:58 v #22598 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:58 v #22599 > > inl for forall t u (signal : * -> *).
00:36:58 v #22600 > >     (signal : signal (am'.vec t))
00:36:58 v #22601 > >     (key_fn : t -> u)
00:36:58 v #22602 > >     (children' : t -> fragment)
00:36:58 v #22603 > >     : view
00:36:58 v #22604 > >     =
00:36:58 v #22605 > >     inl signal = join signal
00:36:58 v #22606 > >     signal |> typecheck_signal
00:36:58 v #22607 > >     inl key_fn = join key_fn
00:36:58 v #22608 > >     inl children' = join children'
00:36:58 v #22609 > >     for [[
00:36:58 v #22610 > >         $'"each=!signal"'
00:36:58 v #22611 > >         $'"key=move |x| !key_fn(x.to_owned())"'
00:36:58 v #22612 > >         $'"let:x"'
00:36:58 v #22613 > >         $'"children=move |x| !children'(x)"'
00:36:58 v #22614 > >     ]]
00:36:58 v #22615 > 00:36:58 d #1299 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf54ae69a56f20db79dd32cf83d3cc3087f87980fcddbe95f49412bb6f2f3efc/main.spi
00:36:58 v #22616 > >
00:36:58 v #22617 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:58 v #22618 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:58 v #22619 > > │ ### show                                                                     │
00:36:58 v #22620 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:58 v #22621 > >
00:36:58 v #22622 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:58 v #22623 > > inl show props : view =
00:36:58 v #22624 > >     tag_closed_raw "leptos::prelude::Show" props
00:36:58 v #22625 > >     |> macro_to_view
00:36:59 v #22626 > 00:36:58 d #1300 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1eb2c050662e80e3478d109ea7aecc42727e49a692b54c1a4ff14aa144665c8d/main.spi
00:36:59 v #22627 > >
00:36:59 v #22628 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:59 v #22629 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:59 v #22630 > > │ ### show                                                                     │
00:36:59 v #22631 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:59 v #22632 > >
00:36:59 v #22633 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:59 v #22634 > > inl show (when_fn : () -> bool) (fallback : () -> view) (children : () ->
00:36:59 v #22635 > > fragment) : view =
00:36:59 v #22636 > >     inl when_fn = join when_fn
00:36:59 v #22637 > >     inl when_fn = join when_fn
00:36:59 v #22638 > >     inl fallback = join fallback
00:36:59 v #22639 > >     inl children = join children
00:36:59 v #22640 > >     show [[
00:36:59 v #22641 > >         $'"when=move || !when_fn()"'
00:36:59 v #22642 > >         $'"fallback=move || !fallback()"'
00:36:59 v #22643 > >         $'"children=std::rc::Rc::new(move || !children())"'
00:36:59 v #22644 > >     ]]
00:36:59 v #22645 > 00:36:58 d #1301 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c770c74a03fbfd7dffade7ba11a35b2c547eff60ff07c445699be9596e9d2217/main.spi
00:36:59 v #22646 > >
00:36:59 v #22647 > > ── markdown ────────────────────────────────────────────────────────────────────
00:36:59 v #22648 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:36:59 v #22649 > > │ ### use_location                                                             │
00:36:59 v #22650 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:36:59 v #22651 > >
00:36:59 v #22652 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:36:59 v #22653 > > inl use_location () : location =
00:36:59 v #22654 > >     !\($'"leptos_router::hooks::use_location()"')
00:37:00 v #22655 > 00:36:59 d #1302 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/38d8186da65b11b957170cf4674af931f6f17e2c8eeae6b8db7ca26f3eb3685d/main.spi
00:37:00 v #22656 > >
00:37:00 v #22657 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:00 v #22658 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:00 v #22659 > > │ ### use_navigate                                                             │
00:37:00 v #22660 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:00 v #22661 > >
00:37:00 v #22662 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:00 v #22663 > > inl use_navigate () : string -> () =
00:37:00 v #22664 > >     inl navigate : threading.arc (rust.dyn' (rust.action_fn2 (rust.ref sm'.str)
00:37:00 v #22665 > > navigate_options)) =
00:37:00 v #22666 > >         !\($'"std::sync::Arc::new(leptos_router::use_navigate())"')
00:37:00 v #22667 > >     fun url =>
00:37:00 v #22668 > >         inl url = url |> sm'.as_str
00:37:00 v #22669 > >         !\\((navigate, url), $'"$0($1, Default::default())"')
00:37:00 v #22670 > 00:36:59 d #1303 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffff3d00063b679e96e0a29e7ab36c11021b2d187fbb125b0f7d69c6759ee853/main.spi
00:37:00 v #22671 > >
00:37:00 v #22672 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:00 v #22673 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:00 v #22674 > > │ ### location_hash                                                            │
00:37:00 v #22675 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:00 v #22676 > >
00:37:00 v #22677 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:00 v #22678 > > inl location_hash (location : location) : memo sm'.std_string =
00:37:00 v #22679 > >     !\\(location, $'"$0.hash"')
00:37:00 v #22680 > 00:37:00 d #1304 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8858daa787bcd114bcf990e2b04f9acc2b63dde5382f7fa50d200858d420c0cd/main.spi
00:37:01 v #22681 > >
00:37:01 v #22682 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:01 v #22683 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:01 v #22684 > > │ ### location_pathname                                                        │
00:37:01 v #22685 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:01 v #22686 > >
00:37:01 v #22687 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:01 v #22688 > > inl location_pathname (location : location) : memo sm'.std_string =
00:37:01 v #22689 > >     !\\(location, $'"$0.pathname"')
00:37:01 v #22690 > 00:37:00 d #1305 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8d91a8c08996669812fd654d2206a198c011e640dbba82d5f72de5a510bf6b8/main.spi
00:37:01 v #22691 > >
00:37:01 v #22692 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:01 v #22693 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:01 v #22694 > > │ ### location_search                                                          │
00:37:01 v #22695 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:01 v #22696 > >
00:37:01 v #22697 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:01 v #22698 > > inl location_search (location : location) : memo sm'.std_string =
00:37:01 v #22699 > >     !\\(location, $'"$0.search"')
00:37:01 v #22700 > 00:37:00 d #1306 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc894c98018bf79bdbedfc6e81ee9e64eceeb3b3fd17b62faf22fd831e18be73/main.spi
00:37:01 v #22701 > >
00:37:01 v #22702 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:01 v #22703 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:01 v #22704 > > │ ### url_try_from                                                             │
00:37:01 v #22705 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:01 v #22706 > >
00:37:01 v #22707 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:01 v #22708 > > inl url_try_from (s : rust.ref sm'.str) : resultm.result' url sm'.std_string =
00:37:01 v #22709 > >     !\\(s, $'"leptos_router::location::Url::try_from($0)"')
00:37:02 v #22710 > 00:37:01 d #1307 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5455131f283d124a7c69d8da479a87b473df1adaac92936126723cd3345645d8/main.spi
00:37:02 v #22711 > >
00:37:02 v #22712 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:02 v #22713 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:02 v #22714 > > │ ### url_pathname                                                             │
00:37:02 v #22715 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:02 v #22716 > >
00:37:02 v #22717 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:02 v #22718 > > inl url_pathname (url : url) : sm'.std_string =
00:37:02 v #22719 > >     !\\(url, $'"$0.pathname"')
00:37:02 v #22720 > 00:37:01 d #1308 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/daff4d7a4a9db5a06d6c7a4b4e3a15dca4565d05f20fbcf1300081804a64d8f5/main.spi
00:37:02 v #22721 > >
00:37:02 v #22722 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:02 v #22723 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:02 v #22724 > > │ ### use_url                                                                  │
00:37:02 v #22725 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:02 v #22726 > >
00:37:02 v #22727 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:02 v #22728 > > inl use_url () =
00:37:02 v #22729 > >     inl location = use_location ()
00:37:02 v #22730 > >
00:37:02 v #22731 > >     create_memo fun () =>
00:37:02 v #22732 > >         inl url_pathname = location |> location_pathname |> signal_get |>
00:37:02 v #22733 > > sm'.from_std_string
00:37:02 v #22734 > >         inl url_search = location |> location_search |> signal_get |>
00:37:02 v #22735 > > sm'.from_std_string
00:37:02 v #22736 > >         inl url_search =
00:37:02 v #22737 > >             if url_search = ""
00:37:02 v #22738 > >             then ""
00:37:02 v #22739 > >             else $'$"?{!url_search}"'
00:37:02 v #22740 > >         url_pathname +. url_search
00:37:02 v #22741 > 00:37:02 d #1309 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a05861cf1f2331f48fbf61b35b79c577140c43be2171b55a3dc76a9ae37b223c/main.spi
00:37:03 v #22742 > >
00:37:03 v #22743 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:03 v #22744 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:03 v #22745 > > │ ### route                                                                    │
00:37:03 v #22746 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:03 v #22747 > >
00:37:03 v #22748 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:03 v #22749 > > inl route path view children : view =
00:37:03 v #22750 > >     inl path = path |> sm'.to_std_string
00:37:03 v #22751 > >     inl path = join path
00:37:03 v #22752 > >     inl view : () -> fragment = join view
00:37:03 v #22753 > >     inl children : () -> fragment = join children
00:37:03 v #22754 > >     tag_closed_raw "leptos_router::Route" [[
00:37:03 v #22755 > >         $'"path=!path"'
00:37:03 v #22756 > >         $'"view=move || !view()"'
00:37:03 v #22757 > >         $'"children=Box::new(move || !children())"'
00:37:03 v #22758 > >     ]]
00:37:03 v #22759 > >     |> macro_to_view
00:37:03 v #22760 > 00:37:02 d #1310 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c0c86c204a70c6caf3184415dcd33b5e0628a1e98dcaaebd63e1edb08251a40/main.spi
00:37:03 v #22761 > >
00:37:03 v #22762 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:03 v #22763 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:03 v #22764 > > │ ### router                                                                   │
00:37:03 v #22765 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:03 v #22766 > >
00:37:03 v #22767 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:03 v #22768 > > inl router children : view =
00:37:03 v #22769 > >     inl children () =
00:37:03 v #22770 > >         children ()
00:37:03 v #22771 > >     inl children : () -> fragment = join children
00:37:03 v #22772 > >     tag_closed_raw "leptos_router::Router" [[
00:37:03 v #22773 > >         $'"children=Box::new(move || !children())"'
00:37:03 v #22774 > >     ]]
00:37:03 v #22775 > >     |> macro_to_view
00:37:03 v #22776 > 00:37:03 d #1311 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00d0ab265f59937fec902373ea32671c1c8e260d469d31b5c31075b8b1e4e6a9/main.spi
00:37:04 v #22777 > >
00:37:04 v #22778 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:04 v #22779 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:04 v #22780 > > │ ### routes                                                                   │
00:37:04 v #22781 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:04 v #22782 > >
00:37:04 v #22783 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:04 v #22784 > > inl routes children : view =
00:37:04 v #22785 > >     inl children : () -> fragment = children |> rust.emit
00:37:04 v #22786 > >     tag_closed_raw "leptos_router::Routes" [[
00:37:04 v #22787 > >         $'"children=Box::new(move || !children(()))"'
00:37:04 v #22788 > >     ]]
00:37:04 v #22789 > >     |> macro_to_view
00:37:04 v #22790 > 00:37:03 d #1312 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f39e648f827acf1f45fdab7a7270f1460a4e91392fae9d6a87ca7c198f6897d4/main.spi
00:37:04 v #22791 > >
00:37:04 v #22792 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:04 v #22793 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:04 v #22794 > > │ ### a'                                                                       │
00:37:04 v #22795 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:04 v #22796 > >
00:37:04 v #22797 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:04 v #22798 > > inl a' props children : _ a' =
00:37:04 v #22799 > >     tag_element "a" props children
00:37:04 v #22800 > 00:37:03 d #1313 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c0ec1b05358183b25cc6866503aa6c8e548ed25b7bd56d28f061e7ce8c4aad37/main.spi
00:37:04 v #22801 > >
00:37:04 v #22802 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:04 v #22803 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:04 v #22804 > > │ ### button                                                                   │
00:37:04 v #22805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:04 v #22806 > >
00:37:04 v #22807 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:04 v #22808 > > inl button props children : _ button =
00:37:04 v #22809 > >     tag_element "button" props children
00:37:05 v #22810 > 00:37:04 d #1314 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/500d4dbb4dcb0d980e15f40fe7be4da9306c39ccaba9edafdc7e61df6cd1433c/main.spi
00:37:05 v #22811 > >
00:37:05 v #22812 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:05 v #22813 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:05 v #22814 > > │ ### details                                                                  │
00:37:05 v #22815 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:05 v #22816 > >
00:37:05 v #22817 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:05 v #22818 > > inl details props children : _ details =
00:37:05 v #22819 > >     tag_element "details" props children
00:37:05 v #22820 > 00:37:04 d #1315 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d03f09bb9a57c20b052f6eb874f549f360cfa0bbce5a1ca44f0fe09e1270cd14/main.spi
00:37:05 v #22821 > >
00:37:05 v #22822 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:05 v #22823 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:05 v #22824 > > │ ### div                                                                      │
00:37:05 v #22825 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:05 v #22826 > >
00:37:05 v #22827 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:05 v #22828 > > inl div props children : _ div =
00:37:05 v #22829 > >     tag_element "div" props children
00:37:05 v #22830 > 00:37:05 d #1316 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f0e23c97f1530d34eb05e7d1b988226266f8e8db03f71372ec5f2a5ca34fd4d/main.spi
00:37:06 v #22831 > >
00:37:06 v #22832 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:06 v #22833 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:06 v #22834 > > │ ### footer                                                                   │
00:37:06 v #22835 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:06 v #22836 > >
00:37:06 v #22837 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:06 v #22838 > > inl footer props children : _ footer =
00:37:06 v #22839 > >     tag_element "footer" props children
00:37:06 v #22840 > 00:37:05 d #1317 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/edc41e6f267b9d9a009a795c3ff9551f3ed27c957497d2adfad89616695f0da4/main.spi
00:37:06 v #22841 > >
00:37:06 v #22842 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:06 v #22843 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:06 v #22844 > > │ ### header                                                                   │
00:37:06 v #22845 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:06 v #22846 > >
00:37:06 v #22847 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:06 v #22848 > > inl header props children : _ header =
00:37:06 v #22849 > >     tag_element "header" props children
00:37:06 v #22850 > 00:37:05 d #1318 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3bcb7574eac02570df49d53f9b41c07e23644b0af402c48b5dd8c6698fa9c2bd/main.spi
00:37:06 v #22851 > >
00:37:06 v #22852 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:06 v #22853 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:06 v #22854 > > │ ### label                                                                    │
00:37:06 v #22855 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:06 v #22856 > >
00:37:06 v #22857 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:06 v #22858 > > inl label props children : _ label =
00:37:06 v #22859 > >     tag_element "label" props children
00:37:07 v #22860 > 00:37:06 d #1319 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7ef491cec4cb5af42cc50845755bf624abd33708aeda89f638530cc0cc5c03/main.spi
00:37:07 v #22861 > >
00:37:07 v #22862 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:07 v #22863 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:07 v #22864 > > │ ### main                                                                     │
00:37:07 v #22865 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:07 v #22866 > >
00:37:07 v #22867 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:07 v #22868 > > inl main props children : _ main =
00:37:07 v #22869 > >     tag_element "main" props children
00:37:07 v #22870 > >
00:37:07 v #22871 > > inl main' () = ()
00:37:07 v #22872 > 00:37:06 d #1320 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e5ea0e2f2c6d4a53185f9efb5df9e7d47feedfb1f2a5c6b56149bb898cbdc384/main.spi
00:37:07 v #22873 > >
00:37:07 v #22874 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:07 v #22875 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:07 v #22876 > > │ ### nav                                                                      │
00:37:07 v #22877 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:07 v #22878 > >
00:37:07 v #22879 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:07 v #22880 > > inl nav props children : _ nav =
00:37:07 v #22881 > >     tag_element "nav" props children
00:37:08 v #22882 > 00:37:07 d #1321 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/72fab17379724e4c9f1a04fccc04c1e5b22c21b314616e4e9b537a75766036e8/main.spi
00:37:08 v #22883 > >
00:37:08 v #22884 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:08 v #22885 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:08 v #22886 > > │ ### option'                                                                  │
00:37:08 v #22887 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:08 v #22888 > >
00:37:08 v #22889 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:08 v #22890 > > inl option' props children : _ option' =
00:37:08 v #22891 > >     tag_element "option" props children
00:37:08 v #22892 > 00:37:07 d #1322 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f95e11ef33437749d2a33b8fb89efd746ca79d6a667ee9a053c46b8e9e60f2f/main.spi
00:37:08 v #22893 > >
00:37:08 v #22894 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:08 v #22895 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:08 v #22896 > > │ ### option'                                                                  │
00:37:08 v #22897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:08 v #22898 > >
00:37:08 v #22899 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:08 v #22900 > > inl option' select children : _ option' =
00:37:08 v #22901 > >     inl select : () -> bool = join select
00:37:08 v #22902 > >     option' [[
00:37:08 v #22903 > >         $'"select=!select()"'
00:37:08 v #22904 > >
00:37:08 v #22905 > >     ]] fun () =>
00:37:08 v #22906 > >         children |> new_text |> text_to_fragment
00:37:08 v #22907 > 00:37:08 d #1323 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffa2fa85f41d94ff1971c2fb736a703f7ed3115cebf85b6431eb1710a03b0892/main.spi
00:37:08 v #22908 > >
00:37:08 v #22909 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:08 v #22910 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:08 v #22911 > > │ ### pre                                                                      │
00:37:08 v #22912 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:08 v #22913 > >
00:37:08 v #22914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:08 v #22915 > > inl pre props children : _ pre =
00:37:08 v #22916 > >     tag_element "pre" props children
00:37:09 v #22917 > 00:37:08 d #1324 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06897d2c9c0541105dd934f0e27db2037914ab0a471cbfc9837aee922a5685d/main.spi
00:37:09 v #22918 > >
00:37:09 v #22919 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:09 v #22920 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:09 v #22921 > > │ ### select                                                                   │
00:37:09 v #22922 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:09 v #22923 > >
00:37:09 v #22924 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:09 v #22925 > > inl select props children : _ select =
00:37:09 v #22926 > >     tag_element "select" props children
00:37:09 v #22927 > 00:37:08 d #1325 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/30cb4d87f0a0363d752ce086c6c6782881f8d15c49cab7e37fede12474085d2b/main.spi
00:37:09 v #22928 > >
00:37:09 v #22929 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:09 v #22930 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:09 v #22931 > > │ ### span                                                                     │
00:37:09 v #22932 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:09 v #22933 > >
00:37:09 v #22934 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:09 v #22935 > > inl span props children : _ span =
00:37:09 v #22936 > >     tag_element "span" props children
00:37:10 v #22937 > 00:37:09 d #1326 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7bdad1f95b0f9711dc484a58ed5031a6b6ed0ba28c566d56c109f7857dff7754/main.spi
00:37:10 v #22938 > >
00:37:10 v #22939 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:10 v #22940 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:10 v #22941 > > │ ### summary                                                                  │
00:37:10 v #22942 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:10 v #22943 > >
00:37:10 v #22944 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:10 v #22945 > > inl summary props children : _ summary =
00:37:10 v #22946 > >     tag_element "summary" props children
00:37:10 v #22947 > 00:37:09 d #1327 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a7bc6464fec2bc38933988277e19fbe1c36e9dea05ac49d3ac7cafbcd5c6fcc6/main.spi
00:37:10 v #22948 > >
00:37:10 v #22949 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:10 v #22950 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:10 v #22951 > > │ ### table                                                                    │
00:37:10 v #22952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:10 v #22953 > >
00:37:10 v #22954 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:10 v #22955 > > inl table props children : _ table =
00:37:10 v #22956 > >     tag_element "table" props children
00:37:10 v #22957 > 00:37:10 d #1328 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/613efaec43435716b3828d9a3e35b3fd1571af37b7d3d89638bd6adae84fa1a7/main.spi
00:37:11 v #22958 > >
00:37:11 v #22959 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:11 v #22960 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:11 v #22961 > > │ ### thead                                                                    │
00:37:11 v #22962 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:11 v #22963 > >
00:37:11 v #22964 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:11 v #22965 > > inl thead props children : _ thead =
00:37:11 v #22966 > >     tag_element "thead" props children
00:37:11 v #22967 > 00:37:10 d #1329 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d23e210e770e3d6656988a88ff6116e2120ffdf8309b025fe134b6eb9ef8ff5/main.spi
00:37:11 v #22968 > >
00:37:11 v #22969 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:11 v #22970 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:11 v #22971 > > │ ### tbody                                                                    │
00:37:11 v #22972 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:11 v #22973 > >
00:37:11 v #22974 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:11 v #22975 > > inl tbody props children : _ tbody =
00:37:11 v #22976 > >     tag_element "tbody" props children
00:37:11 v #22977 > 00:37:10 d #1330 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7e9ac7dc319eed48a19b8d24d04ef1428c4670a133321d1f2e5a3e9c488455af/main.spi
00:37:11 v #22978 > >
00:37:11 v #22979 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:11 v #22980 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:11 v #22981 > > │ ### tr                                                                       │
00:37:11 v #22982 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:11 v #22983 > >
00:37:11 v #22984 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:11 v #22985 > > inl tr props children : _ tr =
00:37:11 v #22986 > >     tag_element "tr" props children
00:37:12 v #22987 > 00:37:11 d #1331 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36af39152eede9c3c8936f40fc51b5a34824fbc019d44eaba126f36b332e37a8/main.spi
00:37:12 v #22988 > >
00:37:12 v #22989 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:12 v #22990 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:12 v #22991 > > │ ### th                                                                       │
00:37:12 v #22992 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:12 v #22993 > >
00:37:12 v #22994 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:12 v #22995 > > inl th props children : _ th =
00:37:12 v #22996 > >     tag_element "th" props children
00:37:12 v #22997 > 00:37:11 d #1332 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b268549bd3c3947989de6b2a165a9ca4afdf0cec8a0e44e07fdf9a536ca0d536/main.spi
00:37:12 v #22998 > >
00:37:12 v #22999 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:12 v #23000 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:12 v #23001 > > │ ### td                                                                       │
00:37:12 v #23002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:12 v #23003 > >
00:37:12 v #23004 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:12 v #23005 > > inl td props children : _ td =
00:37:12 v #23006 > >     tag_element "td" props children
00:37:12 v #23007 > 00:37:12 d #1333 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ab2a58ad466510f046265abc3ad6ba83463e0842c0412057d6a911338abc874/main.spi
00:37:13 v #23008 > >
00:37:13 v #23009 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:13 v #23010 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:13 v #23011 > > │ ### svg                                                                      │
00:37:13 v #23012 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:13 v #23013 > >
00:37:13 v #23014 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:13 v #23015 > > inl svg props children : _ svg =
00:37:13 v #23016 > >     tag_element "svg" props children
00:37:13 v #23017 > 00:37:12 d #1334 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5e1f1867fd59c5ed3c1536af9d6d59f5d86757f3143d085367b320f5d8241a36/main.spi
00:37:13 v #23018 > >
00:37:13 v #23019 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:13 v #23020 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:13 v #23021 > > │ ### path                                                                     │
00:37:13 v #23022 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:13 v #23023 > >
00:37:13 v #23024 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:13 v #23025 > > inl path props : _ path =
00:37:13 v #23026 > >     tag_element "path" props (fun () => ;[[]] |> view_array_to_fragment)
00:37:13 v #23027 > 00:37:13 d #1335 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/828af9f80c68f6a075740609f42c13faba7c3209d69511ecad8557569bdd631b/main.spi
00:37:14 v #23028 > >
00:37:14 v #23029 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:14 v #23030 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:14 v #23031 > > │ ### circle                                                                   │
00:37:14 v #23032 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:14 v #23033 > >
00:37:14 v #23034 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:14 v #23035 > > inl circle props : _ circle =
00:37:14 v #23036 > >     tag_element "circle" props (fun () => ;[[]] |> view_array_to_fragment)
00:37:14 v #23037 > 00:37:13 d #1336 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2337b6a6bfa9a204908ac04fce6fc7d6f1b9df1671917b2672a9c359b54c56d7/main.spi
00:37:14 v #23038 > >
00:37:14 v #23039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:14 v #23040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:14 v #23041 > > │ ### rect                                                                     │
00:37:14 v #23042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:14 v #23043 > >
00:37:14 v #23044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:14 v #23045 > > inl rect props children : _ rect =
00:37:14 v #23046 > >     tag_element "rect" props children
00:37:14 v #23047 > 00:37:13 d #1337 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0377a94d08c09da607e39add2a701df36c32307478b8599ced46c900942167b5/main.spi
00:37:14 v #23048 > >
00:37:14 v #23049 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:14 v #23050 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:14 v #23051 > > │ ### animate                                                                  │
00:37:14 v #23052 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:14 v #23053 > >
00:37:14 v #23054 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:14 v #23055 > > inl animate props : _ animate =
00:37:14 v #23056 > >     tag_element "animate" props (fun () => ;[[]] |> view_array_to_fragment)
00:37:15 v #23057 > 00:37:14 d #1338 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/549891d9b808f97e6a08cf626b4694ac33324b16884e1192e53f1a723d8aa03b/main.spi
00:37:15 v #23058 > >
00:37:15 v #23059 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:15 v #23060 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:15 v #23061 > > │ ### input                                                                    │
00:37:15 v #23062 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:15 v #23063 > >
00:37:15 v #23064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:15 v #23065 > > inl input props : _ input =
00:37:15 v #23066 > >     tag_closed "input" props
00:37:15 v #23067 > 00:37:14 d #1339 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6671b31d7e884d0cde1eb2212b9d7c0e1eee9fb0b6bccbb963e07177c65fcb1a/main.spi
00:37:15 v #23068 > >
00:37:15 v #23069 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:15 v #23070 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:15 v #23071 > > │ ### dd                                                                       │
00:37:15 v #23072 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:15 v #23073 > >
00:37:15 v #23074 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:15 v #23075 > > inl dd props children : _ dd =
00:37:15 v #23076 > >     tag_element "dd" props children
00:37:15 v #23077 > 00:37:15 d #1340 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf57e7af4749e83163a176b9c74961dd1d6e32c5e3652f383d83fcf9e403f57b/main.spi
00:37:16 v #23078 > >
00:37:16 v #23079 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:16 v #23080 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:16 v #23081 > > │ ### dl                                                                       │
00:37:16 v #23082 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:16 v #23083 > >
00:37:16 v #23084 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:16 v #23085 > > inl dl props children : _ dl =
00:37:16 v #23086 > >     tag_element "dl" props children
00:37:16 v #23087 > 00:37:15 d #1341 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eac2ede2c4e3f3641cad9e16efd24d48ec2bd540fdeb5eb59d09794a5e93ca52/main.spi
00:37:16 v #23088 > >
00:37:16 v #23089 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:16 v #23090 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:16 v #23091 > > │ ### dt                                                                       │
00:37:16 v #23092 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:16 v #23093 > >
00:37:16 v #23094 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:16 v #23095 > > inl dt props children : _ dt =
00:37:16 v #23096 > >     tag_element "dt" props children
00:37:16 v #23097 > 00:37:15 d #1342 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a72479acbb64dd20fbdc850cfe347a19578ed724e7c25bd4fb2045d4643f129a/main.spi
00:37:17 v #23098 > 00:01:24 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 107272 }
00:37:17 v #23099 > 00:01:24 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:37:18 v #23100 > 00:01:26 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb to html
00:37:18 v #23101 > 00:01:26 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:37:18 v #23102 > 00:01:26 v #7 !   validate(nb)
00:37:19 v #23103 > 00:01:27 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:37:19 v #23104 > 00:01:27 v #9 !   return _pygments_highlight(
00:37:21 v #23105 > 00:01:28 v #10 ! [NbConvertApp] Writing 594935 bytes to c:\home\git\polyglot\lib\spiral\leptos\leptos.dib.html
00:37:21 v #23106 > 00:01:29 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 868 }
00:37:21 v #23107 > 00:01:29 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 868 }
00:37:21 v #23108 > 00:01:29 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:37:21 v #23109 > 00:01:29 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:37:21 v #23110 > 00:01:29 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:37:21 v #23111 > 00:01:29 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 108199 }
00:37:21 d #23112 runtime.execute_with_options_async / { exit_code = 0; output_length = 115157 }
00:37:21 d #28 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path leptos/leptos.dib --retries 3
00:37:21 d #23113 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path util.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path util.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:37:21 v #23114 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "util.dib", "--retries", "3"])) }
00:37:21 v #23115 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/util.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/util.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/util.dib" --output-path "c:/home/git/polyglot/lib/spiral/util.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:37:23 v #23116 > >
00:37:23 v #23117 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:23 v #23118 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:23 v #23119 > > │ # util                                                                       │
00:37:23 v #23120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:26 v #23121 > >
00:37:26 v #23122 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:26 v #23123 > > //// test
00:37:26 v #23124 > >
00:37:26 v #23125 > > open testing
00:37:27 v #23126 > 00:37:26 d #1343 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:37:27 v #23127 > >
00:37:27 v #23128 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:27 v #23129 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:27 v #23130 > > │ ### ski                                                                      │
00:37:27 v #23131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:27 v #23132 > >
00:37:27 v #23133 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:27 v #23134 > > union rec ski =
00:37:27 v #23135 > >     | I
00:37:27 v #23136 > >     | K
00:37:27 v #23137 > >     | S
00:37:27 v #23138 > >     | App : ski * ski
00:37:27 v #23139 > >
00:37:27 v #23140 > > inl rec eval ski =
00:37:27 v #23141 > >     match ski with
00:37:27 v #23142 > >     | App (App (K, x), y) => x |> eval
00:37:27 v #23143 > >     | App (App (App (S, x), y), z) => App (App (x, z), App (y, z)) |> eval
00:37:27 v #23144 > >     | App (I, x) => x |> eval
00:37:27 v #23145 > >     | App (K, x) => App (K, eval x)
00:37:27 v #23146 > >     | App (f, x) => App (eval f, x) |> eval
00:37:27 v #23147 > >     | _ => ski
00:37:28 v #23148 > 00:37:27 d #1344 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55f68dd739e62774e446e048bfbc0da20505423faa7837ca275a45e00b7aa12a/main.spi
00:37:28 v #23149 > >
00:37:28 v #23150 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:28 v #23151 > > //// test
00:37:28 v #23152 > >
00:37:28 v #23153 > > eval I
00:37:28 v #23154 > > |> _assert_eq I
00:37:28 v #23155 > >
00:37:28 v #23156 > > App (I, I)
00:37:28 v #23157 > > |> eval
00:37:28 v #23158 > > |> _assert_eq I
00:37:28 v #23159 > >
00:37:28 v #23160 > > App (I, App (I, I))
00:37:28 v #23161 > > |> eval
00:37:28 v #23162 > > |> _assert_eq I
00:37:28 v #23163 > >
00:37:28 v #23164 > > App (App (I, I), I)
00:37:28 v #23165 > > |> eval
00:37:28 v #23166 > > |> _assert_eq I
00:37:28 v #23167 > >
00:37:28 v #23168 > > App (App (App (I, I), I), I)
00:37:28 v #23169 > > |> eval
00:37:28 v #23170 > > |> _assert_eq I
00:37:28 v #23171 > >
00:37:28 v #23172 > > eval K
00:37:28 v #23173 > > |> _assert_eq K
00:37:28 v #23174 > >
00:37:28 v #23175 > > App (K, I)
00:37:28 v #23176 > > |> eval
00:37:28 v #23177 > > |> _assert_eq (App (K, I))
00:37:28 v #23178 > >
00:37:28 v #23179 > > App (K, K)
00:37:28 v #23180 > > |> eval
00:37:28 v #23181 > > |> _assert_eq (App (K, K))
00:37:28 v #23182 > >
00:37:28 v #23183 > > App (App (K, I), K)
00:37:28 v #23184 > > |> eval
00:37:28 v #23185 > > |> _assert_eq I
00:37:28 v #23186 > >
00:37:28 v #23187 > > App (App (K, K), I)
00:37:28 v #23188 > > |> eval
00:37:28 v #23189 > > |> _assert_eq K
00:37:28 v #23190 > >
00:37:28 v #23191 > > App (App (App (App (K, K), I), S), K)
00:37:28 v #23192 > > |> eval
00:37:28 v #23193 > > |> _assert_eq S
00:37:28 v #23194 > >
00:37:28 v #23195 > > eval S
00:37:28 v #23196 > > |> _assert_eq S
00:37:28 v #23197 > >
00:37:28 v #23198 > > App (App (App (S, I), I), I)
00:37:28 v #23199 > > |> eval
00:37:28 v #23200 > > |> _assert_eq I
00:37:28 v #23201 > >
00:37:28 v #23202 > > App (App (App (S, K), K), I)
00:37:28 v #23203 > > |> eval
00:37:28 v #23204 > > |> _assert_eq I
00:37:28 v #23205 > >
00:37:28 v #23206 > > App (App (App (S, K), I), (App (App (K, I), S)))
00:37:28 v #23207 > > |> eval
00:37:28 v #23208 > > |> _assert_eq I
00:37:28 v #23209 > >
00:37:28 v #23210 > > App (App (K, S), App (I, App (App (App (S, K), S), I)))
00:37:28 v #23211 > > |> eval
00:37:28 v #23212 > > |> _assert_eq S
00:37:28 v #23213 > >
00:37:28 v #23214 > > App (App (App (S, K), I), K)
00:37:28 v #23215 > > |> eval
00:37:28 v #23216 > > |> _assert_eq K
00:37:28 v #23217 > 00:37:27 d #1345 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e6eefee28c7d2dded6638cfb752cc7777423c10b0b777a8ffdcf84642865b015/main.spi
00:37:29 v #23218 > >
00:37:29 v #23219 > > ╭─[ 1.54s - stdout ]───────────────────────────────────────────────────────────╮
00:37:29 v #23220 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:37:29 v #23221 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:37:29 v #23222 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:37:29 v #23223 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:37:29 v #23224 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:37:29 v #23225 > > │ __assert_eq / actual: UH0_1 / expected: UH0_1                                │
00:37:29 v #23226 > > │ __assert_eq / actual: UH0_3 (UH0_1, UH0_0) / expected: UH0_3 (UH0_1, UH0_0)  │
00:37:29 v #23227 > > │ __assert_eq / actual: UH0_3 (UH0_1, UH0_1) / expected: UH0_3 (UH0_1, UH0_1)  │
00:37:29 v #23228 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:37:29 v #23229 > > │ __assert_eq / actual: UH0_1 / expected: UH0_1                                │
00:37:29 v #23230 > > │ __assert_eq / actual: UH0_2 / expected: UH0_2                                │
00:37:29 v #23231 > > │ __assert_eq / actual: UH0_2 / expected: UH0_2                                │
00:37:29 v #23232 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:37:29 v #23233 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:37:29 v #23234 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:37:29 v #23235 > > │ __assert_eq / actual: UH0_2 / expected: UH0_2                                │
00:37:29 v #23236 > > │ __assert_eq / actual: UH0_1 / expected: UH0_1                                │
00:37:29 v #23237 > > │                                                                              │
00:37:29 v #23238 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:29 v #23239 > 00:00:08 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 3706 }
00:37:29 v #23240 > 00:00:08 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/util.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/util.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:37:31 v #23241 > 00:00:09 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/util.dib.ipynb to html
00:37:31 v #23242 > 00:00:09 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:37:31 v #23243 > 00:00:09 v #7 !   validate(nb)
00:37:31 v #23244 > 00:00:10 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:37:31 v #23245 > 00:00:10 v #9 !   return _pygments_highlight(
00:37:32 v #23246 > 00:00:10 v #10 ! [NbConvertApp] Writing 284347 bytes to c:\home\git\polyglot\lib\spiral\util.dib.html
00:37:32 v #23247 > 00:00:10 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 850 }
00:37:32 v #23248 > 00:00:10 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 850 }
00:37:32 v #23249 > 00:00:10 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/util.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/util.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:37:32 v #23250 > 00:00:10 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:37:32 v #23251 > 00:00:10 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:37:32 v #23252 > 00:00:10 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 4615 }
00:37:32 d #23253 runtime.execute_with_options_async / { exit_code = 0; output_length = 7402 }
00:37:32 d #29 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path util.dib --retries 3
00:37:32 d #23254 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path platform.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path platform.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:37:32 v #23255 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "platform.dib", "--retries", "3"])) }
00:37:32 v #23256 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/platform.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/platform.dib" --output-path "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:37:34 v #23257 > >
00:37:34 v #23258 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:34 v #23259 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:34 v #23260 > > │ # platform                                                                   │
00:37:34 v #23261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:37 v #23262 > >
00:37:37 v #23263 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:37 v #23264 > > open rust.rust_operators
00:37:38 v #23265 > 00:37:37 d #1346 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40daf77a2acec5ac15e1cf56631d4105f4f565759117828320eb559038e65549/main.spi
00:37:39 v #23266 > >
00:37:39 v #23267 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:39 v #23268 > > //// test
00:37:39 v #23269 > >
00:37:39 v #23270 > > open testing
00:37:39 v #23271 > 00:37:38 d #1347 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc76f360fd664f6988ee1c6bc1dc43132802e524aab226e74a21329193e410ca/main.spi
00:37:39 v #23272 > >
00:37:39 v #23273 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:39 v #23274 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:39 v #23275 > > │ ## fsharp                                                                    │
00:37:39 v #23276 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:39 v #23277 > >
00:37:39 v #23278 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:39 v #23279 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:39 v #23280 > > │ ### os_platform                                                              │
00:37:39 v #23281 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:39 v #23282 > >
00:37:39 v #23283 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:39 v #23284 > > nominal os_platform' = $'System.Runtime.InteropServices.OSPlatform'
00:37:39 v #23285 > >
00:37:39 v #23286 > > union os_platform =
00:37:39 v #23287 > >     | FreeBSD
00:37:39 v #23288 > >     | Linux
00:37:39 v #23289 > >     | OSX
00:37:39 v #23290 > >     | Windows
00:37:39 v #23291 > >
00:37:39 v #23292 > > inl os_platform = function
00:37:39 v #23293 > >     | FreeBSD => $'`os_platform'.FreeBSD' : os_platform'
00:37:39 v #23294 > >     | Linux => $'`os_platform'.Linux' : os_platform'
00:37:39 v #23295 > >     | OSX => $'`os_platform'.OSX' : os_platform'
00:37:39 v #23296 > >     | Windows => $'`os_platform'.Windows' : os_platform'
00:37:39 v #23297 > 00:37:38 d #1348 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c32de1c5bf9d34fabf6a9721eb9d8b96096707a5541684526fc2bba35311411/main.spi
00:37:39 v #23298 > >
00:37:39 v #23299 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:39 v #23300 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:39 v #23301 > > │ ### run_platform                                                             │
00:37:39 v #23302 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:39 v #23303 > >
00:37:39 v #23304 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:39 v #23305 > > inl run_platform forall t. (fn : os_platform -> (() -> t)) : t =
00:37:39 v #23306 > >     inl result = dyn true
00:37:39 v #23307 > >     $'let mutable _!result : `t option = None '
00:37:39 v #23308 > >     $'\n#if _FREEBSD'
00:37:39 v #23309 > >     fn FreeBSD () |> emit_unit
00:37:39 v #23310 > >     $'#endif\n#if _LINUX'
00:37:39 v #23311 > >     fn Linux () |> emit_unit
00:37:39 v #23312 > >     $'#endif\n#if _OSX'
00:37:39 v #23313 > >     fn OSX () |> emit_unit
00:37:39 v #23314 > >     $'#endif\n#if _WINDOWS'
00:37:39 v #23315 > >     fn Windows () |> emit_unit
00:37:39 v #23316 > >     $'#endif'
00:37:39 v #23317 > >     $'|> fun x -> _!result <- Some x'
00:37:39 v #23318 > >     $'match _!result with Some x -> x | None -> failwith "runtime.run_platform
00:37:39 v #23319 > > _!result=None"'
00:37:40 v #23320 > 00:37:39 d #1349 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47bf326727728f93f58c822e221362c18a6dc603580a4941b95038d6da0a638c/main.spi
00:37:40 v #23321 > >
00:37:40 v #23322 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:40 v #23323 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:40 v #23324 > > │ ### is_os_platform                                                           │
00:37:40 v #23325 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:40 v #23326 > >
00:37:40 v #23327 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:40 v #23328 > > inl is_os_platform (x : os_platform') : bool =
00:37:40 v #23329 > >     x |> $'System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform'
00:37:40 v #23330 > 00:37:39 d #1350 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7769c8cab742adfe4b3e91539edebb835b5feb0cd2336fa895e6d2db985656f4/main.spi
00:37:40 v #23331 > >
00:37:40 v #23332 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:40 v #23333 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:40 v #23334 > > │ ### is_windows'                                                              │
00:37:40 v #23335 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:40 v #23336 > >
00:37:40 v #23337 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:40 v #23338 > > inl is_windows' () : bool =
00:37:40 v #23339 > >     run_platform function
00:37:40 v #23340 > >         | Windows => fun () => true
00:37:40 v #23341 > >         | _ => fun () => false
00:37:40 v #23342 > 00:37:40 d #1351 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/417428c076a7cc10300e2f77ce5613b90be2cabd34c9bd51a0b3d7c8c197c13f/main.spi
00:37:41 v #23343 > >
00:37:41 v #23344 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:41 v #23345 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:41 v #23346 > > │ ## platform                                                                  │
00:37:41 v #23347 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:41 v #23348 > >
00:37:41 v #23349 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:41 v #23350 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:41 v #23351 > > │ ### is_windows                                                               │
00:37:41 v #23352 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:41 v #23353 > >
00:37:41 v #23354 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:41 v #23355 > > inl is_windows () : bool =
00:37:41 v #23356 > >     run_target function
00:37:41 v #23357 > >         | Rust _ => fun () =>
00:37:41 v #23358 > >             !\($'"cfg\!(windows)"')
00:37:41 v #23359 > >         | Fsharp _ => fun () =>
00:37:41 v #23360 > >             Windows |> os_platform |> is_os_platform
00:37:41 v #23361 > >         | target => fun () => failwith $'$"platform.is_windows / target:
00:37:41 v #23362 > > {!target}"'
00:37:41 v #23363 > 00:37:40 d #1352 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0613ba42d20a635d1d0fb75744e0afda48d18f0c41e727e00edb4cc4dd459413/main.spi
00:37:41 v #23364 > >
00:37:41 v #23365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:41 v #23366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:41 v #23367 > > │ ### get_executable_suffix                                                    │
00:37:41 v #23368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:41 v #23369 > >
00:37:41 v #23370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:41 v #23371 > > inl get_executable_suffix () =
00:37:41 v #23372 > >     if is_windows ()
00:37:41 v #23373 > >     then ".exe"
00:37:41 v #23374 > >     else ""
00:37:41 v #23375 > 00:37:40 d #1353 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/37afbc76c269c0c7e4da4356dfb0e348d6d029b435d5e8fb5d366df470fd4680/main.spi
00:37:41 v #23376 > >
00:37:41 v #23377 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:41 v #23378 > > //// test
00:37:41 v #23379 > >
00:37:41 v #23380 > > get_executable_suffix ()
00:37:42 v #23381 > 00:37:41 d #1354 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e4533ec8b16727055ea84ea1750ef3c83fa180554601dbb8afaeff8828f717c2/main.spi
00:37:43 v #23382 > >
00:37:43 v #23383 > > ╭─[ 1.41s - return value ]─────────────────────────────────────────────────────╮
00:37:43 v #23384 > > │ .exe                                                                         │
00:37:43 v #23385 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:43 v #23386 > >
00:37:43 v #23387 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:43 v #23388 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:43 v #23389 > > │ ## main                                                                      │
00:37:43 v #23390 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:43 v #23391 > >
00:37:43 v #23392 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:43 v #23393 > > inl main () =
00:37:43 v #23394 > >     $'let is_windows () = !is_windows ()' : ()
00:37:43 v #23395 > >     $'let get_executable_suffix () = !get_executable_suffix ()' : ()
00:37:43 v #23396 > 00:37:42 d #1355 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d59b38ab9dcec7ead42652d7326bd3a4473fe477c742ead61c3801b48061706/main.spi
00:37:43 v #23397 > 00:00:11 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 6028 }
00:37:43 v #23398 > 00:00:11 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:37:45 v #23399 > 00:00:12 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/platform.dib.ipynb to html
00:37:45 v #23400 > 00:00:12 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:37:45 v #23401 > 00:00:12 v #7 !   validate(nb)
00:37:46 v #23402 > 00:00:13 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:37:46 v #23403 > 00:00:13 v #9 !   return _pygments_highlight(
00:37:46 v #23404 > 00:00:13 v #10 ! [NbConvertApp] Writing 288028 bytes to c:\home\git\polyglot\lib\spiral\platform.dib.html
00:37:46 v #23405 > 00:00:13 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 858 }
00:37:46 v #23406 > 00:00:13 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 858 }
00:37:46 v #23407 > 00:00:13 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/platform.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/platform.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:37:46 v #23408 > 00:00:14 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:37:46 v #23409 > 00:00:14 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:37:46 v #23410 > 00:00:14 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 6945 }
00:37:46 d #23411 runtime.execute_with_options_async / { exit_code = 0; output_length = 9788 }
00:37:46 d #30 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path platform.dib --retries 3
00:37:46 d #23412 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path stream.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path stream.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:37:46 v #23413 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "stream.dib", "--retries", "3"])) }
00:37:46 v #23414 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/stream.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/stream.dib" --output-path "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:37:48 v #23415 > >
00:37:48 v #23416 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:48 v #23417 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:48 v #23418 > > │ # stream                                                                     │
00:37:48 v #23419 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:52 v #23420 > >
00:37:52 v #23421 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:52 v #23422 > > open rust.rust_operators
00:37:52 v #23423 > 00:37:52 d #1356 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40daf77a2acec5ac15e1cf56631d4105f4f565759117828320eb559038e65549/main.spi
00:37:53 v #23424 > >
00:37:53 v #23425 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:53 v #23426 > > //// test
00:37:53 v #23427 > >
00:37:53 v #23428 > > open testing
00:37:53 v #23429 > 00:37:52 d #1357 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc76f360fd664f6988ee1c6bc1dc43132802e524aab226e74a21329193e410ca/main.spi
00:37:53 v #23430 > >
00:37:53 v #23431 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:53 v #23432 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:53 v #23433 > > │ ## stream                                                                    │
00:37:53 v #23434 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:53 v #23435 > >
00:37:53 v #23436 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:53 v #23437 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:53 v #23438 > > │ ### stream                                                                   │
00:37:53 v #23439 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:53 v #23440 > >
00:37:53 v #23441 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:53 v #23442 > > union rec stream t =
00:37:53 v #23443 > >     | StreamCons : t * (() -> stream t)
00:37:53 v #23444 > >     | StreamNil
00:37:54 v #23445 > 00:37:53 d #1358 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76946fbb1269d635c3470ecb54440059bca3f8043cc093603e66044e4380a1ef/main.spi
00:37:54 v #23446 > >
00:37:54 v #23447 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:54 v #23448 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:54 v #23449 > > │ ### fold                                                                     │
00:37:54 v #23450 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:54 v #23451 > >
00:37:54 v #23452 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:54 v #23453 > > inl fold fn init s =
00:37:54 v #23454 > >     inl rec body acc = function
00:37:54 v #23455 > >         | StreamCons (st, fn') => loop (fn acc st) (fn' ())
00:37:54 v #23456 > >         | StreamNil => acc
00:37:54 v #23457 > >     and inl loop acc = join_body body acc
00:37:54 v #23458 > >     loop init s
00:37:54 v #23459 > 00:37:53 d #1359 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76713be4d0a4b2715a87bb9e742cb4a6cd34800419b62b7787c1a2865ffc0b21/main.spi
00:37:54 v #23460 > >
00:37:54 v #23461 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:54 v #23462 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:54 v #23463 > > │ ### fold_back                                                                │
00:37:54 v #23464 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:54 v #23465 > >
00:37:54 v #23466 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:54 v #23467 > > inl fold_back fn s init =
00:37:54 v #23468 > >     inl rec body acc = function
00:37:54 v #23469 > >         | StreamCons (st, fn') => fn st (loop acc (fn' ()))
00:37:54 v #23470 > >         | StreamNil => acc
00:37:54 v #23471 > >     and inl loop acc = join_body body acc
00:37:54 v #23472 > >     loop init s
00:37:54 v #23473 > 00:37:54 d #1360 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/adeb784d9ab42e51b84ab5c9b16825eeb63c05dfde55667773b6ab6e616062be/main.spi
00:37:54 v #23474 > >
00:37:54 v #23475 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:54 v #23476 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:54 v #23477 > > │ ### to_list                                                                  │
00:37:54 v #23478 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:54 v #23479 > >
00:37:54 v #23480 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:54 v #23481 > > inl to_list s =
00:37:54 v #23482 > >     (s, [[]])
00:37:54 v #23483 > >     ||> fold_back fun x acc =>
00:37:54 v #23484 > >         x :: acc
00:37:55 v #23485 > 00:37:54 d #1361 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/abafa7cbb637a6ce258246d5dc774ec96fed8bc4bca11eb22f8857e863207834/main.spi
00:37:55 v #23486 > >
00:37:55 v #23487 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:55 v #23488 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:55 v #23489 > > │ ### rev                                                                      │
00:37:55 v #23490 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:55 v #23491 > >
00:37:55 v #23492 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:55 v #23493 > > inl rev s =
00:37:55 v #23494 > >     (StreamNil, s)
00:37:55 v #23495 > >     ||> fold fun s x =>
00:37:55 v #23496 > >         StreamCons (x, fun () => s)
00:37:55 v #23497 > 00:37:54 d #1362 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/161fb649f3d594cca11fd0336fbebcfa5fdfca5d194f1462a06ebb4b1d60e002/main.spi
00:37:55 v #23498 > >
00:37:55 v #23499 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:55 v #23500 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:55 v #23501 > > │ ### from_list                                                                │
00:37:55 v #23502 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:55 v #23503 > >
00:37:55 v #23504 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:55 v #23505 > > inl from_list list =
00:37:55 v #23506 > >     (list, StreamNil)
00:37:55 v #23507 > >     ||> listm.foldBack fun x acc =>
00:37:55 v #23508 > >         StreamCons (x, fun () => acc)
00:37:55 v #23509 > 00:37:55 d #1363 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/39d6bf8b7ae8e70cffee12754a63342206d8d57e9bdec161812e0743a27c99a7/main.spi
00:37:56 v #23510 > >
00:37:56 v #23511 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:56 v #23512 > > //// test
00:37:56 v #23513 > >
00:37:56 v #23514 > > listm.init 3i32 id
00:37:56 v #23515 > > |> from_list
00:37:56 v #23516 > > |> rev
00:37:56 v #23517 > > |> to_list
00:37:56 v #23518 > > |> _assert_eq [[ 2; 1; 0 ]]
00:37:56 v #23519 > 00:37:55 d #1364 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0a1d51e168db0898c0d3bdedf05d49e90ebc8c77fe815b5964324701ca0ded0a/main.spi
00:37:57 v #23520 > >
00:37:57 v #23521 > > ╭─[ 1.35s - stdout ]───────────────────────────────────────────────────────────╮
00:37:57 v #23522 > > │ __assert_eq / actual: UH0_1 (2, UH0_1 (1, UH0_1 (0, UH0_0))) / expected:     │
00:37:57 v #23523 > > │ UH0_1 (2, UH0_1 (1, UH0_1 (0, UH0_0)))                                       │
00:37:57 v #23524 > > │                                                                              │
00:37:57 v #23525 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:57 v #23526 > >
00:37:57 v #23527 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:57 v #23528 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:57 v #23529 > > │ ### try_item                                                                 │
00:37:57 v #23530 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:57 v #23531 > >
00:37:57 v #23532 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:57 v #23533 > > inl try_item i s =
00:37:57 v #23534 > >     inl rec body i = function
00:37:57 v #23535 > >         | StreamCons (x, _) when i <= 0 => Some x
00:37:57 v #23536 > >         | StreamCons (_, fn) => loop (i - 1) (fn ())
00:37:57 v #23537 > >         | StreamNil => None
00:37:57 v #23538 > >     and inl loop acc s' =
00:37:57 v #23539 > >         match var_is acc, var_is s' with
00:37:57 v #23540 > >         | false, false => body acc s'
00:37:57 v #23541 > >         | _ =>
00:37:57 v #23542 > >             inl acc = dyn acc
00:37:57 v #23543 > >             inl s' = dyn s'
00:37:57 v #23544 > >             join body acc s'
00:37:57 v #23545 > >     loop i s
00:37:57 v #23546 > >
00:37:57 v #23547 > > inl item i =
00:37:57 v #23548 > >     try_item i >> optionm.value
00:37:57 v #23549 > 00:37:56 d #1365 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2bea7b82a0c943e734e5b1c11556ec455917f9b2785463c236084eedecb6de71/main.spi
00:37:57 v #23550 > >
00:37:57 v #23551 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:57 v #23552 > > //// test
00:37:57 v #23553 > >
00:37:57 v #23554 > > listm.init 10i32 id
00:37:57 v #23555 > > |> from_list
00:37:57 v #23556 > > |> item 9i32
00:37:57 v #23557 > > |> _assert_eq 9
00:37:58 v #23558 > 00:37:57 d #1366 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5400b553f642baff07ab63f9a938971b28f4b5b7a0269363af6c25fa2fd90389/main.spi
00:37:58 v #23559 > >
00:37:58 v #23560 > > ╭─[ 454.70ms - stdout ]────────────────────────────────────────────────────────╮
00:37:58 v #23561 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:37:58 v #23562 > > │                                                                              │
00:37:58 v #23563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:58 v #23564 > >
00:37:58 v #23565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:58 v #23566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:58 v #23567 > > │ ### new_infinite_stream                                                      │
00:37:58 v #23568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:58 v #23569 > >
00:37:58 v #23570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:58 v #23571 > > inl new_infinite_stream fn =
00:37:58 v #23572 > >     inl rec loop n =
00:37:58 v #23573 > >         StreamCons (fn n, fun () => loop (n + 1))
00:37:58 v #23574 > >     loop 0
00:37:58 v #23575 > >
00:37:58 v #23576 > > inl new_infinite_stream_ fn =
00:37:58 v #23577 > >     let rec loop n =
00:37:58 v #23578 > >         StreamCons (fn n, fun () => loop (n + 1))
00:37:58 v #23579 > >     loop 0
00:37:58 v #23580 > 00:37:57 d #1367 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59b9a53041342e432141efe7256f43aa1fd1dac8936ccd968c539ec02f830361/main.spi
00:37:58 v #23581 > >
00:37:58 v #23582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:58 v #23583 > > //// test
00:37:58 v #23584 > >
00:37:58 v #23585 > > new_infinite_stream print_and_return
00:37:58 v #23586 > > |> item 4i32
00:37:58 v #23587 > > |> _assert_eq 4i32
00:37:58 v #23588 > 00:37:58 d #1368 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/994a425d0f3e29d9593364952a1abb0079106763d897cc4c0c3da6ddb4a8a6bc/main.spi
00:37:59 v #23589 > >
00:37:59 v #23590 > > ╭─[ 418.46ms - stdout ]────────────────────────────────────────────────────────╮
00:37:59 v #23591 > > │ print_and_return / x: 0                                                      │
00:37:59 v #23592 > > │ print_and_return / x: 1                                                      │
00:37:59 v #23593 > > │ print_and_return / x: 2                                                      │
00:37:59 v #23594 > > │ print_and_return / x: 3                                                      │
00:37:59 v #23595 > > │ print_and_return / x: 4                                                      │
00:37:59 v #23596 > > │ __assert_eq / actual: 4 / expected: 4                                        │
00:37:59 v #23597 > > │                                                                              │
00:37:59 v #23598 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:59 v #23599 > >
00:37:59 v #23600 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:59 v #23601 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:59 v #23602 > > │ ### new_finite_stream                                                        │
00:37:59 v #23603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:59 v #23604 > >
00:37:59 v #23605 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:59 v #23606 > > inl new_finite_stream fn max =
00:37:59 v #23607 > >     inl rec loop n =
00:37:59 v #23608 > >         if n >= max
00:37:59 v #23609 > >         then StreamNil
00:37:59 v #23610 > >         else StreamCons (fn n, fun () => loop (n + 1))
00:37:59 v #23611 > >     loop 0
00:37:59 v #23612 > 00:37:58 d #1369 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce9b06125f1edf113579312834091d3a880049436f168039d0de1fdc29215b32/main.spi
00:37:59 v #23613 > >
00:37:59 v #23614 > > ── markdown ────────────────────────────────────────────────────────────────────
00:37:59 v #23615 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:37:59 v #23616 > > │ ### memoize                                                                  │
00:37:59 v #23617 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:37:59 v #23618 > >
00:37:59 v #23619 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:59 v #23620 > > union memoized_stream t =
00:37:59 v #23621 > >     | NotComputed : () -> stream t
00:37:59 v #23622 > >     | Computed : stream t
00:37:59 v #23623 > >
00:37:59 v #23624 > > inl memoize s =
00:37:59 v #23625 > >     inl rec body s =
00:37:59 v #23626 > >         inl state = mut (NotComputed s)
00:37:59 v #23627 > >         fun () =>
00:37:59 v #23628 > >             match *state with
00:37:59 v #23629 > >             | Computed x => x
00:37:59 v #23630 > >             | NotComputed fn =>
00:37:59 v #23631 > >                 inl new_state =
00:37:59 v #23632 > >                     match fn () with
00:37:59 v #23633 > >                     | StreamNil => StreamNil
00:37:59 v #23634 > >                     | StreamCons (x, fn) => StreamCons (x, loop fn)
00:37:59 v #23635 > >                 state <- Computed new_state
00:37:59 v #23636 > >                 new_state
00:37:59 v #23637 > >     and inl loop s' = join_body_unit body s s'
00:37:59 v #23638 > >     loop (fun () => s)
00:37:59 v #23639 > 00:37:58 d #1370 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9076b284092c355c85070a6669eb0392b244345d315c3b879ba7a965cae03c14/main.spi
00:37:59 v #23640 > >
00:37:59 v #23641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:37:59 v #23642 > > //// test
00:37:59 v #23643 > >
00:37:59 v #23644 > > inl memo_stream = new_finite_stream print_and_return 10 |> memoize
00:37:59 v #23645 > >
00:37:59 v #23646 > > memo_stream ()
00:37:59 v #23647 > > |> item 3i32
00:37:59 v #23648 > > |> _assert_eq 3i32
00:37:59 v #23649 > >
00:37:59 v #23650 > > memo_stream ()
00:37:59 v #23651 > > |> item 5i32
00:37:59 v #23652 > > |> _assert_eq 5i32
00:38:00 v #23653 > 00:37:59 d #1371 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/088a51af2d6e085f9fddd2980f45d429424a21963e3f4ca83c22d6515a569b5a/main.spi
00:38:00 v #23654 > >
00:38:00 v #23655 > > ╭─[ 836.13ms - stdout ]────────────────────────────────────────────────────────╮
00:38:00 v #23656 > > │ print_and_return / x: 0                                                      │
00:38:00 v #23657 > > │ print_and_return / x: 1                                                      │
00:38:00 v #23658 > > │ print_and_return / x: 2                                                      │
00:38:00 v #23659 > > │ print_and_return / x: 3                                                      │
00:38:00 v #23660 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:38:00 v #23661 > > │ print_and_return / x: 4                                                      │
00:38:00 v #23662 > > │ print_and_return / x: 5                                                      │
00:38:00 v #23663 > > │ __assert_eq / actual: 5 / expected: 5                                        │
00:38:00 v #23664 > > │                                                                              │
00:38:00 v #23665 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:00 v #23666 > >
00:38:00 v #23667 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:00 v #23668 > > //// test
00:38:00 v #23669 > >
00:38:00 v #23670 > > inl memo_stream = new_infinite_stream_ print_and_return |> memoize
00:38:00 v #23671 > >
00:38:00 v #23672 > > memo_stream ()
00:38:00 v #23673 > > |> item 3i32
00:38:00 v #23674 > > |> _assert_eq 3i32
00:38:00 v #23675 > >
00:38:00 v #23676 > > memo_stream ()
00:38:00 v #23677 > > |> item 5i32
00:38:00 v #23678 > > |> _assert_eq 5i32
00:38:01 v #23679 > 00:38:00 d #1372 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/58ace700598a7fb724a2e9f19c45e83503266f4be2e48c8c2086f9e0006f563b/main.spi
00:38:01 v #23680 > >
00:38:01 v #23681 > > ╭─[ 460.42ms - stdout ]────────────────────────────────────────────────────────╮
00:38:01 v #23682 > > │ print_and_return / x: 0                                                      │
00:38:01 v #23683 > > │ print_and_return / x: 1                                                      │
00:38:01 v #23684 > > │ print_and_return / x: 2                                                      │
00:38:01 v #23685 > > │ print_and_return / x: 3                                                      │
00:38:01 v #23686 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:38:01 v #23687 > > │ print_and_return / x: 4                                                      │
00:38:01 v #23688 > > │ print_and_return / x: 5                                                      │
00:38:01 v #23689 > > │ __assert_eq / actual: 5 / expected: 5                                        │
00:38:01 v #23690 > > │                                                                              │
00:38:01 v #23691 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:01 v #23692 > >
00:38:01 v #23693 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:01 v #23694 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:01 v #23695 > > │ ### unfold                                                                   │
00:38:01 v #23696 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:01 v #23697 > >
00:38:01 v #23698 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:01 v #23699 > > inl unfold f x0 =
00:38:01 v #23700 > >     inl rec body x =
00:38:01 v #23701 > >         match f x with
00:38:01 v #23702 > >         | Some (x', y) => StreamCons (x', fun () => loop y)
00:38:01 v #23703 > >         | None => StreamNil
00:38:01 v #23704 > >     and inl loop x = join_body_unit body x0 x
00:38:01 v #23705 > >     loop x0
00:38:01 v #23706 > 00:38:00 d #1373 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ebf0e4dc9b0f72187ab14f8e65c08ea113046f49f20721946f391ff855b2e64/main.spi
00:38:01 v #23707 > >
00:38:01 v #23708 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:01 v #23709 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:01 v #23710 > > │ ### iterate                                                                  │
00:38:01 v #23711 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:01 v #23712 > >
00:38:01 v #23713 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:01 v #23714 > > inl iterate f =
00:38:01 v #23715 > >     fun x => Some (x, f x)
00:38:01 v #23716 > >     |> unfold
00:38:01 v #23717 > 00:38:01 d #1374 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb794835d87490d40041a83167413541217460fae60131c7d1624d57d8ad764a/main.spi
00:38:02 v #23718 > >
00:38:02 v #23719 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:02 v #23720 > > //// test
00:38:02 v #23721 > >
00:38:02 v #23722 > > iterate ((*) 2) 1i32
00:38:02 v #23723 > > |> item 10i32
00:38:02 v #23724 > > |> _assert_eq 1024
00:38:02 v #23725 > 00:38:01 d #1375 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc24560449e4efe047a0cabcbd48b5737711770a5b36454306eed218bbe68642/main.spi
00:38:02 v #23726 > >
00:38:02 v #23727 > > ╭─[ 462.00ms - stdout ]────────────────────────────────────────────────────────╮
00:38:02 v #23728 > > │ __assert_eq / actual: 1024 / expected: 1024                                  │
00:38:02 v #23729 > > │                                                                              │
00:38:02 v #23730 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:02 v #23731 > >
00:38:02 v #23732 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:02 v #23733 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:02 v #23734 > > │ ### iterate'                                                                 │
00:38:02 v #23735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:02 v #23736 > >
00:38:02 v #23737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:02 v #23738 > > inl iterate_map f m =
00:38:02 v #23739 > >     fun x =>
00:38:02 v #23740 > >         m x
00:38:02 v #23741 > >         |> optionm.map fun x =>
00:38:02 v #23742 > >             x, f x
00:38:02 v #23743 > >     |> unfold
00:38:02 v #23744 > 00:38:01 d #1376 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c0e4df9e86c287496c124ad33d025c09a9ac5c5816a5a43b4c46c3a11676c9f1/main.spi
00:38:02 v #23745 > >
00:38:02 v #23746 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:02 v #23747 > > //// test
00:38:02 v #23748 > >
00:38:02 v #23749 > > iterate_map ((*) 2) Some 1i32
00:38:02 v #23750 > > |> item 10i32
00:38:02 v #23751 > > |> _assert_eq 1024
00:38:03 v #23752 > 00:38:02 d #1377 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb1032e7dfc81b40148598c88c29fc828dc791b861bf81345a998ac8e51305aa/main.spi
00:38:03 v #23753 > >
00:38:03 v #23754 > > ╭─[ 431.08ms - stdout ]────────────────────────────────────────────────────────╮
00:38:03 v #23755 > > │ __assert_eq / actual: 1024 / expected: 1024                                  │
00:38:03 v #23756 > > │                                                                              │
00:38:03 v #23757 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:03 v #23758 > >
00:38:03 v #23759 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:03 v #23760 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:03 v #23761 > > │ ### take_while                                                               │
00:38:03 v #23762 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:03 v #23763 > >
00:38:03 v #23764 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:03 v #23765 > > inl take_while cond s =
00:38:03 v #23766 > >     inl rec body i = function
00:38:03 v #23767 > >         | StreamCons (st, fn) when cond st i => StreamCons (st, fun () => loop
00:38:03 v #23768 > > (i + 1) (fn ()))
00:38:03 v #23769 > >         | _ => StreamNil
00:38:03 v #23770 > >     and inl loop i = join_body body i
00:38:03 v #23771 > >     loop 0 s
00:38:03 v #23772 > 00:38:02 d #1378 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f3ef22aff92c9f99937ab665b68a612e80b0866d1461a6e989a2997ebe94398e/main.spi
00:38:03 v #23773 > >
00:38:03 v #23774 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:03 v #23775 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:03 v #23776 > > │ ### sum                                                                      │
00:38:03 v #23777 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:03 v #23778 > >
00:38:03 v #23779 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:03 v #23780 > > inl sum seq =
00:38:03 v #23781 > >     seq |> fold (+) 0
00:38:03 v #23782 > 00:38:03 d #1379 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e8873875da3b6c116e5fb5a71d46bf7f61e16698e8943200e79870ea259bb55/main.spi
00:38:04 v #23783 > >
00:38:04 v #23784 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:04 v #23785 > > //// test
00:38:04 v #23786 > >
00:38:04 v #23787 > > listm.init 10i32 id
00:38:04 v #23788 > > |> from_list
00:38:04 v #23789 > > |> sum
00:38:04 v #23790 > > |> _assert_eq 45
00:38:04 v #23791 > 00:38:03 d #1380 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8740e8ab564ee84c0020ed3e4770cf6642fbc558f14a02c218f3eb5b5bd2a5d8/main.spi
00:38:04 v #23792 > >
00:38:04 v #23793 > > ╭─[ 438.02ms - stdout ]────────────────────────────────────────────────────────╮
00:38:04 v #23794 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:38:04 v #23795 > > │                                                                              │
00:38:04 v #23796 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:04 v #23797 > >
00:38:04 v #23798 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:04 v #23799 > > //// test
00:38:04 v #23800 > >
00:38:04 v #23801 > > new_finite_stream print_and_return 10i32
00:38:04 v #23802 > > |> take_while (fun n (_ : i32) => n < 5)
00:38:04 v #23803 > > |> sum
00:38:04 v #23804 > > |> _assert_eq 10
00:38:04 v #23805 > 00:38:04 d #1381 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/96d68c6ddec849fa1007f01c18c13d6af1d8d048c6606e4f3bed65b3fe825e3c/main.spi
00:38:05 v #23806 > >
00:38:05 v #23807 > > ╭─[ 480.42ms - stdout ]────────────────────────────────────────────────────────╮
00:38:05 v #23808 > > │ print_and_return / x: 0                                                      │
00:38:05 v #23809 > > │ print_and_return / x: 1                                                      │
00:38:05 v #23810 > > │ print_and_return / x: 2                                                      │
00:38:05 v #23811 > > │ print_and_return / x: 3                                                      │
00:38:05 v #23812 > > │ print_and_return / x: 4                                                      │
00:38:05 v #23813 > > │ print_and_return / x: 5                                                      │
00:38:05 v #23814 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:38:05 v #23815 > > │                                                                              │
00:38:05 v #23816 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:05 v #23817 > >
00:38:05 v #23818 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:05 v #23819 > > //// test
00:38:05 v #23820 > >
00:38:05 v #23821 > > new_infinite_stream print_and_return
00:38:05 v #23822 > > |> take_while (fun n (_ : i32) => n < 5i32)
00:38:05 v #23823 > > |> sum
00:38:05 v #23824 > > |> _assert_eq 10
00:38:05 v #23825 > 00:38:04 d #1382 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d4421829a56ac1b84cdc3a89ddc2bbd83caded310db481f4715306323b22c80/main.spi
00:38:05 v #23826 > >
00:38:05 v #23827 > > ╭─[ 449.72ms - stdout ]────────────────────────────────────────────────────────╮
00:38:05 v #23828 > > │ print_and_return / x: 0                                                      │
00:38:05 v #23829 > > │ print_and_return / x: 1                                                      │
00:38:05 v #23830 > > │ print_and_return / x: 2                                                      │
00:38:05 v #23831 > > │ print_and_return / x: 3                                                      │
00:38:05 v #23832 > > │ print_and_return / x: 4                                                      │
00:38:05 v #23833 > > │ print_and_return / x: 5                                                      │
00:38:05 v #23834 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:38:05 v #23835 > > │                                                                              │
00:38:05 v #23836 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:05 v #23837 > >
00:38:05 v #23838 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:05 v #23839 > > //// test
00:38:05 v #23840 > >
00:38:05 v #23841 > > iterate ((*) 6) 1i32
00:38:05 v #23842 > > |> take_while (fun _ i => i <= 7i32)
00:38:05 v #23843 > > |> to_list
00:38:05 v #23844 > > |> _assert_eq [[ 1i32; 6; 36; 216; 1296; 7776; 46656; 279936 ]]
00:38:05 v #23845 > 00:38:05 d #1383 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1231f9610185f4b801e3c4fb5b9254d95ba4b3e4b21b4849de14526f07f304a0/main.spi
00:38:06 v #23846 > >
00:38:06 v #23847 > > ╭─[ 520.83ms - stdout ]────────────────────────────────────────────────────────╮
00:38:06 v #23848 > > │ __assert_eq / actual: UH0_1                                                  │
00:38:06 v #23849 > > │   (1,                                                                        │
00:38:06 v #23850 > > │    UH0_1                                                                     │
00:38:06 v #23851 > > │      (6,                                                                     │
00:38:06 v #23852 > > │       UH0_1                                                                  │
00:38:06 v #23853 > > │         (36,                                                                 │
00:38:06 v #23854 > > │          UH0_1                                                               │
00:38:06 v #23855 > > │            (216,                                                             │
00:38:06 v #23856 > > │             UH0_1 (1296, UH0_1 (7776, UH0_1 (46656, UH0_1 (279936,           │
00:38:06 v #23857 > > │ UH0_0)))))))) / expected: UH0_1                                              │
00:38:06 v #23858 > > │   (1,                                                                        │
00:38:06 v #23859 > > │    UH0_1                                                                     │
00:38:06 v #23860 > > │      (6,                                                                     │
00:38:06 v #23861 > > │       UH0_1                                                                  │
00:38:06 v #23862 > > │         (36,                                                                 │
00:38:06 v #23863 > > │          UH0_1                                                               │
00:38:06 v #23864 > > │            (216,                                                             │
00:38:06 v #23865 > > │             UH0_1 (1296, UH0_1 (7776, UH0_1 (46656, UH0_1 (279936,           │
00:38:06 v #23866 > > │ UH0_0))))))))                                                                │
00:38:06 v #23867 > > │                                                                              │
00:38:06 v #23868 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:06 v #23869 > >
00:38:06 v #23870 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:06 v #23871 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:06 v #23872 > > │ ### indexed                                                                  │
00:38:06 v #23873 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:06 v #23874 > >
00:38:06 v #23875 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:06 v #23876 > > inl indexed s =
00:38:06 v #23877 > >     ((StreamNil, 0), s)
00:38:06 v #23878 > >     ||> fold fun (acc, i) x =>
00:38:06 v #23879 > >         StreamCons ((i, x), fun () => acc), i + 1
00:38:06 v #23880 > >     |> fst
00:38:06 v #23881 > >     |> rev
00:38:06 v #23882 > 00:38:05 d #1384 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/01460d11ffb210c60a3d03b5da43dc6f2e8e46106d2bce300891ca0d6f41f25f/main.spi
00:38:06 v #23883 > >
00:38:06 v #23884 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:06 v #23885 > > //// test
00:38:06 v #23886 > >
00:38:06 v #23887 > > listm.init 10i32 ((*) 2)
00:38:06 v #23888 > > |> from_list
00:38:06 v #23889 > > |> indexed
00:38:06 v #23890 > > |> item 5i32
00:38:06 v #23891 > > |> _assert_eq (5i32, 10i32)
00:38:06 v #23892 > 00:38:06 d #1385 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc1216a2ecf5226c887e5cc1cd48bbc1079686184fc0ef9e1ac7ebec8e3256cb/main.spi
00:38:06 v #23893 > >
00:38:06 v #23894 > > ╭─[ 436.39ms - stdout ]────────────────────────────────────────────────────────╮
00:38:06 v #23895 > > │ __assert_eq / actual: struct (5, 10) / expected: struct (5, 10)              │
00:38:06 v #23896 > > │                                                                              │
00:38:06 v #23897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:06 v #23898 > >
00:38:06 v #23899 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:06 v #23900 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:06 v #23901 > > │ ### map                                                                      │
00:38:06 v #23902 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:06 v #23903 > >
00:38:06 v #23904 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:06 v #23905 > > inl map fn s =
00:38:06 v #23906 > >     (s, StreamNil)
00:38:06 v #23907 > >     ||> fold_back fun x acc =>
00:38:06 v #23908 > >         StreamCons (fn x, fun () => acc)
00:38:07 v #23909 > 00:38:06 d #1386 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/71aeb93c165aeda8d3820b8489f09a643b9af00ae6430a74754862aaffa18596/main.spi
00:38:07 v #23910 > >
00:38:07 v #23911 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:07 v #23912 > > //// test
00:38:07 v #23913 > >
00:38:07 v #23914 > > listm.init 10i32 id
00:38:07 v #23915 > > |> from_list
00:38:07 v #23916 > > |> map ((*) 2)
00:38:07 v #23917 > > |> item 5i32
00:38:07 v #23918 > > |> _assert_eq 10i32
00:38:07 v #23919 > 00:38:06 d #1387 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/945dd34937910d58e9eee02cd7f4d7bf3e18e6c832fab45c24322012445462b0/main.spi
00:38:07 v #23920 > >
00:38:07 v #23921 > > ╭─[ 406.82ms - stdout ]────────────────────────────────────────────────────────╮
00:38:07 v #23922 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:38:07 v #23923 > > │                                                                              │
00:38:07 v #23924 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:07 v #23925 > >
00:38:07 v #23926 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:07 v #23927 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:07 v #23928 > > │ ### zip_with                                                                 │
00:38:07 v #23929 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:07 v #23930 > >
00:38:07 v #23931 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:07 v #23932 > > inl zip_with fn s1 s2 =
00:38:07 v #23933 > >     inl rec loop s1 s2 =
00:38:07 v #23934 > >         match s1, s2 with
00:38:07 v #23935 > >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:38:07 v #23936 > >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:38:07 v #23937 > >         | StreamNil, _ | _, StreamNil => StreamNil
00:38:07 v #23938 > >     loop s1 s2
00:38:07 v #23939 > >
00:38:07 v #23940 > > inl zip_with_ fn s1 s2 =
00:38:07 v #23941 > >     let rec loop s1 s2 =
00:38:07 v #23942 > >         match s1, s2 with
00:38:07 v #23943 > >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:38:07 v #23944 > >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:38:07 v #23945 > >         | StreamNil, _ | _, StreamNil => StreamNil
00:38:07 v #23946 > >     loop s1 s2
00:38:08 v #23947 > 00:38:07 d #1388 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6dfae66bb39dd61bcb278641b0684653d966785c6fdf28de174416209d43208e/main.spi
00:38:08 v #23948 > >
00:38:08 v #23949 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:08 v #23950 > > //// test
00:38:08 v #23951 > >
00:38:08 v #23952 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:38:08 v #23953 > > ||> zip_with (+)
00:38:08 v #23954 > > |> item 2i32
00:38:08 v #23955 > > |> _assert_eq 6
00:38:08 v #23956 > 00:38:07 d #1389 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f7a62e76b11a57891d78904c7e99f345805287e378f29ea5b1d9b473e9bd8447/main.spi
00:38:08 v #23957 > >
00:38:08 v #23958 > > ╭─[ 492.94ms - stdout ]────────────────────────────────────────────────────────╮
00:38:08 v #23959 > > │ __assert_eq / actual: 6 / expected: 6                                        │
00:38:08 v #23960 > > │                                                                              │
00:38:08 v #23961 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:08 v #23962 > >
00:38:08 v #23963 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:08 v #23964 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:08 v #23965 > > │ ### zip                                                                      │
00:38:08 v #23966 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:08 v #23967 > >
00:38:08 v #23968 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:08 v #23969 > > inl zip s1 s2 =
00:38:08 v #23970 > >     zip_with pair s1 s2
00:38:08 v #23971 > >
00:38:08 v #23972 > > inl zip_ s1 s2 =
00:38:08 v #23973 > >     zip_with_ pair s1 s2
00:38:08 v #23974 > 00:38:08 d #1390 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a449d83a0f0ffea684dfe287521c993e3e8616bd63331eb8a7f3b7326ca92db5/main.spi
00:38:09 v #23975 > >
00:38:09 v #23976 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:09 v #23977 > > //// test
00:38:09 v #23978 > >
00:38:09 v #23979 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:38:09 v #23980 > > ||> zip
00:38:09 v #23981 > > |> item 5i32
00:38:09 v #23982 > > |> _assert_eq (5, 10)
00:38:09 v #23983 > 00:38:08 d #1391 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1de0a6c201b4ef917e185829763e6e295c41d3819b1cb82f3724a5f4f78763e5/main.spi
00:38:09 v #23984 > >
00:38:09 v #23985 > > ╭─[ 419.40ms - stdout ]────────────────────────────────────────────────────────╮
00:38:09 v #23986 > > │ __assert_eq / actual: struct (5, 10) / expected: struct (5, 10)              │
00:38:09 v #23987 > > │                                                                              │
00:38:09 v #23988 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:09 v #23989 > >
00:38:09 v #23990 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:09 v #23991 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:09 v #23992 > > │ ### unzip                                                                    │
00:38:09 v #23993 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:09 v #23994 > >
00:38:09 v #23995 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:09 v #23996 > > inl unzip s =
00:38:09 v #23997 > >     inl rec body s =
00:38:09 v #23998 > >         match s with
00:38:09 v #23999 > >         | StreamCons ((x, y), fn) =>
00:38:09 v #24000 > >             inl xs, ys = loop (fn ())
00:38:09 v #24001 > >             StreamCons (x, fun () => xs), StreamCons (y, fun () => ys)
00:38:09 v #24002 > >         | StreamNil => pair StreamNil StreamNil
00:38:09 v #24003 > >     and inl loop x =
00:38:09 v #24004 > >         if var_is x |> not
00:38:09 v #24005 > >         then body x
00:38:09 v #24006 > >         else
00:38:09 v #24007 > >             inl x = dyn x
00:38:09 v #24008 > >             join body x
00:38:09 v #24009 > >     loop s
00:38:09 v #24010 > 00:38:08 d #1392 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d42336e1acf612c9986de6d43c5ef591dd288c0a86d51516f846a386e3cc744a/main.spi
00:38:09 v #24011 > >
00:38:09 v #24012 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:09 v #24013 > > //// test
00:38:09 v #24014 > >
00:38:09 v #24015 > > listm.init 10i32 id
00:38:09 v #24016 > > |> listm.map (fun x => x, x)
00:38:09 v #24017 > > |> from_list
00:38:09 v #24018 > > |> unzip
00:38:09 v #24019 > > |> fun x, y =>
00:38:09 v #24020 > >     x |> sum
00:38:09 v #24021 > >     |> _assert_eq 45
00:38:09 v #24022 > >
00:38:09 v #24023 > >     y |> sum
00:38:09 v #24024 > >     |> _assert_eq 45
00:38:10 v #24025 > 00:38:09 d #1393 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8737822fa97803234a5e757ae0bc5d61665fb3ebb4f8023ea2cd582386e2b689/main.spi
00:38:10 v #24026 > >
00:38:10 v #24027 > > ╭─[ 452.81ms - stdout ]────────────────────────────────────────────────────────╮
00:38:10 v #24028 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:38:10 v #24029 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:38:10 v #24030 > > │                                                                              │
00:38:10 v #24031 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:10 v #24032 > >
00:38:10 v #24033 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:10 v #24034 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:10 v #24035 > > │ ## rust                                                                      │
00:38:10 v #24036 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:10 v #24037 > >
00:38:10 v #24038 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:10 v #24039 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:10 v #24040 > > │ ### io_error                                                                 │
00:38:10 v #24041 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:10 v #24042 > >
00:38:10 v #24043 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:10 v #24044 > > nominal io_error =
00:38:10 v #24045 > >     `(
00:38:10 v #24046 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:10 v #24047 > > Fable.Core.Emit(\"std::io::Error\")>]]\ntype std_io_Error = class
00:38:10 v #24048 > > end\n#else\ntype std_io_Error = string\n#endif\n"
00:38:10 v #24049 > >         $'' : $'std_io_Error'
00:38:10 v #24050 > >     )
00:38:10 v #24051 > 00:38:09 d #1394 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e5465038764301fe4347f37d4f9428fabbabffc35243e763c30e8f6f53d04a19/main.spi
00:38:10 v #24052 > >
00:38:10 v #24053 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:10 v #24054 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:10 v #24055 > > │ ### new_io_error                                                             │
00:38:10 v #24056 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:10 v #24057 > >
00:38:10 v #24058 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:10 v #24059 > > inl new_io_error (text : string) : io_error =
00:38:10 v #24060 > >     run_target_args (fun () => text) function
00:38:10 v #24061 > >         | Rust _ => fun text =>
00:38:10 v #24062 > >             !\\(text, $'"std::io::Error::new(std::io::ErrorKind::Other, &*$0)"')
00:38:10 v #24063 > >         | _ => fun text => text |> to
00:38:11 v #24064 > 00:38:10 d #1395 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d62c2b93736532a85c33386773d49df1f111f6792e2301807d1c2357510a839/main.spi
00:38:11 v #24065 > >
00:38:11 v #24066 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:11 v #24067 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:11 v #24068 > > │ ### buf_reader                                                               │
00:38:11 v #24069 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:11 v #24070 > >
00:38:11 v #24071 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:11 v #24072 > > nominal buf_reader t =
00:38:11 v #24073 > >     `(
00:38:11 v #24074 > >         backend_switch `(()) `({}) {
00:38:11 v #24075 > >             Fsharp =
00:38:11 v #24076 > >                 (fun () =>
00:38:11 v #24077 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:11 v #24078 > > Fable.Core.Emit(\"std::io::BufReader<$0>\")>]]\n#endif\ntype
00:38:11 v #24079 > > std_io_BufReader<'T> = class end"
00:38:11 v #24080 > >                 ) : () -> ()
00:38:11 v #24081 > >         }
00:38:11 v #24082 > >         $'' : $'std_io_BufReader<`t>'
00:38:11 v #24083 > >     )
00:38:11 v #24084 > 00:38:10 d #1396 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eb67c80a98f0fba7ffed93259a2a659c1ce36017c81c0b79e94d3ea250744939/main.spi
00:38:11 v #24085 > >
00:38:11 v #24086 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:11 v #24087 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:11 v #24088 > > │ ### cursor                                                                   │
00:38:11 v #24089 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:11 v #24090 > >
00:38:11 v #24091 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:11 v #24092 > > nominal cursor t =
00:38:11 v #24093 > >     `(
00:38:11 v #24094 > >         backend_switch `(()) `({}) {
00:38:11 v #24095 > >             Fsharp =
00:38:11 v #24096 > >                 (fun () =>
00:38:11 v #24097 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:11 v #24098 > > Fable.Core.Emit(\"std::io::Cursor<$0>\")>]]\n#endif\ntype std_io_Cursor<'T> =
00:38:11 v #24099 > > class end"
00:38:11 v #24100 > >                 ) : () -> ()
00:38:11 v #24101 > >         }
00:38:11 v #24102 > >         $'' : $'std_io_Cursor<`t>'
00:38:11 v #24103 > >     )
00:38:11 v #24104 > 00:38:11 d #1397 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a85048566ad1e8128fc311a53887efb6d2983898ca1adee318391ea226a4214a/main.spi
00:38:12 v #24105 > >
00:38:12 v #24106 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:12 v #24107 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:12 v #24108 > > │ ### buf_reader_tokio                                                         │
00:38:12 v #24109 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:12 v #24110 > >
00:38:12 v #24111 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:12 v #24112 > > nominal buf_reader_tokio t =
00:38:12 v #24113 > >     `(
00:38:12 v #24114 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:12 v #24115 > > Fable.Core.Emit(\"tokio::io::BufReader<$0>\")>]]\n#endif\ntype
00:38:12 v #24116 > > tokio_io_BufReader<'T> = class end"
00:38:12 v #24117 > >         $'' : $'tokio_io_BufReader<`t>'
00:38:12 v #24118 > >     )
00:38:12 v #24119 > 00:38:11 d #1398 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/24c76588c406c4cd5a227010c6c6b6a473709215940dfe66a8ca66ab058a31a5/main.spi
00:38:12 v #24120 > >
00:38:12 v #24121 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:12 v #24122 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:12 v #24123 > > │ ### new_buf_reader                                                           │
00:38:12 v #24124 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:12 v #24125 > >
00:38:12 v #24126 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:12 v #24127 > > inl new_buf_reader forall t. (x : t) : buf_reader t =
00:38:12 v #24128 > >     !\\(x, $'"std::io::BufReader::new($0)"')
00:38:12 v #24129 > 00:38:11 d #1399 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75707e0ba6aff598fb474bbedd06d585e1f9ebd67e4f93ab111739e69986cc5d/main.spi
00:38:12 v #24130 > >
00:38:12 v #24131 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:12 v #24132 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:12 v #24133 > > │ ### new_cursor                                                               │
00:38:12 v #24134 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:12 v #24135 > >
00:38:12 v #24136 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:12 v #24137 > > inl new_cursor forall t. (x : t) : cursor t =
00:38:12 v #24138 > >     !\($'"std::io::Cursor::new(!x)"')
00:38:13 v #24139 > 00:38:12 d #1400 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9b5f9edb25364aae971426e588aea1053c85a76c318ece47b9314b7b810839ec/main.spi
00:38:13 v #24140 > >
00:38:13 v #24141 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:13 v #24142 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:13 v #24143 > > │ ### lines                                                                    │
00:38:13 v #24144 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:13 v #24145 > >
00:38:13 v #24146 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:13 v #24147 > > nominal lines t =
00:38:13 v #24148 > >     `(
00:38:13 v #24149 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:13 v #24150 > > Fable.Core.Emit(\"std::io::Lines<$0>\")>]]\n#endif\ntype std_io_Lines<'T> =
00:38:13 v #24151 > > class end"
00:38:13 v #24152 > >         $'' : $'std_io_Lines<`t>'
00:38:13 v #24153 > >     )
00:38:13 v #24154 > 00:38:12 d #1401 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fde525ce0a5f98932cfd26867cc1b55f8aa888b5472a067c2360101c96afe2b8/main.spi
00:38:13 v #24155 > >
00:38:13 v #24156 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:13 v #24157 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:13 v #24158 > > │ ### buf_read_lines                                                           │
00:38:13 v #24159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:13 v #24160 > >
00:38:13 v #24161 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:13 v #24162 > > inl buf_read_lines forall t. (buf_reader : buf_reader t) : lines (buf_reader t)
00:38:13 v #24163 > > =
00:38:13 v #24164 > >     !\($'"std::io::BufRead::lines(!buf_reader)"')
00:38:13 v #24165 > 00:38:13 d #1402 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f4f0f7eebfb1a300565559f48873d396732f0dbbace85c1ba6e7751a6026a469/main.spi
00:38:14 v #24166 > >
00:38:14 v #24167 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:14 v #24168 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:14 v #24169 > > │ ### decode_reader_bytes                                                      │
00:38:14 v #24170 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:14 v #24171 > >
00:38:14 v #24172 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:14 v #24173 > > nominal decode_reader_bytes t u =
00:38:14 v #24174 > >     `(
00:38:14 v #24175 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:14 v #24176 > > Fable.Core.Emit(\"encoding_rs_io::DecodeReaderBytes<$0, $1>\")>]]\n#endif\ntype
00:38:14 v #24177 > > encoding_rs_io_DecodeReaderBytes<'T, 'U> = class end"
00:38:14 v #24178 > >         $'' : $'encoding_rs_io_DecodeReaderBytes<`t, `u>'
00:38:14 v #24179 > >     )
00:38:14 v #24180 > 00:38:13 d #1403 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/edfa2508b57b8ac48751ed7b5de3ff7e889bef653b83097fbbf75d263354c2b7/main.spi
00:38:14 v #24181 > >
00:38:14 v #24182 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:14 v #24183 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:14 v #24184 > > │ ### decode_reader_bytes_build                                                │
00:38:14 v #24185 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:14 v #24186 > >
00:38:14 v #24187 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:14 v #24188 > > inl decode_reader_bytes_build forall t. (x : t) : decode_reader_bytes t (am'.vec
00:38:14 v #24189 > > u8) =
00:38:14 v #24190 > >
00:38:14 v #24191 > > !\($'"encoding_rs_io::DecodeReaderBytesBuilder::new().encoding(Some(encoding_rs:
00:38:14 v #24192 > > :UTF_8)).build(!x)"')
00:38:14 v #24193 > >
00:38:14 v #24194 > > !\($'"encoding_rs_io::DecodeReaderBytesBuilder::new().encoding(Some(encoding_rs:
00:38:14 v #24195 > > :UTF_8)).utf8_passthru(true).build(!x)"')
00:38:14 v #24196 > >     !\\(x,
00:38:14 v #24197 > > $'"encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build($0)
00:38:14 v #24198 > > "')
00:38:14 v #24199 > >     // !\($'"encoding_rs_io::DecodeReaderBytes::new(!x)"')
00:38:14 v #24200 > 00:38:14 d #1404 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90b59b070b048463e124c61c6916875bad63dc6e7a3948e1f7da6befacec06df/main.spi
00:38:15 v #24201 > >
00:38:15 v #24202 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:15 v #24203 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:15 v #24204 > > │ ### buf_reader_read                                                          │
00:38:15 v #24205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:15 v #24206 > >
00:38:15 v #24207 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:15 v #24208 > > inl buf_reader_read forall el dim. (slice : am'.slice' el dim) (buf_reader :
00:38:15 v #24209 > > buf_reader el) : resultm.result' unativeint io_error =
00:38:15 v #24210 > >     (!\($'"true; let mut !slice = !slice"') : bool) |> ignore
00:38:15 v #24211 > >     !\($'"std::io::Read::read(&mut !buf_reader, &mut !slice)"')
00:38:15 v #24212 > 00:38:14 d #1405 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f769257f736f47deb5a4fa0f8fddb9b5e79611240c79df49208f5bb05dd034e5/main.spi
00:38:15 v #24213 > >
00:38:15 v #24214 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:15 v #24215 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:15 v #24216 > > │ ### io_read_by_ref                                                           │
00:38:15 v #24217 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:15 v #24218 > >
00:38:15 v #24219 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:15 v #24220 > > inl io_read_by_ref forall t. (lines : lines t) : lines t =
00:38:15 v #24221 > >     !\\(lines, $'"std::io::Read::by_ref($0)"')
00:38:15 v #24222 > 00:38:14 d #1406 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1237a16c971696a537e709ef99bb72dc89886f49c236aa22c41185a5b45c7532/main.spi
00:38:15 v #24223 > 00:00:29 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 34267 }
00:38:15 v #24224 > 00:00:29 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:38:17 v #24225 > 00:00:30 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/stream.dib.ipynb to html
00:38:17 v #24226 > 00:00:30 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:38:17 v #24227 > 00:00:30 v #7 !   validate(nb)
00:38:18 v #24228 > 00:00:31 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:38:18 v #24229 > 00:00:31 v #9 !   return _pygments_highlight(
00:38:18 v #24230 > 00:00:31 v #10 ! [NbConvertApp] Writing 372363 bytes to c:\home\git\polyglot\lib\spiral\stream.dib.html
00:38:18 v #24231 > 00:00:32 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 854 }
00:38:18 v #24232 > 00:00:32 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 854 }
00:38:18 v #24233 > 00:00:32 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/stream.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/stream.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:38:19 v #24234 > 00:00:32 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:38:19 v #24235 > 00:00:32 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:38:19 v #24236 > 00:00:32 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 35180 }
00:38:19 d #24237 runtime.execute_with_options_async / { exit_code = 0; output_length = 39261 }
00:38:19 d #31 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path stream.dib --retries 3
00:38:19 d #24238 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path threading.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path threading.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:38:19 v #24239 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "threading.dib", "--retries", "3"])) }
00:38:19 v #24240 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/threading.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/threading.dib" --output-path "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:38:21 v #24241 > >
00:38:21 v #24242 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:21 v #24243 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:21 v #24244 > > │ # threading                                                                  │
00:38:21 v #24245 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:24 v #24246 > >
00:38:24 v #24247 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:24 v #24248 > > open rust
00:38:24 v #24249 > > open rust_operators
00:38:25 v #24250 > 00:38:24 d #1407 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd47537238fcdc924c2a6b0a99d4f87ecbbde40a43ba8772a0907b5bf4a50e9d/main.spi
00:38:25 v #24251 > >
00:38:25 v #24252 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:25 v #24253 > > //// test
00:38:25 v #24254 > >
00:38:25 v #24255 > > open testing
00:38:26 v #24256 > 00:38:25 d #1408 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f990f43922e45080129606975ec74b3f88780cb3b27c2ae1151c776db6e5e262/main.spi
00:38:26 v #24257 > >
00:38:26 v #24258 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:26 v #24259 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:26 v #24260 > > │ ## rust                                                                      │
00:38:26 v #24261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:26 v #24262 > >
00:38:26 v #24263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:26 v #24264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:26 v #24265 > > │ ### sleep                                                                    │
00:38:26 v #24266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:26 v #24267 > >
00:38:26 v #24268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:26 v #24269 > > inl sleep (duration : date_time.duration) : () =
00:38:26 v #24270 > >     inl duration = join duration
00:38:26 v #24271 > >     !\($'"std::thread::sleep(!duration)"')
00:38:26 v #24272 > 00:38:25 d #1409 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/977038b66c0ad3e795cac3b2de993a8673fb828080aed8074389dbc131b29b87/main.spi
00:38:26 v #24273 > >
00:38:26 v #24274 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:26 v #24275 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:26 v #24276 > > │ ### join_handle                                                              │
00:38:26 v #24277 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:26 v #24278 > >
00:38:26 v #24279 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:26 v #24280 > > nominal join_handle t =
00:38:26 v #24281 > >     `(
00:38:26 v #24282 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:26 v #24283 > > Fable.Core.Emit(\"std::thread::JoinHandle<$0>\")>]]\n#endif\ntype
00:38:26 v #24284 > > std_thread_JoinHandle<'T> = class end"
00:38:26 v #24285 > >         $'' : $'std_thread_JoinHandle<`t>'
00:38:26 v #24286 > >     )
00:38:26 v #24287 > 00:38:26 d #1410 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d9e7ae05ea191d9b4f03d4394e5f9f5a14b93f4cdbd73af3b7ccc46835d2c1fb/main.spi
00:38:27 v #24288 > >
00:38:27 v #24289 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:27 v #24290 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:27 v #24291 > > │ ### spawn                                                                    │
00:38:27 v #24292 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:27 v #24293 > >
00:38:27 v #24294 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:27 v #24295 > > inl spawn forall t. depth flag (x : () -> t) : join_handle t =
00:38:27 v #24296 > >     if flag = 1u8
00:38:27 v #24297 > >     then (!\($'"true; let __spawn = std::thread::spawn(move || { //"') : bool)
00:38:27 v #24298 > > |> ignore
00:38:27 v #24299 > >     else (!\($'"true; let __spawn = std::thread::spawn(|| { //"') : bool) |>
00:38:27 v #24300 > > ignore
00:38:27 v #24301 > >
00:38:27 v #24302 > >     let x' = x ()
00:38:27 v #24303 > >     inl x' = join x'
00:38:27 v #24304 > >
00:38:27 v #24305 > >     x' |> rust.fix_closure depth
00:38:27 v #24306 > >
00:38:27 v #24307 > >     !\($'"__spawn"')
00:38:27 v #24308 > 00:38:26 d #1411 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6c490a2338ece99193054a9373abe83019e544730992001ff186d285cddd4a2c/main.spi
00:38:27 v #24309 > >
00:38:27 v #24310 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:27 v #24311 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:27 v #24312 > > │ ### join'                                                                    │
00:38:27 v #24313 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:27 v #24314 > >
00:38:27 v #24315 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:27 v #24316 > > inl join' forall t.
00:38:27 v #24317 > >     (x : join_handle t)
00:38:27 v #24318 > >     : resultm.result'
00:38:27 v #24319 > >         t
00:38:27 v #24320 > >         (
00:38:27 v #24321 > >             rust.box (
00:38:27 v #24322 > >                 rust.lifetime_ref
00:38:27 v #24323 > >                     rust.dyn'
00:38:27 v #24324 > >                     (
00:38:27 v #24325 > >                         rust.lifetime_join
00:38:27 v #24326 > >                             rust.any
00:38:27 v #24327 > >                             (
00:38:27 v #24328 > >                                 rust.lifetime_ref
00:38:27 v #24329 > >                                     rust.send
00:38:27 v #24330 > >                                     rust.static_lifetime
00:38:27 v #24331 > >                             )
00:38:27 v #24332 > >                     )
00:38:27 v #24333 > >             )
00:38:27 v #24334 > >         ) =
00:38:27 v #24335 > >     !\\(x, $'"std::thread::JoinHandle::join($0)"')
00:38:27 v #24336 > 00:38:26 d #1412 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b02b5604b06742f5428be54a81ef2d82cf9095812047c33dcc2b2eac4dd5b3a3/main.spi
00:38:27 v #24337 > >
00:38:27 v #24338 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:27 v #24339 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:27 v #24340 > > │ ### arc                                                                      │
00:38:27 v #24341 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:27 v #24342 > >
00:38:27 v #24343 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:27 v #24344 > > nominal arc t =
00:38:27 v #24345 > >     `(
00:38:27 v #24346 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:27 v #24347 > > Fable.Core.Emit(\"std::sync::Arc<$0>\")>]]\n#endif\ntype std_sync_Arc<'T> =
00:38:27 v #24348 > > class end"
00:38:27 v #24349 > >         $'' : $'std_sync_Arc<`t>'
00:38:27 v #24350 > >     )
00:38:28 v #24351 > 00:38:27 d #1413 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf2084378b96c723210b081e65a7675bb84771669563c1171dc67b124aa46752/main.spi
00:38:28 v #24352 > >
00:38:28 v #24353 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:28 v #24354 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:28 v #24355 > > │ ### new_arc                                                                  │
00:38:28 v #24356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:28 v #24357 > >
00:38:28 v #24358 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:28 v #24359 > > inl new_arc forall t. (x : t) : arc t =
00:38:28 v #24360 > >     !\($'"std::sync::Arc::new(!x)"')
00:38:28 v #24361 > 00:38:27 d #1414 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d0259c3b9ed17f588d571871928a192dacf8666b9f0dfadc239f6f2b1bf26644/main.spi
00:38:28 v #24362 > >
00:38:28 v #24363 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:28 v #24364 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:28 v #24365 > > │ ### mutex                                                                    │
00:38:28 v #24366 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:28 v #24367 > >
00:38:28 v #24368 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:28 v #24369 > > nominal mutex t =
00:38:28 v #24370 > >     `(
00:38:28 v #24371 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:28 v #24372 > > Fable.Core.Emit(\"std::sync::Mutex<$0>\")>]]\n#endif\ntype std_sync_Mutex<'T> =
00:38:28 v #24373 > > class end"
00:38:28 v #24374 > >         $'' : $'std_sync_Mutex<`t>'
00:38:28 v #24375 > >     )
00:38:28 v #24376 > 00:38:28 d #1415 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86392b794e5e1bf1873804fe7684b7787f86ede553cbd046471118fad4e12251/main.spi
00:38:29 v #24377 > >
00:38:29 v #24378 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:29 v #24379 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:29 v #24380 > > │ ### new_mutex                                                                │
00:38:29 v #24381 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:29 v #24382 > >
00:38:29 v #24383 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:29 v #24384 > > inl new_mutex forall t. (x : t) : mutex t =
00:38:29 v #24385 > >     !\($'"std::sync::Mutex::new(!x)"')
00:38:29 v #24386 > 00:38:28 d #1416 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/846b067bb3064b6b5801a6b83e7c2a78a24dff08f6b6547e562e0b587f331c82/main.spi
00:38:29 v #24387 > >
00:38:29 v #24388 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:29 v #24389 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:29 v #24390 > > │ ### rw_lock                                                                  │
00:38:29 v #24391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:29 v #24392 > >
00:38:29 v #24393 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:29 v #24394 > > nominal rw_lock t =
00:38:29 v #24395 > >     `(
00:38:29 v #24396 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:29 v #24397 > > Fable.Core.Emit(\"std::sync::RwLock<$0>\")>]]\n#endif\ntype std_sync_RwLock<'T>
00:38:29 v #24398 > > = class end"
00:38:29 v #24399 > >         $'' : $'std_sync_RwLock<`t>'
00:38:29 v #24400 > >     )
00:38:29 v #24401 > 00:38:28 d #1417 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/389fb6c03ac356145e4a9b78d327edfd0ecef473d498ff0104ee68e4dd8e05df/main.spi
00:38:29 v #24402 > >
00:38:29 v #24403 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:29 v #24404 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:29 v #24405 > > │ ### new_rw_lock                                                              │
00:38:29 v #24406 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:29 v #24407 > >
00:38:29 v #24408 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:29 v #24409 > > inl new_rw_lock forall t. (x : t) : rw_lock t =
00:38:29 v #24410 > >     !\\(x, $'"std::sync::RwLock::new($0)"')
00:38:30 v #24411 > 00:38:29 d #1418 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d1de2ca14109a7635b6afd5cb19c2c66931cecbf79a5f47500b84060b446cda/main.spi
00:38:30 v #24412 > >
00:38:30 v #24413 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:30 v #24414 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:30 v #24415 > > │ ### new_arc_mutex                                                            │
00:38:30 v #24416 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:30 v #24417 > >
00:38:30 v #24418 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:30 v #24419 > > inl new_arc_mutex forall t. (x : t) : arc (mutex t) =
00:38:30 v #24420 > >     x |> new_mutex |> new_arc
00:38:30 v #24421 > 00:38:29 d #1419 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3b28ccf56b785890ea6114eb745f9325d6f59f28e61d6292deef31f3e05a768/main.spi
00:38:30 v #24422 > >
00:38:30 v #24423 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:30 v #24424 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:30 v #24425 > > │ ### new_arc_rw_lock                                                          │
00:38:30 v #24426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:30 v #24427 > >
00:38:30 v #24428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:30 v #24429 > > inl new_arc_rw_lock forall t. (x : t) : arc (rw_lock t) =
00:38:30 v #24430 > >     x |> new_rw_lock |> new_arc
00:38:31 v #24431 > 00:38:30 d #1420 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e26403d6dc14576dd7cd2fd30a5d0dbb1855ec95c16e69aab32f2667900073b4/main.spi
00:38:31 v #24432 > >
00:38:31 v #24433 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:31 v #24434 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:31 v #24435 > > │ ### arc_clone                                                                │
00:38:31 v #24436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:31 v #24437 > >
00:38:31 v #24438 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:31 v #24439 > > inl arc_clone forall t. (x : arc t) : arc t =
00:38:31 v #24440 > >     inl x = join x
00:38:31 v #24441 > >     !\($'"std::sync::Arc::clone(&!x)"')
00:38:31 v #24442 > 00:38:30 d #1421 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1323698196529f39ab49a6d62068731d78c57522d0752b92d644156753d79743/main.spi
00:38:31 v #24443 > >
00:38:31 v #24444 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:31 v #24445 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:31 v #24446 > > │ ### arc_ptr_eq                                                               │
00:38:31 v #24447 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:31 v #24448 > >
00:38:31 v #24449 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:31 v #24450 > > inl arc_ptr_eq forall t. (a : rust.ref (arc t)) (b : rust.ref (arc t)) : bool =
00:38:31 v #24451 > >     !\\((a, b), $'"std::sync::Arc::ptr_eq($0, $1)"')
00:38:31 v #24452 > 00:38:31 d #1422 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e78fb26743a5e5f5fb2f4b5eb08006684b4de919f3e31d8ecbcfa34d9ec9c55b/main.spi
00:38:32 v #24453 > >
00:38:32 v #24454 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:32 v #24455 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:32 v #24456 > > │ ### arc_try_unwrap                                                           │
00:38:32 v #24457 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:32 v #24458 > >
00:38:32 v #24459 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:32 v #24460 > > inl arc_try_unwrap forall t. (x : arc t) : resultm.result' t (arc t) =
00:38:32 v #24461 > >     !\\(x, $'"std::sync::Arc::try_unwrap($0)"')
00:38:32 v #24462 > 00:38:31 d #1423 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/540677421531c87b066c6be423fc1ed6b4465560c9c88dc8605414fdae661602/main.spi
00:38:32 v #24463 > >
00:38:32 v #24464 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:32 v #24465 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:32 v #24466 > > │ ### arc_into_raw                                                             │
00:38:32 v #24467 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:32 v #24468 > >
00:38:32 v #24469 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:32 v #24470 > > inl arc_into_raw forall t. (x : arc t) : rust.ptr t =
00:38:32 v #24471 > >     !\\(x, $'"std::sync::Arc::into_raw($0)"')
00:38:32 v #24472 > 00:38:31 d #1424 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/89b56be3b1aa4f3140dfcba37e4f5cc966172c61668413ccc014edcd076c26e5/main.spi
00:38:32 v #24473 > >
00:38:32 v #24474 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:32 v #24475 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:32 v #24476 > > │ ### arc_from_raw                                                             │
00:38:32 v #24477 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:32 v #24478 > >
00:38:32 v #24479 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:32 v #24480 > > inl arc_from_raw forall t. (x : rust.ptr t) : arc t =
00:38:32 v #24481 > >     !\\(x, $'"std::sync::Arc::from_raw($0)"')
00:38:33 v #24482 > 00:38:32 d #1425 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f107a479a611604b389e4fc8519d96975ddf3206cceca34de609990936d6ede/main.spi
00:38:33 v #24483 > >
00:38:33 v #24484 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:33 v #24485 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:33 v #24486 > > │ ### partial_eq_wrapper_arc_eq                                                │
00:38:33 v #24487 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:33 v #24488 > >
00:38:33 v #24489 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:33 v #24490 > > inl partial_eq_wrapper_arc_eq forall t.
00:38:33 v #24491 > >     (self : rust.ref (rust.partial_eq_wrapper (arc t)))
00:38:33 v #24492 > >     (other : rust.ref (rust.partial_eq_wrapper (arc t)))
00:38:33 v #24493 > >     =
00:38:33 v #24494 > >     self
00:38:33 v #24495 > >     |> rust.unwrap_0_ref
00:38:33 v #24496 > >     |> arc_ptr_eq (
00:38:33 v #24497 > >         other
00:38:33 v #24498 > >         |> rust.unwrap_0_ref
00:38:33 v #24499 > >     )
00:38:33 v #24500 > 00:38:32 d #1426 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fea12dc241e23b649dc16d4a9714cfb5c58bbcf5cee293e032ad35fa0e3aeb06/main.spi
00:38:33 v #24501 > >
00:38:33 v #24502 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:33 v #24503 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:33 v #24504 > > │ ### new_partial_eq_wrapper_arc                                               │
00:38:33 v #24505 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:33 v #24506 > >
00:38:33 v #24507 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:33 v #24508 > > inl new_partial_eq_wrapper_arc forall t. (x : arc t) : rust.partial_eq_wrapper
00:38:33 v #24509 > > (arc t) =
00:38:33 v #24510 > >     x |> rust.new_partial_eq_wrapper partial_eq_wrapper_arc_eq
00:38:33 v #24511 > 00:38:33 d #1427 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba90f39f729911d13aca720c6098137449687290fb846ffe361a44e6dff4936d/main.spi
00:38:34 v #24512 > >
00:38:34 v #24513 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:34 v #24514 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:34 v #24515 > > │ ### mutex_guard                                                              │
00:38:34 v #24516 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:34 v #24517 > >
00:38:34 v #24518 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:34 v #24519 > > nominal mutex_guard t =
00:38:34 v #24520 > >     `(
00:38:34 v #24521 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:34 v #24522 > > Fable.Core.Emit(\"std::sync::MutexGuard<$0>\")>]]\n#endif\ntype
00:38:34 v #24523 > > std_sync_MutexGuard<'T> = class end"
00:38:34 v #24524 > >         $'' : $'std_sync_MutexGuard<`t>'
00:38:34 v #24525 > >     )
00:38:34 v #24526 > 00:38:33 d #1428 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8226155969cfc35a85927fec2f6e97cd993f382d5de7fddfd94a62274d2f07e5/main.spi
00:38:34 v #24527 > >
00:38:34 v #24528 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:34 v #24529 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:34 v #24530 > > │ ### rw_lock_read_guard                                                       │
00:38:34 v #24531 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:34 v #24532 > >
00:38:34 v #24533 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:34 v #24534 > > nominal rw_lock_read_guard t =
00:38:34 v #24535 > >     `(
00:38:34 v #24536 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:34 v #24537 > > Fable.Core.Emit(\"std::sync::RwLockReadGuard<$0>\")>]]\n#endif\ntype
00:38:34 v #24538 > > std_sync_RwLockReadGuard<'T> = class end"
00:38:34 v #24539 > >         $'' : $'std_sync_RwLockReadGuard<`t>'
00:38:34 v #24540 > >     )
00:38:34 v #24541 > 00:38:34 d #1429 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23a1e89da6231dfe0d250b979adc76feabd06a55943842ff3be9a8818343706c/main.spi
00:38:35 v #24542 > >
00:38:35 v #24543 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:35 v #24544 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:35 v #24545 > > │ ### rw_lock_write_guard                                                      │
00:38:35 v #24546 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:35 v #24547 > >
00:38:35 v #24548 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:35 v #24549 > > nominal rw_lock_write_guard t =
00:38:35 v #24550 > >     `(
00:38:35 v #24551 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:35 v #24552 > > Fable.Core.Emit(\"std::sync::RwLockWriteGuard<$0>\")>]]\n#endif\ntype
00:38:35 v #24553 > > std_sync_RwLockWriteGuard<'T> = class end"
00:38:35 v #24554 > >         $'' : $'std_sync_RwLockWriteGuard<`t>'
00:38:35 v #24555 > >     )
00:38:35 v #24556 > 00:38:34 d #1430 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/24d5dd161bb8337e0f5b837179c58a54fb904155f203c51634c30fb3656a6b78/main.spi
00:38:35 v #24557 > >
00:38:35 v #24558 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:35 v #24559 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:35 v #24560 > > │ ### poison_error                                                             │
00:38:35 v #24561 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:35 v #24562 > >
00:38:35 v #24563 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:35 v #24564 > > nominal poison_error t =
00:38:35 v #24565 > >     `(
00:38:35 v #24566 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:35 v #24567 > > Fable.Core.Emit(\"std::sync::PoisonError<$0>\")>]]\n#endif\ntype
00:38:35 v #24568 > > std_sync_PoisonError<'T> = class end"
00:38:35 v #24569 > >         $'' : $'std_sync_PoisonError<`t>'
00:38:35 v #24570 > >     )
00:38:35 v #24571 > 00:38:34 d #1431 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e076c9cba0140d2dadb2da9d28f5db56d8440574afd268c744bcc4bb2f39d462/main.spi
00:38:35 v #24572 > >
00:38:35 v #24573 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:35 v #24574 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:35 v #24575 > > │ ### try_lock_error                                                           │
00:38:35 v #24576 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:35 v #24577 > >
00:38:35 v #24578 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:35 v #24579 > > nominal try_lock_error t =
00:38:35 v #24580 > >     `(
00:38:35 v #24581 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:35 v #24582 > > Fable.Core.Emit(\"std::sync::TryLockError<$0>\")>]]\n#endif\ntype
00:38:35 v #24583 > > std_sync_TryLockError<'T> = class end"
00:38:35 v #24584 > >         $'' : $'std_sync_TryLockError<`t>'
00:38:35 v #24585 > >     )
00:38:36 v #24586 > 00:38:35 d #1432 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d08383b10433d89fc806a73b22f4c2fd3edf7c867e6dc15d4356c45668b19c93/main.spi
00:38:36 v #24587 > >
00:38:36 v #24588 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:36 v #24589 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:36 v #24590 > > │ ### arc_mutex_lock                                                           │
00:38:36 v #24591 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:36 v #24592 > >
00:38:36 v #24593 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:36 v #24594 > > inl arc_mutex_lock forall t. (x : arc (mutex t)) : resultm.result' (mutex_guard
00:38:36 v #24595 > > t) (poison_error (mutex_guard t)) =
00:38:36 v #24596 > >     inl x = x |> rust.emit
00:38:36 v #24597 > >     !\($'"!x.lock()"')
00:38:36 v #24598 > 00:38:35 d #1433 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/833eeb9656cda7649c8c90a198f5256a1d5b4df8d87b6888b6249015d3a52958/main.spi
00:38:36 v #24599 > >
00:38:36 v #24600 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:36 v #24601 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:36 v #24602 > > │ ### arc_rw_lock_read                                                         │
00:38:36 v #24603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:36 v #24604 > >
00:38:36 v #24605 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:36 v #24606 > > inl arc_rw_lock_read forall t. (x : arc (rw_lock t)) : resultm.result'
00:38:36 v #24607 > > (rw_lock_read_guard t) (poison_error (rw_lock_read_guard t)) =
00:38:36 v #24608 > >     inl x = x |> rust.emit
00:38:36 v #24609 > >     !\($'"!x.read()"')
00:38:36 v #24610 > 00:38:36 d #1434 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/716649628270ae76828c2dea1789d766dd77a1150ee697118b26f1add4d6d31b/main.spi
00:38:37 v #24611 > >
00:38:37 v #24612 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:37 v #24613 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:37 v #24614 > > │ ### arc_rw_lock_write                                                        │
00:38:37 v #24615 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:37 v #24616 > >
00:38:37 v #24617 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:37 v #24618 > > inl arc_rw_lock_write forall t. (x : arc (rw_lock t)) : resultm.result'
00:38:37 v #24619 > > (rw_lock_write_guard t) (poison_error (rw_lock_write_guard t)) =
00:38:37 v #24620 > >     inl x = x |> rust.emit
00:38:37 v #24621 > >     !\($'"!x.write()"')
00:38:37 v #24622 > 00:38:36 d #1435 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09e41d91d050826caa39ef47a3846f3189c08faa3aafed3c13dce13b10d5d7d9/main.spi
00:38:37 v #24623 > >
00:38:37 v #24624 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:37 v #24625 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:37 v #24626 > > │ ### arc_rw_lock_try_read                                                     │
00:38:37 v #24627 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:37 v #24628 > >
00:38:37 v #24629 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:37 v #24630 > > inl arc_rw_lock_try_read forall t. (x : arc (rw_lock t)) : resultm.result'
00:38:37 v #24631 > > (rw_lock_read_guard t) (try_lock_error (rw_lock_read_guard t)) =
00:38:37 v #24632 > >     inl x = x |> rust.emit
00:38:37 v #24633 > >     !\($'"!x.try_read()"')
00:38:37 v #24634 > 00:38:37 d #1436 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/96412405634e424a7751d4990cc0a4297942564c908c57e698e95361b4f5a71d/main.spi
00:38:38 v #24635 > >
00:38:38 v #24636 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:38 v #24637 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:38 v #24638 > > │ ### arc_rw_lock_try_write                                                    │
00:38:38 v #24639 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:38 v #24640 > >
00:38:38 v #24641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:38 v #24642 > > inl arc_rw_lock_try_write forall t. (x : arc (rw_lock t)) : resultm.result'
00:38:38 v #24643 > > (rw_lock_write_guard t) (try_lock_error (rw_lock_write_guard t)) =
00:38:38 v #24644 > >     inl x = x |> rust.emit
00:38:38 v #24645 > >     !\($'"!x.try_write()"')
00:38:38 v #24646 > 00:38:37 d #1437 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9fc7570724006143b4b5d409526df50147cbe2170cf57bc7607baf2f35ef440d/main.spi
00:38:38 v #24647 > >
00:38:38 v #24648 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:38 v #24649 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:38 v #24650 > > │ ### mutex_guard_ref                                                          │
00:38:38 v #24651 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:38 v #24652 > >
00:38:38 v #24653 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:38 v #24654 > > inl mutex_guard_ref forall t. (x : mutex_guard t) : rust.ref t =
00:38:38 v #24655 > >     !\\(x, $'"&$0"')
00:38:38 v #24656 > 00:38:37 d #1438 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f8a3c22b1da0af49d6c97c62943d759a4f77b7dac23c93d2f080474df0a81518/main.spi
00:38:38 v #24657 > >
00:38:38 v #24658 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:38 v #24659 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:38 v #24660 > > │ ### rw_lock_read_guard_ref                                                   │
00:38:38 v #24661 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:38 v #24662 > >
00:38:38 v #24663 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:38 v #24664 > > inl rw_lock_read_guard_ref forall t. (x : rw_lock_read_guard t) : rust.ref t =
00:38:38 v #24665 > >     !\\(x, $'"&$0"')
00:38:39 v #24666 > 00:38:38 d #1439 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/927ce32c7d923a71b56c8f11b274faaa4ec9d90a393662352f3468f31020d8b5/main.spi
00:38:39 v #24667 > >
00:38:39 v #24668 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:39 v #24669 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:39 v #24670 > > │ ### rw_lock_write_guard_ref                                                  │
00:38:39 v #24671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:39 v #24672 > >
00:38:39 v #24673 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:39 v #24674 > > inl rw_lock_write_guard_ref forall t. (x : rw_lock_write_guard t) : rust.ref t =
00:38:39 v #24675 > >     !\\(x, $'"&$0"')
00:38:39 v #24676 > 00:38:38 d #1440 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a8b836cc3bf66c64cde9d9a917362a4b013c53ee1a69829aa1ff5c73d4c1b10/main.spi
00:38:39 v #24677 > >
00:38:39 v #24678 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:39 v #24679 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:39 v #24680 > > │ ### mutex_guard_ref_mut                                                      │
00:38:39 v #24681 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:39 v #24682 > >
00:38:39 v #24683 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:39 v #24684 > > inl mutex_guard_ref_mut forall t. (x : mutex_guard t) : rust.ref (rust.mut' t) =
00:38:39 v #24685 > >     inl x = join x
00:38:39 v #24686 > >     (!\($'"true; let mut !x = !x"') : bool) |> ignore
00:38:39 v #24687 > >     !\\(x, $'"&mut $0"')
00:38:39 v #24688 > 00:38:39 d #1441 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a7dd5ae8efdd2b2999a9a205bc57a2872046387b609e0c5f717f64cb1351a20/main.spi
00:38:40 v #24689 > >
00:38:40 v #24690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:40 v #24691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:40 v #24692 > > │ ### mutex_guard_as_mut                                                       │
00:38:40 v #24693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:40 v #24694 > >
00:38:40 v #24695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:40 v #24696 > > inl mutex_guard_as_mut forall (t : * -> *) u. (x : mutex_guard (t u)) : t
00:38:40 v #24697 > > (rust.ref (rust.mut' u)) =
00:38:40 v #24698 > >     (!\($'"true; let mut !x = !x"') : bool) |> ignore
00:38:40 v #24699 > >     !\\(x, $'"$0.as_mut()"')
00:38:40 v #24700 > 00:38:39 d #1442 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e27c2cc732ca5552c260366f303209b43630fd38ef1e4f7e8db78b8a887ed97d/main.spi
00:38:40 v #24701 > >
00:38:40 v #24702 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:40 v #24703 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:40 v #24704 > > │ ### channel_receiver                                                         │
00:38:40 v #24705 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:40 v #24706 > >
00:38:40 v #24707 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:40 v #24708 > > nominal channel_receiver t =
00:38:40 v #24709 > >     `(
00:38:40 v #24710 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:40 v #24711 > > Fable.Core.Emit(\"std::sync::mpsc::Receiver<$0>\")>]]\n#endif\ntype
00:38:40 v #24712 > > std_sync_mpsc_Receiver<'T> = class end"
00:38:40 v #24713 > >         $'' : $'std_sync_mpsc_Receiver<`t>'
00:38:40 v #24714 > >     )
00:38:40 v #24715 > 00:38:39 d #1443 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94653109dab249bb6759d27ce086a32fb1075db622450bd7efb446e844b69535/main.spi
00:38:40 v #24716 > >
00:38:40 v #24717 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:40 v #24718 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:40 v #24719 > > │ ### channel_sender                                                           │
00:38:40 v #24720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:40 v #24721 > >
00:38:40 v #24722 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:40 v #24723 > > nominal channel_sender t =
00:38:40 v #24724 > >     `(
00:38:40 v #24725 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:40 v #24726 > > Fable.Core.Emit(\"std::sync::mpsc::Sender<$0>\")>]]\n#endif\ntype
00:38:40 v #24727 > > std_sync_mpsc_Sender<'T> = class end"
00:38:40 v #24728 > >         $'' : $'std_sync_mpsc_Sender<`t>'
00:38:40 v #24729 > >     )
00:38:41 v #24730 > 00:38:40 d #1444 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d378c50d6a26948be36dcef0c6725d56bc248bf40311dd5a077b36f363661b88/main.spi
00:38:41 v #24731 > >
00:38:41 v #24732 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:41 v #24733 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:41 v #24734 > > │ ### new_channel                                                              │
00:38:41 v #24735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:41 v #24736 > >
00:38:41 v #24737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:41 v #24738 > > inl new_channel () : channel_sender sm'.std_string * arc (channel_receiver
00:38:41 v #24739 > > sm'.std_string) =
00:38:41 v #24740 > >     !\($'"{ let (sender, receiver) = std::sync::mpsc::channel(); (sender,
00:38:41 v #24741 > > std::sync::Arc::new(receiver)) }"')
00:38:41 v #24742 > 00:38:40 d #1445 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/858acd18aa90f2b62801dc854523773cf82da283d6401dacef3d7f2467db777d/main.spi
00:38:41 v #24743 > >
00:38:41 v #24744 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:41 v #24745 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:41 v #24746 > > │ ### send_error                                                               │
00:38:41 v #24747 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:41 v #24748 > >
00:38:41 v #24749 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:41 v #24750 > > nominal send_error t =
00:38:41 v #24751 > >     `(
00:38:41 v #24752 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:38:41 v #24753 > > Fable.Core.Emit(\"std::sync::mpsc::SendError<$0>\")>]]\n#endif\ntype
00:38:41 v #24754 > > std_sync_mpsc_SendError<'T> = class end"
00:38:41 v #24755 > >         $'' : $'std_sync_mpsc_SendError<`t>'
00:38:41 v #24756 > >     )
00:38:41 v #24757 > 00:38:41 d #1446 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d5cab43568d54d8d312d0f6a006047e4d9cef78766d497d7720ac098039167bc/main.spi
00:38:42 v #24758 > >
00:38:42 v #24759 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:42 v #24760 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:42 v #24761 > > │ ### channel_send                                                             │
00:38:42 v #24762 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:42 v #24763 > >
00:38:42 v #24764 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:42 v #24765 > > inl channel_send forall t. (line : t) (sender : rust.ref (channel_sender t)) :
00:38:42 v #24766 > > resultm.result' () (send_error sm'.std_string) =
00:38:42 v #24767 > >     !\\((sender, line), $'"$0.send($1)"')
00:38:42 v #24768 > 00:38:41 d #1447 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ebe4b8c3c1eb80df81ac3574ff17a1896fa3a7c0397255724c0f4946e6189366/main.spi
00:38:42 v #24769 > >
00:38:42 v #24770 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:42 v #24771 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:42 v #24772 > > │ ## fsharp                                                                    │
00:38:42 v #24773 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:42 v #24774 > >
00:38:42 v #24775 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:42 v #24776 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:42 v #24777 > > │ ### sleep'                                                                   │
00:38:42 v #24778 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:42 v #24779 > >
00:38:42 v #24780 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:42 v #24781 > > inl sleep' (n : i32) : () =
00:38:42 v #24782 > >     run_target function
00:38:42 v #24783 > >         | Fsharp (Native) => fun () => $'System.Threading.Thread.Sleep' n
00:38:42 v #24784 > >         | _ => fun () => ()
00:38:42 v #24785 > 00:38:41 d #1448 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21de64bb5e12732e315804e2af7fa6c978cf9ed863dd6a1e2f10c01e930dab93/main.spi
00:38:42 v #24786 > >
00:38:42 v #24787 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:42 v #24788 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:42 v #24789 > > │ ### thread                                                                   │
00:38:42 v #24790 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:42 v #24791 > >
00:38:42 v #24792 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:42 v #24793 > > nominal thread = $'System.Threading.Thread'
00:38:43 v #24794 > 00:38:42 d #1449 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3664a49cb49f0d76c3378aa92ccf43c4b4e91044232db1cb0337ef574edbe31a/main.spi
00:38:43 v #24795 > >
00:38:43 v #24796 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:43 v #24797 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:43 v #24798 > > │ ### cancellation_token                                                       │
00:38:43 v #24799 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:43 v #24800 > >
00:38:43 v #24801 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:43 v #24802 > > nominal cancellation_token = $'System.Threading.CancellationToken'
00:38:43 v #24803 > 00:38:42 d #1450 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fd9ac31c4d46f7e4003a4297ea5dfc969abd7cf3c73b3c85b05ce65a8e8eb8bd/main.spi
00:38:43 v #24804 > >
00:38:43 v #24805 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:43 v #24806 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:43 v #24807 > > │ ### cancellation_token_source                                                │
00:38:43 v #24808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:43 v #24809 > >
00:38:43 v #24810 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:43 v #24811 > > nominal cancellation_token_source = $'System.Threading.CancellationTokenSource'
00:38:44 v #24812 > 00:38:43 d #1451 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7d69eea82c08b29dd006794dfbd1a682cd0b71e32afc4dad9fdae8800d1b63d/main.spi
00:38:44 v #24813 > >
00:38:44 v #24814 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:44 v #24815 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:44 v #24816 > > │ ### cancellation_token_registration                                          │
00:38:44 v #24817 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:44 v #24818 > >
00:38:44 v #24819 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:44 v #24820 > > nominal cancellation_token_registration =
00:38:44 v #24821 > > $'System.Threading.CancellationTokenRegistration'
00:38:44 v #24822 > 00:38:43 d #1452 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36ca21562714958164932681c4ad4322a2092840fb98df1088f6a7b895dde460/main.spi
00:38:44 v #24823 > >
00:38:44 v #24824 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:44 v #24825 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:44 v #24826 > > │ ### cancellation_source_token                                                │
00:38:44 v #24827 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:44 v #24828 > >
00:38:44 v #24829 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:44 v #24830 > > inl cancellation_source_token (x : cancellation_token_source) :
00:38:44 v #24831 > > cancellation_token =
00:38:44 v #24832 > >     $'!x.Token'
00:38:44 v #24833 > 00:38:44 d #1453 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a9ce0bed952959bf4e94bda91990c3e7aea96acd6b94067d4d0e23de423696b/main.spi
00:38:45 v #24834 > >
00:38:45 v #24835 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:45 v #24836 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:45 v #24837 > > │ ### cancellation_source_cancel                                               │
00:38:45 v #24838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:45 v #24839 > >
00:38:45 v #24840 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:45 v #24841 > > inl cancellation_source_cancel (x : cancellation_token_source) : () =
00:38:45 v #24842 > >     run_target function
00:38:45 v #24843 > >         | Fsharp (Native) => fun () =>
00:38:45 v #24844 > >             $'!x.Cancel' ()
00:38:45 v #24845 > >         | _ => fun () => null ()
00:38:45 v #24846 > 00:38:44 d #1454 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e64ed93b2977710f9a6abb229f09cd56734b5053401f1eb8f255c6f29caecd04/main.spi
00:38:45 v #24847 > >
00:38:45 v #24848 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:45 v #24849 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:45 v #24850 > > │ ### create_linked_token_source                                               │
00:38:45 v #24851 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:45 v #24852 > >
00:38:45 v #24853 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:45 v #24854 > > inl create_linked_token_source (x : array_base cancellation_token) :
00:38:45 v #24855 > > cancellation_token_source =
00:38:45 v #24856 > >     x |> $'System.Threading.CancellationTokenSource.CreateLinkedTokenSource'
00:38:45 v #24857 > 00:38:44 d #1455 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d08079b7fd8e615c5e1018fd4b9f339f3401fd9a236dfb1c239f8d31ff69309d/main.spi
00:38:45 v #24858 > >
00:38:45 v #24859 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:45 v #24860 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:45 v #24861 > > │ ### concurrent_stack                                                         │
00:38:45 v #24862 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:45 v #24863 > >
00:38:45 v #24864 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:45 v #24865 > > nominal concurrent_stack t =
00:38:45 v #24866 > > $'System.Collections.Concurrent.ConcurrentStack<`t>'
00:38:46 v #24867 > 00:38:45 d #1456 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/572992c93724d811e082952d864b82ccaec5d775bfe028066450da436d33e9fb/main.spi
00:38:46 v #24868 > >
00:38:46 v #24869 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:46 v #24870 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:46 v #24871 > > │ ### concurrent_stack_push                                                    │
00:38:46 v #24872 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:46 v #24873 > >
00:38:46 v #24874 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:46 v #24875 > > inl concurrent_stack_push forall t. (item : t) (stack : concurrent_stack t) : ()
00:38:46 v #24876 > > =
00:38:46 v #24877 > >     $'!stack.Push' item
00:38:46 v #24878 > 00:38:45 d #1457 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/67652ff7310dd5c061dcc993023d7303d0d0c281cd1b8bff99e356e686d3e842/main.spi
00:38:46 v #24879 > >
00:38:46 v #24880 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:46 v #24881 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:46 v #24882 > > │ ### token_none                                                               │
00:38:46 v #24883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:46 v #24884 > >
00:38:46 v #24885 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:46 v #24886 > > inl token_none () : cancellation_token =
00:38:46 v #24887 > >     $'`cancellation_token.None'
00:38:46 v #24888 > 00:38:46 d #1458 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/69db21b2cfb54b1770b9185947df20723d54726645c5b768c5c87b344cb22427/main.spi
00:38:47 v #24889 > >
00:38:47 v #24890 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:47 v #24891 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:47 v #24892 > > │ ### new_concurrent_stack                                                     │
00:38:47 v #24893 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:47 v #24894 > >
00:38:47 v #24895 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:47 v #24896 > > inl new_concurrent_stack forall t. () : concurrent_stack t =
00:38:47 v #24897 > >     $'System.Collections.Concurrent.ConcurrentStack<`t>' ()
00:38:47 v #24898 > 00:38:46 d #1459 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5713e062e6a35be5ae9cf8bd7be9dff9fa742507763102a049c065e9cffae2bf/main.spi
00:38:47 v #24899 > >
00:38:47 v #24900 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:47 v #24901 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:47 v #24902 > > │ ### token_register                                                           │
00:38:47 v #24903 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:47 v #24904 > >
00:38:47 v #24905 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:47 v #24906 > > inl token_register (fn : () -> ()) (ct : cancellation_token) :
00:38:47 v #24907 > > cancellation_token_registration =
00:38:47 v #24908 > >     fn |> $'!ct.Register'
00:38:47 v #24909 > 00:38:46 d #1460 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/17ada256820a2aff89f5c43352b6b550245be48a18717c46804e4bed6bfc23fe/main.spi
00:38:47 v #24910 > >
00:38:47 v #24911 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:47 v #24912 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:47 v #24913 > > │ ### new_cancellation_token_source                                            │
00:38:47 v #24914 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:47 v #24915 > >
00:38:47 v #24916 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:47 v #24917 > > inl new_cancellation_token_source () : cancellation_token_source =
00:38:47 v #24918 > >     $'new `cancellation_token_source ()'
00:38:48 v #24919 > 00:38:47 d #1461 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b99e8fa3119a58006ee8da0e94ae5e7fedf082312a49d6311503569228491766/main.spi
00:38:48 v #24920 > >
00:38:48 v #24921 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:48 v #24922 > > inl token_cancellation_requested (ct : cancellation_token) : bool =
00:38:48 v #24923 > >     $'!ct.IsCancellationRequested'
00:38:48 v #24924 > 00:38:47 d #1462 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc9c7fc5b3b3e0fa6a9491df26d42e51ba87d598757ee5c0ba182498ca28f6f7/main.spi
00:38:48 v #24925 > >
00:38:48 v #24926 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:48 v #24927 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:48 v #24928 > > │ ### new_disposable_token                                                     │
00:38:48 v #24929 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:48 v #24930 > >
00:38:48 v #24931 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:48 v #24932 > > inl new_disposable_token (merge_token : optionm'.option' cancellation_token) =
00:38:48 v #24933 > >     run_target function
00:38:48 v #24934 > >         | Fsharp (Native) => fun () =>
00:38:48 v #24935 > >             inl cts = new_cancellation_token_source ()
00:38:48 v #24936 > >             inl cts =
00:38:48 v #24937 > >                 match merge_token |> optionm'.unbox with
00:38:48 v #24938 > >                 | None => cts
00:38:48 v #24939 > >                 | Some merge_token =>
00:38:48 v #24940 > >                     create_linked_token_source ;[[ cts |>
00:38:48 v #24941 > > cancellation_source_token; merge_token ]]
00:38:48 v #24942 > >             inl disposable : _ () = new_disposable fun () =>
00:38:48 v #24943 > >                 cts |> cancellation_source_cancel
00:38:48 v #24944 > >             cts |> cancellation_source_token, disposable
00:38:48 v #24945 > >         | _ => fun () => null ()
00:38:48 v #24946 > 00:38:48 d #1463 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2e8a2cdb561f28931f78ea1adf81cdd18a3f9b8eaa445093d05de8e9997e5fb3/main.spi
00:38:49 v #24947 > >
00:38:49 v #24948 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:49 v #24949 > > //// test
00:38:49 v #24950 > >
00:38:49 v #24951 > > inl run fn =
00:38:49 v #24952 > >     inl token, disposable = new_disposable_token (None |> optionm'.box)
00:38:49 v #24953 > >     disposable |> use |> ignore
00:38:49 v #24954 > >     fn token
00:38:49 v #24955 > >     fun () =>
00:38:49 v #24956 > >         fn token
00:38:49 v #24957 > >     |> async.new_async
00:38:49 v #24958 > >     |> async.start
00:38:49 v #24959 > >
00:38:49 v #24960 > > fun () =>
00:38:49 v #24961 > >     inl counter = mut 0i32
00:38:49 v #24962 > >
00:38:49 v #24963 > >     inl fn (token : cancellation_token) =
00:38:49 v #24964 > >         counter <- *counter + (if token |> token_cancellation_requested then 10
00:38:49 v #24965 > > else 1)
00:38:49 v #24966 > >
00:38:49 v #24967 > >     join run fn
00:38:49 v #24968 > >     async.sleep 10 |> async.do
00:38:49 v #24969 > >     return *counter
00:38:49 v #24970 > > |> async.new_async_unit
00:38:49 v #24971 > > |> async.run_synchronously
00:38:49 v #24972 > > |> _assert_eq 11i32
00:38:49 v #24973 > 00:38:48 d #1464 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a89adc30efea337a03a45c97c1418e8a40e89f893ddf782340dfbf7f57b58183/main.spi
00:38:51 v #24974 > >
00:38:51 v #24975 > > ╭─[ 1.98s - stdout ]───────────────────────────────────────────────────────────╮
00:38:51 v #24976 > > │ __assert_eq / actual: 11 / expected: 11                                      │
00:38:51 v #24977 > > │                                                                              │
00:38:51 v #24978 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:51 v #24979 > >
00:38:51 v #24980 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:51 v #24981 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:51 v #24982 > > │ ## main                                                                      │
00:38:51 v #24983 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:38:51 v #24984 > >
00:38:51 v #24985 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:38:51 v #24986 > > inl main () =
00:38:51 v #24987 > >     $'let new_disposable_token x = !new_disposable_token x' : ()
00:38:51 v #24988 > 00:38:50 d #1465 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff9d84c1e83f1b68805c4128ee1d51a3174a2320c6e6560d2121ed00e9bd0984/main.spi
00:38:51 v #24989 > 00:00:32 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 34258 }
00:38:51 v #24990 > 00:00:32 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:38:53 v #24991 > 00:00:33 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/threading.dib.ipynb to html
00:38:53 v #24992 > 00:00:33 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:38:53 v #24993 > 00:00:33 v #7 !   validate(nb)
00:38:53 v #24994 > 00:00:34 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:38:53 v #24995 > 00:00:34 v #9 !   return _pygments_highlight(
00:38:54 v #24996 > 00:00:35 v #10 ! [NbConvertApp] Writing 378191 bytes to c:\home\git\polyglot\lib\spiral\threading.dib.html
00:38:54 v #24997 > 00:00:35 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 860 }
00:38:54 v #24998 > 00:00:35 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 860 }
00:38:54 v #24999 > 00:00:35 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/threading.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/threading.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:38:55 v #25000 > 00:00:35 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:38:55 v #25001 > 00:00:35 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:38:55 v #25002 > 00:00:35 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 35177 }
00:38:55 d #25003 runtime.execute_with_options_async / { exit_code = 0; output_length = 39149 }
00:38:55 d #32 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path threading.dib --retries 3
00:38:55 d #25004 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path benchmark.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path benchmark.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:38:55 v #25005 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "benchmark.dib", "--retries", "3"])) }
00:38:55 v #25006 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/benchmark.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/benchmark.dib" --output-path "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:38:56 v #25007 > >
00:38:56 v #25008 > > ── markdown ────────────────────────────────────────────────────────────────────
00:38:56 v #25009 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:38:56 v #25010 > > │ ## benchmark                                                                 │
00:38:56 v #25011 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:00 v #25012 > >
00:39:00 v #25013 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:00 v #25014 > > //// test
00:39:00 v #25015 > >
00:39:00 v #25016 > > open testing
00:39:01 v #25017 > 00:39:00 d #1466 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:39:01 v #25018 > >
00:39:01 v #25019 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:01 v #25020 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:01 v #25021 > > │ ## fsharp                                                                    │
00:39:01 v #25022 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:01 v #25023 > >
00:39:01 v #25024 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:01 v #25025 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:01 v #25026 > > │ ### test_case_result                                                         │
00:39:01 v #25027 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:01 v #25028 > >
00:39:01 v #25029 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:01 v #25030 > > type test_case_result =
00:39:01 v #25031 > >     {
00:39:01 v #25032 > >         input : string
00:39:01 v #25033 > >         expected : string
00:39:01 v #25034 > >         result : string
00:39:01 v #25035 > >         time_list : array_base i64
00:39:01 v #25036 > >     }
00:39:01 v #25037 > 00:39:01 d #1467 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15d929cf08c028299e48d797581c0a711100163c268b9ffb95fc65527ed60c03/main.spi
00:39:02 v #25038 > >
00:39:02 v #25039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:02 v #25040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:02 v #25041 > > │ ### run'                                                                     │
00:39:02 v #25042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:02 v #25043 > >
00:39:02 v #25044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:02 v #25045 > > inl run' forall t. count (fn : () -> t) =
00:39:02 v #25046 > >     runtime.gc_collect ()
00:39:02 v #25047 > >     inl stopwatch = date_time.stopwatch ()
00:39:02 v #25048 > >     stopwatch |> date_time.stopwatch_start
00:39:02 v #25049 > >     inl time1 = stopwatch |> date_time.stopwatch_elapsed_milliseconds
00:39:02 v #25050 > >     inl result : t =
00:39:02 v #25051 > >         am'.init_series 0 count 1i32
00:39:02 v #25052 > >         |> fun x => a x : _ int _
00:39:02 v #25053 > >         |> am'.parallel_map fun _n => fn ()
00:39:02 v #25054 > >         |> am'.last
00:39:02 v #25055 > >     inl time2 = (stopwatch |> date_time.stopwatch_elapsed_milliseconds) - time1
00:39:02 v #25056 > >     result, time2
00:39:02 v #25057 > 00:39:01 d #1468 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab04195d3cbb704fd3cef229af62d68737b74dbc9e86c0ac5ccda5981b33de1c/main.spi
00:39:02 v #25058 > >
00:39:02 v #25059 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:02 v #25060 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:02 v #25061 > > │ ### run                                                                      │
00:39:02 v #25062 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:02 v #25063 > >
00:39:02 v #25064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:02 v #25065 > > inl run forall input expected.
00:39:02 v #25066 > >     count
00:39:02 v #25067 > >     (solutions : list (string * (input -> expected)))
00:39:02 v #25068 > >     ((input, expected) : (input * expected))
00:39:02 v #25069 > >     : test_case_result
00:39:02 v #25070 > >     =
00:39:02 v #25071 > >     inl input_str = input |> sm'.format_debug
00:39:02 v #25072 > >
00:39:02 v #25073 > >     console.write_line ""
00:39:02 v #25074 > >     trace Verbose
00:39:02 v #25075 > >         fun () => "benchmark.run"
00:39:02 v #25076 > >         fun () => { input_str = input_str |> sm'.ellipsis_end 40 }
00:39:02 v #25077 > >
00:39:02 v #25078 > >     inl results_with_time : array_base _ =
00:39:02 v #25079 > >         solutions
00:39:02 v #25080 > >         |> listm'.indexed
00:39:02 v #25081 > >         |> listm'.box
00:39:02 v #25082 > >         |> listm'.to_array'
00:39:02 v #25083 > >         |> am'.map_base fun ((i : int), (test_name, solution)) =>
00:39:02 v #25084 > >             inl result, time =
00:39:02 v #25085 > >                 fun () => solution input
00:39:02 v #25086 > >                 |> run' count
00:39:02 v #25087 > >             trace Verbose
00:39:02 v #25088 > >                 fun () => "benchmark.run / solutions.map"
00:39:02 v #25089 > >                 fun () => { i = i + 1; test_name time }
00:39:02 v #25090 > >             result, time
00:39:02 v #25091 > >
00:39:02 v #25092 > >     match results_with_time |> am'.map_base fst with
00:39:02 v #25093 > >     | array when (array |> (fun x => a x : _ int _) |> am'.length) <= 1 => ()
00:39:02 v #25094 > >     | array when array |> (fun x => a x : _ int _) |> am.forall' ((=) (array |>
00:39:02 v #25095 > > (fun x => a x : _ int _) |> am'.index 0)) => ()
00:39:02 v #25096 > >     | results => failwith ($'$"benchmark.run / error / results: {!results}"' :
00:39:02 v #25097 > > string)
00:39:02 v #25098 > >
00:39:02 v #25099 > >     {
00:39:02 v #25100 > >         input = input_str
00:39:02 v #25101 > >         expected = expected |> sm'.format_debug
00:39:02 v #25102 > >         result = results_with_time |> am'.map_base fst |> (fun x => a x : _ int
00:39:02 v #25103 > > _) |> am'.index 0 |> sm'.format_debug
00:39:02 v #25104 > >         time_list = results_with_time |> am'.map_base snd
00:39:02 v #25105 > >     }
00:39:02 v #25106 > 00:39:01 d #1469 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/188be23f4769f358ec8b556622cc9265a8b8b584e3ac0ed5434ecf00d8fdac18/main.spi
00:39:02 v #25107 > >
00:39:02 v #25108 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:02 v #25109 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:02 v #25110 > > │ ### run_all                                                                  │
00:39:02 v #25111 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:02 v #25112 > >
00:39:02 v #25113 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:02 v #25114 > > inl run_all forall input expected.
00:39:02 v #25115 > >     test_name
00:39:02 v #25116 > >     count
00:39:02 v #25117 > >     (solutions : list (string * (input -> expected)))
00:39:02 v #25118 > >     test_cases
00:39:02 v #25119 > >     =
00:39:02 v #25120 > >     console.write_line ""
00:39:02 v #25121 > >     console.write_line "```"
00:39:02 v #25122 > >     trace Verbose
00:39:02 v #25123 > >         fun () => "benchmark.run_all"
00:39:02 v #25124 > >         fun () => { test_name count }
00:39:02 v #25125 > >     test_cases
00:39:02 v #25126 > >     |> listm'.box
00:39:02 v #25127 > >     |> listm'.to_array'
00:39:02 v #25128 > >     |> am'.map_base (run count solutions)
00:39:03 v #25129 > 00:39:02 d #1470 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f2d47e0f99bb0bad31a5467ed66bcca2c956d4844596000757b0ae81f31a236/main.spi
00:39:03 v #25130 > >
00:39:03 v #25131 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:03 v #25132 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:03 v #25133 > > │ ### sort_result_list                                                         │
00:39:03 v #25134 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:03 v #25135 > >
00:39:03 v #25136 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:03 v #25137 > > inl sort_result_list results =
00:39:03 v #25138 > >     inl table =
00:39:03 v #25139 > >         inl rows =
00:39:03 v #25140 > >             results
00:39:03 v #25141 > >             |> am'.map_base fun (result : test_case_result) =>
00:39:03 v #25142 > >                 inl best =
00:39:03 v #25143 > >                     result.time_list
00:39:03 v #25144 > >                     |> am'.indexed
00:39:03 v #25145 > >                     |> am'.map_base fun (i, time) =>
00:39:03 v #25146 > >                         i + 1i32, time
00:39:03 v #25147 > >                     |> fun x => a x : _ int _
00:39:03 v #25148 > >                     |> am'.sort_by snd
00:39:03 v #25149 > >                     |> am'.index 0i32
00:39:03 v #25150 > >                     |> sm'.format
00:39:03 v #25151 > >                 inl row =
00:39:03 v #25152 > >                     [[
00:39:03 v #25153 > >                         result.input |> sm'.ellipsis_end 40 |> sm'.replace "|"
00:39:03 v #25154 > > ""
00:39:03 v #25155 > >                         result.expected
00:39:03 v #25156 > >                         result.result
00:39:03 v #25157 > >                         best
00:39:03 v #25158 > >                     ]]
00:39:03 v #25159 > >                 inl color : option console.console_color =
00:39:03 v #25160 > >                     open console
00:39:03 v #25161 > >                     match result.expected = result.result with
00:39:03 v #25162 > >                     | true => Some $'`console_color.DarkGreen'
00:39:03 v #25163 > >                     | false => Some $'`console_color.DarkRed'
00:39:03 v #25164 > >                 row, color
00:39:03 v #25165 > >
00:39:03 v #25166 > >         inl header =
00:39:03 v #25167 > >             [[
00:39:03 v #25168 > >                 [[
00:39:03 v #25169 > >                     "input"
00:39:03 v #25170 > >                     "expected"
00:39:03 v #25171 > >                     "result"
00:39:03 v #25172 > >                     "best"
00:39:03 v #25173 > >                 ]]
00:39:03 v #25174 > >                 [[
00:39:03 v #25175 > >                     "---"
00:39:03 v #25176 > >                     "---"
00:39:03 v #25177 > >                     "---"
00:39:03 v #25178 > >                     "---"
00:39:03 v #25179 > >                 ]]
00:39:03 v #25180 > >             ]]
00:39:03 v #25181 > >             |> listm.map fun row => row, None
00:39:03 v #25182 > >             |> listm'.box
00:39:03 v #25183 > >             |> listm'.to_array'
00:39:03 v #25184 > >             |> fun x => a x : _ int _
00:39:03 v #25185 > >         a rows
00:39:03 v #25186 > >         |> am.append header
00:39:03 v #25187 > >         |> fun (a x) => x
00:39:03 v #25188 > >
00:39:03 v #25189 > >     inl formatted_table =
00:39:03 v #25190 > >         inl length_map : mapm.map i32 i64 =
00:39:03 v #25191 > >             table
00:39:03 v #25192 > >             |> am'.map_base (fst >> listm'.box >> listm'.to_array')
00:39:03 v #25193 > >             |> am'.transpose
00:39:03 v #25194 > >             |> am'.map_base fun column =>
00:39:03 v #25195 > >                 column
00:39:03 v #25196 > >                 |> am'.map_base sm.length
00:39:03 v #25197 > >                 |> fun x => a x : _ int _
00:39:03 v #25198 > >                 |> am'.sort_descending
00:39:03 v #25199 > >                 |> am'.try_item 0i32
00:39:03 v #25200 > >                 |> optionm'.default_value 0i64
00:39:03 v #25201 > >             |> am'.indexed
00:39:03 v #25202 > >             |> fun x => a x : _ int _
00:39:03 v #25203 > >             |> mapm.of_array
00:39:03 v #25204 > >         table
00:39:03 v #25205 > >         |> am'.map_base fun (row, color) =>
00:39:03 v #25206 > >             inl new_row =
00:39:03 v #25207 > >                 row
00:39:03 v #25208 > >                 |> listm'.indexed
00:39:03 v #25209 > >                 |> listm.map fun (i, cell) =>
00:39:03 v #25210 > >                     cell |> sm'.pad_right (length_map |> mapm.item i |> conv) '
00:39:03 v #25211 > > '
00:39:03 v #25212 > >                 |> listm'.box
00:39:03 v #25213 > >                 |> listm'.to_array'
00:39:03 v #25214 > >             new_row, color
00:39:03 v #25215 > >
00:39:03 v #25216 > >     console.write_line "```"
00:39:03 v #25217 > >     formatted_table
00:39:03 v #25218 > >     |> fun x => a x : _ int _
00:39:03 v #25219 > >     |> am'.to_list'
00:39:03 v #25220 > >     |> listm'.unbox
00:39:03 v #25221 > >     |> listm.iter fun (row, color) =>
00:39:03 v #25222 > >         match color with
00:39:03 v #25223 > >         | Some color => color |> console.set_foreground_color
00:39:03 v #25224 > >         | None => console.reset_color ()
00:39:03 v #25225 > >
00:39:03 v #25226 > >         a row |> sm'.join' "\t| " |> console.write_line
00:39:03 v #25227 > >
00:39:03 v #25228 > >         console.reset_color ()
00:39:03 v #25229 > >
00:39:03 v #25230 > >     inl averages =
00:39:03 v #25231 > >         results
00:39:03 v #25232 > >         |> am'.map_base fun result =>
00:39:03 v #25233 > >             result.time_list
00:39:03 v #25234 > >             |> am'.map_base ($'float' : i64 -> f64)
00:39:03 v #25235 > >         |> am'.transpose
00:39:03 v #25236 > >         |> am'.map_base ((fun x => a x : _ int _) >> am'.average)
00:39:03 v #25237 > >         |> am'.map_base ($'int64' : f64 -> i64)
00:39:03 v #25238 > >         |> am'.indexed
00:39:03 v #25239 > >         |> fun x => a x : _ u64 _
00:39:03 v #25240 > >
00:39:03 v #25241 > >     console.write_line "```"
00:39:03 v #25242 > >     averages
00:39:03 v #25243 > >     |> am'.sort_by snd
00:39:03 v #25244 > >     |> am'.to_list'
00:39:03 v #25245 > >     |> listm'.unbox
00:39:03 v #25246 > >     |> listm.iter fun ((i : i32), avg) =>
00:39:03 v #25247 > >         trace Verbose
00:39:03 v #25248 > >             fun () => "benchmark.sort_result_list / averages.iter"
00:39:03 v #25249 > >             fun () => { i = i + 1; avg }
00:39:03 v #25250 > >     console.write_line "```"
00:39:03 v #25251 > 00:39:02 d #1471 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f8b0c376ede13d631bcb0675bec730d6c43d64474d85e344b42e7ff592496c76/main.spi
00:39:03 v #25252 > >
00:39:03 v #25253 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:03 v #25254 > > //// test
00:39:03 v #25255 > >
00:39:03 v #25256 > > inl is_fast () =
00:39:03 v #25257 > >     false
00:39:03 v #25258 > 00:39:03 d #1472 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c87894374b9e727e40f32dd1779d214bd29ad391ca8c40799bb2fe2e1127e0f5/main.spi
00:39:03 v #25259 > >
00:39:03 v #25260 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:03 v #25261 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:03 v #25262 > > │ ### empty2Tests                                                              │
00:39:03 v #25263 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:03 v #25264 > >
00:39:03 v #25265 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:04 v #25266 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:04 v #25267 > > │ Test: Empty2                                                                 │
00:39:04 v #25268 > > │                                                                              │
00:39:04 v #25269 > > │ Solution: (a, a)                                                             │
00:39:04 v #25270 > > │ Test case 1. A. Time: 59L                                                    │
00:39:04 v #25271 > > │                                                                              │
00:39:04 v #25272 > > │ Solution: (a, a)                                                             │
00:39:04 v #25273 > > │ Test case 1. A. Time: 53L                                                    │
00:39:04 v #25274 > > │                                                                              │
00:39:04 v #25275 > > │ Input   | Expected        | Result  | Best                                   │
00:39:04 v #25276 > > │ ---     | ---             | ---     | ---                                    │
00:39:04 v #25277 > > │ (a, a)  | a               | a       | (1, 59)                                │
00:39:04 v #25278 > > │ (a, a)  | a               | a       | (1, 53)                                │
00:39:04 v #25279 > > │                                                                              │
00:39:04 v #25280 > > │ Averages                                                                     │
00:39:04 v #25281 > > │ Test case 1. Average Time: 56L                                               │
00:39:04 v #25282 > > │                                                                              │
00:39:04 v #25283 > > │ Ranking                                                                      │
00:39:04 v #25284 > > │ Test case 1. Average Time: 56L                                               │
00:39:04 v #25285 > > │                                                                              │
00:39:04 v #25286 > > │ ---                                                                          │
00:39:04 v #25287 > > │                                                                              │
00:39:04 v #25288 > > │                                                                              │
00:39:04 v #25289 > > │ ```                                                                          │
00:39:04 v #25290 > > │ 01:12:03 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:39:04 v #25291 > > │ empty_2_tests}                                                               │
00:39:04 v #25292 > > │ 01:12:03 verbose #2 benchmark.run / {count = 2000000; expected = a;     │
00:39:04 v #25293 > > │ input = a, a; input_str = struct ("a", "a")}                                 │
00:39:04 v #25294 > > │ 01:12:03 verbose #3 benchmark.run / solutions.map / {count = 2000000;   │
00:39:04 v #25295 > > │ expected = a; i = 0; input = a, a; input_str = struct ("a", "a"); test_name  │
00:39:04 v #25296 > > │ = A; time = 119}                                                             │
00:39:04 v #25297 > > │ 01:12:04 verbose #4 benchmark.run / solutions.map / {count = 2000000;   │
00:39:04 v #25298 > > │ expected = a; i = 1; input = a, a; input_str = struct ("a", "a"); test_name  │
00:39:04 v #25299 > > │ = B; time = 122}                                                             │
00:39:04 v #25300 > > │ 01:12:04 verbose #5 benchmark.run / {count = 2000000; expected = b;     │
00:39:04 v #25301 > > │ input = b, b; input_str = struct ("b", "b")}                                 │
00:39:04 v #25302 > > │ 01:12:04 verbose #6 benchmark.run / solutions.map / {count = 2000000;   │
00:39:04 v #25303 > > │ expected = b; i = 0; input = b, b; input_str = struct ("b", "b"); test_name  │
00:39:04 v #25304 > > │ = A; time = 110}                                                             │
00:39:04 v #25305 > > │ 01:12:04 verbose #7 benchmark.run / solutions.map / {count = 2000000;   │
00:39:04 v #25306 > > │ expected = b; i = 1; input = b, b; input_str = struct ("b", "b"); test_name  │
00:39:04 v #25307 > > │ = B; time = 120}                                                             │
00:39:04 v #25308 > > │ ```                                                                          │
00:39:04 v #25309 > > │ Input            	| Expected	| Result	| Best                                       │
00:39:04 v #25310 > > │ ---              	| ---     	| ---   	| ---                                        │
00:39:04 v #25311 > > │ struct ("a", "a")	| "a"     	| "a"   	| struct (1L, 119L)                          │
00:39:04 v #25312 > > │ struct ("b", "b")	| "b"     	| "b"   	| struct (1L, 110L)                          │
00:39:04 v #25313 > > │ ```                                                                          │
00:39:04 v #25314 > > │ 01:12:04 verbose #8 benchmark.sort_result_list / averages.iter / {avg = │
00:39:04 v #25315 > > │ 114; i = 0}                                                                  │
00:39:04 v #25316 > > │ 01:12:04 verbose #9 benchmark.sort_result_list / averages.iter / {avg = │
00:39:04 v #25317 > > │ 121; i = 1}                                                                  │
00:39:04 v #25318 > > │ ```                                                                          │
00:39:04 v #25319 > > │ `                                                                            │
00:39:04 v #25320 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:04 v #25321 > >
00:39:04 v #25322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:04 v #25323 > > //// test
00:39:04 v #25324 > >
00:39:04 v #25325 > > inl get_solutions () =
00:39:04 v #25326 > >     [[
00:39:04 v #25327 > >         "A",
00:39:04 v #25328 > >         fun (a, _b) =>
00:39:04 v #25329 > >             a
00:39:04 v #25330 > >
00:39:04 v #25331 > >         "B",
00:39:04 v #25332 > >         fun (_a, b) =>
00:39:04 v #25333 > >             b
00:39:04 v #25334 > >     ]]
00:39:04 v #25335 > >
00:39:04 v #25336 > > inl rec empty_2_tests () =
00:39:04 v #25337 > >     inl test_cases = [[
00:39:04 v #25338 > >         ("a", "a"), "a"
00:39:04 v #25339 > >         ("b", "b"), "b"
00:39:04 v #25340 > >     ]]
00:39:04 v #25341 > >
00:39:04 v #25342 > >     inl solutions = get_solutions ()
00:39:04 v #25343 > >
00:39:04 v #25344 > >     // inl is_fast () = true
00:39:04 v #25345 > >
00:39:04 v #25346 > >     inl count =
00:39:04 v #25347 > >         if is_fast ()
00:39:04 v #25348 > >         then 1000i32
00:39:04 v #25349 > >         else 2000000i32
00:39:04 v #25350 > >
00:39:04 v #25351 > >     run_all (reflection.nameof { empty_2_tests }) count solutions test_cases
00:39:04 v #25352 > >     |> sort_result_list
00:39:04 v #25353 > >
00:39:04 v #25354 > > empty_2_tests ()
00:39:04 v #25355 > 00:39:03 d #1473 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6dc1dfb9991f229993348afea037e11b0572be7ff55fd7f3867ee95382995ac8/main.spi
00:39:08 v #25356 > >
00:39:08 v #25357 > > ╭─[ 4.41s - stdout ]───────────────────────────────────────────────────────────╮
00:39:08 v #25358 > > │                                                                              │
00:39:08 v #25359 > > │ ```                                                                          │
00:39:08 v #25360 > > │ 00:00:00 v #1 benchmark.run_all / { test_name = empty_2_tests; count =  │
00:39:08 v #25361 > > │ 2000000 }                                                                    │
00:39:08 v #25362 > > │                                                                              │
00:39:08 v #25363 > > │ 00:00:00 v #2 benchmark.run / { input_str = struct ("a", "a") }         │
00:39:08 v #25364 > > │ 00:00:00 v #3 benchmark.run / solutions.map / { i = 1; test_name = A;   │
00:39:08 v #25365 > > │ time = 121 }                                                                 │
00:39:08 v #25366 > > │ 00:00:00 v #4 benchmark.run / solutions.map / { i = 2; test_name = B;   │
00:39:08 v #25367 > > │ time = 99 }                                                                  │
00:39:08 v #25368 > > │                                                                              │
00:39:08 v #25369 > > │ 00:00:00 v #5 benchmark.run / { input_str = struct ("b", "b") }         │
00:39:08 v #25370 > > │ 00:00:00 v #6 benchmark.run / solutions.map / { i = 1; test_name = A;   │
00:39:08 v #25371 > > │ time = 111 }                                                                 │
00:39:08 v #25372 > > │ 00:00:00 v #7 benchmark.run / solutions.map / { i = 2; test_name = B;   │
00:39:08 v #25373 > > │ time = 113 }                                                                 │
00:39:08 v #25374 > > │ ```                                                                          │
00:39:08 v #25375 > > │ input            	| expected	| result	| best                                       │
00:39:08 v #25376 > > │ ---              	| ---     	| ---   	| ---                                        │
00:39:08 v #25377 > > │ struct ("a", "a")	| "a"     	| "a"   	| 2, 99                                      │
00:39:08 v #25378 > > │ struct ("b", "b")	| "b"     	| "b"   	| 1, 111                                     │
00:39:08 v #25379 > > │ ```                                                                          │
00:39:08 v #25380 > > │ 00:00:01 v #8 benchmark.sort_result_list / averages.iter / { i = 2; avg │
00:39:08 v #25381 > > │ = 106 }                                                                      │
00:39:08 v #25382 > > │ 00:00:01 v #9 benchmark.sort_result_list / averages.iter / { i = 1; avg │
00:39:08 v #25383 > > │ = 116 }                                                                      │
00:39:08 v #25384 > > │ ```                                                                          │
00:39:08 v #25385 > > │                                                                              │
00:39:08 v #25386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:08 v #25387 > >
00:39:08 v #25388 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:08 v #25389 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:08 v #25390 > > │ ### emptyTests                                                               │
00:39:08 v #25391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:08 v #25392 > >
00:39:08 v #25393 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:08 v #25394 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:08 v #25395 > > │ Test: Empty                                                                  │
00:39:08 v #25396 > > │                                                                              │
00:39:08 v #25397 > > │ Solution: 0                                                                  │
00:39:08 v #25398 > > │ Test case 1. A. Time: 61L                                                    │
00:39:08 v #25399 > > │                                                                              │
00:39:08 v #25400 > > │ Solution: 2                                                                  │
00:39:08 v #25401 > > │ Test case 1. A. Time: 62L                                                    │
00:39:08 v #25402 > > │                                                                              │
00:39:08 v #25403 > > │ Solution: 5                                                                  │
00:39:08 v #25404 > > │ Test case 1. A. Time: 70L                                                    │
00:39:08 v #25405 > > │                                                                              │
00:39:08 v #25406 > > │ Input   | Expected        | Result  | Best                                   │
00:39:08 v #25407 > > │ ---     | ---             | ---     | ---                                    │
00:39:08 v #25408 > > │ 0       | 0               | 0       | (1, 61)                                │
00:39:08 v #25409 > > │ 2       | 2               | 2       | (1, 62)                                │
00:39:08 v #25410 > > │ 5       | 5               | 5       | (1, 70)                                │
00:39:08 v #25411 > > │                                                                              │
00:39:08 v #25412 > > │ Averages                                                                     │
00:39:08 v #25413 > > │ Test case 1. Average Time: 64L                                               │
00:39:08 v #25414 > > │                                                                              │
00:39:08 v #25415 > > │ Ranking                                                                      │
00:39:08 v #25416 > > │ Test case 1. Average Time: 64L                                               │
00:39:08 v #25417 > > │                                                                              │
00:39:08 v #25418 > > │ ---                                                                          │
00:39:08 v #25419 > > │                                                                              │
00:39:08 v #25420 > > │ ```                                                                          │
00:39:08 v #25421 > > │ 01:21:25 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:39:08 v #25422 > > │ empty_1_tests}                                                               │
00:39:08 v #25423 > > │ 01:21:25 verbose #2 benchmark.run / {count = 2000000; expected =        │
00:39:08 v #25424 > > │ +1.000000; input = +0.000000; input_str = 0.0}                               │
00:39:08 v #25425 > > │ 01:21:25 verbose #3 benchmark.run / solutions.map / {count = 2000000;   │
00:39:08 v #25426 > > │ expected = +1.000000; i = 0; input = +0.000000; input_str = 0.0; test_name = │
00:39:08 v #25427 > > │ A; time = 36}                                                                │
00:39:08 v #25428 > > │ 01:21:25 verbose #4 benchmark.run / {count = 2000000; expected =        │
00:39:08 v #25429 > > │ +3.000000; input = +2.000000; input_str = 2.0}                               │
00:39:08 v #25430 > > │ 01:21:25 verbose #5 benchmark.run / solutions.map / {count = 2000000;   │
00:39:08 v #25431 > > │ expected = +3.000000; i = 0; input = +2.000000; input_str = 2.0; test_name = │
00:39:08 v #25432 > > │ A; time = 20}                                                                │
00:39:08 v #25433 > > │ 01:21:25 verbose #6 benchmark.run / {count = 2000000; expected =        │
00:39:08 v #25434 > > │ +6.000000; input = +5.000000; input_str = 5.0}                               │
00:39:08 v #25435 > > │ 01:21:25 verbose #7 benchmark.run / solutions.map / {count = 2000000;   │
00:39:08 v #25436 > > │ expected = +6.000000; i = 0; input = +5.000000; input_str = 5.0; test_name = │
00:39:08 v #25437 > > │ A; time = 22}                                                                │
00:39:08 v #25438 > > │ ```                                                                          │
00:39:08 v #25439 > > │ Input	| Expected	| Result	| Best                                                   │
00:39:08 v #25440 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:39:08 v #25441 > > │ 0.0  	| 1.0     	| 1.0   	| struct (1L, 36L)                                       │
00:39:08 v #25442 > > │ 2.0  	| 3.0     	| 3.0   	| struct (1L, 20L)                                       │
00:39:08 v #25443 > > │ 5.0  	| 6.0     	| 6.0   	| struct (1L, 22L)                                       │
00:39:08 v #25444 > > │ ```                                                                          │
00:39:08 v #25445 > > │ 01:21:25 verbose #8 benchmark.sort_result_list / averages.iter / {avg = │
00:39:08 v #25446 > > │ 26; i = 0}                                                                   │
00:39:08 v #25447 > > │ ```                                                                          │
00:39:08 v #25448 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:08 v #25449 > >
00:39:08 v #25450 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:08 v #25451 > > //// test
00:39:08 v #25452 > >
00:39:08 v #25453 > > inl get_solutions () =
00:39:08 v #25454 > >     [[
00:39:08 v #25455 > >         "A",
00:39:08 v #25456 > >         fun n =>
00:39:08 v #25457 > >             n + 1f64
00:39:08 v #25458 > >     ]]
00:39:08 v #25459 > >
00:39:08 v #25460 > > inl rec empty_1_tests () =
00:39:08 v #25461 > >     inl test_cases = [[
00:39:08 v #25462 > >         0, 1
00:39:08 v #25463 > >         2, 3
00:39:08 v #25464 > >         5, 6
00:39:08 v #25465 > >     ]]
00:39:08 v #25466 > >
00:39:08 v #25467 > >     inl solutions = get_solutions ()
00:39:08 v #25468 > >
00:39:08 v #25469 > >     // inl is_fast () = true
00:39:08 v #25470 > >
00:39:08 v #25471 > >     inl count =
00:39:08 v #25472 > >         if is_fast ()
00:39:08 v #25473 > >         then 1000i32
00:39:08 v #25474 > >         else 2000000i32
00:39:08 v #25475 > >
00:39:08 v #25476 > >     run_all (reflection.nameof { empty_1_tests }) count solutions test_cases
00:39:08 v #25477 > >     |> sort_result_list
00:39:08 v #25478 > >
00:39:08 v #25479 > > empty_1_tests ()
00:39:08 v #25480 > 00:39:07 d #1474 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3fbb0e2222758b7bb0b482310841f0d71787614aa7047cf133804bc443d129c8/main.spi
00:39:10 v #25481 > >
00:39:10 v #25482 > > ╭─[ 2.51s - stdout ]───────────────────────────────────────────────────────────╮
00:39:10 v #25483 > > │                                                                              │
00:39:10 v #25484 > > │ ```                                                                          │
00:39:10 v #25485 > > │ 00:00:00 v #1 benchmark.run_all / { test_name = empty_1_tests; count =  │
00:39:10 v #25486 > > │ 2000000 }                                                                    │
00:39:10 v #25487 > > │                                                                              │
00:39:10 v #25488 > > │ 00:00:00 v #2 benchmark.run / { input_str = 0.0 }                       │
00:39:10 v #25489 > > │ 00:00:00 v #3 benchmark.run / solutions.map / { i = 1; test_name = A;   │
00:39:10 v #25490 > > │ time = 24 }                                                                  │
00:39:10 v #25491 > > │                                                                              │
00:39:10 v #25492 > > │ 00:00:00 v #4 benchmark.run / { input_str = 2.0 }                       │
00:39:10 v #25493 > > │ 00:00:00 v #5 benchmark.run / solutions.map / { i = 1; test_name = A;   │
00:39:10 v #25494 > > │ time = 16 }                                                                  │
00:39:10 v #25495 > > │                                                                              │
00:39:10 v #25496 > > │ 00:00:00 v #6 benchmark.run / { input_str = 5.0 }                       │
00:39:10 v #25497 > > │ 00:00:00 v #7 benchmark.run / solutions.map / { i = 1; test_name = A;   │
00:39:10 v #25498 > > │ time = 16 }                                                                  │
00:39:10 v #25499 > > │ ```                                                                          │
00:39:10 v #25500 > > │ input	| expected	| result	| best                                                   │
00:39:10 v #25501 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:39:10 v #25502 > > │ 0.0  	| 1.0     	| 1.0   	| 1, 24                                                  │
00:39:10 v #25503 > > │ 2.0  	| 3.0     	| 3.0   	| 1, 16                                                  │
00:39:10 v #25504 > > │ 5.0  	| 6.0     	| 6.0   	| 1, 16                                                  │
00:39:10 v #25505 > > │ ```                                                                          │
00:39:10 v #25506 > > │ 00:00:00 v #8 benchmark.sort_result_list / averages.iter / { i = 1; avg │
00:39:10 v #25507 > > │ = 18 }                                                                       │
00:39:10 v #25508 > > │ ```                                                                          │
00:39:10 v #25509 > > │                                                                              │
00:39:10 v #25510 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:11 v #25511 > 00:00:15 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 24838 }
00:39:11 v #25512 > 00:00:15 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:39:12 v #25513 > 00:00:17 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb to html
00:39:12 v #25514 > 00:00:17 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:39:12 v #25515 > 00:00:17 v #7 !   validate(nb)
00:39:13 v #25516 > 00:00:18 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:39:13 v #25517 > 00:00:18 v #9 !   return _pygments_highlight(
00:39:13 v #25518 > 00:00:18 v #10 ! [NbConvertApp] Writing 316535 bytes to c:\home\git\polyglot\lib\spiral\benchmark.dib.html
00:39:13 v #25519 > 00:00:18 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 860 }
00:39:13 v #25520 > 00:00:18 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 860 }
00:39:13 v #25521 > 00:00:18 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/benchmark.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/benchmark.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:39:14 v #25522 > 00:00:19 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:39:14 v #25523 > 00:00:19 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:39:14 v #25524 > 00:00:19 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 25757 }
00:39:14 d #25525 runtime.execute_with_options_async / { exit_code = 0; output_length = 29341 }
00:39:14 d #33 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path benchmark.dib --retries 3
00:39:14 d #25526 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path physics.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path physics.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:39:14 v #25527 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "physics.dib", "--retries", "3"])) }
00:39:14 v #25528 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/physics.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/physics.dib" --output-path "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:39:16 v #25529 > >
00:39:16 v #25530 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:16 v #25531 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:16 v #25532 > > │ # physics                                                                    │
00:39:16 v #25533 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:37 v #25534 > >
00:39:37 v #25535 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:37 v #25536 > > //// test
00:39:37 v #25537 > >
00:39:37 v #25538 > > open testing
00:39:38 v #25539 > 00:39:37 d #1475 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:39:38 v #25540 > >
00:39:38 v #25541 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:38 v #25542 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:38 v #25543 > > │ ### init_series                                                              │
00:39:38 v #25544 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:38 v #25545 > >
00:39:38 v #25546 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:38 v #25547 > > //// test
00:39:38 v #25548 > >
00:39:38 v #25549 > > inl x = am'.init_series -3f64 3 0.01
00:39:38 v #25550 > > inl y = x |> am'.map_base math.square
00:39:38 v #25551 > > "square", "x", "y", ;[[ "square", x, y ]]
00:39:39 v #25552 > 00:39:38 d #1476 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a7ad985805fb6991339e38a1741fe40fa03196f8017dcafcb6a3a6ccd6d666f/main.spi
00:39:39 v #25553 > >
00:39:39 v #25554 > > ╭─[ 450.56ms - return value ]──────────────────────────────────────────────────╮
00:39:39 v #25555 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:39:39 v #25556 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:39:39 v #25557 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:39:39 v #25558 > > │ stroke="none"/>                                                              │
00:39:39 v #25559 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:39:39 v #25560 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:39 v #25561 > > │ fill="#FFFFFF">                                                              │
00:39:39 v #25562 > > │ square                                                                       │
00:39:39 v #25563 > > │ </text>                                                                      │
00:39:39 v #25564 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:39:39 v #25565 > > │ y2="75"/>                                                                    │
00:39:39 v #25566 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:39:39 v #25567 > > │ y2="75"/>                                                                    │
00:39:39 v #25568 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:39:39 v #25569 > > │ y2="75"/>                                                                    │
00:39:39 v #25570 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:39:39 v #25571 > > │ y2="75"/>                                                                    │
00:39:39 v #25572 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:39:39 v #25573 > > │ y2="75"/>                                                                    │
00:39:39 v #25574 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:39:39 v #25575 > > │ x2="103" y2="75"/>                                                           │
00:39:39 v #25576 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:39:39 v #25577 > > │ x2="111" y2="75"/>                                                           │
00:39:39 v #25578 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:39:39 v #25579 > > │ x2="119" y2="75"/>                                                           │
00:39:39 v #25580 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:39:39 v #25581 > > │ x2="128" y2="75"/>                                                           │
00:39:39 v #25582 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:39:39 v #25583 > > │ x2="136" y2="75"/>                                                           │
00:39:39 v #25584 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:39:39 v #25585 > > │ x2="144" y2="75"/>                                                           │
00:39:39 v #25586 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:39:39 v #25587 > > │ x2="153" y2="75"/>                                                           │
00:39:39 v #25588 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:39:39 v #25589 > > │ x2="161" y2="75"/>                                                           │
00:39:39 v #25590 > > │ <line opacity="1" stroke="#... 449,326 450,324 450,323 451,322 452,321       │
00:39:39 v #25591 > > │ 453,320 454,319 455,317 455,316 456,315 457,314 458,313 459,311 460,310      │
00:39:39 v #25592 > > │ 460,309 461,308 462,306 463,305 464,304 465,303 465,301 466,300 467,299      │
00:39:39 v #25593 > > │ 468,297 469,296 470,295 470,293 471,292 472,291 473,289 474,288 475,287      │
00:39:39 v #25594 > > │ 475,285 476,284 477,283 478,281 479,280 480,278 480,277 481,276 482,274      │
00:39:39 v #25595 > > │ 483,273 484,271 485,270 485,268 486,267 487,265 488,264 489,262 490,261      │
00:39:39 v #25596 > > │ 490,259 491,258 492,256 493,255 494,253 495,252 495,250 496,249 497,247      │
00:39:39 v #25597 > > │ 498,246 499,244 499,242 500,241 501,239 502,238 503,236 504,234 504,233      │
00:39:39 v #25598 > > │ 505,231 506,229 507,228 508,226 509,224 509,223 510,221 511,219 512,218      │
00:39:39 v #25599 > > │ 513,216 514,214 514,213 515,211 516,209 517,207 518,206 519,204 519,202      │
00:39:39 v #25600 > > │ 520,200 521,199 522,197 523,195 524,193 524,191 525,190 526,188 527,186      │
00:39:39 v #25601 > > │ 528,184 529,182 529,180 530,179 531,177 532,175 533,173 534,171 534,169      │
00:39:39 v #25602 > > │ 535,167 536,165 537,164 538,162 539,160 539,158 540,156 541,154 542,152      │
00:39:39 v #25603 > > │ 543,150 544,148 544,146 545,144 546,142 547,140 548,138 549,136 549,134      │
00:39:39 v #25604 > > │ 550,132 551,130 552,128 553,126 554,124 554,122 555,120 556,117 557,115      │
00:39:39 v #25605 > > │ 558,113 559,111 559,109 560,107 561,105 562,103 563,101 564,98 564,96 565,94 │
00:39:39 v #25606 > > │ 566,92 567,90 568,88 569,85 "/>                                              │
00:39:39 v #25607 > > │ <rect x="497" y="235" width="83" height="30" opacity="1" fill="none"         │
00:39:39 v #25608 > > │ stroke="#FFFFFF"/>                                                           │
00:39:39 v #25609 > > │ <text x="537" y="245" dy="0.76em" text-anchor="start"                        │
00:39:39 v #25610 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:39 v #25611 > > │ fill="#FFFFFF">                                                              │
00:39:39 v #25612 > > │ square                                                                       │
00:39:39 v #25613 > > │ </text>                                                                      │
00:39:39 v #25614 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:39 v #25615 > > │ points="507,250 527,250 "/>                                                  │
00:39:39 v #25616 > > │ </svg>                                                                       │
00:39:39 v #25617 > > │                                                                              │
00:39:39 v #25618 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:39 v #25619 > >
00:39:39 v #25620 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:39 v #25621 > > //// test
00:39:39 v #25622 > >
00:39:39 v #25623 > > inl x = am'.init_series -10f64 10 0.1
00:39:39 v #25624 > > inl y_sin = x |> am'.map_base sin
00:39:39 v #25625 > > inl y_cos = x |> am'.map_base cos
00:39:39 v #25626 > > "sin cos", "x", "y", ;[[ "sin", x, y_sin; "cos", x, y_cos ]]
00:39:39 v #25627 > 00:39:38 d #1477 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/810b585c3b9f35674862bc78476fbff1b676964e99081f1b6297792e7fb0c079/main.spi
00:39:39 v #25628 > >
00:39:39 v #25629 > > ╭─[ 440.37ms - return value ]──────────────────────────────────────────────────╮
00:39:39 v #25630 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:39:39 v #25631 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:39:39 v #25632 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:39:39 v #25633 > > │ stroke="none"/>                                                              │
00:39:39 v #25634 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:39:39 v #25635 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:39 v #25636 > > │ fill="#FFFFFF">                                                              │
00:39:39 v #25637 > > │ sin cos                                                                      │
00:39:39 v #25638 > > │ </text>                                                                      │
00:39:39 v #25639 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:39:39 v #25640 > > │ y2="75"/>                                                                    │
00:39:39 v #25641 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:39:39 v #25642 > > │ y2="75"/>                                                                    │
00:39:39 v #25643 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:39:39 v #25644 > > │ y2="75"/>                                                                    │
00:39:39 v #25645 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:39:39 v #25646 > > │ y2="75"/>                                                                    │
00:39:39 v #25647 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424"        │
00:39:39 v #25648 > > │ x2="107" y2="75"/>                                                           │
00:39:39 v #25649 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:39:39 v #25650 > > │ x2="119" y2="75"/>                                                           │
00:39:39 v #25651 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="132" y1="424"        │
00:39:39 v #25652 > > │ x2="132" y2="75"/>                                                           │
00:39:39 v #25653 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:39:39 v #25654 > > │ x2="144" y2="75"/>                                                           │
00:39:39 v #25655 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="157" y1="424"        │
00:39:39 v #25656 > > │ x2="157" y2="75"/>                                                           │
00:39:39 v #25657 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:39:39 v #25658 > > │ x2="169" y2="75"/>                                                           │
00:39:39 v #25659 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="182" y1="424"        │
00:39:39 v #25660 > > │ x2="182" y2="75"/>                                                           │
00:39:39 v #25661 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="194" y1="424"        │
00:39:39 v #25662 > > │ x2="194" y2="75"/>                                                           │
00:39:39 v #25663 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="207" y1="424"        │
00:39:39 v #25664 > > │ x2="207" y2="75"/>                                                           │
00:39:39 v #25665 > > │ <line opacity="1" stroke...55 282,238 284,222 287,206 289,190 292,175        │
00:39:39 v #25666 > > │ 294,161 297,148 299,135 302,124 304,114 307,106 309,98 312,93 314,89 317,86  │
00:39:39 v #25667 > > │ 319,85 321,86 324,89 326,93 329,98 331,106 334,114 336,124 339,135 341,148   │
00:39:39 v #25668 > > │ 344,161 346,175 349,190 351,206 354,222 356,238 359,255 361,271 364,287      │
00:39:39 v #25669 > > │ 366,303 369,319 371,333 374,347 376,360 379,371 381,382 384,391 386,399      │
00:39:39 v #25670 > > │ 389,405 391,410 394,413 396,414 399,414 401,413 404,409 406,404 409,398      │
00:39:39 v #25671 > > │ 411,390 414,380 416,370 419,358 421,345 424,331 426,316 429,301 431,285      │
00:39:39 v #25672 > > │ 434,268 436,252 439,236 441,219 444,203 446,188 449,173 451,159 454,146      │
00:39:39 v #25673 > > │ 456,133 459,122 461,113 464,104 466,97 469,92 471,88 474,86 476,85 479,86    │
00:39:39 v #25674 > > │ 481,89 484,94 486,99 489,107 491,116 494,126 496,137 499,150 501,163 504,178 │
00:39:39 v #25675 > > │ 506,193 509,209 511,225 514,241 516,258 519,274 521,290 524,306 526,321      │
00:39:39 v #25676 > > │ 529,335 531,349 534,362 536,373 539,384 541,392 544,400 546,406 549,410      │
00:39:39 v #25677 > > │ 551,413 554,415 556,414 559,412 561,408 564,403 566,396 569,388 "/>          │
00:39:39 v #25678 > > │ <rect x="514" y="227" width="66" height="45" opacity="1" fill="none"         │
00:39:39 v #25679 > > │ stroke="#FFFFFF"/>                                                           │
00:39:39 v #25680 > > │ <text x="554" y="237" dy="0.76em" text-anchor="start"                        │
00:39:39 v #25681 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:39 v #25682 > > │ fill="#FFFFFF">                                                              │
00:39:39 v #25683 > > │ sin                                                                          │
00:39:39 v #25684 > > │ </text>                                                                      │
00:39:39 v #25685 > > │ <text x="554" y="252" dy="0.76em" text-anchor="start"                        │
00:39:39 v #25686 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:39 v #25687 > > │ fill="#FFFFFF">                                                              │
00:39:39 v #25688 > > │ cos                                                                          │
00:39:39 v #25689 > > │ </text>                                                                      │
00:39:39 v #25690 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:39 v #25691 > > │ points="524,242 544,242 "/>                                                  │
00:39:39 v #25692 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:39:39 v #25693 > > │ points="524,257 544,257 "/>                                                  │
00:39:39 v #25694 > > │ </svg>                                                                       │
00:39:39 v #25695 > > │                                                                              │
00:39:39 v #25696 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:39 v #25697 > >
00:39:39 v #25698 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:39 v #25699 > > //// test
00:39:39 v #25700 > >
00:39:39 v #25701 > > inl y_pos y0 vy0 ay t =
00:39:39 v #25702 > >     y0 + vy0 * t + ay * (t |> math.square) / 2
00:39:39 v #25703 > >
00:39:39 v #25704 > > inl x = am'.init_series 0f64 5 0.01
00:39:39 v #25705 > > inl y = x |> am'.map_base (y_pos 0 20 -9.8)
00:39:39 v #25706 > > "projectile motion", "time (s)", "", ;[[ "height of projectile (m)", x, y ]]
00:39:39 v #25707 > 00:39:39 d #1478 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/288a212fee50dfad7344c70905581751e7325cba0d50c8c991d8ae508fd94a2f/main.spi
00:39:40 v #25708 > >
00:39:40 v #25709 > > ╭─[ 409.30ms - return value ]──────────────────────────────────────────────────╮
00:39:40 v #25710 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:39:40 v #25711 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:39:40 v #25712 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:39:40 v #25713 > > │ stroke="none"/>                                                              │
00:39:40 v #25714 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:39:40 v #25715 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:40 v #25716 > > │ fill="#FFFFFF">                                                              │
00:39:40 v #25717 > > │ projectile motion                                                            │
00:39:40 v #25718 > > │ </text>                                                                      │
00:39:40 v #25719 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:39:40 v #25720 > > │ y2="75"/>                                                                    │
00:39:40 v #25721 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:39:40 v #25722 > > │ y2="75"/>                                                                    │
00:39:40 v #25723 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:39:40 v #25724 > > │ y2="75"/>                                                                    │
00:39:40 v #25725 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:39:40 v #25726 > > │ y2="75"/>                                                                    │
00:39:40 v #25727 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:39:40 v #25728 > > │ y2="75"/>                                                                    │
00:39:40 v #25729 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:39:40 v #25730 > > │ x2="109" y2="75"/>                                                           │
00:39:40 v #25731 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:39:40 v #25732 > > │ x2="119" y2="75"/>                                                           │
00:39:40 v #25733 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:39:40 v #25734 > > │ x2="129" y2="75"/>                                                           │
00:39:40 v #25735 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:39:40 v #25736 > > │ x2="139" y2="75"/>                                                           │
00:39:40 v #25737 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:39:40 v #25738 > > │ x2="149" y2="75"/>                                                           │
00:39:40 v #25739 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:39:40 v #25740 > > │ x2="159" y2="75"/>                                                           │
00:39:40 v #25741 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:39:40 v #25742 > > │ x2="169" y2="75"/>                                                           │
00:39:40 v #25743 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:39:40 v #25744 > > │ x2="179" y2="75"/>                                                           │
00:39:40 v #25745 > > │ <line opacity="1...28,176 429,177 430,178 431,179 432,180 433,182 434,183    │
00:39:40 v #25746 > > │ 435,184 436,185 437,186 438,188 439,189 440,190 441,191 442,193 443,194      │
00:39:40 v #25747 > > │ 444,195 445,197 446,198 447,199 448,200 449,202 450,203 451,204 452,206      │
00:39:40 v #25748 > > │ 453,207 454,208 455,210 456,211 457,213 458,214 459,215 460,217 461,218      │
00:39:40 v #25749 > > │ 462,220 463,221 464,222 465,224 466,225 467,227 468,228 469,230 470,231      │
00:39:40 v #25750 > > │ 471,233 472,234 473,236 474,237 475,239 476,240 477,242 478,243 479,245      │
00:39:40 v #25751 > > │ 480,246 481,248 482,249 483,251 484,253 485,254 486,256 487,257 488,259      │
00:39:40 v #25752 > > │ 489,261 490,262 491,264 492,266 493,267 494,269 495,271 496,272 497,274      │
00:39:40 v #25753 > > │ 498,276 499,277 500,279 501,281 502,282 503,284 504,286 505,288 506,289      │
00:39:40 v #25754 > > │ 507,291 508,293 509,295 510,296 511,298 512,300 513,302 514,304 515,305      │
00:39:40 v #25755 > > │ 516,307 517,309 518,311 519,313 520,315 521,316 522,318 523,320 524,322      │
00:39:40 v #25756 > > │ 525,324 526,326 527,328 528,330 529,332 530,334 531,335 532,337 533,339      │
00:39:40 v #25757 > > │ 534,341 535,343 536,345 537,347 538,349 539,351 540,353 541,355 542,357      │
00:39:40 v #25758 > > │ 543,359 544,361 545,363 546,365 547,367 548,370 549,372 550,374 551,376      │
00:39:40 v #25759 > > │ 552,378 553,380 554,382 555,384 556,386 557,388 558,391 559,393 560,395      │
00:39:40 v #25760 > > │ 561,397 562,399 563,401 564,404 565,406 566,408 567,410 568,412 569,415 "/>  │
00:39:40 v #25761 > > │ <rect x="399" y="235" width="181" height="30" opacity="1" fill="none"        │
00:39:40 v #25762 > > │ stroke="#FFFFFF"/>                                                           │
00:39:40 v #25763 > > │ <text x="439" y="245" dy="0.76em" text-anchor="start"                        │
00:39:40 v #25764 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:40 v #25765 > > │ fill="#FFFFFF">                                                              │
00:39:40 v #25766 > > │ height of projectile (m)                                                     │
00:39:40 v #25767 > > │ </text>                                                                      │
00:39:40 v #25768 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:40 v #25769 > > │ points="409,250 429,250 "/>                                                  │
00:39:40 v #25770 > > │ </svg>                                                                       │
00:39:40 v #25771 > > │                                                                              │
00:39:40 v #25772 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:40 v #25773 > >
00:39:40 v #25774 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:40 v #25775 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:40 v #25776 > > │ ### velocity_cf                                                              │
00:39:40 v #25777 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:40 v #25778 > >
00:39:40 v #25779 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:40 v #25780 > > type mass = f64
00:39:40 v #25781 > > type time = f64
00:39:40 v #25782 > > type position = f64
00:39:40 v #25783 > > type velocity = f64
00:39:40 v #25784 > > type force = f64
00:39:40 v #25785 > >
00:39:40 v #25786 > > type velocity_cf = mass -> velocity -> list force -> (time -> velocity)
00:39:40 v #25787 > >
00:39:40 v #25788 > > inl velocity_cf m v0 fs =
00:39:40 v #25789 > >     inl f_net = fs |> listm'.sum
00:39:40 v #25790 > >     inl a0 = f_net / m
00:39:40 v #25791 > >     inl v t = v0 + a0 * t
00:39:40 v #25792 > >     v
00:39:40 v #25793 > 00:39:39 d #1479 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/313e4aa9581625299dff75773fb55c6630e9d836ce37307c6698d46513e882c3/main.spi
00:39:40 v #25794 > >
00:39:40 v #25795 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:40 v #25796 > > //// test
00:39:40 v #25797 > >
00:39:40 v #25798 > > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 0
00:39:40 v #25799 > > |> _assert_eq 0.6
00:39:40 v #25800 > >
00:39:40 v #25801 > > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 1
00:39:40 v #25802 > > |> _assert_eq 0.2
00:39:40 v #25803 > 00:39:39 d #1480 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b69f07cd5cbe3602d135eb4804e16819046c15a1d304bc80652c08373bebc2f4/main.spi
00:39:40 v #25804 > >
00:39:40 v #25805 > > ╭─[ 426.69ms - stdout ]────────────────────────────────────────────────────────╮
00:39:40 v #25806 > > │ __assert_eq / actual: 0.6 / expected: 0.6                                    │
00:39:40 v #25807 > > │ __assert_eq / actual: 0.2 / expected: 0.2                                    │
00:39:40 v #25808 > > │                                                                              │
00:39:40 v #25809 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:40 v #25810 > >
00:39:40 v #25811 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:40 v #25812 > > //// test
00:39:40 v #25813 > >
00:39:40 v #25814 > > inl x = am'.init_series 0f64 4 0.1
00:39:40 v #25815 > > inl y = x |> am'.map_base (velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]])
00:39:40 v #25816 > > "car on an air track", "time (s)", "", ;[[ "velocity of car (m/s)", x, y ]]
00:39:41 v #25817 > 00:39:40 d #1481 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ee895a8c40325362074de083c9b61d797af55f40efe265c277931e43c6ad593/main.spi
00:39:41 v #25818 > >
00:39:41 v #25819 > > ╭─[ 436.51ms - return value ]──────────────────────────────────────────────────╮
00:39:41 v #25820 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:39:41 v #25821 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:39:41 v #25822 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:39:41 v #25823 > > │ stroke="none"/>                                                              │
00:39:41 v #25824 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:39:41 v #25825 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:41 v #25826 > > │ fill="#FFFFFF">                                                              │
00:39:41 v #25827 > > │ car on an air track                                                          │
00:39:41 v #25828 > > │ </text>                                                                      │
00:39:41 v #25829 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:39:41 v #25830 > > │ y2="75"/>                                                                    │
00:39:41 v #25831 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:39:41 v #25832 > > │ y2="75"/>                                                                    │
00:39:41 v #25833 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:39:41 v #25834 > > │ y2="75"/>                                                                    │
00:39:41 v #25835 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:39:41 v #25836 > > │ y2="75"/>                                                                    │
00:39:41 v #25837 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424"        │
00:39:41 v #25838 > > │ x2="107" y2="75"/>                                                           │
00:39:41 v #25839 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:39:41 v #25840 > > │ x2="119" y2="75"/>                                                           │
00:39:41 v #25841 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="132" y1="424"        │
00:39:41 v #25842 > > │ x2="132" y2="75"/>                                                           │
00:39:41 v #25843 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:39:41 v #25844 > > │ x2="144" y2="75"/>                                                           │
00:39:41 v #25845 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="157" y1="424"        │
00:39:41 v #25846 > > │ x2="157" y2="75"/>                                                           │
00:39:41 v #25847 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:39:41 v #25848 > > │ x2="169" y2="75"/>                                                           │
00:39:41 v #25849 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="182" y1="424"        │
00:39:41 v #25850 > > │ x2="182" y2="75"/>                                                           │
00:39:41 v #25851 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="194" y1="424"        │
00:39:41 v #25852 > > │ x2="194" y2="75"/>                                                           │
00:39:41 v #25853 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="207" y1="424"        │
00:39:41 v #25854 > > │ x2="207" y2="75"/>                                                           │
00:39:41 v #25855 > > │ <line opacit...85,209 590,209 "/>                                            │
00:39:41 v #25856 > > │ <text x="617" y="168" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:39:41 v #25857 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:39:41 v #25858 > > │ 0.2                                                                          │
00:39:41 v #25859 > > │ </text>                                                                      │
00:39:41 v #25860 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:39:41 v #25861 > > │ points="585,168 590,168 "/>                                                  │
00:39:41 v #25862 > > │ <text x="617" y="127" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:39:41 v #25863 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:39:41 v #25864 > > │ 0.4                                                                          │
00:39:41 v #25865 > > │ </text>                                                                      │
00:39:41 v #25866 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:39:41 v #25867 > > │ points="585,127 590,127 "/>                                                  │
00:39:41 v #25868 > > │ <text x="617" y="85" dy="0.5ex" text-anchor="end" font-family="sans-serif"   │
00:39:41 v #25869 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:39:41 v #25870 > > │ 0.6                                                                          │
00:39:41 v #25871 > > │ </text>                                                                      │
00:39:41 v #25872 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:39:41 v #25873 > > │ points="585,85 590,85 "/>                                                    │
00:39:41 v #25874 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:41 v #25875 > > │ points="69,85 82,94 94,102 107,110 119,118 132,127 144,135 157,143 169,151   │
00:39:41 v #25876 > > │ 182,159 194,168 207,176 219,184 232,192 244,201 257,209 269,217 282,225      │
00:39:41 v #25877 > > │ 294,234 307,242 319,250 331,258 344,266 356,275 369,283 381,291 394,299      │
00:39:41 v #25878 > > │ 406,308 419,316 431,324 444,332 456,341 469,349 481,357 494,365 506,373      │
00:39:41 v #25879 > > │ 519,382 531,390 544,398 556,406 569,415 "/>                                  │
00:39:41 v #25880 > > │ <rect x="415" y="235" width="165" height="30" opacity="1" fill="none"        │
00:39:41 v #25881 > > │ stroke="#FFFFFF"/>                                                           │
00:39:41 v #25882 > > │ <text x="455" y="245" dy="0.76em" text-anchor="start"                        │
00:39:41 v #25883 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:41 v #25884 > > │ fill="#FFFFFF">                                                              │
00:39:41 v #25885 > > │ velocity of car (m/s)                                                        │
00:39:41 v #25886 > > │ </text>                                                                      │
00:39:41 v #25887 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:41 v #25888 > > │ points="425,250 445,250 "/>                                                  │
00:39:41 v #25889 > > │ </svg>                                                                       │
00:39:41 v #25890 > > │                                                                              │
00:39:41 v #25891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:41 v #25892 > >
00:39:41 v #25893 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:41 v #25894 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:41 v #25895 > > │ ### derivative                                                               │
00:39:41 v #25896 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:41 v #25897 > >
00:39:41 v #25898 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:41 v #25899 > > type derivative = (f64 -> f64) -> f64 -> f64
00:39:41 v #25900 > >
00:39:41 v #25901 > > inl derivative dt : derivative =
00:39:41 v #25902 > >     fun x t =>
00:39:41 v #25903 > >         (x (t + dt / 2) - x (t - dt / 2)) / dt
00:39:41 v #25904 > 00:39:40 d #1482 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f860e1f3d0990020e70e2c28807ba63a8da055d56e1afb66cbc6abc219fbbef/main.spi
00:39:41 v #25905 > >
00:39:41 v #25906 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:41 v #25907 > > //// test
00:39:41 v #25908 > >
00:39:41 v #25909 > > derivative 1 (fun x => x ** 4 / 4) 1 - 1
00:39:41 v #25910 > > |> _assert_approx_eq None 0.25
00:39:41 v #25911 > >
00:39:41 v #25912 > > derivative 0.001 (fun x => x ** 4 / 4) 1 - 1
00:39:41 v #25913 > > |> _assert_approx_eq None 0.0000002499998827953931
00:39:41 v #25914 > >
00:39:41 v #25915 > > derivative 0.000001 (fun x => x ** 4 / 4) 1 - 1
00:39:41 v #25916 > > |> _assert_approx_eq None 0.000000000001000088900582341
00:39:41 v #25917 > >
00:39:41 v #25918 > > derivative 0.000000001 (fun x => x ** 4 / 4) 1 - 1
00:39:41 v #25919 > > |> _assert_approx_eq None 0.00000008274037099909037
00:39:41 v #25920 > >
00:39:41 v #25921 > > derivative 0.000000000001 (fun x => x ** 4 / 4) 1 - 1
00:39:41 v #25922 > > |> _assert_approx_eq None 0.00008890058234101161
00:39:41 v #25923 > >
00:39:41 v #25924 > > derivative 0.000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:39:41 v #25925 > > |> _assert_approx_eq None -0.0007992778373592246
00:39:41 v #25926 > >
00:39:41 v #25927 > > derivative 0.000000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:39:41 v #25928 > > |> _assert_approx_eq None -1
00:39:42 v #25929 > 00:39:41 d #1483 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7628cf77d47c9e60c40b69653cec51d8eacf6028f0530fb6a8d9f7b39523ca38/main.spi
00:39:42 v #25930 > >
00:39:42 v #25931 > > ╭─[ 437.75ms - stdout ]────────────────────────────────────────────────────────╮
00:39:42 v #25932 > > │ __assert_approx_eq / actual: 0.25 / expected: 0.25                           │
00:39:42 v #25933 > > │ __assert_approx_eq / actual: 2.499998828e-07 / expected: 2.499998828e-07     │
00:39:42 v #25934 > > │ __assert_approx_eq / actual: 1.000088901e-12 / expected: 1.000088901e-12     │
00:39:42 v #25935 > > │ __assert_approx_eq / actual: 8.2740371e-08 / expected: 8.2740371e-08         │
00:39:42 v #25936 > > │ __assert_approx_eq / actual: 8.890058234e-05 / expected: 8.890058234e-05     │
00:39:42 v #25937 > > │ __assert_approx_eq / actual: -0.0007992778374 / expected: -0.0007992778374   │
00:39:42 v #25938 > > │ __assert_approx_eq / actual: -1.0 / expected: -1.0                           │
00:39:42 v #25939 > > │                                                                              │
00:39:42 v #25940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:42 v #25941 > >
00:39:42 v #25942 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:42 v #25943 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:42 v #25944 > > │ ### integration                                                              │
00:39:42 v #25945 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:42 v #25946 > >
00:39:42 v #25947 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:42 v #25948 > > type integration = (f64 -> f64) -> f64 -> f64 -> f64
00:39:42 v #25949 > >
00:39:42 v #25950 > > inl integral dt : integration =
00:39:42 v #25951 > >     fun f a b =>
00:39:42 v #25952 > >         inl rec loop t y =
00:39:42 v #25953 > >             if t < b
00:39:42 v #25954 > >             then loop (t + dt) (y + f t * dt)
00:39:42 v #25955 > >             else t, y
00:39:42 v #25956 > >         loop (a + dt / 2) 0
00:39:42 v #25957 > >         |> snd
00:39:42 v #25958 > 00:39:41 d #1484 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be1f0345fa4d30548c696dcca0a6aabc7e45579a50b72db44e14189fd4675b17/main.spi
00:39:42 v #25959 > >
00:39:42 v #25960 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:42 v #25961 > > //// test
00:39:42 v #25962 > >
00:39:42 v #25963 > > integral 0.01 math.square 0 1
00:39:42 v #25964 > > |> _assert_approx_eq None 0.33332500000000004
00:39:42 v #25965 > 00:39:42 d #1485 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8e1c1d73fce6d392577082ccf529fe2b9ec437d7f8dd9c9a19376dba9a5f99d5/main.spi
00:39:43 v #25966 > >
00:39:43 v #25967 > > ╭─[ 461.94ms - stdout ]────────────────────────────────────────────────────────╮
00:39:43 v #25968 > > │ __assert_approx_eq / actual: 0.333325 / expected: 0.333325                   │
00:39:43 v #25969 > > │                                                                              │
00:39:43 v #25970 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:43 v #25971 > >
00:39:43 v #25972 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:43 v #25973 > > inl integral' dt : integration =
00:39:43 v #25974 > >     fun f a b =>
00:39:43 v #25975 > >         listm'.init_series (a + dt / 2) (b - dt / 2) dt
00:39:43 v #25976 > >         |> listm.map (f >> (*) dt)
00:39:43 v #25977 > >         |> listm'.sum
00:39:43 v #25978 > 00:39:42 d #1486 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/657ea893f7fdca273a4f1ff12463b00c632ee5f27d912cf612ad9ff0de31bce2/main.spi
00:39:43 v #25979 > >
00:39:43 v #25980 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:43 v #25981 > > //// test
00:39:43 v #25982 > >
00:39:43 v #25983 > > integral' 0.1 math.square 0 1
00:39:43 v #25984 > > |> _assert_approx_eq None (integral 0.1 math.square 0 1)
00:39:43 v #25985 > 00:39:42 d #1487 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a570ba76aa5b78b3f3a5732dc305814c5323232d6b25e3893b12cf02aca818d/main.spi
00:39:43 v #25986 > >
00:39:43 v #25987 > > ╭─[ 427.56ms - stdout ]────────────────────────────────────────────────────────╮
00:39:43 v #25988 > > │ __assert_approx_eq / actual: 0.3325 / expected: 0.3325                       │
00:39:43 v #25989 > > │                                                                              │
00:39:43 v #25990 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:43 v #25991 > >
00:39:43 v #25992 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:43 v #25993 > > inl integral'' dt : integration =
00:39:43 v #25994 > >     fun f x y =>
00:39:43 v #25995 > >         am'.init_series (x + dt / 2) (y - dt / 2) dt
00:39:43 v #25996 > >         |> fun x => a x : _ int _
00:39:43 v #25997 > >         |> am.map (f >> (*) dt)
00:39:43 v #25998 > >         |> am'.sum
00:39:44 v #25999 > 00:39:43 d #1488 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8352259675c39c397c7fd22720b22c952458e0f72b826d18a1166a83c3b483d9/main.spi
00:39:44 v #26000 > >
00:39:44 v #26001 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:44 v #26002 > > //// test
00:39:44 v #26003 > >
00:39:44 v #26004 > > integral'' 0.01 math.square 0 1
00:39:44 v #26005 > > |> _assert_approx_eq None (integral 0.01 math.square 0 1)
00:39:44 v #26006 > 00:39:43 d #1489 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/227e67a37874d1ca72b39a4e78078d07e66375e70c7c67975b35a4fa43c2090c/main.spi
00:39:44 v #26007 > >
00:39:44 v #26008 > > ╭─[ 471.10ms - stdout ]────────────────────────────────────────────────────────╮
00:39:44 v #26009 > > │ __assert_approx_eq / actual: 0.333325 / expected: 0.333325                   │
00:39:44 v #26010 > > │                                                                              │
00:39:44 v #26011 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:44 v #26012 > >
00:39:44 v #26013 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:44 v #26014 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:44 v #26015 > > │ ### anti_derivative                                                          │
00:39:44 v #26016 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:44 v #26017 > >
00:39:44 v #26018 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:44 v #26019 > > inl anti_derivative dt v0 a t =
00:39:44 v #26020 > >     v0 + integral' dt a 0 t
00:39:45 v #26021 > 00:39:44 d #1490 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c6b26a8138c573a03699cf5c5c41045846ca4dbe4cda15eec2d546f1a8855693/main.spi
00:39:45 v #26022 > >
00:39:45 v #26023 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:45 v #26024 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:45 v #26025 > > │ ### velocity_ft                                                              │
00:39:45 v #26026 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:45 v #26027 > >
00:39:45 v #26028 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:45 v #26029 > > type velocity_ft = mass -> velocity -> list (time -> force) -> (time ->
00:39:45 v #26030 > > velocity)
00:39:45 v #26031 > >
00:39:45 v #26032 > > inl velocity_ft dt : velocity_ft =
00:39:45 v #26033 > >     fun m v0 fs =>
00:39:45 v #26034 > >         inl f_net t = fs |> listm.map (fun f => f t) |> listm'.sum
00:39:45 v #26035 > >         inl a t = f_net t / m
00:39:45 v #26036 > >         anti_derivative dt v0 a
00:39:45 v #26037 > 00:39:44 d #1491 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94e3edccb37643f1977335f24f98ccc7f0d2b0855b6eae6670fbba3fdff2e1a9/main.spi
00:39:45 v #26038 > >
00:39:45 v #26039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:45 v #26040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:45 v #26041 > > │ ### position_ft                                                              │
00:39:45 v #26042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:45 v #26043 > >
00:39:45 v #26044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:45 v #26045 > > type position_ft = mass -> position -> velocity -> list (time -> force) -> (time
00:39:45 v #26046 > > -> position)
00:39:45 v #26047 > >
00:39:45 v #26048 > > inl position_ft dt : position_ft =
00:39:45 v #26049 > >     fun m x0 v0 fs =>
00:39:45 v #26050 > >         velocity_ft dt m v0 fs
00:39:45 v #26051 > >         |> anti_derivative dt x0
00:39:45 v #26052 > 00:39:45 d #1492 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1fae363dd912673194dfd1412730c57d95a128b7c8c28c38ea626ea93fd81eb9/main.spi
00:39:46 v #26053 > >
00:39:46 v #26054 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:46 v #26055 > > //// test
00:39:46 v #26056 > >
00:39:46 v #26057 > > inl pedal_coast (t : time) : force =
00:39:46 v #26058 > >     inl t_cycle = 20
00:39:46 v #26059 > >     inl n_complete : i32 = t / t_cycle |> conv
00:39:46 v #26060 > >     inl remainder = t - conv n_complete * t_cycle
00:39:46 v #26061 > >     if remainder > 0 && remainder < 10
00:39:46 v #26062 > >     then 10
00:39:46 v #26063 > >     else 0
00:39:46 v #26064 > >
00:39:46 v #26065 > > inl x = am'.init_series -5f64 45 0.1
00:39:46 v #26066 > > inl y = x |> am'.map_base pedal_coast
00:39:46 v #26067 > > "child pedaling then coasting", "time (s)", "", ;[[ "force on bike (N)", x, y ]]
00:39:46 v #26068 > 00:39:45 d #1493 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/009d321e96d917ef744ce3f13a6420cc3879eac327ca3a9a8292f391e893a6d4/main.spi
00:39:46 v #26069 > >
00:39:46 v #26070 > > ╭─[ 390.84ms - return value ]──────────────────────────────────────────────────╮
00:39:46 v #26071 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:39:46 v #26072 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:39:46 v #26073 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:39:46 v #26074 > > │ stroke="none"/>                                                              │
00:39:46 v #26075 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:39:46 v #26076 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:46 v #26077 > > │ fill="#FFFFFF">                                                              │
00:39:46 v #26078 > > │ child pedaling then coasting                                                 │
00:39:46 v #26079 > > │ </text>                                                                      │
00:39:46 v #26080 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:39:46 v #26081 > > │ y2="75"/>                                                                    │
00:39:46 v #26082 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:39:46 v #26083 > > │ y2="75"/>                                                                    │
00:39:46 v #26084 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:39:46 v #26085 > > │ y2="75"/>                                                                    │
00:39:46 v #26086 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:39:46 v #26087 > > │ y2="75"/>                                                                    │
00:39:46 v #26088 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:39:46 v #26089 > > │ y2="75"/>                                                                    │
00:39:46 v #26090 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:39:46 v #26091 > > │ x2="109" y2="75"/>                                                           │
00:39:46 v #26092 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:39:46 v #26093 > > │ x2="119" y2="75"/>                                                           │
00:39:46 v #26094 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:39:46 v #26095 > > │ x2="129" y2="75"/>                                                           │
00:39:46 v #26096 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:39:46 v #26097 > > │ x2="139" y2="75"/>                                                           │
00:39:46 v #26098 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:39:46 v #26099 > > │ x2="149" y2="75"/>                                                           │
00:39:46 v #26100 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:39:46 v #26101 > > │ x2="159" y2="75"/>                                                           │
00:39:46 v #26102 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:39:46 v #26103 > > │ x2="169" y2="75"/>                                                           │
00:39:46 v #26104 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:39:46 v #26105 > > │ x2="179" y2="75"/>                                                           │
00:39:46 v #26106 > > │ <line...421,415 422,415 423,415 424,415 425,415 426,415 427,415 428,415      │
00:39:46 v #26107 > > │ 429,415 430,415 431,415 432,415 433,415 434,415 435,415 436,415 437,415      │
00:39:46 v #26108 > > │ 438,415 439,415 440,415 441,415 442,415 443,415 444,415 445,415 446,415      │
00:39:46 v #26109 > > │ 447,415 448,415 449,415 450,415 451,415 452,415 453,415 454,415 455,415      │
00:39:46 v #26110 > > │ 456,415 457,415 458,415 459,415 460,415 461,415 462,415 463,415 464,415      │
00:39:46 v #26111 > > │ 465,415 466,415 467,415 468,415 469,415 470,415 471,415 472,415 473,415      │
00:39:46 v #26112 > > │ 474,415 475,415 476,415 477,415 478,415 479,415 480,415 481,415 482,415      │
00:39:46 v #26113 > > │ 483,415 484,415 485,415 486,415 487,415 488,415 489,415 490,415 491,415      │
00:39:46 v #26114 > > │ 492,415 493,415 494,415 495,415 496,415 497,415 498,415 499,415 500,415      │
00:39:46 v #26115 > > │ 501,415 502,415 503,415 504,415 505,415 506,415 507,415 508,415 509,415      │
00:39:46 v #26116 > > │ 510,415 511,415 512,415 513,415 514,415 515,415 516,415 517,415 518,415      │
00:39:46 v #26117 > > │ 519,415 520,85 521,85 522,85 523,85 524,85 525,85 526,85 527,85 528,85       │
00:39:46 v #26118 > > │ 529,85 530,85 531,85 532,85 533,85 534,85 535,85 536,85 537,85 538,85 539,85 │
00:39:46 v #26119 > > │ 540,85 541,85 542,85 543,85 544,85 545,85 546,85 547,85 548,85 549,85 550,85 │
00:39:46 v #26120 > > │ 551,85 552,85 553,85 554,85 555,85 556,85 557,85 558,85 559,85 560,85 561,85 │
00:39:46 v #26121 > > │ 562,85 563,85 564,85 565,85 566,85 567,85 568,85 569,85 "/>                  │
00:39:46 v #26122 > > │ <rect x="437" y="235" width="143" height="30" opacity="1" fill="none"        │
00:39:46 v #26123 > > │ stroke="#FFFFFF"/>                                                           │
00:39:46 v #26124 > > │ <text x="477" y="245" dy="0.76em" text-anchor="start"                        │
00:39:46 v #26125 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:46 v #26126 > > │ fill="#FFFFFF">                                                              │
00:39:46 v #26127 > > │ force on bike (N)                                                            │
00:39:46 v #26128 > > │ </text>                                                                      │
00:39:46 v #26129 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:46 v #26130 > > │ points="447,250 467,250 "/>                                                  │
00:39:46 v #26131 > > │ </svg>                                                                       │
00:39:46 v #26132 > > │                                                                              │
00:39:46 v #26133 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:46 v #26134 > >
00:39:46 v #26135 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:46 v #26136 > > //// test
00:39:46 v #26137 > >
00:39:46 v #26138 > > inl x = am'.init_series -5 45 1
00:39:46 v #26139 > > inl y = x |> am'.map_base (position_ft 0.1f64 20 0 0 [[ pedal_coast ]])
00:39:46 v #26140 > > "child pedaling then coasting", "time (s)", "", ;[[ "position of bike (m)", x, y
00:39:46 v #26141 > > ]]
00:39:46 v #26142 > 00:39:45 d #1494 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2c7d1270324106a1cacc8aecd846cfdb5078621408d7dc37845c85febb0af287/main.spi
00:39:47 v #26143 > >
00:39:47 v #26144 > > ╭─[ 642.71ms - return value ]──────────────────────────────────────────────────╮
00:39:47 v #26145 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:39:47 v #26146 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:39:47 v #26147 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:39:47 v #26148 > > │ stroke="none"/>                                                              │
00:39:47 v #26149 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:39:47 v #26150 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:47 v #26151 > > │ fill="#FFFFFF">                                                              │
00:39:47 v #26152 > > │ child pedaling then coasting                                                 │
00:39:47 v #26153 > > │ </text>                                                                      │
00:39:47 v #26154 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:39:47 v #26155 > > │ y2="75"/>                                                                    │
00:39:47 v #26156 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:39:47 v #26157 > > │ y2="75"/>                                                                    │
00:39:47 v #26158 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:39:47 v #26159 > > │ y2="75"/>                                                                    │
00:39:47 v #26160 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:39:47 v #26161 > > │ y2="75"/>                                                                    │
00:39:47 v #26162 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:39:47 v #26163 > > │ y2="75"/>                                                                    │
00:39:47 v #26164 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:39:47 v #26165 > > │ x2="109" y2="75"/>                                                           │
00:39:47 v #26166 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:39:47 v #26167 > > │ x2="119" y2="75"/>                                                           │
00:39:47 v #26168 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:39:47 v #26169 > > │ x2="129" y2="75"/>                                                           │
00:39:47 v #26170 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:39:47 v #26171 > > │ x2="139" y2="75"/>                                                           │
00:39:47 v #26172 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:39:47 v #26173 > > │ x2="149" y2="75"/>                                                           │
00:39:47 v #26174 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:39:47 v #26175 > > │ x2="159" y2="75"/>                                                           │
00:39:47 v #26176 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:39:47 v #26177 > > │ x2="169" y2="75"/>                                                           │
00:39:47 v #26178 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:39:47 v #26179 > > │ x2="179" y2="75"/>                                                           │
00:39:47 v #26180 > > │ <line...serif" font-size="9.67741935483871" opacity="1" fill="#FFFFFF">      │
00:39:47 v #26181 > > │ 200.0                                                                        │
00:39:47 v #26182 > > │ </text>                                                                      │
00:39:47 v #26183 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:39:47 v #26184 > > │ points="585,201 590,201 "/>                                                  │
00:39:47 v #26185 > > │ <text x="595" y="147" dy="0.5ex" text-anchor="start"                         │
00:39:47 v #26186 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:47 v #26187 > > │ fill="#FFFFFF">                                                              │
00:39:47 v #26188 > > │ 250.0                                                                        │
00:39:47 v #26189 > > │ </text>                                                                      │
00:39:47 v #26190 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:39:47 v #26191 > > │ points="585,147 590,147 "/>                                                  │
00:39:47 v #26192 > > │ <text x="595" y="94" dy="0.5ex" text-anchor="start" font-family="sans-serif" │
00:39:47 v #26193 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:39:47 v #26194 > > │ 300.0                                                                        │
00:39:47 v #26195 > > │ </text>                                                                      │
00:39:47 v #26196 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:39:47 v #26197 > > │ points="585,94 590,94 "/>                                                    │
00:39:47 v #26198 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:47 v #26199 > > │ points="69,415 79,415 89,415 99,415 109,415 119,415 129,414 139,413 149,412  │
00:39:47 v #26200 > > │ 159,410 169,408 179,405 189,401 199,397 209,393 219,388 229,382 239,377      │
00:39:47 v #26201 > > │ 249,372 259,366 269,361 279,356 289,350 299,345 309,340 319,334 329,329      │
00:39:47 v #26202 > > │ 339,322 349,316 359,308 369,301 379,292 389,284 399,274 409,264 419,254      │
00:39:47 v #26203 > > │ 429,243 439,232 449,221 459,210 469,199 479,189 489,178 499,167 509,157      │
00:39:47 v #26204 > > │ 519,146 529,135 539,123 549,111 559,99 569,85 "/>                            │
00:39:47 v #26205 > > │ <rect x="421" y="235" width="159" height="30" opacity="1" fill="none"        │
00:39:47 v #26206 > > │ stroke="#FFFFFF"/>                                                           │
00:39:47 v #26207 > > │ <text x="461" y="245" dy="0.76em" text-anchor="start"                        │
00:39:47 v #26208 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:47 v #26209 > > │ fill="#FFFFFF">                                                              │
00:39:47 v #26210 > > │ position of bike (m)                                                         │
00:39:47 v #26211 > > │ </text>                                                                      │
00:39:47 v #26212 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:47 v #26213 > > │ points="431,250 451,250 "/>                                                  │
00:39:47 v #26214 > > │ </svg>                                                                       │
00:39:47 v #26215 > > │                                                                              │
00:39:47 v #26216 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:47 v #26217 > >
00:39:47 v #26218 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:47 v #26219 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:47 v #26220 > > │ ### velocity_fv                                                              │
00:39:47 v #26221 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:47 v #26222 > >
00:39:47 v #26223 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:47 v #26224 > > inl newton_second_v m fs v0 =
00:39:47 v #26225 > >     fs |> listm.map (fun f => f v0) |> listm'.sum |> fun x => x / m
00:39:47 v #26226 > >
00:39:47 v #26227 > > inl update_velocity dt m fs v0 =
00:39:47 v #26228 > >     v0 + newton_second_v m fs v0 * dt
00:39:47 v #26229 > >
00:39:47 v #26230 > > inl velocity_fv dt m v0 fs t =
00:39:47 v #26231 > >     stream.iterate (update_velocity dt m fs) v0
00:39:47 v #26232 > >     |> stream.try_item (t / dt |> math.round |> abs)
00:39:47 v #26233 > >     |> optionm'.default_value 0
00:39:47 v #26234 > 00:39:46 d #1495 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23eb02e4436a1723863c20ba010497cf8423e4fcc6fb822b55cfca750f19f379/main.spi
00:39:47 v #26235 > >
00:39:47 v #26236 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:47 v #26237 > > inl f_air drag rho area v =
00:39:47 v #26238 > >     -drag * rho * area * abs v * v / 2
00:39:47 v #26239 > 00:39:46 d #1496 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ecc4d6aff5f0952778ba37f1401d76e69cf791fd8fddd202bac43aa5df6c417a/main.spi
00:39:47 v #26240 > >
00:39:47 v #26241 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:47 v #26242 > > //// test
00:39:47 v #26243 > >
00:39:47 v #26244 > > inl x = am'.init_series 0 60 0.5
00:39:47 v #26245 > > inl y = x |> am'.map_base (velocity_fv 1 70 0f64 [[ fun _ => 100; f_air 2 1.225
00:39:47 v #26246 > > 0.6 ]])
00:39:47 v #26247 > > "bike velocity", "time (s)", "", ;[[ "velocity of bike (m/s)", x, y ]]
00:39:48 v #26248 > 00:39:47 d #1497 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7f9fc005af62c9b4842af3fdc7fce4ad946e621a3e1d9229bf4a01150d8f6a1a/main.spi
00:39:48 v #26249 > >
00:39:48 v #26250 > > ╭─[ 719.11ms - return value ]──────────────────────────────────────────────────╮
00:39:48 v #26251 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:39:48 v #26252 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:39:48 v #26253 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:39:48 v #26254 > > │ stroke="none"/>                                                              │
00:39:48 v #26255 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:39:48 v #26256 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:48 v #26257 > > │ fill="#FFFFFF">                                                              │
00:39:48 v #26258 > > │ bike velocity                                                                │
00:39:48 v #26259 > > │ </text>                                                                      │
00:39:48 v #26260 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:39:48 v #26261 > > │ y2="75"/>                                                                    │
00:39:48 v #26262 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:39:48 v #26263 > > │ y2="75"/>                                                                    │
00:39:48 v #26264 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:39:48 v #26265 > > │ y2="75"/>                                                                    │
00:39:48 v #26266 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:39:48 v #26267 > > │ y2="75"/>                                                                    │
00:39:48 v #26268 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:39:48 v #26269 > > │ y2="75"/>                                                                    │
00:39:48 v #26270 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:39:48 v #26271 > > │ x2="103" y2="75"/>                                                           │
00:39:48 v #26272 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:39:48 v #26273 > > │ x2="111" y2="75"/>                                                           │
00:39:48 v #26274 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:39:48 v #26275 > > │ x2="119" y2="75"/>                                                           │
00:39:48 v #26276 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:39:48 v #26277 > > │ x2="128" y2="75"/>                                                           │
00:39:48 v #26278 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:39:48 v #26279 > > │ x2="136" y2="75"/>                                                           │
00:39:48 v #26280 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:39:48 v #26281 > > │ x2="144" y2="75"/>                                                           │
00:39:48 v #26282 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:39:48 v #26283 > > │ x2="153" y2="75"/>                                                           │
00:39:48 v #26284 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:39:48 v #26285 > > │ x2="161" y2="75"/>                                                           │
00:39:48 v #26286 > > │ <line opacity="1" st...t" font-family="sans-serif"                           │
00:39:48 v #26287 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:39:48 v #26288 > > │ 12.0                                                                         │
00:39:48 v #26289 > > │ </text>                                                                      │
00:39:48 v #26290 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:39:48 v #26291 > > │ points="585,76 590,76 "/>                                                    │
00:39:48 v #26292 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:48 v #26293 > > │ points="69,415 74,415 78,374 82,335 86,335 90,335 94,297 99,261 103,261      │
00:39:48 v #26294 > > │ 107,261 111,230 115,202 119,202 124,202 128,179 132,159 136,159 140,159      │
00:39:48 v #26295 > > │ 144,143 148,130 153,130 157,130 161,120 165,112 169,112 173,112 178,106      │
00:39:48 v #26296 > > │ 182,101 186,101 190,101 194,97 198,94 203,94 207,94 211,92 215,91 219,91     │
00:39:48 v #26297 > > │ 223,91 228,89 232,88 236,88 240,88 244,88 248,87 252,87 257,87 261,87 265,86 │
00:39:48 v #26298 > > │ 269,86 273,86 277,86 282,86 286,86 290,86 294,86 298,86 302,86 307,86 311,86 │
00:39:48 v #26299 > > │ 315,86 319,86 323,86 327,86 331,85 336,85 340,85 344,85 348,85 352,85 356,85 │
00:39:48 v #26300 > > │ 361,85 365,85 369,85 373,85 377,85 381,85 386,85 390,85 394,85 398,85 402,85 │
00:39:48 v #26301 > > │ 406,85 410,85 415,85 419,85 423,85 427,85 431,85 435,85 440,85 444,85 448,85 │
00:39:48 v #26302 > > │ 452,85 456,85 460,85 465,85 469,85 473,85 477,85 481,85 485,85 490,85 494,85 │
00:39:48 v #26303 > > │ 498,85 502,85 506,85 510,85 514,85 519,85 523,85 527,85 531,85 535,85 539,85 │
00:39:48 v #26304 > > │ 544,85 548,85 552,85 556,85 560,85 564,85 569,85 "/>                         │
00:39:48 v #26305 > > │ <rect x="410" y="235" width="170" height="30" opacity="1" fill="none"        │
00:39:48 v #26306 > > │ stroke="#FFFFFF"/>                                                           │
00:39:48 v #26307 > > │ <text x="450" y="245" dy="0.76em" text-anchor="start"                        │
00:39:48 v #26308 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:48 v #26309 > > │ fill="#FFFFFF">                                                              │
00:39:48 v #26310 > > │ velocity of bike (m/s)                                                       │
00:39:48 v #26311 > > │ </text>                                                                      │
00:39:48 v #26312 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:48 v #26313 > > │ points="420,250 440,250 "/>                                                  │
00:39:48 v #26314 > > │ </svg>                                                                       │
00:39:48 v #26315 > > │                                                                              │
00:39:48 v #26316 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:48 v #26317 > >
00:39:48 v #26318 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:48 v #26319 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:48 v #26320 > > │ ### velocity_ftv                                                             │
00:39:48 v #26321 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:48 v #26322 > >
00:39:48 v #26323 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:48 v #26324 > > inl newton_second_tv m fs (t, v0) =
00:39:48 v #26325 > >     inl f_net = fs |> listm.map (fun f => f (t, v0)) |> listm'.sum
00:39:48 v #26326 > >     inl acc = f_net / m
00:39:48 v #26327 > >     1, acc
00:39:48 v #26328 > >
00:39:48 v #26329 > > inl update_tv dt m fs (t, v0) =
00:39:48 v #26330 > >     inl dtdt, dvdt = newton_second_tv m fs (t, v0)
00:39:48 v #26331 > >     t + dtdt * dt, v0 + dvdt * dt
00:39:48 v #26332 > >
00:39:48 v #26333 > > inl velocity_ftv dt m tv0 fs t =
00:39:48 v #26334 > >     stream.iterate (join update_tv dt m fs) tv0
00:39:48 v #26335 > >     |> stream.try_item (t / dt |> math.round |> abs)
00:39:48 v #26336 > >     |> optionm.map snd
00:39:48 v #26337 > >     |> optionm'.default_value 0
00:39:48 v #26338 > 00:39:48 d #1498 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb330b1c26ba7cccf749e5ac9ab861b60028abae2bc4a2f60c3103158127d4b2/main.spi
00:39:49 v #26339 > >
00:39:49 v #26340 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:49 v #26341 > > //// test
00:39:49 v #26342 > >
00:39:49 v #26343 > > inl x = am'.init_series 0 100 0.1
00:39:49 v #26344 > > inl y =
00:39:49 v #26345 > >     x
00:39:49 v #26346 > >     |> am'.map_base (
00:39:49 v #26347 > >         velocity_ftv 0.1 20 (dyn (0, 0)) [[ fun (t, _) => pedal_coast t; fun (_,
00:39:49 v #26348 > > v) => f_air 2 1.225 0.5 v ]]
00:39:49 v #26349 > >     )
00:39:49 v #26350 > > "pedaling and coasting with air", "time (s)", "", ;[[ "velocity of bike (m/s)",
00:39:49 v #26351 > > x, y ]]
00:39:49 v #26352 > 00:39:48 d #1499 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5237935cef7c8c2cd9b66da7603fef6d8d0433a19547d3ec203aa90db317ce01/main.spi
00:39:49 v #26353 > >
00:39:49 v #26354 > > ╭─[ 665.91ms - return value ]──────────────────────────────────────────────────╮
00:39:49 v #26355 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:39:49 v #26356 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:39:49 v #26357 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:39:49 v #26358 > > │ stroke="none"/>                                                              │
00:39:49 v #26359 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:39:49 v #26360 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:49 v #26361 > > │ fill="#FFFFFF">                                                              │
00:39:49 v #26362 > > │ pedaling and coasting with air                                               │
00:39:49 v #26363 > > │ </text>                                                                      │
00:39:49 v #26364 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:39:49 v #26365 > > │ y2="75"/>                                                                    │
00:39:49 v #26366 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:39:49 v #26367 > > │ y2="75"/>                                                                    │
00:39:49 v #26368 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:39:49 v #26369 > > │ y2="75"/>                                                                    │
00:39:49 v #26370 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:39:49 v #26371 > > │ y2="75"/>                                                                    │
00:39:49 v #26372 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:39:49 v #26373 > > │ y2="75"/>                                                                    │
00:39:49 v #26374 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:39:49 v #26375 > > │ x2="109" y2="75"/>                                                           │
00:39:49 v #26376 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:39:49 v #26377 > > │ x2="119" y2="75"/>                                                           │
00:39:49 v #26378 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:39:49 v #26379 > > │ x2="129" y2="75"/>                                                           │
00:39:49 v #26380 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:39:49 v #26381 > > │ x2="139" y2="75"/>                                                           │
00:39:49 v #26382 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:39:49 v #26383 > > │ x2="149" y2="75"/>                                                           │
00:39:49 v #26384 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:39:49 v #26385 > > │ x2="159" y2="75"/>                                                           │
00:39:49 v #26386 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:39:49 v #26387 > > │ x2="169" y2="75"/>                                                           │
00:39:49 v #26388 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:39:49 v #26389 > > │ x2="179" y2="75"/>                                                           │
00:39:49 v #26390 > > │ <li... 497,128 497,126 498,125 498,123 499,122 499,121 500,119 500,118       │
00:39:49 v #26391 > > │ 501,117 501,116 502,114 502,113 503,112 503,111 504,110 504,109 505,108      │
00:39:49 v #26392 > > │ 505,107 506,106 506,105 507,104 507,103 508,102 508,101 509,100 509,99       │
00:39:49 v #26393 > > │ 510,98 510,98 511,97 511,96 512,95 512,94 513,94 513,93 514,92 514,92 515,91 │
00:39:49 v #26394 > > │ 515,90 516,90 516,89 517,88 517,88 518,87 518,87 519,86 519,85 520,89 520,93 │
00:39:49 v #26395 > > │ 521,97 521,100 522,104 522,107 523,110 523,114 524,117 524,120 525,123       │
00:39:49 v #26396 > > │ 525,126 526,129 526,132 527,135 527,137 528,140 528,143 529,145 529,148      │
00:39:49 v #26397 > > │ 530,150 530,153 531,155 531,158 532,160 532,162 533,165 533,167 534,169      │
00:39:49 v #26398 > > │ 534,171 535,173 535,175 536,177 536,179 537,181 537,183 538,185 538,187      │
00:39:49 v #26399 > > │ 539,189 539,190 540,192 540,194 541,196 541,197 542,199 542,201 543,202      │
00:39:49 v #26400 > > │ 543,204 544,205 544,207 545,208 545,210 546,211 546,213 547,214 547,216      │
00:39:49 v #26401 > > │ 548,217 548,219 549,220 549,221 550,223 550,224 551,225 551,226 552,228      │
00:39:49 v #26402 > > │ 552,229 553,230 553,231 554,232 554,234 555,235 555,236 556,237 556,238      │
00:39:49 v #26403 > > │ 557,239 557,240 558,241 558,242 559,243 559,245 560,246 560,247 561,248      │
00:39:49 v #26404 > > │ 561,249 562,249 562,250 563,251 563,252 564,253 564,254 565,255 565,256      │
00:39:49 v #26405 > > │ 566,257 566,258 567,259 567,259 568,260 568,261 569,262 "/>                  │
00:39:49 v #26406 > > │ <rect x="410" y="235" width="170" height="30" opacity="1" fill="none"        │
00:39:49 v #26407 > > │ stroke="#FFFFFF"/>                                                           │
00:39:49 v #26408 > > │ <text x="450" y="245" dy="0.76em" text-anchor="start"                        │
00:39:49 v #26409 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:49 v #26410 > > │ fill="#FFFFFF">                                                              │
00:39:49 v #26411 > > │ velocity of bike (m/s)                                                       │
00:39:49 v #26412 > > │ </text>                                                                      │
00:39:49 v #26413 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:49 v #26414 > > │ points="420,250 440,250 "/>                                                  │
00:39:49 v #26415 > > │ </svg>                                                                       │
00:39:49 v #26416 > > │                                                                              │
00:39:49 v #26417 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:49 v #26418 > >
00:39:49 v #26419 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:49 v #26420 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:49 v #26421 > > │ ### velocity_ftxv                                                            │
00:39:49 v #26422 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:49 v #26423 > >
00:39:49 v #26424 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:49 v #26425 > > nominal state_1d = time * position * velocity
00:39:49 v #26426 > > nominal rrr = f64 * f64 * f64
00:39:49 v #26427 > >
00:39:49 v #26428 > > inl newton_second_1d m fs (state_1d (t, x0, v0)) =
00:39:49 v #26429 > >     inl f_net = fs |> listm.map (fun f => f (state_1d (t, x0, v0))) |>
00:39:49 v #26430 > > listm'.sum
00:39:49 v #26431 > >     inl acc = f_net / m
00:39:49 v #26432 > >     rrr (1f64, v0, acc)
00:39:49 v #26433 > >
00:39:49 v #26434 > > inl euler_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:39:49 v #26435 > >     inl (rrr (_, _, dvdt)) = deriv t
00:39:49 v #26436 > >     inl t1 = t0 + dt
00:39:49 v #26437 > >     inl x1 = x0 + v0 * dt
00:39:49 v #26438 > >     inl v1 = v0 + dvdt * dt
00:39:49 v #26439 > >     state_1d (t1, x1, v1)
00:39:49 v #26440 > >
00:39:49 v #26441 > > inl update_txv dt m fs =
00:39:49 v #26442 > >     newton_second_1d m fs |> euler_1d dt
00:39:49 v #26443 > >
00:39:49 v #26444 > > inl states_txv dt m txv0 fs =
00:39:49 v #26445 > >     seq.iterate_ (update_txv dt m fs) txv0
00:39:49 v #26446 > >
00:39:49 v #26447 > > inl velocity_1d sts t =
00:39:49 v #26448 > >     inl (state_1d (t0, _, _)) = sts 0
00:39:49 v #26449 > >     inl (state_1d (t1, _, _)) = sts 1
00:39:49 v #26450 > >     inl dt = t1 - t0
00:39:49 v #26451 > >     inl num_steps = t / dt |> math.round |> abs
00:39:49 v #26452 > >     inl (state_1d (_, _, v0)) = sts num_steps
00:39:49 v #26453 > >     v0
00:39:49 v #26454 > >
00:39:49 v #26455 > > inl velocity_ftxv dt m txv0 fs =
00:39:49 v #26456 > >     states_txv dt m txv0 fs |> velocity_1d
00:39:49 v #26457 > >
00:39:49 v #26458 > > inl position_1d sts t =
00:39:49 v #26459 > >     inl (state_1d (t0, _, _)) = sts 0
00:39:49 v #26460 > >     inl (state_1d (t1, _, _)) = sts 1
00:39:49 v #26461 > >     inl dt = t1 - t0
00:39:49 v #26462 > >     inl num_steps = t / dt |> math.round |> abs
00:39:49 v #26463 > >     inl (state_1d (_, x0, _)) = sts num_steps
00:39:49 v #26464 > >     x0
00:39:49 v #26465 > >
00:39:49 v #26466 > > inl position_ftxv dt m txv0 fs =
00:39:49 v #26467 > >     states_txv dt m txv0 fs |> position_1d
00:39:49 v #26468 > >
00:39:49 v #26469 > > inl spring_force k (state_1d (_, x0, _)) =
00:39:49 v #26470 > >     -k * x0
00:39:49 v #26471 > 00:39:49 d #1500 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b26059111ed60409ab4be3e3d578c9f88f0ed4e2ab0827652530723a1471c39/main.spi
00:39:50 v #26472 > >
00:39:50 v #26473 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:50 v #26474 > > //// test
00:39:50 v #26475 > >
00:39:50 v #26476 > > inl damped_ho_forces () =
00:39:50 v #26477 > >     [[
00:39:50 v #26478 > >         spring_force 0.8
00:39:50 v #26479 > >         fun (state_1d (_, _, v0)) => f_air 2 1.225 (pi * math.square 0.02) v0
00:39:50 v #26480 > >         fun _ => -0.0027 * 9.80665
00:39:50 v #26481 > >     ]]
00:39:50 v #26482 > >
00:39:50 v #26483 > > inl damped_ho_states () =
00:39:50 v #26484 > >     states_txv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ())
00:39:50 v #26485 > >
00:39:50 v #26486 > > inl pingpong_position t =
00:39:50 v #26487 > >     position_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:39:50 v #26488 > >
00:39:50 v #26489 > > inl x = am'.init_series 0 3 0.01
00:39:50 v #26490 > > inl y = x |> am'.map_base pingpong_position
00:39:50 v #26491 > > "ping pong ball on a slinky", "time (s)", "", ;[[ "position (m)", x, y ]]
00:39:50 v #26492 > 00:39:49 d #1501 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e39341c86ea083ff2e6a49a337d7d1932da50be56a679b9194d19c3fb2effd11/main.spi
00:39:50 v #26493 > >
00:39:50 v #26494 > > ╭─[ 501.23ms - return value ]──────────────────────────────────────────────────╮
00:39:50 v #26495 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:39:50 v #26496 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:39:50 v #26497 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:39:50 v #26498 > > │ stroke="none"/>                                                              │
00:39:50 v #26499 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:39:50 v #26500 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:50 v #26501 > > │ fill="#FFFFFF">                                                              │
00:39:50 v #26502 > > │ ping pong ball on a slinky                                                   │
00:39:50 v #26503 > > │ </text>                                                                      │
00:39:50 v #26504 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:39:50 v #26505 > > │ y2="75"/>                                                                    │
00:39:50 v #26506 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:39:50 v #26507 > > │ y2="75"/>                                                                    │
00:39:50 v #26508 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:39:50 v #26509 > > │ y2="75"/>                                                                    │
00:39:50 v #26510 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:39:50 v #26511 > > │ y2="75"/>                                                                    │
00:39:50 v #26512 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:39:50 v #26513 > > │ y2="75"/>                                                                    │
00:39:50 v #26514 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:39:50 v #26515 > > │ x2="103" y2="75"/>                                                           │
00:39:50 v #26516 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:39:50 v #26517 > > │ x2="111" y2="75"/>                                                           │
00:39:50 v #26518 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:39:50 v #26519 > > │ x2="119" y2="75"/>                                                           │
00:39:50 v #26520 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:39:50 v #26521 > > │ x2="128" y2="75"/>                                                           │
00:39:50 v #26522 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:39:50 v #26523 > > │ x2="136" y2="75"/>                                                           │
00:39:50 v #26524 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:39:50 v #26525 > > │ x2="144" y2="75"/>                                                           │
00:39:50 v #26526 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:39:50 v #26527 > > │ x2="153" y2="75"/>                                                           │
00:39:50 v #26528 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:39:50 v #26529 > > │ x2="161" y2="75"/>                                                           │
00:39:50 v #26530 > > │ <line o...88 332,305 334,321 336,334 337,346 339,354 341,360 342,363 344,362 │
00:39:50 v #26531 > > │ 346,359 347,352 349,342 351,330 352,316 354,300 356,283 357,265 359,247      │
00:39:50 v #26532 > > │ 361,229 362,212 364,197 366,183 367,172 369,163 371,156 372,153 374,153      │
00:39:50 v #26533 > > │ 376,156 377,161 379,170 381,181 382,194 384,209 386,226 387,243 389,260      │
00:39:50 v #26534 > > │ 391,277 392,294 394,309 396,323 397,335 399,344 401,351 402,355 404,356      │
00:39:50 v #26535 > > │ 406,354 407,349 409,341 410,331 412,319 414,305 415,289 417,273 419,256      │
00:39:50 v #26536 > > │ 420,239 422,223 424,208 425,194 427,182 429,172 430,165 432,161 434,159      │
00:39:50 v #26537 > > │ 435,160 437,164 439,171 440,180 442,192 444,205 445,220 447,235 449,252      │
00:39:50 v #26538 > > │ 450,268 452,284 454,299 455,313 457,325 459,335 460,342 462,347 464,350      │
00:39:50 v #26539 > > │ 465,349 467,346 469,340 470,332 472,321 474,309 475,295 477,280 479,264      │
00:39:50 v #26540 > > │ 480,248 482,232 484,217 485,204 487,192 489,181 490,173 492,168 494,165      │
00:39:50 v #26541 > > │ 495,165 497,167 499,172 500,180 502,189 504,201 505,215 507,229 509,244      │
00:39:50 v #26542 > > │ 510,260 512,275 514,290 515,303 517,316 519,326 520,335 522,341 524,344      │
00:39:50 v #26543 > > │ 525,345 527,343 529,339 530,332 532,323 534,312 535,300 537,286 539,271      │
00:39:50 v #26544 > > │ 540,256 542,241 544,226 545,213 547,200 549,190 550,181 552,175 554,171      │
00:39:50 v #26545 > > │ 555,169 557,170 559,174 560,180 562,188 564,198 565,210 567,223 569,238 "/>  │
00:39:50 v #26546 > > │ <rect x="464" y="235" width="116" height="30" opacity="1" fill="none"        │
00:39:50 v #26547 > > │ stroke="#FFFFFF"/>                                                           │
00:39:50 v #26548 > > │ <text x="504" y="245" dy="0.76em" text-anchor="start"                        │
00:39:50 v #26549 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:50 v #26550 > > │ fill="#FFFFFF">                                                              │
00:39:50 v #26551 > > │ position (m)                                                                 │
00:39:50 v #26552 > > │ </text>                                                                      │
00:39:50 v #26553 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:50 v #26554 > > │ points="474,250 494,250 "/>                                                  │
00:39:50 v #26555 > > │ </svg>                                                                       │
00:39:50 v #26556 > > │                                                                              │
00:39:50 v #26557 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:50 v #26558 > >
00:39:50 v #26559 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:50 v #26560 > > //// test
00:39:50 v #26561 > >
00:39:50 v #26562 > > inl pingpong_velocity t =
00:39:50 v #26563 > >     velocity_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:39:50 v #26564 > >
00:39:50 v #26565 > > inl x = am'.init_series 0 3 0.01
00:39:50 v #26566 > > inl y = x |> am'.map_base pingpong_velocity
00:39:50 v #26567 > > "ping pong ball on a slinky", "time (s)", "", ;[[ "velocity (m/s)", x, y ]]
00:39:50 v #26568 > 00:39:50 d #1502 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8625e45963294b0e9f3aadbbb4a23b64014e8b401ced3383b278024e8b6e221/main.spi
00:39:51 v #26569 > >
00:39:51 v #26570 > > ╭─[ 458.53ms - return value ]──────────────────────────────────────────────────╮
00:39:51 v #26571 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:39:51 v #26572 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:39:51 v #26573 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:39:51 v #26574 > > │ stroke="none"/>                                                              │
00:39:51 v #26575 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:39:51 v #26576 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:51 v #26577 > > │ fill="#FFFFFF">                                                              │
00:39:51 v #26578 > > │ ping pong ball on a slinky                                                   │
00:39:51 v #26579 > > │ </text>                                                                      │
00:39:51 v #26580 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:39:51 v #26581 > > │ y2="75"/>                                                                    │
00:39:51 v #26582 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:39:51 v #26583 > > │ y2="75"/>                                                                    │
00:39:51 v #26584 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:39:51 v #26585 > > │ y2="75"/>                                                                    │
00:39:51 v #26586 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:39:51 v #26587 > > │ y2="75"/>                                                                    │
00:39:51 v #26588 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:39:51 v #26589 > > │ y2="75"/>                                                                    │
00:39:51 v #26590 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:39:51 v #26591 > > │ x2="103" y2="75"/>                                                           │
00:39:51 v #26592 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:39:51 v #26593 > > │ x2="111" y2="75"/>                                                           │
00:39:51 v #26594 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:39:51 v #26595 > > │ x2="119" y2="75"/>                                                           │
00:39:51 v #26596 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:39:51 v #26597 > > │ x2="128" y2="75"/>                                                           │
00:39:51 v #26598 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:39:51 v #26599 > > │ x2="136" y2="75"/>                                                           │
00:39:51 v #26600 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:39:51 v #26601 > > │ x2="144" y2="75"/>                                                           │
00:39:51 v #26602 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:39:51 v #26603 > > │ x2="153" y2="75"/>                                                           │
00:39:51 v #26604 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:39:51 v #26605 > > │ x2="161" y2="75"/>                                                           │
00:39:51 v #26606 > > │ <line o... 332,343 334,332 336,319 337,304 339,287 341,269 342,250 344,231   │
00:39:51 v #26607 > > │ 346,212 347,195 349,178 351,164 352,153 354,144 356,138 357,136 359,136      │
00:39:51 v #26608 > > │ 361,140 362,147 364,157 366,169 367,183 369,199 371,216 372,234 374,253      │
00:39:51 v #26609 > > │ 376,271 377,288 379,304 381,318 382,330 384,339 386,346 387,349 389,349      │
00:39:51 v #26610 > > │ 391,346 392,340 394,332 396,321 397,307 399,292 401,276 402,258 404,241      │
00:39:51 v #26611 > > │ 406,223 407,206 409,190 410,176 412,164 414,154 415,148 417,144 419,143      │
00:39:51 v #26612 > > │ 420,145 422,150 424,158 425,168 427,180 429,194 430,210 432,227 434,244      │
00:39:51 v #26613 > > │ 435,261 437,278 439,293 440,307 442,320 444,330 445,337 447,341 449,343      │
00:39:51 v #26614 > > │ 450,342 452,338 454,331 455,322 457,310 459,297 460,282 462,266 464,249      │
00:39:51 v #26615 > > │ 465,233 467,216 469,201 470,187 472,174 474,164 475,156 477,151 479,149      │
00:39:51 v #26616 > > │ 480,149 482,153 484,159 485,167 487,178 489,190 490,204 492,220 494,236      │
00:39:51 v #26617 > > │ 495,252 497,268 499,283 500,297 502,310 504,320 505,329 507,334 509,337      │
00:39:51 v #26618 > > │ 510,337 512,335 514,330 515,322 517,312 519,300 520,287 522,272 524,257      │
00:39:51 v #26619 > > │ 525,241 527,226 529,210 530,196 532,184 534,173 535,164 537,158 539,154      │
00:39:51 v #26620 > > │ 540,154 542,155 544,160 545,167 547,176 549,187 550,199 552,213 554,228      │
00:39:51 v #26621 > > │ 555,244 557,259 559,274 560,288 562,301 564,312 565,321 567,327 569,332 "/>  │
00:39:51 v #26622 > > │ <rect x="454" y="235" width="126" height="30" opacity="1" fill="none"        │
00:39:51 v #26623 > > │ stroke="#FFFFFF"/>                                                           │
00:39:51 v #26624 > > │ <text x="494" y="245" dy="0.76em" text-anchor="start"                        │
00:39:51 v #26625 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:39:51 v #26626 > > │ fill="#FFFFFF">                                                              │
00:39:51 v #26627 > > │ velocity (m/s)                                                               │
00:39:51 v #26628 > > │ </text>                                                                      │
00:39:51 v #26629 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:39:51 v #26630 > > │ points="464,250 484,250 "/>                                                  │
00:39:51 v #26631 > > │ </svg>                                                                       │
00:39:51 v #26632 > > │                                                                              │
00:39:51 v #26633 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:51 v #26634 > >
00:39:51 v #26635 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:51 v #26636 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:51 v #26637 > > │ ### shift                                                                    │
00:39:51 v #26638 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:51 v #26639 > >
00:39:51 v #26640 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:51 v #26641 > > type update_function s = s -> s
00:39:51 v #26642 > >
00:39:51 v #26643 > > type differential_equation s ds = s -> ds
00:39:51 v #26644 > >
00:39:51 v #26645 > > type numerical_method s ds = differential_equation s ds -> update_function s
00:39:51 v #26646 > >
00:39:51 v #26647 > >
00:39:51 v #26648 > > inl solver method =
00:39:51 v #26649 > >     method >> seq.iterate
00:39:51 v #26650 > > inl solver' method =
00:39:51 v #26651 > >     method >> seq.iterate'
00:39:51 v #26652 > > inl solver_ method =
00:39:51 v #26653 > >     method >> seq.iterate_
00:39:51 v #26654 > >
00:39:51 v #26655 > >
00:39:51 v #26656 > > inl euler_cromer_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:39:51 v #26657 > >     inl (rrr (_, _, dvdt)) = deriv t
00:39:51 v #26658 > >     inl t1 = t0 + dt
00:39:51 v #26659 > >     inl v1 = v0 + dvdt * dt
00:39:51 v #26660 > >     inl x1 = x0 + v1 * dt
00:39:51 v #26661 > >     state_1d (t1, x1, v1)
00:39:51 v #26662 > >
00:39:51 v #26663 > > inl update_txv_ec dt m fs =
00:39:51 v #26664 > >     euler_cromer_1d dt (newton_second_1d m fs)
00:39:51 v #26665 > >
00:39:51 v #26666 > > prototype (+++) ds : ds -> ds -> ds
00:39:51 v #26667 > > prototype scale ds : f64 -> ds -> ds
00:39:51 v #26668 > >
00:39:51 v #26669 > > instance (+++) rrr = fun (rrr (dtdt0, dxdt0, dvdt0)) (rrr (dtdt1, dxdt1, dvdt1))
00:39:51 v #26670 > > =>
00:39:51 v #26671 > >     rrr (dtdt0 + dtdt1, dxdt0 + dxdt1, dvdt0 + dvdt1)
00:39:51 v #26672 > >
00:39:51 v #26673 > > instance scale rrr = fun w (rrr (dtdt0, dxdt0, dvdt0)) =>
00:39:51 v #26674 > >     rrr (w * dtdt0, w * dxdt0, w * dvdt0)
00:39:51 v #26675 > >
00:39:51 v #26676 > > prototype shift s : forall ds. f64 -> ds -> s -> s
00:39:51 v #26677 > >
00:39:51 v #26678 > > instance shift state_1d = fun dt ds (state_1d (t, x, v)) =>
00:39:51 v #26679 > >     inl dtdt, dxdt, dvdt =
00:39:51 v #26680 > >         real
00:39:51 v #26681 > >             match ds with
00:39:51 v #26682 > >             | rrr x => x
00:39:51 v #26683 > >             | state_1d x => x
00:39:51 v #26684 > >     state_1d (t + dtdt * dt, x + dxdt * dt, v + dvdt * dt)
00:39:51 v #26685 > >
00:39:51 v #26686 > > inl euler dt deriv st0 =
00:39:51 v #26687 > >     shift dt (deriv st0) st0
00:39:51 v #26688 > >
00:39:51 v #26689 > > inl runge_kutta_4 dt deriv st0 =
00:39:51 v #26690 > >     inl m0 = deriv st0
00:39:51 v #26691 > >     inl m1 = deriv (shift (dt / 2) m0 st0)
00:39:51 v #26692 > >     inl m2 = deriv (shift (dt / 2) m1 st0)
00:39:51 v #26693 > >     inl m3 = deriv (shift dt m2 st0)
00:39:51 v #26694 > >     shift (dt / 6) (m0 +++ m1 +++ m1 +++ m2 +++ m2 +++ m3) st0
00:39:51 v #26695 > >
00:39:51 v #26696 > > inl exponential (_, x0, v0) =
00:39:51 v #26697 > >     1f64, v0, x0
00:39:51 v #26698 > >
00:39:51 v #26699 > > inl of_state_1d (state_1d (t, x, v)) =
00:39:51 v #26700 > >     t, x, v
00:39:51 v #26701 > 00:39:50 d #1503 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b177fa6e846fd6fe8c835d2b919f65eb7605ccdda9636c47e35dfa042b3ac26/main.spi
00:39:51 v #26702 > >
00:39:51 v #26703 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:51 v #26704 > > //// test
00:39:51 v #26705 > >
00:39:51 v #26706 > > solver (euler 0.01) (of_state_1d >> exponential >> state_1d) (state_1d (0, 1,
00:39:51 v #26707 > > 1)) 800i32
00:39:51 v #26708 > > |> _assert_eq (state_1d (7.999999999999874, 2864.8311229272326,
00:39:51 v #26709 > > 2864.8311229272326))
00:39:51 v #26710 > >
00:39:51 v #26711 > > solver (euler_cromer_1d 0.1) (of_state_1d >> exponential >> rrr) (state_1d (0,
00:39:51 v #26712 > > 1, 1)) 80i32
00:39:51 v #26713 > > |> _assert_eq (state_1d (7.999999999999988, 3043.379244966009,
00:39:51 v #26714 > > 2895.0121485099035))
00:39:51 v #26715 > >
00:39:51 v #26716 > > solver (runge_kutta_4 1) (of_state_1d >> exponential >> rrr) (state_1d (0, 1,
00:39:51 v #26717 > > 1)) 8i32
00:39:51 v #26718 > > |> _assert_eq (state_1d (8.0, 2894.789038540849, 2894.789038540849))
00:39:51 v #26719 > 00:39:51 d #1504 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a84ed6aa97453ce0473d60123c8a13cc855b4896005faedfe86e4be5f38079c9/main.spi
00:39:52 v #26720 > >
00:39:52 v #26721 > > ╭─[ 570.66ms - stdout ]────────────────────────────────────────────────────────╮
00:39:52 v #26722 > > │ __assert_eq / actual: struct (8.0, 2864.831123, 2864.831123) / expected:     │
00:39:52 v #26723 > > │ struct (8.0, 2864.831123, 2864.831123)                                       │
00:39:52 v #26724 > > │ __assert_eq / actual: struct (8.0, 3043.379245, 2895.012149) / expected:     │
00:39:52 v #26725 > > │ struct (8.0, 3043.379245, 2895.012149)                                       │
00:39:52 v #26726 > > │ __assert_eq / actual: struct (8.0, 2894.789039, 2894.789039) / expected:     │
00:39:52 v #26727 > > │ struct (8.0, 2894.789039, 2894.789039)                                       │
00:39:52 v #26728 > > │                                                                              │
00:39:52 v #26729 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:52 v #26730 > >
00:39:52 v #26731 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:52 v #26732 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:52 v #26733 > > │ ### vec                                                                      │
00:39:52 v #26734 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:52 v #26735 > >
00:39:52 v #26736 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:52 v #26737 > > type vec =
00:39:52 v #26738 > >     {
00:39:52 v #26739 > >         x : f64
00:39:52 v #26740 > >         y : f64
00:39:52 v #26741 > >         z : f64
00:39:52 v #26742 > >     }
00:39:52 v #26743 > >
00:39:52 v #26744 > > inl vec x y z : vec =
00:39:52 v #26745 > >     { x y z }
00:39:52 v #26746 > 00:39:51 d #1505 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c28cee7ab3252539f022429fa878866144d2047ab4135421fc603bcd098c50f1/main.spi
00:39:52 v #26747 > >
00:39:52 v #26748 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:52 v #26749 > > //// test
00:39:52 v #26750 > >
00:39:52 v #26751 > > vec 1 2 3 .z
00:39:52 v #26752 > > |> _assert_eq 3
00:39:52 v #26753 > 00:39:52 d #1506 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32fa5d5587282464522590037b07108ac5de4837904f39dfe01d3348422df2f2/main.spi
00:39:53 v #26754 > >
00:39:53 v #26755 > > ╭─[ 430.10ms - stdout ]────────────────────────────────────────────────────────╮
00:39:53 v #26756 > > │ __assert_eq / actual: 3.0 / expected: 3.0                                    │
00:39:53 v #26757 > > │                                                                              │
00:39:53 v #26758 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:53 v #26759 > >
00:39:53 v #26760 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:53 v #26761 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:53 v #26762 > > │ #### consts                                                                  │
00:39:53 v #26763 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:53 v #26764 > >
00:39:53 v #26765 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:53 v #26766 > > inl i_hat () = vec 1 0 0
00:39:53 v #26767 > > inl j_hat () = vec 0 1 0
00:39:53 v #26768 > > inl k_hat () = vec 0 0 1
00:39:53 v #26769 > > inl zero_vec () = vec 0 0 0
00:39:53 v #26770 > 00:39:52 d #1507 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f788cd1834a9711c3513641fb8cdd0a4c456c1559dd1074498fbaa5feff8304b/main.spi
00:39:53 v #26771 > >
00:39:53 v #26772 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:53 v #26773 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:53 v #26774 > > │ #### ^+^                                                                     │
00:39:53 v #26775 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:53 v #26776 > >
00:39:53 v #26777 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:53 v #26778 > > inl (^+^) (a : vec) (b : vec) =
00:39:53 v #26779 > >     vec (a.x + b.x) (a.y + b.y) (a.z + b.z)
00:39:53 v #26780 > 00:39:52 d #1508 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f74772cbec4124144d174a5ab9e4accccd6db003a3d1c6c93859f1b2777fce6/main.spi
00:39:53 v #26781 > >
00:39:53 v #26782 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:53 v #26783 > > //// test
00:39:53 v #26784 > >
00:39:53 v #26785 > > vec 1 2 3 ^+^ vec 4 5 6
00:39:53 v #26786 > > |> _assert_eq (vec 5 7 9)
00:39:54 v #26787 > 00:39:53 d #1509 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5245ecfda5104d7d1d4df505c026d5b0b182d9e741a27e682da71bf5afd01137/main.spi
00:39:54 v #26788 > >
00:39:54 v #26789 > > ╭─[ 411.82ms - stdout ]────────────────────────────────────────────────────────╮
00:39:54 v #26790 > > │ __assert_eq / actual: struct (5.0, 7.0, 9.0) / expected: struct (5.0, 7.0,   │
00:39:54 v #26791 > > │ 9.0)                                                                         │
00:39:54 v #26792 > > │                                                                              │
00:39:54 v #26793 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:54 v #26794 > >
00:39:54 v #26795 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:54 v #26796 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:54 v #26797 > > │ #### sum_vec                                                                 │
00:39:54 v #26798 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:54 v #26799 > >
00:39:54 v #26800 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:54 v #26801 > > inl sum_vec vs =
00:39:54 v #26802 > >     vs |> listm.fold (^+^) (zero_vec ())
00:39:54 v #26803 > 00:39:53 d #1510 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a67358f48b2ada0cc471184639b494e01dc0d23a7658e81fc425d664e785cf2/main.spi
00:39:54 v #26804 > >
00:39:54 v #26805 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:54 v #26806 > > //// test
00:39:54 v #26807 > >
00:39:54 v #26808 > > [[ vec 1 2 3; vec 4 5 6 ]]
00:39:54 v #26809 > > |> sum_vec
00:39:54 v #26810 > > |> _assert_eq (vec 5 7 9)
00:39:54 v #26811 > 00:39:54 d #1511 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5442cf2c82771c1c0d111dc1153fc4641a89ff6577fb22786c2f1a32b7d058dd/main.spi
00:39:55 v #26812 > >
00:39:55 v #26813 > > ╭─[ 447.69ms - stdout ]────────────────────────────────────────────────────────╮
00:39:55 v #26814 > > │ __assert_eq / actual: struct (5.0, 7.0, 9.0) / expected: struct (5.0, 7.0,   │
00:39:55 v #26815 > > │ 9.0)                                                                         │
00:39:55 v #26816 > > │                                                                              │
00:39:55 v #26817 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:55 v #26818 > >
00:39:55 v #26819 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:55 v #26820 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:55 v #26821 > > │ #### *^                                                                      │
00:39:55 v #26822 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:55 v #26823 > >
00:39:55 v #26824 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:55 v #26825 > > inl (*^) c { x y z } =
00:39:55 v #26826 > >     vec (c * x) (c * y) (c * z)
00:39:55 v #26827 > 00:39:54 d #1512 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92bdd32c44dfc258a439cf535819f813e68866fae2c7c54b9e6d3a32ebbd2965/main.spi
00:39:55 v #26828 > >
00:39:55 v #26829 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:55 v #26830 > > //// test
00:39:55 v #26831 > >
00:39:55 v #26832 > > 5 *^ vec 1 2 3
00:39:55 v #26833 > > |> _assert_eq (vec 5 10 15)
00:39:55 v #26834 > 00:39:55 d #1513 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ece1631e00b9c319a9b09efcd9208271eca60f83141fdcbddbb06480581a15d1/main.spi
00:39:56 v #26835 > >
00:39:56 v #26836 > > ╭─[ 425.24ms - stdout ]────────────────────────────────────────────────────────╮
00:39:56 v #26837 > > │ __assert_eq / actual: struct (5.0, 10.0, 15.0) / expected: struct (5.0,      │
00:39:56 v #26838 > > │ 10.0, 15.0)                                                                  │
00:39:56 v #26839 > > │                                                                              │
00:39:56 v #26840 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:56 v #26841 > >
00:39:56 v #26842 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:56 v #26843 > > //// test
00:39:56 v #26844 > >
00:39:56 v #26845 > > 3 *^ i_hat () ^+^ 4 *^ k_hat ()
00:39:56 v #26846 > > |> _assert_eq (vec 3 0 4)
00:39:56 v #26847 > 00:39:55 d #1514 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c11de930ff1bc25d289a930c42e23ff99f5670e28dc30fca88830e099e693fc/main.spi
00:39:56 v #26848 > >
00:39:56 v #26849 > > ╭─[ 430.33ms - stdout ]────────────────────────────────────────────────────────╮
00:39:56 v #26850 > > │ __assert_eq / actual: struct (3.0, 0.0, 4.0) / expected: struct (3.0, 0.0,   │
00:39:56 v #26851 > > │ 4.0)                                                                         │
00:39:56 v #26852 > > │                                                                              │
00:39:56 v #26853 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:56 v #26854 > >
00:39:56 v #26855 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:56 v #26856 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:56 v #26857 > > │ #### ^*                                                                      │
00:39:56 v #26858 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:56 v #26859 > >
00:39:56 v #26860 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:56 v #26861 > > inl (^*) v c =
00:39:56 v #26862 > >     (*^) c v
00:39:56 v #26863 > 00:39:55 d #1515 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59889c51298a8d14ac9095651bef3494224035f7d740352b1bda6b044acdbc04/main.spi
00:39:56 v #26864 > >
00:39:56 v #26865 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:56 v #26866 > > //// test
00:39:56 v #26867 > >
00:39:56 v #26868 > > vec 1 2 3 ^* 5
00:39:56 v #26869 > > |> _assert_eq (vec 5 10 15)
00:39:57 v #26870 > 00:39:56 d #1516 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d380c606f15910da1731162281a3e40a8a089f146c35228494540187f7f9fe2/main.spi
00:39:57 v #26871 > >
00:39:57 v #26872 > > ╭─[ 459.18ms - stdout ]────────────────────────────────────────────────────────╮
00:39:57 v #26873 > > │ __assert_eq / actual: struct (5.0, 10.0, 15.0) / expected: struct (5.0,      │
00:39:57 v #26874 > > │ 10.0, 15.0)                                                                  │
00:39:57 v #26875 > > │                                                                              │
00:39:57 v #26876 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:57 v #26877 > >
00:39:57 v #26878 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:57 v #26879 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:57 v #26880 > > │ #### ^/                                                                      │
00:39:57 v #26881 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:57 v #26882 > >
00:39:57 v #26883 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:57 v #26884 > > inl (^/) { x y z } c =
00:39:57 v #26885 > >     vec (x / c) (y / c) (z / c)
00:39:57 v #26886 > 00:39:56 d #1517 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/378cd9b6f74661d3c712706d623d491ace2c75df3f746e352e2097ec029f7075/main.spi
00:39:57 v #26887 > >
00:39:57 v #26888 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:57 v #26889 > > //// test
00:39:57 v #26890 > >
00:39:57 v #26891 > > vec 1 2 3 ^/ 5
00:39:57 v #26892 > > |> _assert_eq (vec 0.2 0.4 0.6)
00:39:58 v #26893 > 00:39:57 d #1518 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/552f59ec93780eb5201f3e7a180a14f817e5c8d9b9fb8b354f5122362ce9d150/main.spi
00:39:58 v #26894 > >
00:39:58 v #26895 > > ╭─[ 428.82ms - stdout ]────────────────────────────────────────────────────────╮
00:39:58 v #26896 > > │ __assert_eq / actual: struct (0.2, 0.4, 0.6) / expected: struct (0.2, 0.4,   │
00:39:58 v #26897 > > │ 0.6)                                                                         │
00:39:58 v #26898 > > │                                                                              │
00:39:58 v #26899 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:58 v #26900 > >
00:39:58 v #26901 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:58 v #26902 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:58 v #26903 > > │ #### negate_vec                                                              │
00:39:58 v #26904 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:58 v #26905 > >
00:39:58 v #26906 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:58 v #26907 > > inl negate_vec v =
00:39:58 v #26908 > >     v ^* -1
00:39:58 v #26909 > 00:39:57 d #1519 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94131339c78ccd2c8d0a4031da3525710f40ec6258ab6fe6a34eaf9a43d2b1bb/main.spi
00:39:58 v #26910 > >
00:39:58 v #26911 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:58 v #26912 > > //// test
00:39:58 v #26913 > >
00:39:58 v #26914 > > vec 1 2 3
00:39:58 v #26915 > > |> negate_vec
00:39:58 v #26916 > > |> _assert_eq (vec -1 -2 -3)
00:39:58 v #26917 > 00:39:58 d #1520 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fdedac425a2786add255f65932c63d6c0017b4f318bc624777cbd33cfd89bd23/main.spi
00:39:59 v #26918 > >
00:39:59 v #26919 > > ╭─[ 478.26ms - stdout ]────────────────────────────────────────────────────────╮
00:39:59 v #26920 > > │ __assert_eq / actual: struct (-1.0, -2.0, -3.0) / expected: struct (-1.0,    │
00:39:59 v #26921 > > │ -2.0, -3.0)                                                                  │
00:39:59 v #26922 > > │                                                                              │
00:39:59 v #26923 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:59 v #26924 > >
00:39:59 v #26925 > > ── markdown ────────────────────────────────────────────────────────────────────
00:39:59 v #26926 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:39:59 v #26927 > > │ #### ^-^                                                                     │
00:39:59 v #26928 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:39:59 v #26929 > >
00:39:59 v #26930 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:59 v #26931 > > inl (^-^) a b =
00:39:59 v #26932 > >     a ^+^ (negate_vec b)
00:39:59 v #26933 > 00:39:58 d #1521 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21fdbe192bd77f3a4e73490f37b52779b386f16099555bea04e906a05c22da17/main.spi
00:39:59 v #26934 > >
00:39:59 v #26935 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:39:59 v #26936 > > //// test
00:39:59 v #26937 > >
00:39:59 v #26938 > > vec 1 2 3 ^-^ vec 4 5 6
00:39:59 v #26939 > > |> _assert_eq (vec -3 -3 -3)
00:39:59 v #26940 > 00:39:59 d #1522 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/917b97ceff00ea221782681c05a221c5d0f232ad35e4cd7160aa9ac74dc6eea1/main.spi
00:40:00 v #26941 > >
00:40:00 v #26942 > > ╭─[ 446.79ms - stdout ]────────────────────────────────────────────────────────╮
00:40:00 v #26943 > > │ __assert_eq / actual: struct (-3.0, -3.0, -3.0) / expected: struct (-3.0,    │
00:40:00 v #26944 > > │ -3.0, -3.0)                                                                  │
00:40:00 v #26945 > > │                                                                              │
00:40:00 v #26946 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:00 v #26947 > >
00:40:00 v #26948 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:00 v #26949 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:00 v #26950 > > │ #### <.>                                                                     │
00:40:00 v #26951 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:00 v #26952 > >
00:40:00 v #26953 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:00 v #26954 > > inl (<.>) { x = ax y = ay z = az } { x = bx y = by z = bz } =
00:40:00 v #26955 > >     ax * bx + ay * by + az * bz
00:40:00 v #26956 > 00:39:59 d #1523 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/99065ad3b1b895ff28a5df348ec2bbea4f42427970f91af6aa2fae6941fc41de/main.spi
00:40:00 v #26957 > >
00:40:00 v #26958 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:00 v #26959 > > //// test
00:40:00 v #26960 > >
00:40:00 v #26961 > > vec 1 2 3 <.> vec 4 5 6
00:40:00 v #26962 > > |> _assert_eq 32
00:40:00 v #26963 > 00:39:59 d #1524 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c592c23878dc38d73876d3c8040729162c10400637a35814485722934550778b/main.spi
00:40:00 v #26964 > >
00:40:00 v #26965 > > ╭─[ 423.56ms - stdout ]────────────────────────────────────────────────────────╮
00:40:00 v #26966 > > │ __assert_eq / actual: 32.0 / expected: 32.0                                  │
00:40:00 v #26967 > > │                                                                              │
00:40:00 v #26968 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:00 v #26969 > >
00:40:00 v #26970 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:00 v #26971 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:00 v #26972 > > │ #### \>\<                                                                    │
00:40:00 v #26973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:00 v #26974 > >
00:40:00 v #26975 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:00 v #26976 > > inl (><) (a : vec) (b : vec) =
00:40:00 v #26977 > >     vec
00:40:00 v #26978 > >         (a.y * b.z - a.z * b.y)
00:40:00 v #26979 > >         (a.z * b.x - a.x * b.z)
00:40:00 v #26980 > >         (a.x * b.y - a.y * b.x)
00:40:01 v #26981 > 00:40:00 d #1525 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aed2496334bafb5bd0a8a3712ad9c397e37ac9eb9540c9bd6ae381349f1f0c82/main.spi
00:40:01 v #26982 > >
00:40:01 v #26983 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:01 v #26984 > > //// test
00:40:01 v #26985 > >
00:40:01 v #26986 > > vec 1 2 3 >< vec 4 5 6
00:40:01 v #26987 > > |> _assert_eq (vec -3 6 -3)
00:40:01 v #26988 > 00:40:00 d #1526 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d2e5b8e098db900b3d3cbebe62eaa5095e497ecca8fc9d7c338a5d69dbaa146/main.spi
00:40:01 v #26989 > >
00:40:01 v #26990 > > ╭─[ 456.51ms - stdout ]────────────────────────────────────────────────────────╮
00:40:01 v #26991 > > │ __assert_eq / actual: struct (-3.0, 6.0, -3.0) / expected: struct (-3.0,     │
00:40:01 v #26992 > > │ 6.0, -3.0)                                                                   │
00:40:01 v #26993 > > │                                                                              │
00:40:01 v #26994 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:01 v #26995 > >
00:40:01 v #26996 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:01 v #26997 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:01 v #26998 > > │ #### magnitude                                                               │
00:40:01 v #26999 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:01 v #27000 > >
00:40:01 v #27001 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:01 v #27002 > > inl magnitude v =
00:40:01 v #27003 > >     v <.> v |> sqrt
00:40:01 v #27004 > 00:40:01 d #1527 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a4ef11f464163246b95d2d8a8a31049c400054f70717b4ac0c1129ef3769534/main.spi
00:40:02 v #27005 > >
00:40:02 v #27006 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:02 v #27007 > > //// test
00:40:02 v #27008 > >
00:40:02 v #27009 > > vec 1 2 3
00:40:02 v #27010 > > |> magnitude
00:40:02 v #27011 > > |> _assert_approx_eq None 3.7416573867739413
00:40:02 v #27012 > 00:40:01 d #1528 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab3a75d21b70fe9b9216d4205d776cef4d56277a8a920676d80415fcb0fabd53/main.spi
00:40:02 v #27013 > >
00:40:02 v #27014 > > ╭─[ 412.02ms - stdout ]────────────────────────────────────────────────────────╮
00:40:02 v #27015 > > │ __assert_approx_eq / actual: 3.741657387 / expected: 3.741657387             │
00:40:02 v #27016 > > │                                                                              │
00:40:02 v #27017 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:02 v #27018 > >
00:40:02 v #27019 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:02 v #27020 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:02 v #27021 > > │ #### v1                                                                      │
00:40:02 v #27022 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:02 v #27023 > >
00:40:02 v #27024 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:02 v #27025 > > inl v1 t =
00:40:02 v #27026 > >     2 *^ (t ** 2 *^ i_hat () ^+^ 3 *^ (t ** 3 *^ j_hat () ^+^ t ** 4 *^ k_hat
00:40:02 v #27027 > > ()))
00:40:02 v #27028 > 00:40:02 d #1529 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bccaf202d365272670f9847a8e686d3714808ec24394c0ad41e033008e5eae3b/main.spi
00:40:03 v #27029 > >
00:40:03 v #27030 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:03 v #27031 > > //// test
00:40:03 v #27032 > >
00:40:03 v #27033 > > v1 1
00:40:03 v #27034 > > |> _assert_eq (vec 2 6 6)
00:40:03 v #27035 > 00:40:02 d #1530 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd01ed090b29d53add2670d3f8311d2c964c1d5e37c395569e3a3accda865794/main.spi
00:40:03 v #27036 > >
00:40:03 v #27037 > > ╭─[ 397.70ms - stdout ]────────────────────────────────────────────────────────╮
00:40:03 v #27038 > > │ __assert_eq / actual: struct (2.0, 6.0, 6.0) / expected: struct (2.0, 6.0,   │
00:40:03 v #27039 > > │ 6.0)                                                                         │
00:40:03 v #27040 > > │                                                                              │
00:40:03 v #27041 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:03 v #27042 > >
00:40:03 v #27043 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:03 v #27044 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:03 v #27045 > > │ #### vec_derivative                                                          │
00:40:03 v #27046 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:03 v #27047 > >
00:40:03 v #27048 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:03 v #27049 > > type vec_derivative = (f64 -> vec) -> f64 -> vec
00:40:03 v #27050 > >
00:40:03 v #27051 > > inl vec_derivative dt : vec_derivative =
00:40:03 v #27052 > >     fun v t =>
00:40:03 v #27053 > >         (v (t + dt / 2) ^-^ v (t - dt / 2)) ^/ dt
00:40:03 v #27054 > 00:40:02 d #1531 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/87e27af0bacfed532e3311bf8799be231fc5baf402cb779ed47aa9bb69ad6e0d/main.spi
00:40:03 v #27055 > >
00:40:03 v #27056 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:03 v #27057 > > //// test
00:40:03 v #27058 > >
00:40:03 v #27059 > > vec_derivative 0.01 v1 3 .x
00:40:03 v #27060 > > |> _assert_approx_eq None (derivative 0.01 (v1 >> fun v => v.x) 3)
00:40:04 v #27061 > 00:40:03 d #1532 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8fc8071c92b6b3cf61db97bc0979dcddf2bd80f2bc4da43fc2257ab2fb395622/main.spi
00:40:04 v #27062 > >
00:40:04 v #27063 > > ╭─[ 429.92ms - stdout ]────────────────────────────────────────────────────────╮
00:40:04 v #27064 > > │ __assert_approx_eq / actual: 12.0 / expected: 12.0                           │
00:40:04 v #27065 > > │                                                                              │
00:40:04 v #27066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:04 v #27067 > >
00:40:04 v #27068 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:04 v #27069 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:04 v #27070 > > │ ### states_ps                                                                │
00:40:04 v #27071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:04 v #27072 > >
00:40:04 v #27073 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:04 v #27074 > > nominal particle_state =
00:40:04 v #27075 > >     {
00:40:04 v #27076 > >         mass : f64
00:40:04 v #27077 > >         charge : f64
00:40:04 v #27078 > >         time : f64
00:40:04 v #27079 > >         pos_vec : vec
00:40:04 v #27080 > >         velocity : vec
00:40:04 v #27081 > >     }
00:40:04 v #27082 > >
00:40:04 v #27083 > > inl default_particle_state () : particle_state =
00:40:04 v #27084 > >     particle_state {
00:40:04 v #27085 > >         mass = 1
00:40:04 v #27086 > >         charge = 0
00:40:04 v #27087 > >         time = 0
00:40:04 v #27088 > >         pos_vec = zero_vec ()
00:40:04 v #27089 > >         velocity = zero_vec ()
00:40:04 v #27090 > >     }
00:40:04 v #27091 > >
00:40:04 v #27092 > > type one_body_force = particle_state -> vec
00:40:04 v #27093 > >
00:40:04 v #27094 > > nominal d_particle_state =
00:40:04 v #27095 > >     {
00:40:04 v #27096 > >         dmdt : f64
00:40:04 v #27097 > >         dqdt : f64
00:40:04 v #27098 > >         dtdt : f64
00:40:04 v #27099 > >         drdt : vec
00:40:04 v #27100 > >         dvdt : vec
00:40:04 v #27101 > >     }
00:40:04 v #27102 > >
00:40:04 v #27103 > > inl newton_second_ps (fs : list one_body_force) (st : particle_state) :
00:40:04 v #27104 > > d_particle_state =
00:40:04 v #27105 > >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:40:04 v #27106 > >     d_particle_state {
00:40:04 v #27107 > >         dmdt = 0
00:40:04 v #27108 > >         dqdt = 0
00:40:04 v #27109 > >         dtdt = 1
00:40:04 v #27110 > >         drdt = st.velocity
00:40:04 v #27111 > >         dvdt = f_net ^/ st.mass
00:40:04 v #27112 > >     }
00:40:04 v #27113 > >
00:40:04 v #27114 > > inl earth_surface_gravity (st : particle_state) =
00:40:04 v #27115 > >     inl g = 9.80665
00:40:04 v #27116 > >     -st.mass * g *^ k_hat ()
00:40:04 v #27117 > >
00:40:04 v #27118 > > inl air_resistance drag rho area (st : particle_state) =
00:40:04 v #27119 > >     -0.5 * drag * rho * area * magnitude st.velocity *^ st.velocity
00:40:04 v #27120 > >
00:40:04 v #27121 > > inl euler_cromer_ps dt (deriv : particle_state -> d_particle_state)
00:40:04 v #27122 > > (particle_state st) =
00:40:04 v #27123 > >     inl dst : d_particle_state = deriv (particle_state st)
00:40:04 v #27124 > >     inl v' = st.velocity ^+^ dst.dvdt ^* dt
00:40:04 v #27125 > >     particle_state { st with
00:40:04 v #27126 > >         time = st.time + dt
00:40:04 v #27127 > >         pos_vec = st.pos_vec ^+^ v' ^* dt
00:40:04 v #27128 > >         velocity = st.velocity ^+^ dst.dvdt ^* dt
00:40:04 v #27129 > >     }
00:40:04 v #27130 > >
00:40:04 v #27131 > > instance (+++) d_particle_state = fun (dps : d_particle_state) (dps' :
00:40:04 v #27132 > > d_particle_state) =>
00:40:04 v #27133 > >     d_particle_state {
00:40:04 v #27134 > >         dmdt = dps.dmdt + dps'.dmdt
00:40:04 v #27135 > >         dqdt = dps.dqdt + dps'.dqdt
00:40:04 v #27136 > >         dtdt = dps.dtdt + dps'.dtdt
00:40:04 v #27137 > >         drdt = dps.drdt ^+^ dps'.drdt
00:40:04 v #27138 > >         dvdt = dps.dvdt ^+^ dps'.dvdt
00:40:04 v #27139 > >     }
00:40:04 v #27140 > >
00:40:04 v #27141 > > instance scale d_particle_state = fun w (dps : d_particle_state) =>
00:40:04 v #27142 > >     d_particle_state {
00:40:04 v #27143 > >         dmdt = w * dps.dmdt
00:40:04 v #27144 > >         dqdt = w * dps.dqdt
00:40:04 v #27145 > >         dtdt = w * dps.dtdt
00:40:04 v #27146 > >         drdt = w *^ dps.drdt
00:40:04 v #27147 > >         dvdt = w *^ dps.dvdt
00:40:04 v #27148 > >     }
00:40:04 v #27149 > >
00:40:04 v #27150 > > instance shift particle_state = fun dt dps (particle_state st) =>
00:40:04 v #27151 > >     inl (d_particle_state dps) =
00:40:04 v #27152 > >         real
00:40:04 v #27153 > >             match dps with
00:40:04 v #27154 > >             | d_particle_state _ => dps
00:40:04 v #27155 > >     particle_state { st with
00:40:04 v #27156 > >         time = st.time + dps.dtdt * dt
00:40:04 v #27157 > >         pos_vec = st.pos_vec ^+^ dps.drdt ^* dt
00:40:04 v #27158 > >         velocity = st.velocity ^+^ dps.dvdt ^* dt
00:40:04 v #27159 > >     }
00:40:04 v #27160 > >
00:40:04 v #27161 > > inl states_ps (method : numerical_method particle_state d_particle_state) : _ ->
00:40:04 v #27162 > > _ -> i32 -> particle_state =
00:40:04 v #27163 > >     newton_second_ps >> method >> seq.iterate_
00:40:04 v #27164 > >
00:40:04 v #27165 > > inl z_ge0 sts =
00:40:04 v #27166 > >     sts
00:40:04 v #27167 > >     |> seq.take_while_ (fun (particle_state st) _ => st.pos_vec.z >= 0)
00:40:04 v #27168 > >
00:40:04 v #27169 > > inl trajectory sts =
00:40:04 v #27170 > >     sts |> listm.map (fun (particle_state st) => st.pos_vec.y, st.pos_vec.z)
00:40:04 v #27171 > 00:40:03 d #1533 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd98f06c047657503dc797c251df3bbd477097d3bb62b295190aef5b973cefaf/main.spi
00:40:04 v #27172 > >
00:40:04 v #27173 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:04 v #27174 > > //// test
00:40:04 v #27175 > >
00:40:04 v #27176 > > inl update_ps (method : numerical_method particle_state d_particle_state) =
00:40:04 v #27177 > >     newton_second_ps >> method
00:40:04 v #27178 > >
00:40:04 v #27179 > > inl position_ps (method : numerical_method particle_state d_particle_state) fs
00:40:04 v #27180 > > st t =
00:40:04 v #27181 > >     inl states : i32 -> particle_state = states_ps method fs st
00:40:04 v #27182 > >     inl dt = (states 1).time - (states 0).time
00:40:04 v #27183 > >     inl num_steps = t / dt |> math.round |> abs
00:40:04 v #27184 > >     inl st1 = solver' method (newton_second_ps fs) st num_steps
00:40:04 v #27185 > >     st1.pos_vec
00:40:04 v #27186 > >
00:40:04 v #27187 > > inl sun_gravity (st : particle_state) : vec =
00:40:04 v #27188 > >     inl big_g = 0.0000000000667408
00:40:04 v #27189 > >     inl sun_mass = 1988480000000000000000000000000
00:40:04 v #27190 > >     -big_g * sun_mass * st.mass *^ st.pos_vec ^/ magnitude st.pos_vec ** 3
00:40:04 v #27191 > >
00:40:04 v #27192 > > inl wind_force v_wind drag rho area (st : particle_state) =
00:40:04 v #27193 > >     inl v_rel = st.velocity ^-^ v_wind
00:40:04 v #27194 > >     -0.5 * drag * rho * area * magnitude v_rel *^ v_rel
00:40:04 v #27195 > >
00:40:04 v #27196 > > inl rock_state () =
00:40:04 v #27197 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:40:04 v #27198 > >     particle_state { default_particle_state' with
00:40:04 v #27199 > >         mass = 2
00:40:04 v #27200 > >         velocity = vec 3 0 4
00:40:04 v #27201 > >     }
00:40:04 v #27202 > >
00:40:04 v #27203 > > inl halley_update dt =
00:40:04 v #27204 > >     update_ps (euler_cromer_ps dt) [[ sun_gravity ]]
00:40:04 v #27205 > >
00:40:04 v #27206 > > inl halley_initial () =
00:40:04 v #27207 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:40:04 v #27208 > >     particle_state { default_particle_state' with
00:40:04 v #27209 > >         mass = 220000000000000
00:40:04 v #27210 > >         pos_vec = 87660000000 *^ i_hat ()
00:40:04 v #27211 > >         velocity = 54569 *^ j_hat ()
00:40:04 v #27212 > >     }
00:40:05 v #27213 > 00:40:04 d #1534 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b5e617304f18bbdd8745dbb0f62afafedb648660c33e3b9762cc0e32be7f533/main.spi
00:40:05 v #27214 > >
00:40:05 v #27215 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:05 v #27216 > > //// test
00:40:05 v #27217 > >
00:40:05 v #27218 > > inl baseball_forces () =
00:40:05 v #27219 > >     inl area = pi * (0.074 / 2) ** 2
00:40:05 v #27220 > >     [[
00:40:05 v #27221 > >         earth_surface_gravity
00:40:05 v #27222 > >         air_resistance 0.3 1.225 area
00:40:05 v #27223 > >     ]]
00:40:05 v #27224 > >
00:40:05 v #27225 > > inl baseball_trajectory dt v0 theta_deg =
00:40:05 v #27226 > >     inl theta_rad = theta_deg * pi / 180
00:40:05 v #27227 > >     inl vy0 = v0 * cos theta_rad
00:40:05 v #27228 > >     inl vz0 = v0 * sin theta_rad
00:40:05 v #27229 > >     inl initial_state =
00:40:05 v #27230 > >         particle_state {
00:40:05 v #27231 > >             mass = 0.145
00:40:05 v #27232 > >             charge = 0
00:40:05 v #27233 > >             time = 0
00:40:05 v #27234 > >             pos_vec = zero_vec ()
00:40:05 v #27235 > >             velocity = vec 0 vy0 vz0
00:40:05 v #27236 > >         }
00:40:05 v #27237 > >     states_ps (euler_cromer_ps dt) (baseball_forces ()) initial_state
00:40:05 v #27238 > >     >> Some
00:40:05 v #27239 > >     |> z_ge0
00:40:05 v #27240 > >     |> trajectory
00:40:05 v #27241 > >
00:40:05 v #27242 > > inl baseball_range dt v0 theta_deg =
00:40:05 v #27243 > >     baseball_trajectory dt v0 theta_deg
00:40:05 v #27244 > >     |> listm.fold (fun _ (y, _) => y) 0
00:40:05 v #27245 > >
00:40:05 v #27246 > > inl x = am'.init_series 10 80 1
00:40:05 v #27247 > > inl y = x |> am'.map_base (baseball_range 0.01 45)
00:40:05 v #27248 > > "range for a baseball hit at 45 m/s",
00:40:05 v #27249 > > "angle above horizontal (degrees)",
00:40:05 v #27250 > > "",
00:40:05 v #27251 > > ;[[ "horizontal range (m)", x, y ]]
00:40:05 v #27252 > 00:40:04 d #1535 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b082c8c9b4629cba8166099f9dc7d7b5dd1825c68823d95c9501fb39ba891bd4/main.spi
00:40:06 v #27253 > >
00:40:06 v #27254 > > ╭─[ 988.82ms - return value ]──────────────────────────────────────────────────╮
00:40:06 v #27255 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:40:06 v #27256 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:40:06 v #27257 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:40:06 v #27258 > > │ stroke="none"/>                                                              │
00:40:06 v #27259 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:40:06 v #27260 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:06 v #27261 > > │ fill="#FFFFFF">                                                              │
00:40:06 v #27262 > > │ range for a baseball hit at 45 m/s                                           │
00:40:06 v #27263 > > │ </text>                                                                      │
00:40:06 v #27264 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="55" y1="424" x2="55" │
00:40:06 v #27265 > > │ y2="75"/>                                                                    │
00:40:06 v #27266 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:40:06 v #27267 > > │ y2="75"/>                                                                    │
00:40:06 v #27268 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:40:06 v #27269 > > │ y2="75"/>                                                                    │
00:40:06 v #27270 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:40:06 v #27271 > > │ y2="75"/>                                                                    │
00:40:06 v #27272 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="84" y1="424" x2="84" │
00:40:06 v #27273 > > │ y2="75"/>                                                                    │
00:40:06 v #27274 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="91" y1="424" x2="91" │
00:40:06 v #27275 > > │ y2="75"/>                                                                    │
00:40:06 v #27276 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="98" y1="424" x2="98" │
00:40:06 v #27277 > > │ y2="75"/>                                                                    │
00:40:06 v #27278 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="105" y1="424"        │
00:40:06 v #27279 > > │ x2="105" y2="75"/>                                                           │
00:40:06 v #27280 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="112" y1="424"        │
00:40:06 v #27281 > > │ x2="112" y2="75"/>                                                           │
00:40:06 v #27282 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:40:06 v #27283 > > │ x2="119" y2="75"/>                                                           │
00:40:06 v #27284 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="127" y1="424"        │
00:40:06 v #27285 > > │ x2="127" y2="75"/>                                                           │
00:40:06 v #27286 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="134" y1="424"        │
00:40:06 v #27287 > > │ x2="134" y2="75"/>                                                           │
00:40:06 v #27288 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="141" y1="424"        │
00:40:06 v #27289 > > │ x2="141" y2="75"/>                                                           │
00:40:06 v #27290 > > │ <li...nts="585,199 590,199 "/>                                               │
00:40:06 v #27291 > > │ <text x="595" y="156" dy="0.5ex" text-anchor="start"                         │
00:40:06 v #27292 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:06 v #27293 > > │ fill="#FFFFFF">                                                              │
00:40:06 v #27294 > > │ 100.0                                                                        │
00:40:06 v #27295 > > │ </text>                                                                      │
00:40:06 v #27296 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:40:06 v #27297 > > │ points="585,156 590,156 "/>                                                  │
00:40:06 v #27298 > > │ <text x="595" y="114" dy="0.5ex" text-anchor="start"                         │
00:40:06 v #27299 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:06 v #27300 > > │ fill="#FFFFFF">                                                              │
00:40:06 v #27301 > > │ 110.0                                                                        │
00:40:06 v #27302 > > │ </text>                                                                      │
00:40:06 v #27303 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:40:06 v #27304 > > │ points="585,114 590,114 "/>                                                  │
00:40:06 v #27305 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:40:06 v #27306 > > │ points="69,343 77,325 84,307 91,290 98,275 105,259 112,245 119,231 127,219   │
00:40:06 v #27307 > > │ 134,207 141,196 148,184 155,174 162,164 169,155 176,147 184,139 191,132      │
00:40:06 v #27308 > > │ 198,126 205,119 212,114 219,109 226,104 233,100 241,96 248,93 255,91 262,89  │
00:40:06 v #27309 > > │ 269,88 276,86 283,86 290,85 298,86 305,87 312,88 319,90 326,92 333,95 340,98 │
00:40:06 v #27310 > > │ 348,102 355,106 362,110 369,115 376,120 383,126 390,132 397,139 405,146      │
00:40:06 v #27311 > > │ 412,153 419,161 426,169 433,178 440,187 447,197 454,207 462,217 469,228      │
00:40:06 v #27312 > > │ 476,239 483,250 490,262 497,274 504,287 511,300 519,313 526,326 533,340      │
00:40:06 v #27313 > > │ 540,355 547,369 554,384 561,399 569,415 "/>                                  │
00:40:06 v #27314 > > │ <rect x="421" y="235" width="159" height="30" opacity="1" fill="none"        │
00:40:06 v #27315 > > │ stroke="#FFFFFF"/>                                                           │
00:40:06 v #27316 > > │ <text x="461" y="245" dy="0.76em" text-anchor="start"                        │
00:40:06 v #27317 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:06 v #27318 > > │ fill="#FFFFFF">                                                              │
00:40:06 v #27319 > > │ horizontal range (m)                                                         │
00:40:06 v #27320 > > │ </text>                                                                      │
00:40:06 v #27321 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:40:06 v #27322 > > │ points="431,250 451,250 "/>                                                  │
00:40:06 v #27323 > > │ </svg>                                                                       │
00:40:06 v #27324 > > │                                                                              │
00:40:06 v #27325 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:06 v #27326 > >
00:40:06 v #27327 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:06 v #27328 > > //// test
00:40:06 v #27329 > >
00:40:06 v #27330 > > inl best_angle (min, max) =
00:40:06 v #27331 > >     let rec loop theta_deg (best_range, best_theta_deg) =
00:40:06 v #27332 > >         if theta_deg > max
00:40:06 v #27333 > >         then best_range, best_theta_deg
00:40:06 v #27334 > >         else
00:40:06 v #27335 > >             inl range = baseball_range 0.01 45 theta_deg
00:40:06 v #27336 > >             loop
00:40:06 v #27337 > >                 (theta_deg + 1)
00:40:06 v #27338 > >                 (if range > best_range
00:40:06 v #27339 > >                     then range, theta_deg
00:40:06 v #27340 > >                     else best_range, best_theta_deg)
00:40:06 v #27341 > >     loop min (0f64, min)
00:40:06 v #27342 > >
00:40:06 v #27343 > > best_angle (30f64, 60f64)
00:40:06 v #27344 > > |> _assert_eq (116.77499158246208, 41)
00:40:06 v #27345 > 00:40:05 d #1536 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f7e80e7b688b48b95af684eaaf2fcf3b122ab2cfd2fc2b0fce171ac31255262b/main.spi
00:40:07 v #27346 > >
00:40:07 v #27347 > > ╭─[ 784.52ms - stdout ]────────────────────────────────────────────────────────╮
00:40:07 v #27348 > > │ __assert_eq / actual: struct (116.7749916, 41.0) / expected: struct          │
00:40:07 v #27349 > > │ (116.7749916, 41.0)                                                          │
00:40:07 v #27350 > > │                                                                              │
00:40:07 v #27351 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:07 v #27352 > >
00:40:07 v #27353 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:07 v #27354 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:07 v #27355 > > │ ### relativity_ps                                                            │
00:40:07 v #27356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:07 v #27357 > >
00:40:07 v #27358 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:07 v #27359 > > inl relativity_ps fs (st : particle_state) =
00:40:07 v #27360 > >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:40:07 v #27361 > >     inl c = 299792458
00:40:07 v #27362 > >     inl u = st.velocity ^/ c
00:40:07 v #27363 > >     inl acc = sqrt (1 - (u <.> u)) *^ (f_net ^-^ (f_net <.> u) *^ u) ^/ st.mass
00:40:07 v #27364 > >     d_particle_state {
00:40:07 v #27365 > >         dmdt = 0
00:40:07 v #27366 > >         dqdt = 0
00:40:07 v #27367 > >         dtdt = 1
00:40:07 v #27368 > >         drdt = st.velocity
00:40:07 v #27369 > >         dvdt = acc
00:40:07 v #27370 > >     }
00:40:07 v #27371 > 00:40:06 d #1537 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc6f44bd6e2446436c15debe35080a2ad13c8e950a697a7d1b69bac267631653/main.spi
00:40:07 v #27372 > >
00:40:07 v #27373 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:07 v #27374 > > //// test
00:40:07 v #27375 > >
00:40:07 v #27376 > > inl year = 365.25 * 24 * 60 * 60
00:40:07 v #27377 > > inl c = 299792458
00:40:07 v #27378 > > inl ~method = runge_kutta_4 100000
00:40:07 v #27379 > > inl forces = [[ fun _ => 10 *^ i_hat () ]]
00:40:07 v #27380 > > inl (particle_state default_particle_state') = default_particle_state ()
00:40:07 v #27381 > > inl initial_state =
00:40:07 v #27382 > >     particle_state { default_particle_state' with
00:40:07 v #27383 > >         mass = 1
00:40:07 v #27384 > >     }
00:40:07 v #27385 > >
00:40:07 v #27386 > > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:40:07 v #27387 > > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:40:07 v #27388 > >
00:40:07 v #27389 > > inl newton_x, newton_y =
00:40:07 v #27390 > >     newton_states
00:40:07 v #27391 > >     >> Some
00:40:07 v #27392 > >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:40:07 v #27393 > >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:40:07 v #27394 > >     |> listm'.unzip
00:40:07 v #27395 > >
00:40:07 v #27396 > > inl _, relativity_y =
00:40:07 v #27397 > >     relativity_states
00:40:07 v #27398 > >     >> Some
00:40:07 v #27399 > >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:40:07 v #27400 > >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:40:07 v #27401 > >     |> listm'.unzip
00:40:07 v #27402 > >
00:40:07 v #27403 > > inl newton_x = newton_x |> listm'.box |> listm'.to_array'
00:40:07 v #27404 > > inl newton_y = newton_y |> listm'.box |> listm'.to_array'
00:40:07 v #27405 > > inl relativity_y = relativity_y |> listm'.box |> listm'.to_array'
00:40:07 v #27406 > >
00:40:07 v #27407 > > "response to a constant force",
00:40:07 v #27408 > > "time (years)",
00:40:07 v #27409 > > "velocity (multiples of c)",
00:40:07 v #27410 > > ;[[
00:40:07 v #27411 > >     "newtonian", newton_x, newton_y
00:40:07 v #27412 > >     "relativistic", newton_x, relativity_y
00:40:07 v #27413 > > ]]
00:40:07 v #27414 > 00:40:06 d #1538 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aeab0aedb278b0007b0c4f11522037445eb4ec89bf833d2ad08ae806801e8ae6/main.spi
00:40:08 v #27415 > >
00:40:08 v #27416 > > ╭─[ 752.56ms - return value ]──────────────────────────────────────────────────╮
00:40:08 v #27417 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:40:08 v #27418 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:40:08 v #27419 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:40:08 v #27420 > > │ stroke="none"/>                                                              │
00:40:08 v #27421 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:40:08 v #27422 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:08 v #27423 > > │ fill="#FFFFFF">                                                              │
00:40:08 v #27424 > > │ response to a constant force                                                 │
00:40:08 v #27425 > > │ </text>                                                                      │
00:40:08 v #27426 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:40:08 v #27427 > > │ y2="75"/>                                                                    │
00:40:08 v #27428 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:40:08 v #27429 > > │ y2="75"/>                                                                    │
00:40:08 v #27430 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:40:08 v #27431 > > │ y2="75"/>                                                                    │
00:40:08 v #27432 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:40:08 v #27433 > > │ y2="75"/>                                                                    │
00:40:08 v #27434 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:40:08 v #27435 > > │ y2="75"/>                                                                    │
00:40:08 v #27436 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:40:08 v #27437 > > │ x2="109" y2="75"/>                                                           │
00:40:08 v #27438 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:40:08 v #27439 > > │ x2="119" y2="75"/>                                                           │
00:40:08 v #27440 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:40:08 v #27441 > > │ x2="129" y2="75"/>                                                           │
00:40:08 v #27442 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:40:08 v #27443 > > │ x2="139" y2="75"/>                                                           │
00:40:08 v #27444 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:40:08 v #27445 > > │ x2="149" y2="75"/>                                                           │
00:40:08 v #27446 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:40:08 v #27447 > > │ x2="159" y2="75"/>                                                           │
00:40:08 v #27448 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:40:08 v #27449 > > │ x2="169" y2="75"/>                                                           │
00:40:08 v #27450 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:40:08 v #27451 > > │ x2="179" y2="75"/>                                                           │
00:40:08 v #27452 > > │ <line... 393,238 394,238 396,237 397,237 399,236 401,235 402,235 404,234     │
00:40:08 v #27453 > > │ 405,234 407,233 409,233 410,232 412,231 413,231 415,230 416,230 418,229      │
00:40:08 v #27454 > > │ 420,229 421,228 423,228 424,227 426,227 428,226 429,225 431,225 432,224      │
00:40:08 v #27455 > > │ 434,224 435,223 437,223 439,222 440,222 442,221 443,221 445,220 447,220      │
00:40:08 v #27456 > > │ 448,219 450,219 451,218 453,218 454,217 456,217 458,216 459,216 461,215      │
00:40:08 v #27457 > > │ 462,215 464,214 466,214 467,213 469,213 470,213 472,212 473,212 475,211      │
00:40:08 v #27458 > > │ 477,211 478,210 480,210 481,209 483,209 485,208 486,208 488,208 489,207      │
00:40:08 v #27459 > > │ 491,207 492,206 494,206 496,205 497,205 499,204 500,204 502,204 504,203      │
00:40:08 v #27460 > > │ 505,203 507,202 508,202 510,202 511,201 513,201 515,200 516,200 518,200      │
00:40:08 v #27461 > > │ 519,199 521,199 523,198 524,198 526,198 527,197 529,197 531,196 532,196      │
00:40:08 v #27462 > > │ 534,196 535,195 537,195 538,194 540,194 542,194 543,193 545,193 546,193      │
00:40:08 v #27463 > > │ 548,192 550,192 551,192 553,191 554,191 556,190 557,190 559,190 561,189      │
00:40:08 v #27464 > > │ 562,189 564,189 565,188 567,188 569,188 "/>                                  │
00:40:08 v #27465 > > │ <rect x="464" y="227" width="116" height="45" opacity="1" fill="none"        │
00:40:08 v #27466 > > │ stroke="#FFFFFF"/>                                                           │
00:40:08 v #27467 > > │ <text x="504" y="237" dy="0.76em" text-anchor="start"                        │
00:40:08 v #27468 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:08 v #27469 > > │ fill="#FFFFFF">                                                              │
00:40:08 v #27470 > > │ newtonian                                                                    │
00:40:08 v #27471 > > │ </text>                                                                      │
00:40:08 v #27472 > > │ <text x="504" y="252" dy="0.76em" text-anchor="start"                        │
00:40:08 v #27473 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:08 v #27474 > > │ fill="#FFFFFF">                                                              │
00:40:08 v #27475 > > │ relativistic                                                                 │
00:40:08 v #27476 > > │ </text>                                                                      │
00:40:08 v #27477 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:40:08 v #27478 > > │ points="474,242 494,242 "/>                                                  │
00:40:08 v #27479 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:40:08 v #27480 > > │ points="474,257 494,257 "/>                                                  │
00:40:08 v #27481 > > │ </svg>                                                                       │
00:40:08 v #27482 > > │                                                                              │
00:40:08 v #27483 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:08 v #27484 > >
00:40:08 v #27485 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:08 v #27486 > > inl uniform_lorentz_force v_e v_b (st : particle_state) =
00:40:08 v #27487 > >     st.charge *^ (v_e ^+^ st.velocity >< v_b)
00:40:08 v #27488 > 00:40:07 d #1539 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1efff46697e56beaa0357f3355ee91d1a31053a313aee20a74d1293bc0fc604/main.spi
00:40:08 v #27489 > >
00:40:08 v #27490 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:08 v #27491 > > //// test
00:40:08 v #27492 > >
00:40:08 v #27493 > > inl c : f64 = 299792458
00:40:08 v #27494 > > inl ~method = runge_kutta_4 0.000000001
00:40:08 v #27495 > > inl forces = [[ uniform_lorentz_force (zero_vec ()) (k_hat ()) ]]
00:40:08 v #27496 > > inl (particle_state default_particle_state') = default_particle_state ()
00:40:08 v #27497 > > inl initial_state =
00:40:08 v #27498 > >     particle_state { default_particle_state' with
00:40:08 v #27499 > >         mass = 0.000000000000000000000000001672621898
00:40:08 v #27500 > >         charge = 0.0000000000000000001602176621
00:40:08 v #27501 > >         velocity = 0.8 *^ (c *^ j_hat ())
00:40:08 v #27502 > >     }
00:40:08 v #27503 > >
00:40:08 v #27504 > > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:40:08 v #27505 > > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:40:08 v #27506 > >
00:40:08 v #27507 > > inl newton_x, newton_y =
00:40:08 v #27508 > >     newton_states
00:40:08 v #27509 > >     >> Some
00:40:08 v #27510 > >     |> seq.take_while_ (fun (particle_state st) i => i < 100i32)
00:40:08 v #27511 > >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:40:08 v #27512 > >     |> listm'.unzip
00:40:08 v #27513 > >
00:40:08 v #27514 > > inl relativity_x, relativity_y =
00:40:08 v #27515 > >     relativity_states
00:40:08 v #27516 > >     >> Some
00:40:08 v #27517 > >     |> seq.take_while_ (fun (particle_state st) i => i < 165i32)
00:40:08 v #27518 > >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:40:08 v #27519 > >     |> listm'.unzip
00:40:08 v #27520 > >
00:40:08 v #27521 > > inl newton_x = newton_x |> listm'.box |> listm'.to_array'
00:40:08 v #27522 > > inl newton_y = newton_y |> listm'.box |> listm'.to_array'
00:40:08 v #27523 > >
00:40:08 v #27524 > > inl relativity_x = relativity_x |> listm'.box |> listm'.to_array'
00:40:08 v #27525 > > inl relativity_y = relativity_y |> listm'.box |> listm'.to_array'
00:40:08 v #27526 > >
00:40:08 v #27527 > > "proton in a 1-t magnetic field",
00:40:08 v #27528 > > "x (m)",
00:40:08 v #27529 > > "y (m)",
00:40:08 v #27530 > > ;[[
00:40:08 v #27531 > >     "newtonian", newton_x, newton_y
00:40:08 v #27532 > >     "relativistic", relativity_x, relativity_y
00:40:08 v #27533 > > ]]
00:40:08 v #27534 > 00:40:08 d #1540 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f440865aa6942f3bbb3aed3718ddd7fdca8e880f7fc117024593652b81891107/main.spi
00:40:09 v #27535 > >
00:40:09 v #27536 > > ╭─[ 767.69ms - return value ]──────────────────────────────────────────────────╮
00:40:09 v #27537 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:40:09 v #27538 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:40:09 v #27539 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:40:09 v #27540 > > │ stroke="none"/>                                                              │
00:40:09 v #27541 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:40:09 v #27542 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:09 v #27543 > > │ fill="#FFFFFF">                                                              │
00:40:09 v #27544 > > │ proton in a 1-t magnetic field                                               │
00:40:09 v #27545 > > │ </text>                                                                      │
00:40:09 v #27546 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="58" y1="424" x2="58" │
00:40:09 v #27547 > > │ y2="75"/>                                                                    │
00:40:09 v #27548 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:40:09 v #27549 > > │ y2="75"/>                                                                    │
00:40:09 v #27550 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="81" y1="424" x2="81" │
00:40:09 v #27551 > > │ y2="75"/>                                                                    │
00:40:09 v #27552 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:40:09 v #27553 > > │ y2="75"/>                                                                    │
00:40:09 v #27554 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="105" y1="424"        │
00:40:09 v #27555 > > │ x2="105" y2="75"/>                                                           │
00:40:09 v #27556 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="117" y1="424"        │
00:40:09 v #27557 > > │ x2="117" y2="75"/>                                                           │
00:40:09 v #27558 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:40:09 v #27559 > > │ x2="129" y2="75"/>                                                           │
00:40:09 v #27560 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="141" y1="424"        │
00:40:09 v #27561 > > │ x2="141" y2="75"/>                                                           │
00:40:09 v #27562 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:40:09 v #27563 > > │ x2="153" y2="75"/>                                                           │
00:40:09 v #27564 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="165" y1="424"        │
00:40:09 v #27565 > > │ x2="165" y2="75"/>                                                           │
00:40:09 v #27566 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="177" y1="424"        │
00:40:09 v #27567 > > │ x2="177" y2="75"/>                                                           │
00:40:09 v #27568 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="189" y1="424"        │
00:40:09 v #27569 > > │ x2="189" y2="75"/>                                                           │
00:40:09 v #27570 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="201" y1="424"        │
00:40:09 v #27571 > > │ x2="201" y2="75"/>                                                           │
00:40:09 v #27572 > > │ <...555,197 560,206 563,216 566,225 567,234 568,244 568,253 568,263 566,272  │
00:40:09 v #27573 > > │ 564,281 561,291 557,300 552,309 547,317 540,326 533,334 526,342 517,350      │
00:40:09 v #27574 > > │ 508,357 499,364 488,371 478,377 466,383 455,388 442,393 430,398 417,402      │
00:40:09 v #27575 > > │ 403,405 390,408 376,410 362,412 348,414 333,414 319,415 305,414 290,414      │
00:40:09 v #27576 > > │ 276,412 262,410 248,408 235,405 221,401 208,397 196,393 183,388 171,383      │
00:40:09 v #27577 > > │ 160,377 149,371 139,364 129,357 120,350 112,342 104,334 97,326 91,317 86,309 │
00:40:09 v #27578 > > │ 81,300 77,290 74,281 72,272 70,263 70,253 70,244 71,234 72,225 75,215 78,206 │
00:40:09 v #27579 > > │ 83,197 88,188 93,180 100,171 107,163 115,155 124,148 133,140 143,133 153,127 │
00:40:09 v #27580 > > │ 164,121 176,115 188,110 200,105 213,101 226,97 239,94 253,91 267,89 281,87   │
00:40:09 v #27581 > > │ 295,86 310,85 324,85 338,86 353,87 367,88 381,90 394,93 408,96 421,100       │
00:40:09 v #27582 > > │ 434,104 447,109 459,114 470,119 482,125 492,131 502,138 512,145 520,153      │
00:40:09 v #27583 > > │ 529,161 536,169 543,177 549,186 554,194 558,203 562,213 565,222 567,231      │
00:40:09 v #27584 > > │ 568,241 569,250 "/>                                                          │
00:40:09 v #27585 > > │ <rect x="464" y="227" width="116" height="45" opacity="1" fill="none"        │
00:40:09 v #27586 > > │ stroke="#FFFFFF"/>                                                           │
00:40:09 v #27587 > > │ <text x="504" y="237" dy="0.76em" text-anchor="start"                        │
00:40:09 v #27588 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:09 v #27589 > > │ fill="#FFFFFF">                                                              │
00:40:09 v #27590 > > │ newtonian                                                                    │
00:40:09 v #27591 > > │ </text>                                                                      │
00:40:09 v #27592 > > │ <text x="504" y="252" dy="0.76em" text-anchor="start"                        │
00:40:09 v #27593 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:09 v #27594 > > │ fill="#FFFFFF">                                                              │
00:40:09 v #27595 > > │ relativistic                                                                 │
00:40:09 v #27596 > > │ </text>                                                                      │
00:40:09 v #27597 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:40:09 v #27598 > > │ points="474,242 494,242 "/>                                                  │
00:40:09 v #27599 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:40:09 v #27600 > > │ points="474,257 494,257 "/>                                                  │
00:40:09 v #27601 > > │ </svg>                                                                       │
00:40:09 v #27602 > > │                                                                              │
00:40:09 v #27603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:09 v #27604 > >
00:40:09 v #27605 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:09 v #27606 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:09 v #27607 > > │ #### system kinetic energy versus time 1                                     │
00:40:09 v #27608 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:09 v #27609 > >
00:40:09 v #27610 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:09 v #27611 > > //// test
00:40:09 v #27612 > >
00:40:09 v #27613 > > inl central_force f (particle_state st1) (particle_state st2) =
00:40:09 v #27614 > >     inl r1 = st1.pos_vec
00:40:09 v #27615 > >     inl r2 = st2.pos_vec
00:40:09 v #27616 > >     inl r21 = r2 ^-^ r1
00:40:09 v #27617 > >     inl r21mag = magnitude r21
00:40:09 v #27618 > >     f r21mag *^ r21 ^/ r21mag
00:40:09 v #27619 > >
00:40:09 v #27620 > > inl billiard_force k re =
00:40:09 v #27621 > >     inl f r =
00:40:09 v #27622 > >         if r >= re
00:40:09 v #27623 > >         then 0
00:40:09 v #27624 > >         else -k * (r - re)
00:40:09 v #27625 > >     central_force f
00:40:09 v #27626 > >
00:40:09 v #27627 > > type force_vector = vec
00:40:09 v #27628 > > type two_body_force = particle_state -> particle_state -> force_vector
00:40:09 v #27629 > >
00:40:09 v #27630 > > union force =
00:40:09 v #27631 > >     | ExternalForce : i32 * one_body_force
00:40:09 v #27632 > >     | InternalForce : i32 * i32 * two_body_force
00:40:09 v #27633 > >
00:40:09 v #27634 > > nominal multi_particle_state = list particle_state
00:40:09 v #27635 > >
00:40:09 v #27636 > > nominal d_multi_particle_state = list d_particle_state
00:40:09 v #27637 > >
00:40:09 v #27638 > > inl force_on n sts force =
00:40:09 v #27639 > >     match force with
00:40:09 v #27640 > >     | ExternalForce (n0, f_one_body) =>
00:40:09 v #27641 > >         if n = n0
00:40:09 v #27642 > >         then f_one_body
00:40:09 v #27643 > >         else fun _ => zero_vec ()
00:40:09 v #27644 > >     | InternalForce (n0, n1, f_two_body) =>
00:40:09 v #27645 > >         if n = n0
00:40:09 v #27646 > >         then f_two_body (sts |> listm'.item n1)
00:40:09 v #27647 > >         elif n = n1
00:40:09 v #27648 > >         then f_two_body (sts |> listm'.item n0)
00:40:09 v #27649 > >         else fun _ => zero_vec ()
00:40:09 v #27650 > >
00:40:09 v #27651 > > inl forces_on n (multi_particle_state sts) fs =
00:40:09 v #27652 > >     fs |> listm.map (force_on n sts)
00:40:09 v #27653 > >
00:40:09 v #27654 > > inl newton_second_mps fs (multi_particle_state sts) : d_multi_particle_state =
00:40:09 v #27655 > >     inl deriv (n, st) =
00:40:09 v #27656 > >         newton_second_ps (forces_on n (multi_particle_state sts) fs) st
00:40:09 v #27657 > >     sts |> listm'.indexed |> listm.map deriv |> d_multi_particle_state
00:40:09 v #27658 > >
00:40:09 v #27659 > > instance (+++) d_multi_particle_state = fun (d_multi_particle_state dsts1)
00:40:09 v #27660 > > (d_multi_particle_state dsts2) =>
00:40:09 v #27661 > >     d_multi_particle_state (listm'.zip_with_ (+++) dsts1 dsts2)
00:40:09 v #27662 > >
00:40:09 v #27663 > > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:40:09 v #27664 > >     d_multi_particle_state (dsts |> listm.map (scale w))
00:40:09 v #27665 > >
00:40:09 v #27666 > > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:40:09 v #27667 > >     inl (d_multi_particle_state dsts) =
00:40:09 v #27668 > >         real
00:40:09 v #27669 > >             match dsts with
00:40:09 v #27670 > >             | d_multi_particle_state _ => dsts
00:40:09 v #27671 > >     listm'.zip_with_ (shift dt) dsts sts |> multi_particle_state
00:40:09 v #27672 > >
00:40:09 v #27673 > > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:40:09 v #27674 > > d_multi_particle_state =
00:40:09 v #27675 > >     fun deriv mpst0 =>
00:40:09 v #27676 > >         inl mpst1 = euler dt deriv mpst0
00:40:09 v #27677 > >         inl (multi_particle_state sts0) = mpst0
00:40:09 v #27678 > >         inl (multi_particle_state sts1) = mpst1
00:40:09 v #27679 > >         sts1
00:40:09 v #27680 > >         |> listm'.zip_ sts0
00:40:09 v #27681 > >         |> listm.map (fun ((particle_state st0), (particle_state st1)) =>
00:40:09 v #27682 > >             particle_state {
00:40:09 v #27683 > >                 st1 with
00:40:09 v #27684 > >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:40:09 v #27685 > >             }
00:40:09 v #27686 > >         )
00:40:09 v #27687 > >         |> multi_particle_state
00:40:09 v #27688 > >
00:40:09 v #27689 > > inl update_mps (method : numerical_method multi_particle_state
00:40:09 v #27690 > > d_multi_particle_state) =
00:40:09 v #27691 > >     newton_second_mps >> method
00:40:09 v #27692 > >
00:40:09 v #27693 > > inl states_mps (method : numerical_method multi_particle_state
00:40:09 v #27694 > > d_multi_particle_state) =
00:40:09 v #27695 > >     newton_second_mps >> method >> seq.iterate_
00:40:09 v #27696 > >
00:40:09 v #27697 > >
00:40:09 v #27698 > > inl kinetic_energy (particle_state st) =
00:40:09 v #27699 > >     inl m = st.mass
00:40:09 v #27700 > >     inl v = magnitude st.velocity
00:40:09 v #27701 > >     0.5 * m * v ** 2
00:40:09 v #27702 > >
00:40:09 v #27703 > > inl system_ke (multi_particle_state sts) =
00:40:09 v #27704 > >     sts |> listm.map kinetic_energy |> listm'.sum
00:40:09 v #27705 > >
00:40:09 v #27706 > > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:40:09 v #27707 > >     inl r1 = st1.pos_vec
00:40:09 v #27708 > >     inl r2 = st2.pos_vec
00:40:09 v #27709 > >     inl r21 = r2 ^-^ r1
00:40:09 v #27710 > >     inl r21mag = magnitude r21
00:40:09 v #27711 > >     k * (r21mag - re) ** 2 / 2
00:40:09 v #27712 > >
00:40:09 v #27713 > > inl earth_surface_gravity_pe (particle_state st) =
00:40:09 v #27714 > >     inl g = 9.80665
00:40:09 v #27715 > >     inl m = st.mass
00:40:09 v #27716 > >     inl z = st.pos_vec.z
00:40:09 v #27717 > >     m * g * z
00:40:09 v #27718 > >
00:40:09 v #27719 > > inl two_springs_pe (multi_particle_state sts) =
00:40:09 v #27720 > >     inl st0 = sts |> listm'.item 0i32
00:40:09 v #27721 > >     inl st1 = sts |> listm'.item 1i32
00:40:09 v #27722 > >     linear_spring_pe 100 0.5 (default_particle_state ()) st0
00:40:09 v #27723 > >     + linear_spring_pe 100 0.5 st0 st1
00:40:09 v #27724 > >     + earth_surface_gravity_pe st0
00:40:09 v #27725 > >     + earth_surface_gravity_pe st1
00:40:09 v #27726 > >
00:40:09 v #27727 > > inl two_springs_me mpst =
00:40:09 v #27728 > >     system_ke mpst + two_springs_pe mpst
00:40:09 v #27729 > >
00:40:09 v #27730 > > inl ball_radius () = 0.03
00:40:09 v #27731 > >
00:40:09 v #27732 > > inl billiard_forces k =
00:40:09 v #27733 > >     [[ InternalForce (0, 1, billiard_force k (2 * ball_radius ())) ]]
00:40:09 v #27734 > >
00:40:09 v #27735 > > inl billiard_update n_method k dt =
00:40:09 v #27736 > >     update_mps (n_method dt) (billiard_forces k)
00:40:09 v #27737 > >
00:40:09 v #27738 > > inl billiard_initial () =
00:40:09 v #27739 > >     inl ball_mass = 0.160
00:40:09 v #27740 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:40:09 v #27741 > >     multi_particle_state [[
00:40:09 v #27742 > >         particle_state {
00:40:09 v #27743 > >             default_particle_state' with
00:40:09 v #27744 > >                 mass = ball_mass
00:40:09 v #27745 > >                 pos_vec = zero_vec ()
00:40:09 v #27746 > >                 velocity = 0.2 *^ i_hat ()
00:40:09 v #27747 > >         }
00:40:09 v #27748 > >         particle_state {
00:40:09 v #27749 > >             default_particle_state' with
00:40:09 v #27750 > >                 mass = ball_mass
00:40:09 v #27751 > >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:40:09 v #27752 > >                 velocity = zero_vec ()
00:40:09 v #27753 > >         }
00:40:09 v #27754 > >     ]]
00:40:09 v #27755 > >
00:40:09 v #27756 > > inl billiard_states ~n_method k dt =
00:40:09 v #27757 > >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:40:09 v #27758 > >
00:40:09 v #27759 > > inl billiard_states_finite n_method k dt =
00:40:09 v #27760 > >     billiard_states n_method k dt
00:40:09 v #27761 > >     >> Some
00:40:09 v #27762 > >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:40:09 v #27763 > >         (mpst |> listm'.item 0i32).time <= 10
00:40:09 v #27764 > >     )
00:40:09 v #27765 > >
00:40:09 v #27766 > > inl momentum (particle_state st) =
00:40:09 v #27767 > >     inl m = st.mass
00:40:09 v #27768 > >     inl v = st.velocity
00:40:09 v #27769 > >     m *^ v
00:40:09 v #27770 > >
00:40:09 v #27771 > > inl system_p (multi_particle_state sts) =
00:40:09 v #27772 > >     sts |> listm.map momentum |> sum_vec
00:40:09 v #27773 > >
00:40:09 v #27774 > >
00:40:09 v #27775 > > inl time_ke_ec_x, time_ke_ec_y =
00:40:09 v #27776 > >     billiard_states_finite euler_cromer_mps 30 0.03
00:40:09 v #27777 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:40:09 v #27778 > >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:40:09 v #27779 > >     )
00:40:09 v #27780 > >     |> listm'.unzip
00:40:09 v #27781 > >
00:40:09 v #27782 > > inl time_ke_rk4_x, time_ke_rk4_y =
00:40:09 v #27783 > >     billiard_states_finite runge_kutta_4 30 0.03
00:40:09 v #27784 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:40:09 v #27785 > >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:40:09 v #27786 > >     )
00:40:09 v #27787 > >     |> listm'.unzip
00:40:09 v #27788 > >
00:40:09 v #27789 > > inl time_ke_ec_x = time_ke_ec_x |> listm'.box |> listm'.to_array'
00:40:09 v #27790 > > inl time_ke_ec_y = time_ke_ec_y |> listm'.box |> listm'.to_array'
00:40:09 v #27791 > >
00:40:09 v #27792 > > inl time_ke_rk4_x = time_ke_rk4_x |> listm'.box |> listm'.to_array'
00:40:09 v #27793 > > inl time_ke_rk4_y = time_ke_rk4_y |> listm'.box |> listm'.to_array'
00:40:09 v #27794 > >
00:40:09 v #27795 > > "system kinetic energy versus time",
00:40:09 v #27796 > > "time (s)",
00:40:09 v #27797 > > "system kinetic energy (j)",
00:40:09 v #27798 > > ;[[
00:40:09 v #27799 > >     "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:40:09 v #27800 > >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:40:09 v #27801 > > ]]
00:40:09 v #27802 > 00:40:08 d #1541 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c8e2647289a2329c3212ac5ef16843ddaa6adb4bd294facbfc659041ecff24ec/main.spi
00:40:10 v #27803 > >
00:40:10 v #27804 > > ╭─[ 1.38s - return value ]─────────────────────────────────────────────────────╮
00:40:10 v #27805 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:40:10 v #27806 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:40:10 v #27807 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:40:10 v #27808 > > │ stroke="none"/>                                                              │
00:40:10 v #27809 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:40:10 v #27810 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:10 v #27811 > > │ fill="#FFFFFF">                                                              │
00:40:10 v #27812 > > │ system kinetic energy versus time                                            │
00:40:10 v #27813 > > │ </text>                                                                      │
00:40:10 v #27814 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:40:10 v #27815 > > │ y2="75"/>                                                                    │
00:40:10 v #27816 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:40:10 v #27817 > > │ y2="75"/>                                                                    │
00:40:10 v #27818 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:40:10 v #27819 > > │ y2="75"/>                                                                    │
00:40:10 v #27820 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:40:10 v #27821 > > │ y2="75"/>                                                                    │
00:40:10 v #27822 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:40:10 v #27823 > > │ y2="75"/>                                                                    │
00:40:10 v #27824 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:40:10 v #27825 > > │ x2="109" y2="75"/>                                                           │
00:40:10 v #27826 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:40:10 v #27827 > > │ x2="119" y2="75"/>                                                           │
00:40:10 v #27828 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:40:10 v #27829 > > │ x2="129" y2="75"/>                                                           │
00:40:10 v #27830 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:40:10 v #27831 > > │ x2="139" y2="75"/>                                                           │
00:40:10 v #27832 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:40:10 v #27833 > > │ x2="149" y2="75"/>                                                           │
00:40:10 v #27834 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:40:10 v #27835 > > │ x2="159" y2="75"/>                                                           │
00:40:10 v #27836 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:40:10 v #27837 > > │ x2="169" y2="75"/>                                                           │
00:40:10 v #27838 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:40:10 v #27839 > > │ x2="179" y2="75"/>                                                           │
00:40:10 v #27840 > > │ ...,104 404,104 405,104 407,104 408,104 410,104 411,104 413,104 414,104      │
00:40:10 v #27841 > > │ 416,104 417,104 419,104 420,104 422,104 423,104 425,104 426,104 428,104      │
00:40:10 v #27842 > > │ 429,104 431,104 432,104 434,104 435,104 437,104 438,104 440,104 441,104      │
00:40:10 v #27843 > > │ 443,104 444,104 446,104 447,104 449,104 450,104 452,104 453,104 455,104      │
00:40:10 v #27844 > > │ 456,104 458,104 459,104 461,104 462,104 464,104 465,104 467,104 468,104      │
00:40:10 v #27845 > > │ 470,104 471,104 473,104 474,104 476,104 477,104 479,104 480,104 482,104      │
00:40:10 v #27846 > > │ 483,104 485,104 486,104 488,104 489,104 491,104 492,104 494,104 495,104      │
00:40:10 v #27847 > > │ 497,104 498,104 500,104 501,104 503,104 504,104 506,104 507,104 509,104      │
00:40:10 v #27848 > > │ 510,104 512,104 513,104 515,104 516,104 518,104 519,104 521,104 522,104      │
00:40:10 v #27849 > > │ 524,104 525,104 527,104 528,104 530,104 531,104 533,104 534,104 536,104      │
00:40:10 v #27850 > > │ 537,104 539,104 540,104 542,104 543,104 545,104 546,104 548,104 549,104      │
00:40:10 v #27851 > > │ 551,104 552,104 554,104 555,104 557,104 558,104 560,104 561,104 563,104      │
00:40:10 v #27852 > > │ 564,104 566,104 567,104 569,104 "/>                                          │
00:40:10 v #27853 > > │ <rect x="459" y="227" width="121" height="45" opacity="1" fill="none"        │
00:40:10 v #27854 > > │ stroke="#FFFFFF"/>                                                           │
00:40:10 v #27855 > > │ <text x="499" y="237" dy="0.76em" text-anchor="start"                        │
00:40:10 v #27856 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:10 v #27857 > > │ fill="#FFFFFF">                                                              │
00:40:10 v #27858 > > │ euler-cromer                                                                 │
00:40:10 v #27859 > > │ </text>                                                                      │
00:40:10 v #27860 > > │ <text x="499" y="252" dy="0.76em" text-anchor="start"                        │
00:40:10 v #27861 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:10 v #27862 > > │ fill="#FFFFFF">                                                              │
00:40:10 v #27863 > > │ runge-kutta 4                                                                │
00:40:10 v #27864 > > │ </text>                                                                      │
00:40:10 v #27865 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:40:10 v #27866 > > │ points="469,242 489,242 "/>                                                  │
00:40:10 v #27867 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:40:10 v #27868 > > │ points="469,257 489,257 "/>                                                  │
00:40:10 v #27869 > > │ </svg>                                                                       │
00:40:10 v #27870 > > │                                                                              │
00:40:10 v #27871 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:10 v #27872 > >
00:40:10 v #27873 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:10 v #27874 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:10 v #27875 > > │ #### wave 1                                                                  │
00:40:10 v #27876 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:10 v #27877 > >
00:40:10 v #27878 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:10 v #27879 > > //// test
00:40:10 v #27880 > >
00:40:10 v #27881 > > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:40:10 v #27882 > >     inl r1 = st1.pos_vec
00:40:10 v #27883 > >     inl r2 = st2.pos_vec
00:40:10 v #27884 > >     inl r21 = r2 ^-^ r1
00:40:10 v #27885 > >     inl r21mag = magnitude r21
00:40:10 v #27886 > >     -k * (r21mag - re) *^ r21 ^/ r21mag
00:40:10 v #27887 > >
00:40:10 v #27888 > > inl fixed_linear_spring k re r1 =
00:40:10 v #27889 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:40:10 v #27890 > >     linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:40:10 v #27891 > > r1 })
00:40:10 v #27892 > >
00:40:10 v #27893 > > inl forces_string () =
00:40:10 v #27894 > >     [[
00:40:10 v #27895 > >         ExternalForce (0, fixed_linear_spring 5384 0 (zero_vec ()))
00:40:10 v #27896 > >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:40:10 v #27897 > >     ]] ++ (
00:40:10 v #27898 > >         listm'.init_series 0 59 1
00:40:10 v #27899 > >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:40:10 v #27900 > >     )
00:40:10 v #27901 > >
00:40:10 v #27902 > > inl string_update dt =
00:40:10 v #27903 > >     update_mps (runge_kutta_4 dt) (forces_string ())
00:40:10 v #27904 > >
00:40:10 v #27905 > > inl string_initial_overtone n =
00:40:10 v #27906 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:40:10 v #27907 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:40:10 v #27908 > >     listm'.init_series 0.01 0.64 0.01
00:40:10 v #27909 > >     |> listm.map (fun x =>
00:40:10 v #27910 > >         inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:40:10 v #27911 > >         particle_state {
00:40:10 v #27912 > >             default_particle_state' with
00:40:10 v #27913 > >                 mass = ball_mass
00:40:10 v #27914 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:40:10 v #27915 > >                 velocity = zero_vec ()
00:40:10 v #27916 > >         }
00:40:10 v #27917 > >     )
00:40:10 v #27918 > >     |> multi_particle_state
00:40:10 v #27919 > >
00:40:10 v #27920 > > inl string_initial_pluck () =
00:40:10 v #27921 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:40:10 v #27922 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:40:10 v #27923 > >     listm'.init_series 0.01 0.64 0.01
00:40:10 v #27924 > >     |> listm.map (fun x =>
00:40:10 v #27925 > >         inl y =
00:40:10 v #27926 > >             inl n = if x <= 0.51 then 0 else 0.65
00:40:10 v #27927 > >             0.005 / (0.51 - n) * (x - n)
00:40:10 v #27928 > >         particle_state {
00:40:10 v #27929 > >             default_particle_state' with
00:40:10 v #27930 > >                 mass = ball_mass
00:40:10 v #27931 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:40:10 v #27932 > >                 velocity = zero_vec ()
00:40:10 v #27933 > >         }
00:40:10 v #27934 > >     )
00:40:10 v #27935 > >     |> multi_particle_state
00:40:10 v #27936 > >
00:40:10 v #27937 > > let main () =
00:40:10 v #27938 > >     inl ~frames = listm'.init_series 0 9 1f64
00:40:10 v #27939 > >     inl initial_state = string_initial_overtone 3i32
00:40:10 v #27940 > >     inl frames =
00:40:10 v #27941 > >         frames
00:40:10 v #27942 > >         |> listm.map (fun n =>
00:40:10 v #27943 > >             inl (multi_particle_state sts) =
00:40:10 v #27944 > >                 seq.iterate' (string_update 0.000025) initial_state |> fun f =>
00:40:10 v #27945 > > f 0f64
00:40:10 v #27946 > >             inl rs =
00:40:10 v #27947 > >                 [[ zero_vec () ]]
00:40:10 v #27948 > >                 ++ (sts |> listm.map (fun (particle_state st) => st.pos_vec))
00:40:10 v #27949 > >                 ++ [[ 0.65 *^ i_hat () ]]
00:40:10 v #27950 > >             inl x, y =
00:40:10 v #27951 > >                 rs
00:40:10 v #27952 > >                 |> listm.map (fun r => r.x, r.y)
00:40:10 v #27953 > >                 |> listm'.unzip
00:40:10 v #27954 > >             inl x = x |> listm'.box |> listm'.to_array'
00:40:10 v #27955 > >             inl y = y |> listm'.box |> listm'.to_array'
00:40:10 v #27956 > >             x, y
00:40:10 v #27957 > >         )
00:40:10 v #27958 > >         |> listm'.box |> listm'.to_array'
00:40:10 v #27959 > >
00:40:10 v #27960 > >     inl n = 0i32
00:40:10 v #27961 > >
00:40:10 v #27962 > >     inl x, y = a frames |> am'.index n
00:40:10 v #27963 > >
00:40:10 v #27964 > >     "wave",
00:40:10 v #27965 > >     "position (m)",
00:40:10 v #27966 > >     "displacement (m)",
00:40:10 v #27967 > >     ;[[
00:40:10 v #27968 > >         ($'$"{!n}"' : string), x, y
00:40:10 v #27969 > >     ]]
00:40:11 v #27970 > 00:40:10 d #1542 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f6b18424855979ef25e67e10654bdc2d22c6d1ab98f1cabe81e780b2a5242fe7/main.spi
00:40:11 v #27971 > >
00:40:11 v #27972 > > ╭─[ 661.00ms - return value ]──────────────────────────────────────────────────╮
00:40:11 v #27973 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:40:11 v #27974 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:40:11 v #27975 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:40:11 v #27976 > > │ stroke="none"/>                                                              │
00:40:11 v #27977 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:40:11 v #27978 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:11 v #27979 > > │ fill="#FFFFFF">                                                              │
00:40:11 v #27980 > > │ wave                                                                         │
00:40:11 v #27981 > > │ </text>                                                                      │
00:40:11 v #27982 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:40:11 v #27983 > > │ y2="75"/>                                                                    │
00:40:11 v #27984 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:40:11 v #27985 > > │ y2="75"/>                                                                    │
00:40:11 v #27986 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:40:11 v #27987 > > │ y2="75"/>                                                                    │
00:40:11 v #27988 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │
00:40:11 v #27989 > > │ y2="75"/>                                                                    │
00:40:11 v #27990 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:40:11 v #27991 > > │ y2="75"/>                                                                    │
00:40:11 v #27992 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="100" y1="424"        │
00:40:11 v #27993 > > │ x2="100" y2="75"/>                                                           │
00:40:11 v #27994 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="108" y1="424"        │
00:40:11 v #27995 > > │ x2="108" y2="75"/>                                                           │
00:40:11 v #27996 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="116" y1="424"        │
00:40:11 v #27997 > > │ x2="116" y2="75"/>                                                           │
00:40:11 v #27998 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="123" y1="424"        │
00:40:11 v #27999 > > │ x2="123" y2="75"/>                                                           │
00:40:11 v #28000 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="131" y1="424"        │
00:40:11 v #28001 > > │ x2="131" y2="75"/>                                                           │
00:40:11 v #28002 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:40:11 v #28003 > > │ x2="139" y2="75"/>                                                           │
00:40:11 v #28004 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="146" y1="424"        │
00:40:11 v #28005 > > │ x2="146" y2="75"/>                                                           │
00:40:11 v #28006 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="154" y1="424"        │
00:40:11 v #28007 > > │ x2="154" y2="75"/>                                                           │
00:40:11 v #28008 > > │ <line opacity="1" stroke="#32...ne fill="none" opacity="1" stroke="#FFFFFF"  │
00:40:11 v #28009 > > │ stroke-width="1" points="585,250 590,250 "/>                                 │
00:40:11 v #28010 > > │ <text x="617" y="184" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:40:11 v #28011 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:40:11 v #28012 > > │ 0.0                                                                          │
00:40:11 v #28013 > > │ </text>                                                                      │
00:40:11 v #28014 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:40:11 v #28015 > > │ points="585,184 590,184 "/>                                                  │
00:40:11 v #28016 > > │ <text x="617" y="118" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:40:11 v #28017 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:40:11 v #28018 > > │ 0.0                                                                          │
00:40:11 v #28019 > > │ </text>                                                                      │
00:40:11 v #28020 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:40:11 v #28021 > > │ points="585,118 590,118 "/>                                                  │
00:40:11 v #28022 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:40:11 v #28023 > > │ points="69,250 77,226 85,203 93,181 100,160 108,141 116,124 123,110 131,99   │
00:40:11 v #28024 > > │ 139,91 146,87 154,85 162,88 169,93 177,102 185,115 192,129 200,147 208,167   │
00:40:11 v #28025 > > │ 215,188 223,211 231,234 238,258 246,282 254,305 261,327 269,347 277,365      │
00:40:11 v #28026 > > │ 284,381 292,394 300,404 307,411 315,415 323,415 331,411 338,404 346,394      │
00:40:11 v #28027 > > │ 354,381 361,365 369,347 377,327 384,305 392,282 400,258 407,234 415,211      │
00:40:11 v #28028 > > │ 423,188 430,167 438,147 446,129 453,115 461,102 469,93 476,88 484,85 492,87  │
00:40:11 v #28029 > > │ 499,91 507,99 515,110 522,124 530,141 538,160 545,181 553,203 561,226        │
00:40:11 v #28030 > > │ 569,250 "/>                                                                  │
00:40:11 v #28031 > > │ <rect x="525" y="235" width="55" height="30" opacity="1" fill="none"         │
00:40:11 v #28032 > > │ stroke="#FFFFFF"/>                                                           │
00:40:11 v #28033 > > │ <text x="565" y="245" dy="0.76em" text-anchor="start"                        │
00:40:11 v #28034 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:11 v #28035 > > │ fill="#FFFFFF">                                                              │
00:40:11 v #28036 > > │ 0                                                                            │
00:40:11 v #28037 > > │ </text>                                                                      │
00:40:11 v #28038 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:40:11 v #28039 > > │ points="535,250 555,250 "/>                                                  │
00:40:11 v #28040 > > │ </svg>                                                                       │
00:40:11 v #28041 > > │                                                                              │
00:40:11 v #28042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:11 v #28043 > >
00:40:11 v #28044 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:11 v #28045 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:11 v #28046 > > │ #### system kinetic energy versus time 2                                     │
00:40:11 v #28047 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:11 v #28048 > >
00:40:11 v #28049 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:11 v #28050 > > //// test
00:40:11 v #28051 > >
00:40:11 v #28052 > > inl central_force f (particle_state st1) (particle_state st2) =
00:40:11 v #28053 > >     inl r1 = st1.pos_vec
00:40:11 v #28054 > >     inl r2 = st2.pos_vec
00:40:11 v #28055 > >     inl r21 = r2 ^-^ r1
00:40:11 v #28056 > >     inl r21mag = magnitude r21
00:40:11 v #28057 > >     f r21mag *^ r21 ^/ r21mag
00:40:11 v #28058 > >
00:40:11 v #28059 > > inl billiard_force k re =
00:40:11 v #28060 > >     inl f r =
00:40:11 v #28061 > >         if r >= re
00:40:11 v #28062 > >         then 0
00:40:11 v #28063 > >         else -k * (r - re)
00:40:11 v #28064 > >     central_force f
00:40:11 v #28065 > >
00:40:11 v #28066 > > type force_vector = vec
00:40:11 v #28067 > > type two_body_force = particle_state -> particle_state -> force_vector
00:40:11 v #28068 > >
00:40:11 v #28069 > > union force t =
00:40:11 v #28070 > >     | ExternalForce : t * one_body_force
00:40:11 v #28071 > >     | InternalForce : t * t * two_body_force
00:40:11 v #28072 > >
00:40:11 v #28073 > > nominal multi_particle_state = stream.stream particle_state
00:40:11 v #28074 > >
00:40:11 v #28075 > > nominal d_multi_particle_state = stream.stream d_particle_state
00:40:11 v #28076 > >
00:40:11 v #28077 > > inl force_on n s force =
00:40:11 v #28078 > >     match force with
00:40:11 v #28079 > >     | ExternalForce (n0, f_one_body) =>
00:40:11 v #28080 > >         if n = n0
00:40:11 v #28081 > >         then f_one_body
00:40:11 v #28082 > >         else fun _ => zero_vec ()
00:40:11 v #28083 > >     | InternalForce (n0, n1, f_two_body) =>
00:40:11 v #28084 > >         if n = n0
00:40:11 v #28085 > >         then s |> stream.try_item n1 |> optionm.map f_two_body
00:40:11 v #28086 > >         elif n = n1
00:40:11 v #28087 > >         then s |> stream.try_item n0 |> optionm.map f_two_body
00:40:11 v #28088 > >         else None
00:40:11 v #28089 > >         |> optionm'.default_value (fun _ => zero_vec ())
00:40:11 v #28090 > >
00:40:11 v #28091 > > inl forces_on n (multi_particle_state sts) fs =
00:40:11 v #28092 > >     fs
00:40:11 v #28093 > >     |> listm.map (force_on n sts)
00:40:11 v #28094 > >
00:40:11 v #28095 > > inl newton_second_mps fs ((multi_particle_state sts) as mpst) =
00:40:11 v #28096 > >     inl deriv (n, st) =
00:40:11 v #28097 > >         newton_second_ps (forces_on n mpst fs) st
00:40:11 v #28098 > >     sts |> stream.indexed |> stream.map deriv |> d_multi_particle_state
00:40:11 v #28099 > >
00:40:11 v #28100 > > instance (+++) d_multi_particle_state =
00:40:11 v #28101 > >     fun (d_multi_particle_state dsts1) (d_multi_particle_state dsts2) =>
00:40:11 v #28102 > >         (dsts1, dsts2)
00:40:11 v #28103 > >         ||> stream.zip_with (+++)
00:40:11 v #28104 > >         |> d_multi_particle_state
00:40:11 v #28105 > >
00:40:11 v #28106 > > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:40:11 v #28107 > >     dsts
00:40:11 v #28108 > >     |> stream.map (scale w)
00:40:11 v #28109 > >     |> d_multi_particle_state
00:40:11 v #28110 > >
00:40:11 v #28111 > > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:40:11 v #28112 > >     inl (d_multi_particle_state dsts) =
00:40:11 v #28113 > >         real
00:40:11 v #28114 > >             match dsts with
00:40:11 v #28115 > >             | d_multi_particle_state _ => dsts
00:40:11 v #28116 > >     (dsts, sts)
00:40:11 v #28117 > >     ||> stream.zip_with (shift dt)
00:40:11 v #28118 > >     |> stream.memoize
00:40:11 v #28119 > >     |> fun x => x ()
00:40:11 v #28120 > >     |> multi_particle_state
00:40:11 v #28121 > >
00:40:11 v #28122 > > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:40:11 v #28123 > > d_multi_particle_state =
00:40:11 v #28124 > >     fun deriv ((multi_particle_state sts0) as mpst0) =>
00:40:11 v #28125 > >         inl (multi_particle_state sts1) = euler dt deriv mpst0
00:40:11 v #28126 > >         (sts0, sts1)
00:40:11 v #28127 > >         ||> stream.zip
00:40:11 v #28128 > >         |> stream.map (fun ((particle_state st0), (particle_state st1)) =>
00:40:11 v #28129 > >             particle_state {
00:40:11 v #28130 > >                 st1 with
00:40:11 v #28131 > >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:40:11 v #28132 > >             }
00:40:11 v #28133 > >         )
00:40:11 v #28134 > >         |> multi_particle_state
00:40:11 v #28135 > >
00:40:11 v #28136 > > inl update_mps (method : numerical_method multi_particle_state
00:40:11 v #28137 > > d_multi_particle_state) =
00:40:11 v #28138 > >     newton_second_mps >> method
00:40:11 v #28139 > >
00:40:11 v #28140 > > inl states_mps (method : numerical_method multi_particle_state
00:40:11 v #28141 > > d_multi_particle_state) =
00:40:11 v #28142 > >     newton_second_mps
00:40:11 v #28143 > >     >> method
00:40:11 v #28144 > >     >> (fun x (multi_particle_state y) =>
00:40:11 v #28145 > >         y
00:40:11 v #28146 > >         |> stream.memoize
00:40:11 v #28147 > >         |> (fun x => x ())
00:40:11 v #28148 > >         |> multi_particle_state |> x
00:40:11 v #28149 > >     )
00:40:11 v #28150 > >     // >> stream.iterate
00:40:11 v #28151 > >     >> seq.iterate'
00:40:11 v #28152 > >
00:40:11 v #28153 > > inl kinetic_energy (particle_state st) =
00:40:11 v #28154 > >     inl m = st.mass
00:40:11 v #28155 > >     inl v = magnitude st.velocity
00:40:11 v #28156 > >     0.5 * m * v ** 2
00:40:11 v #28157 > >
00:40:11 v #28158 > > inl system_ke (multi_particle_state sts) =
00:40:11 v #28159 > >     sts
00:40:11 v #28160 > >     |> stream.map kinetic_energy
00:40:11 v #28161 > >     |> stream.sum
00:40:11 v #28162 > >
00:40:11 v #28163 > > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:40:11 v #28164 > >     inl r1 = st1.pos_vec
00:40:11 v #28165 > >     inl r2 = st2.pos_vec
00:40:11 v #28166 > >     inl r21 = r2 ^-^ r1
00:40:11 v #28167 > >     inl r21mag = magnitude r21
00:40:11 v #28168 > >     k * (r21mag - re) ** 2 / 2
00:40:11 v #28169 > >
00:40:11 v #28170 > > inl earth_surface_gravity_pe (particle_state st) =
00:40:11 v #28171 > >     inl g = 9.80665
00:40:11 v #28172 > >     inl m = st.mass
00:40:11 v #28173 > >     inl z = st.pos_vec.z
00:40:11 v #28174 > >     m * g * z
00:40:11 v #28175 > >
00:40:11 v #28176 > > inl ball_radius () = 0.03
00:40:11 v #28177 > >
00:40:11 v #28178 > > inl billiard_forces k =
00:40:11 v #28179 > >     [[ InternalForce (0i32, 1, billiard_force k (2 * ball_radius ())) ]]
00:40:11 v #28180 > >
00:40:11 v #28181 > > inl billiard_initial () =
00:40:11 v #28182 > >     inl ball_mass = 0.160
00:40:11 v #28183 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:40:11 v #28184 > >     [[
00:40:11 v #28185 > >         particle_state {
00:40:11 v #28186 > >             default_particle_state' with
00:40:11 v #28187 > >                 mass = ball_mass
00:40:11 v #28188 > >                 pos_vec = zero_vec ()
00:40:11 v #28189 > >                 velocity = 0.2 *^ i_hat ()
00:40:11 v #28190 > >         }
00:40:11 v #28191 > >         particle_state {
00:40:11 v #28192 > >             default_particle_state' with
00:40:11 v #28193 > >                 mass = ball_mass
00:40:11 v #28194 > >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:40:11 v #28195 > >                 velocity = zero_vec ()
00:40:11 v #28196 > >         }
00:40:11 v #28197 > >     ]]
00:40:11 v #28198 > >     |> stream.from_list
00:40:11 v #28199 > >     |> multi_particle_state
00:40:11 v #28200 > >
00:40:11 v #28201 > > inl billiard_states ~n_method k dt =
00:40:11 v #28202 > >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:40:11 v #28203 > >
00:40:11 v #28204 > > inl billiard_states_finite n_method k dt =
00:40:11 v #28205 > >     billiard_states n_method k dt
00:40:11 v #28206 > >     >> Some
00:40:11 v #28207 > >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:40:11 v #28208 > >         match mpst |> stream.try_item 0i32 with
00:40:11 v #28209 > >         | Some st =>
00:40:11 v #28210 > >             st.time <= 10
00:40:11 v #28211 > >         | None => false
00:40:11 v #28212 > >     )
00:40:11 v #28213 > >
00:40:11 v #28214 > > inl momentum (particle_state st) =
00:40:11 v #28215 > >     inl m = st.mass
00:40:11 v #28216 > >     inl v = st.velocity
00:40:11 v #28217 > >     m *^ v
00:40:11 v #28218 > >
00:40:11 v #28219 > > inl system_p (multi_particle_state sts) =
00:40:11 v #28220 > >     sts
00:40:11 v #28221 > >     |> stream.map momentum
00:40:11 v #28222 > >     |> stream.fold (^+^) (zero_vec ())
00:40:11 v #28223 > >
00:40:11 v #28224 > > inl time_ke_ec_x, time_ke_ec_y =
00:40:11 v #28225 > >     billiard_states_finite euler_cromer_mps 30 0.03
00:40:11 v #28226 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:40:11 v #28227 > >         mpst |> stream.try_item 0i32
00:40:11 v #28228 > >         |> optionm.map (fun st =>
00:40:11 v #28229 > >             st.time, system_ke (multi_particle_state mpst)
00:40:11 v #28230 > >         )
00:40:11 v #28231 > >     )
00:40:11 v #28232 > >     // |> stream.to_list
00:40:11 v #28233 > >     |> listm'.choose id
00:40:11 v #28234 > >     |> listm'.unzip
00:40:11 v #28235 > >
00:40:11 v #28236 > > inl time_ke_rk4_x, time_ke_rk4_y =
00:40:11 v #28237 > >     billiard_states_finite runge_kutta_4 30 0.03
00:40:11 v #28238 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:40:11 v #28239 > >         mpst |> stream.try_item 0i32
00:40:11 v #28240 > >         |> optionm.map (fun st =>
00:40:11 v #28241 > >             st.time, system_ke (multi_particle_state mpst)
00:40:11 v #28242 > >         )
00:40:11 v #28243 > >     )
00:40:11 v #28244 > >     // |> stream.to_list
00:40:11 v #28245 > >     |> listm'.choose id
00:40:11 v #28246 > >     |> listm'.unzip
00:40:11 v #28247 > >
00:40:11 v #28248 > > inl time_ke_ec_x = time_ke_ec_x |> listm'.box |> listm'.to_array'
00:40:11 v #28249 > > inl time_ke_ec_y = time_ke_ec_y |> listm'.box |> listm'.to_array'
00:40:11 v #28250 > >
00:40:11 v #28251 > > inl time_ke_rk4_x = time_ke_rk4_x |> listm'.box |> listm'.to_array'
00:40:11 v #28252 > > inl time_ke_rk4_y = time_ke_rk4_y |> listm'.box |> listm'.to_array'
00:40:11 v #28253 > >
00:40:11 v #28254 > > "system kinetic energy versus time",
00:40:11 v #28255 > > "time (s)",
00:40:11 v #28256 > > "system kinetic energy (j)",
00:40:11 v #28257 > > ;[[
00:40:11 v #28258 > >     "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:40:11 v #28259 > >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:40:11 v #28260 > > ]]
00:40:11 v #28261 > 00:40:10 d #1543 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ceffa832d897ffa85ad4257e1162e9703894f6d15d021ab9e6d78e4f64aa7453/main.spi
00:40:13 v #28262 > >
00:40:13 v #28263 > > ╭─[ 1.93s - return value ]─────────────────────────────────────────────────────╮
00:40:13 v #28264 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:40:13 v #28265 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:40:13 v #28266 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:40:13 v #28267 > > │ stroke="none"/>                                                              │
00:40:13 v #28268 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:40:13 v #28269 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:13 v #28270 > > │ fill="#FFFFFF">                                                              │
00:40:13 v #28271 > > │ system kinetic energy versus time                                            │
00:40:13 v #28272 > > │ </text>                                                                      │
00:40:13 v #28273 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:40:13 v #28274 > > │ y2="75"/>                                                                    │
00:40:13 v #28275 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:40:13 v #28276 > > │ y2="75"/>                                                                    │
00:40:13 v #28277 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:40:13 v #28278 > > │ y2="75"/>                                                                    │
00:40:13 v #28279 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:40:13 v #28280 > > │ y2="75"/>                                                                    │
00:40:13 v #28281 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:40:13 v #28282 > > │ y2="75"/>                                                                    │
00:40:13 v #28283 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:40:13 v #28284 > > │ x2="109" y2="75"/>                                                           │
00:40:13 v #28285 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:40:13 v #28286 > > │ x2="119" y2="75"/>                                                           │
00:40:13 v #28287 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:40:13 v #28288 > > │ x2="129" y2="75"/>                                                           │
00:40:13 v #28289 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:40:13 v #28290 > > │ x2="139" y2="75"/>                                                           │
00:40:13 v #28291 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:40:13 v #28292 > > │ x2="149" y2="75"/>                                                           │
00:40:13 v #28293 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:40:13 v #28294 > > │ x2="159" y2="75"/>                                                           │
00:40:13 v #28295 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:40:13 v #28296 > > │ x2="169" y2="75"/>                                                           │
00:40:13 v #28297 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:40:13 v #28298 > > │ x2="179" y2="75"/>                                                           │
00:40:13 v #28299 > > │ ...,104 404,104 405,104 407,104 408,104 410,104 411,104 413,104 414,104      │
00:40:13 v #28300 > > │ 416,104 417,104 419,104 420,104 422,104 423,104 425,104 426,104 428,104      │
00:40:13 v #28301 > > │ 429,104 431,104 432,104 434,104 435,104 437,104 438,104 440,104 441,104      │
00:40:13 v #28302 > > │ 443,104 444,104 446,104 447,104 449,104 450,104 452,104 453,104 455,104      │
00:40:13 v #28303 > > │ 456,104 458,104 459,104 461,104 462,104 464,104 465,104 467,104 468,104      │
00:40:13 v #28304 > > │ 470,104 471,104 473,104 474,104 476,104 477,104 479,104 480,104 482,104      │
00:40:13 v #28305 > > │ 483,104 485,104 486,104 488,104 489,104 491,104 492,104 494,104 495,104      │
00:40:13 v #28306 > > │ 497,104 498,104 500,104 501,104 503,104 504,104 506,104 507,104 509,104      │
00:40:13 v #28307 > > │ 510,104 512,104 513,104 515,104 516,104 518,104 519,104 521,104 522,104      │
00:40:13 v #28308 > > │ 524,104 525,104 527,104 528,104 530,104 531,104 533,104 534,104 536,104      │
00:40:13 v #28309 > > │ 537,104 539,104 540,104 542,104 543,104 545,104 546,104 548,104 549,104      │
00:40:13 v #28310 > > │ 551,104 552,104 554,104 555,104 557,104 558,104 560,104 561,104 563,104      │
00:40:13 v #28311 > > │ 564,104 566,104 567,104 569,104 "/>                                          │
00:40:13 v #28312 > > │ <rect x="459" y="227" width="121" height="45" opacity="1" fill="none"        │
00:40:13 v #28313 > > │ stroke="#FFFFFF"/>                                                           │
00:40:13 v #28314 > > │ <text x="499" y="237" dy="0.76em" text-anchor="start"                        │
00:40:13 v #28315 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:13 v #28316 > > │ fill="#FFFFFF">                                                              │
00:40:13 v #28317 > > │ euler-cromer                                                                 │
00:40:13 v #28318 > > │ </text>                                                                      │
00:40:13 v #28319 > > │ <text x="499" y="252" dy="0.76em" text-anchor="start"                        │
00:40:13 v #28320 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:13 v #28321 > > │ fill="#FFFFFF">                                                              │
00:40:13 v #28322 > > │ runge-kutta 4                                                                │
00:40:13 v #28323 > > │ </text>                                                                      │
00:40:13 v #28324 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:40:13 v #28325 > > │ points="469,242 489,242 "/>                                                  │
00:40:13 v #28326 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:40:13 v #28327 > > │ points="469,257 489,257 "/>                                                  │
00:40:13 v #28328 > > │ </svg>                                                                       │
00:40:13 v #28329 > > │                                                                              │
00:40:13 v #28330 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:13 v #28331 > >
00:40:13 v #28332 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:13 v #28333 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:13 v #28334 > > │ #### wave 2                                                                  │
00:40:13 v #28335 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:13 v #28336 > >
00:40:13 v #28337 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:13 v #28338 > > //// test
00:40:13 v #28339 > >
00:40:13 v #28340 > > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:40:13 v #28341 > >     inl r1 = st1.pos_vec
00:40:13 v #28342 > >     inl r2 = st2.pos_vec
00:40:13 v #28343 > >     inl r21 = r2 ^-^ r1
00:40:13 v #28344 > >     inl r21mag = magnitude r21
00:40:13 v #28345 > >     -k * (r21mag - re) *^ r21 ^/ r21mag
00:40:13 v #28346 > >
00:40:13 v #28347 > > inl fixed_linear_spring k re r1 =
00:40:13 v #28348 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:40:13 v #28349 > >     linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:40:13 v #28350 > > r1 })
00:40:13 v #28351 > >
00:40:13 v #28352 > > inl forces_string () =
00:40:13 v #28353 > >     [[
00:40:13 v #28354 > >         ExternalForce (0i32, fixed_linear_spring 5384 0 (zero_vec ()))
00:40:13 v #28355 > >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:40:13 v #28356 > >     ]] ++ (
00:40:13 v #28357 > >         listm'.init_series 0 59 1
00:40:13 v #28358 > >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:40:13 v #28359 > >     )
00:40:13 v #28360 > >
00:40:13 v #28361 > > inl string_update dt =
00:40:13 v #28362 > >     update_mps (join runge_kutta_4 dt) (join forces_string ())
00:40:13 v #28363 > >
00:40:13 v #28364 > > inl string_initial_overtone n =
00:40:13 v #28365 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:40:13 v #28366 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:40:13 v #28367 > >     listm'.init_series 0.01 0.64 0.01
00:40:13 v #28368 > >     |> listm.map (fun x =>
00:40:13 v #28369 > >         inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:40:13 v #28370 > >         particle_state {
00:40:13 v #28371 > >             default_particle_state' with
00:40:13 v #28372 > >                 mass = ball_mass
00:40:13 v #28373 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:40:13 v #28374 > >                 velocity = zero_vec ()
00:40:13 v #28375 > >         }
00:40:13 v #28376 > >     )
00:40:13 v #28377 > >     |> stream.from_list
00:40:13 v #28378 > >     |> multi_particle_state
00:40:13 v #28379 > >
00:40:13 v #28380 > > let main () =
00:40:13 v #28381 > >     inl ~frames = listm'.init_series 0 65 1f64 |> stream.from_list
00:40:13 v #28382 > >     inl ~initial_state = string_initial_overtone 3i32
00:40:13 v #28383 > >     inl frames =
00:40:13 v #28384 > >         frames
00:40:13 v #28385 > >         |> stream.map (fun n =>
00:40:13 v #28386 > >             inl (multi_particle_state sts) =
00:40:13 v #28387 > >                 stream.iterate (string_update 0.000025) initial_state |>
00:40:13 v #28388 > > stream.item n
00:40:13 v #28389 > >             inl x, y =
00:40:13 v #28390 > >                 [[ zero_vec () ]]
00:40:13 v #28391 > >                 ++ (sts |> stream.map (fun (particle_state st) => st.pos_vec) |>
00:40:13 v #28392 > > stream.to_list)
00:40:13 v #28393 > >                 ++ [[ 0.65 *^ i_hat () ]]
00:40:13 v #28394 > >                 |> listm.map (fun r => r.x, r.y)
00:40:13 v #28395 > >                 |> stream.from_list
00:40:13 v #28396 > >                 |> stream.unzip
00:40:13 v #28397 > >             inl x = x |> stream.to_list |> listm'.box |> listm'.to_array'
00:40:13 v #28398 > >             inl y = y |> stream.to_list |> listm'.box |> listm'.to_array'
00:40:13 v #28399 > >             x, y
00:40:13 v #28400 > >         )
00:40:13 v #28401 > >
00:40:13 v #28402 > >     inl plots =
00:40:13 v #28403 > >         frames
00:40:13 v #28404 > >         |> stream.indexed
00:40:13 v #28405 > >         |> stream.map (fun ((n : i32), (x, y)) =>
00:40:13 v #28406 > >             "wave",
00:40:13 v #28407 > >             "position (m)",
00:40:13 v #28408 > >             "displacement (m)",
00:40:13 v #28409 > >             ;[[
00:40:13 v #28410 > >                 ($'$"{!n}"' : string), x, y
00:40:13 v #28411 > >             ]]
00:40:13 v #28412 > >         )
00:40:13 v #28413 > >
00:40:13 v #28414 > >     plots |> stream.to_list |> listm'.box |> listm'.to_array'
00:40:13 v #28415 > 00:40:12 d #1544 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df2d611af59096748751c665fdf6a3750681db0aebac8e665f953d6137d4aa08/main.spi
00:40:19 v #28416 > >
00:40:19 v #28417 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:19 v #28418 > > ╭─[ 5.84s - diagnostics ]──────────────────────────────────────────────────────╮
00:40:19 v #28419 > > │ input.fsx (22,25)-(1084,1085) typecheck warning Incomplete pattern matches   │
00:40:19 v #28420 > > │ on this expression. For example, the value 'UH7_1 (_, _, _, _)' may indicate │
00:40:19 v #28421 > > │ a case not covered by the pattern(s).                                        │
00:40:19 v #28422 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:19 v #28423 > >
00:40:19 v #28424 > > ╭─[ 6.04s - return value ]─────────────────────────────────────────────────────╮
00:40:19 v #28425 > > │ <table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr │
00:40:19 v #28426 > > │ ><td>0</td><td><svg width="640" height="480" viewBox="0 0 640 480"           │
00:40:19 v #28427 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:40:19 v #28428 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:40:19 v #28429 > > │ stroke="none"/>                                                              │
00:40:19 v #28430 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:40:19 v #28431 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:19 v #28432 > > │ fill="#FFFFFF">                                                              │
00:40:19 v #28433 > > │ wave                                                                         │
00:40:19 v #28434 > > │ </text>                                                                      │
00:40:19 v #28435 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:40:19 v #28436 > > │ y2="75"/>                                                                    │
00:40:19 v #28437 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:40:19 v #28438 > > │ y2="75"/>                                                                    │
00:40:19 v #28439 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:40:19 v #28440 > > │ y2="75"/>                                                                    │
00:40:19 v #28441 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │
00:40:19 v #28442 > > │ y2="75"/>                                                                    │
00:40:19 v #28443 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:40:19 v #28444 > > │ y2="75"/>                                                                    │
00:40:19 v #28445 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="100" y1="424"        │
00:40:19 v #28446 > > │ x2="100" y2="75"/>                                                           │
00:40:19 v #28447 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="108" y1="424"        │
00:40:19 v #28448 > > │ x2="108" y2="75"/>                                                           │
00:40:19 v #28449 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="116" y1="424"        │
00:40:19 v #28450 > > │ x2="116" y2="75"/>                                                           │
00:40:19 v #28451 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="123" y1="424"        │
00:40:19 v #28452 > > │ x2="123" y2="75"/>                                                           │
00:40:19 v #28453 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="131" y1="424"        │
00:40:19 v #28454 > > │ x2="131" y2="75"/>                                                           │
00:40:19 v #28455 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:40:19 v #28456 > > │ x2="139" y2="75"/>                                                           │
00:40:19 v #28457 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="146" y1="424"        │
00:40:19 v #28458 > > │ x2="146" y2="75"/>                                                           │
00:40:19 v #28459 > > │ <line opacity="1" stroke="#...28 590,128 "/>                                 │
00:40:19 v #28460 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:40:19 v #28461 > > │ points="69,363 77,322 85,283 92,246 100,211 107,179 115,151 122,127 130,108  │
00:40:19 v #28462 > > │ 138,95 145,87 153,85 160,89 168,99 175,114 183,134 190,159 198,188 205,220   │
00:40:19 v #28463 > > │ 212,253 218,284 223,311 226,329 227,337 226,337 224,333 223,334 223,344      │
00:40:19 v #28464 > > │ 224,357 225,367 224,370 223,374 224,383 224,393 224,397 224,400 224,406      │
00:40:19 v #28465 > > │ 224,411 224,412 224,413 224,415 224,413 224,411 224,409 224,405 224,400      │
00:40:19 v #28466 > > │ 224,395 224,388 224,382 224,375 224,367 224,360 224,353 224,346 224,339      │
00:40:19 v #28467 > > │ 224,332 224,327 224,322 224,318 224,314 224,312 224,311 539,239 546,279      │
00:40:19 v #28468 > > │ 569,403 561,363 "/>                                                          │
00:40:19 v #28469 > > │ <rect x="519" y="235" width="61" height="30" opacity="1" fill="none"         │
00:40:19 v #28470 > > │ stroke="#FFFFFF"/>                                                           │
00:40:19 v #28471 > > │ <text x="559" y="245" dy="0.76em" text-anchor="start"                        │
00:40:19 v #28472 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:40:19 v #28473 > > │ fill="#FFFFFF">                                                              │
00:40:19 v #28474 > > │ 65                                                                           │
00:40:19 v #28475 > > │ </text>                                                                      │
00:40:19 v #28476 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:40:19 v #28477 > > │ points="529,250 549,250 "/>                                                  │
00:40:19 v #28478 > > │ </svg>                                                                       │
00:40:19 v #28479 > > │ </td></tr></tbody></table><style>                                            │
00:40:19 v #28480 > > │ .dni-code-hint {                                                             │
00:40:19 v #28481 > > │     font-style: italic;                                                      │
00:40:19 v #28482 > > │     overflow: hidden;                                                        │
00:40:19 v #28483 > > │     white-space: nowrap;                                                     │
00:40:19 v #28484 > > │ }                                                                            │
00:40:19 v #28485 > > │ .dni-treeview {                                                              │
00:40:19 v #28486 > > │     white-space: nowrap;                                                     │
00:40:19 v #28487 > > │ }                                                                            │
00:40:19 v #28488 > > │ .dni-treeview td {                                                           │
00:40:19 v #28489 > > │     vertical-align: top;                                                     │
00:40:19 v #28490 > > │     text-align: start;                                                       │
00:40:19 v #28491 > > │ }                                                                            │
00:40:19 v #28492 > > │ details.dni-treeview {                                                       │
00:40:19 v #28493 > > │     padding-left: 1em;                                                       │
00:40:19 v #28494 > > │ }                                                                            │
00:40:19 v #28495 > > │ table td {                                                                   │
00:40:19 v #28496 > > │     text-align: start;                                                       │
00:40:19 v #28497 > > │ }                                                                            │
00:40:19 v #28498 > > │ table tr {                                                                   │
00:40:19 v #28499 > > │     vertical-align: top;                                                     │
00:40:19 v #28500 > > │     margin: 0em 0px;                                                         │
00:40:19 v #28501 > > │ }                                                                            │
00:40:19 v #28502 > > │ table tr td pre                                                              │
00:40:19 v #28503 > > │ {                                                                            │
00:40:19 v #28504 > > │     vertical-align: top !important;                                          │
00:40:19 v #28505 > > │     margin: 0em 0px !important;                                              │
00:40:19 v #28506 > > │ }                                                                            │
00:40:19 v #28507 > > │ table th {                                                                   │
00:40:19 v #28508 > > │     text-align: start;                                                       │
00:40:19 v #28509 > > │ }                                                                            │
00:40:19 v #28510 > > │ </style>                                                                     │
00:40:19 v #28511 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:19 v #28512 > >
00:40:19 v #28513 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:19 v #28514 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:19 v #28515 > > │ ## end                                                                       │
00:40:19 v #28516 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:19 v #28517 > 00:01:05 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 157679 }
00:40:19 v #28518 > 00:01:05 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:40:21 v #28519 > 00:01:07 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/physics.dib.ipynb to html
00:40:21 v #28520 > 00:01:07 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:40:21 v #28521 > 00:01:07 v #7 !   validate(nb)
00:40:21 v #28522 > 00:01:07 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:40:21 v #28523 > 00:01:07 v #9 !   return _pygments_highlight(
00:40:26 v #28524 > 00:01:11 v #10 ! [NbConvertApp] Writing 2508212 bytes to c:\home\git\polyglot\lib\spiral\physics.dib.html
00:40:26 v #28525 > 00:01:12 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 857 }
00:40:26 v #28526 > 00:01:12 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 857 }
00:40:26 v #28527 > 00:01:12 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/physics.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/physics.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:40:26 v #28528 > 00:01:12 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:40:26 v #28529 > 00:01:12 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:40:26 v #28530 > 00:01:12 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 158595 }
00:40:26 d #28531 runtime.execute_with_options_async / { exit_code = 0; output_length = 167009 }
00:40:26 d #34 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path physics.dib --retries 3
00:40:26 d #28532 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path seq.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path seq.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:40:26 v #28533 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "seq.dib", "--retries", "3"])) }
00:40:26 v #28534 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/seq.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/seq.dib" --output-path "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:40:29 v #28535 > >
00:40:29 v #28536 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:29 v #28537 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:29 v #28538 > > │ # seq                                                                        │
00:40:29 v #28539 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:32 v #28540 > >
00:40:32 v #28541 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:32 v #28542 > > //// test
00:40:32 v #28543 > >
00:40:32 v #28544 > > open testing
00:40:33 v #28545 > 00:40:32 d #1545 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:40:33 v #28546 > >
00:40:33 v #28547 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:33 v #28548 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:33 v #28549 > > │ ## seq                                                                       │
00:40:33 v #28550 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:33 v #28551 > >
00:40:33 v #28552 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:33 v #28553 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:33 v #28554 > > │ ### seq                                                                      │
00:40:33 v #28555 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:33 v #28556 > >
00:40:33 v #28557 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:33 v #28558 > > type seq dim el = dim -> option el
00:40:34 v #28559 > 00:40:33 d #1546 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/beeeacbbda68c0d28299be16bc318aca9becbca08240435f010caa31737f326e/main.spi
00:40:34 v #28560 > >
00:40:34 v #28561 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:34 v #28562 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:34 v #28563 > > │ ### try_item                                                                 │
00:40:34 v #28564 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:34 v #28565 > >
00:40:34 v #28566 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:34 v #28567 > > inl try_item n s =
00:40:34 v #28568 > >     n |> s
00:40:34 v #28569 > 00:40:33 d #1547 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73eee39918fd0a766cbf47ea2a1ef844f06d31a60003a58185729573bfd17657/main.spi
00:40:34 v #28570 > >
00:40:34 v #28571 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:34 v #28572 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:34 v #28573 > > │ ### from_list                                                                │
00:40:34 v #28574 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:34 v #28575 > >
00:40:34 v #28576 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:34 v #28577 > > inl from_list list =
00:40:34 v #28578 > >     fun n =>
00:40:34 v #28579 > >         list
00:40:34 v #28580 > >         |> listm'.try_item n
00:40:34 v #28581 > 00:40:34 d #1548 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1eb0d11e9ccb767e5843926eee01478e751a1be3dfb4b14b8f6c38c46adf533f/main.spi
00:40:35 v #28582 > >
00:40:35 v #28583 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:35 v #28584 > > //// test
00:40:35 v #28585 > >
00:40:35 v #28586 > > listm.init 10i32 print_and_return
00:40:35 v #28587 > > |> from_list
00:40:35 v #28588 > > |> try_item 5i32
00:40:35 v #28589 > > |> _assert_eq (Some 5i32)
00:40:35 v #28590 > 00:40:34 d #1549 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b76a0f4d8c04008a0fdc87e9fb746a61db59db2bf488d90bc01ae3db604a76e/main.spi
00:40:36 v #28591 > >
00:40:36 v #28592 > > ╭─[ 1.46s - stdout ]───────────────────────────────────────────────────────────╮
00:40:36 v #28593 > > │ print_and_return / x: 0                                                      │
00:40:36 v #28594 > > │ print_and_return / x: 1                                                      │
00:40:36 v #28595 > > │ print_and_return / x: 2                                                      │
00:40:36 v #28596 > > │ print_and_return / x: 3                                                      │
00:40:36 v #28597 > > │ print_and_return / x: 4                                                      │
00:40:36 v #28598 > > │ print_and_return / x: 5                                                      │
00:40:36 v #28599 > > │ print_and_return / x: 6                                                      │
00:40:36 v #28600 > > │ print_and_return / x: 7                                                      │
00:40:36 v #28601 > > │ print_and_return / x: 8                                                      │
00:40:36 v #28602 > > │ print_and_return / x: 9                                                      │
00:40:36 v #28603 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:40:36 v #28604 > > │                                                                              │
00:40:36 v #28605 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:36 v #28606 > >
00:40:36 v #28607 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:36 v #28608 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:36 v #28609 > > │ ### map                                                                      │
00:40:36 v #28610 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:36 v #28611 > >
00:40:36 v #28612 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:36 v #28613 > > inl map fn s =
00:40:36 v #28614 > >     fun n =>
00:40:36 v #28615 > >         n
00:40:36 v #28616 > >         |> s
00:40:36 v #28617 > >         |> optionm.map fn
00:40:36 v #28618 > 00:40:35 d #1550 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab367246f905193b5d6ddf9e8f25568a44514ad41b398d958967d155d43f284f/main.spi
00:40:36 v #28619 > >
00:40:36 v #28620 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:36 v #28621 > > //// test
00:40:36 v #28622 > >
00:40:36 v #28623 > > listm.init 10i32 id
00:40:36 v #28624 > > |> from_list
00:40:36 v #28625 > > |> map ((*) 2)
00:40:36 v #28626 > > |> try_item 5i32
00:40:36 v #28627 > > |> _assert_eq (Some 10i32)
00:40:37 v #28628 > 00:40:36 d #1551 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/89d1195aa22416b87b94581829bf99df2ee18a19094dda33ebac0710771b184b/main.spi
00:40:37 v #28629 > >
00:40:37 v #28630 > > ╭─[ 438.89ms - stdout ]────────────────────────────────────────────────────────╮
00:40:37 v #28631 > > │ __assert_eq / actual: US0_0 10 / expected: US0_0 10                          │
00:40:37 v #28632 > > │                                                                              │
00:40:37 v #28633 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:37 v #28634 > >
00:40:37 v #28635 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:37 v #28636 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:37 v #28637 > > │ ### mapi                                                                     │
00:40:37 v #28638 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:37 v #28639 > >
00:40:37 v #28640 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:37 v #28641 > > inl mapi fn s =
00:40:37 v #28642 > >     fun n =>
00:40:37 v #28643 > >         n
00:40:37 v #28644 > >         |> s
00:40:37 v #28645 > >         |> optionm.map (fn n)
00:40:37 v #28646 > 00:40:36 d #1552 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/963f4192eefe0a3b56e2c1e9860199650682599ed1e14eeeb9ebf1d1b83b269c/main.spi
00:40:37 v #28647 > >
00:40:37 v #28648 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:37 v #28649 > > //// test
00:40:37 v #28650 > >
00:40:37 v #28651 > > listm.init 10i32 print_and_return
00:40:37 v #28652 > > |> from_list
00:40:37 v #28653 > > |> mapi fun i x => i + x
00:40:37 v #28654 > > |> try_item 5i32
00:40:37 v #28655 > > |> _assert_eq (Some 10i32)
00:40:38 v #28656 > 00:40:37 d #1553 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ca333484205f89f15e8d5e3d8ef8d49a16e9aff1bf59383ba3549dadc5c70f4d/main.spi
00:40:38 v #28657 > >
00:40:38 v #28658 > > ╭─[ 471.40ms - stdout ]────────────────────────────────────────────────────────╮
00:40:38 v #28659 > > │ print_and_return / x: 0                                                      │
00:40:38 v #28660 > > │ print_and_return / x: 1                                                      │
00:40:38 v #28661 > > │ print_and_return / x: 2                                                      │
00:40:38 v #28662 > > │ print_and_return / x: 3                                                      │
00:40:38 v #28663 > > │ print_and_return / x: 4                                                      │
00:40:38 v #28664 > > │ print_and_return / x: 5                                                      │
00:40:38 v #28665 > > │ print_and_return / x: 6                                                      │
00:40:38 v #28666 > > │ print_and_return / x: 7                                                      │
00:40:38 v #28667 > > │ print_and_return / x: 8                                                      │
00:40:38 v #28668 > > │ print_and_return / x: 9                                                      │
00:40:38 v #28669 > > │ __assert_eq / actual: US0_0 10 / expected: US0_0 10                          │
00:40:38 v #28670 > > │                                                                              │
00:40:38 v #28671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:38 v #28672 > >
00:40:38 v #28673 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:38 v #28674 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:38 v #28675 > > │ ### choose                                                                   │
00:40:38 v #28676 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:38 v #28677 > >
00:40:38 v #28678 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:38 v #28679 > > inl choose forall dim {number} t u. (fn : t -> option u) (s : seq dim t) : seq
00:40:38 v #28680 > > dim u =
00:40:38 v #28681 > >     fun n =>
00:40:38 v #28682 > >         inl rec body fn s i i' =
00:40:38 v #28683 > >             match i |> s with
00:40:38 v #28684 > >             | None => None
00:40:38 v #28685 > >             | Some x =>
00:40:38 v #28686 > >                 match x |> fn with
00:40:38 v #28687 > >                 | Some x when n = i' => Some x
00:40:38 v #28688 > >                 | Some _ => loop (i + 1) (i' + 1)
00:40:38 v #28689 > >                 | _ => loop (i + 1) i'
00:40:38 v #28690 > >         and inl loop i i' =
00:40:38 v #28691 > >             if n |> var_is |> not
00:40:38 v #28692 > >             then body fn s i i'
00:40:38 v #28693 > >             else
00:40:38 v #28694 > >                 inl fn = join fn
00:40:38 v #28695 > >                 inl s = join s
00:40:38 v #28696 > >                 join body fn s i i'
00:40:38 v #28697 > >         loop 0 0
00:40:38 v #28698 > 00:40:37 d #1554 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d7e7dded1e1996fd4f96cc5b660bca6551991f22db93484939b5e60b1c23826/main.spi
00:40:38 v #28699 > >
00:40:38 v #28700 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:38 v #28701 > > //// test
00:40:38 v #28702 > >
00:40:38 v #28703 > > listm.init 10i32 print_and_return
00:40:38 v #28704 > > |> from_list
00:40:38 v #28705 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:40:38 v #28706 > > |> try_item 1i32
00:40:38 v #28707 > > |> _assert_eq (Some 2i32)
00:40:38 v #28708 > 00:40:38 d #1555 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/574648207be8aa14c329a31664f88924afa13ab24ac7861275afd72fd27ebba5/main.spi
00:40:39 v #28709 > >
00:40:39 v #28710 > > ╭─[ 488.31ms - stdout ]────────────────────────────────────────────────────────╮
00:40:39 v #28711 > > │ print_and_return / x: 0                                                      │
00:40:39 v #28712 > > │ print_and_return / x: 1                                                      │
00:40:39 v #28713 > > │ print_and_return / x: 2                                                      │
00:40:39 v #28714 > > │ print_and_return / x: 3                                                      │
00:40:39 v #28715 > > │ print_and_return / x: 4                                                      │
00:40:39 v #28716 > > │ print_and_return / x: 5                                                      │
00:40:39 v #28717 > > │ print_and_return / x: 6                                                      │
00:40:39 v #28718 > > │ print_and_return / x: 7                                                      │
00:40:39 v #28719 > > │ print_and_return / x: 8                                                      │
00:40:39 v #28720 > > │ print_and_return / x: 9                                                      │
00:40:39 v #28721 > > │ __assert_eq / actual: US0_0 2 / expected: US0_0 2                            │
00:40:39 v #28722 > > │                                                                              │
00:40:39 v #28723 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:39 v #28724 > >
00:40:39 v #28725 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:39 v #28726 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:39 v #28727 > > │ ### indexed                                                                  │
00:40:39 v #28728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:39 v #28729 > >
00:40:39 v #28730 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:39 v #28731 > > inl indexed s =
00:40:39 v #28732 > >     s
00:40:39 v #28733 > >     |> mapi fun i x =>
00:40:39 v #28734 > >         i, x
00:40:39 v #28735 > 00:40:38 d #1556 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23addf890739dd19c99cf240f1fe7895c4d2aa3e4e56c3d797881187ebba9373/main.spi
00:40:39 v #28736 > >
00:40:39 v #28737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:39 v #28738 > > //// test
00:40:39 v #28739 > >
00:40:39 v #28740 > > listm.init 10i32 ((*) 2)
00:40:39 v #28741 > > |> from_list
00:40:39 v #28742 > > |> indexed
00:40:39 v #28743 > > |> try_item 5i32
00:40:39 v #28744 > > |> _assert_eq (Some (5i32, 10i32))
00:40:39 v #28745 > 00:40:38 d #1557 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b01c1f13c74d247ff6417b393f373a00b27a86be9f9d6968647c958376312673/main.spi
00:40:39 v #28746 > >
00:40:39 v #28747 > > ╭─[ 466.77ms - stdout ]────────────────────────────────────────────────────────╮
00:40:39 v #28748 > > │ __assert_eq / actual: US0_0 (5, 10) / expected: US0_0 (5, 10)                │
00:40:39 v #28749 > > │                                                                              │
00:40:39 v #28750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:39 v #28751 > >
00:40:39 v #28752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:39 v #28753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:39 v #28754 > > │ ### zip                                                                      │
00:40:39 v #28755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:39 v #28756 > >
00:40:39 v #28757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:39 v #28758 > > inl zip n seq1 seq2 =
00:40:39 v #28759 > >     seq1 n, seq2 n
00:40:40 v #28760 > 00:40:39 d #1558 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b9cd88eff027313df3abcc9e28bbd1b662caa77806df42b33915d070eddc4eec/main.spi
00:40:40 v #28761 > >
00:40:40 v #28762 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:40 v #28763 > > //// test
00:40:40 v #28764 > >
00:40:40 v #28765 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:40:40 v #28766 > > ||> zip 5i32
00:40:40 v #28767 > > |> _assert_eq (Some 5, Some 10)
00:40:40 v #28768 > 00:40:39 d #1559 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/71e14515e7207b44b73f3f669390dfe1d943c3c1b7f6016eadd800bdd7106ec4/main.spi
00:40:40 v #28769 > >
00:40:40 v #28770 > > ╭─[ 510.68ms - stdout ]────────────────────────────────────────────────────────╮
00:40:40 v #28771 > > │ __assert_eq / actual: struct (US0_0 5, US0_0 10) / expected: struct (US0_0   │
00:40:40 v #28772 > > │ 5, US0_0 10)                                                                 │
00:40:40 v #28773 > > │                                                                              │
00:40:40 v #28774 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:40 v #28775 > >
00:40:40 v #28776 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:40 v #28777 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:40 v #28778 > > │ ### zip_with                                                                 │
00:40:40 v #28779 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:40 v #28780 > >
00:40:40 v #28781 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:40 v #28782 > > inl zip_with fn seq1 seq2 =
00:40:40 v #28783 > >     fun n =>
00:40:40 v #28784 > >         fn (seq1 n) (seq2 n)
00:40:41 v #28785 > 00:40:40 d #1560 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55e72bb2cc5c233364a0dcb9d7bed8cea52722ceaae665a7ea3f40ff64e4caab/main.spi
00:40:41 v #28786 > >
00:40:41 v #28787 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:41 v #28788 > > //// test
00:40:41 v #28789 > >
00:40:41 v #28790 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:40:41 v #28791 > > ||> zip_with (optionm'.choose (+))
00:40:41 v #28792 > > |> try_item 2i32
00:40:41 v #28793 > > |> _assert_eq (Some 6)
00:40:41 v #28794 > 00:40:40 d #1561 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7199ccab5602bf3757bfca7bea5cd047a8a3b3a3a022466791b49b7a7f6f3b0f/main.spi
00:40:41 v #28795 > >
00:40:41 v #28796 > > ╭─[ 482.42ms - stdout ]────────────────────────────────────────────────────────╮
00:40:41 v #28797 > > │ __assert_eq / actual: US0_0 6 / expected: US0_0 6                            │
00:40:41 v #28798 > > │                                                                              │
00:40:41 v #28799 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:41 v #28800 > >
00:40:41 v #28801 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:41 v #28802 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:41 v #28803 > > │ ### fold                                                                     │
00:40:41 v #28804 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:41 v #28805 > >
00:40:41 v #28806 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:41 v #28807 > > inl fold fn init seq =
00:40:41 v #28808 > >     inl rec loop acc n =
00:40:41 v #28809 > >         match seq n with
00:40:41 v #28810 > >         | Some x => loop (fn acc x) (n + 1)
00:40:41 v #28811 > >         | None => acc
00:40:41 v #28812 > >     loop init 0
00:40:41 v #28813 > >
00:40:41 v #28814 > > inl fold_ fn init seq =
00:40:41 v #28815 > >     let rec loop acc n =
00:40:41 v #28816 > >         match seq n with
00:40:41 v #28817 > >         | Some x => loop (fn acc x) (n + 1)
00:40:41 v #28818 > >         | None => acc
00:40:41 v #28819 > >     loop init 0
00:40:41 v #28820 > 00:40:41 d #1562 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/505e030c222de962a45929db53c270ed90e3e35e11cf95881ddbb194f7919f25/main.spi
00:40:42 v #28821 > >
00:40:42 v #28822 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:42 v #28823 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:42 v #28824 > > │ ### sum                                                                      │
00:40:42 v #28825 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:42 v #28826 > >
00:40:42 v #28827 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:42 v #28828 > > inl sum seq =
00:40:42 v #28829 > >     seq |> fold (+) 0
00:40:42 v #28830 > >
00:40:42 v #28831 > > inl sum_ seq =
00:40:42 v #28832 > >     seq |> fold_ (+) 0
00:40:42 v #28833 > 00:40:41 d #1563 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32acdcef86a5bd1be6d571060a7ddbe79175d30f0e26698ea9054ccccd2e4ce6/main.spi
00:40:42 v #28834 > >
00:40:42 v #28835 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:42 v #28836 > > //// test
00:40:42 v #28837 > >
00:40:42 v #28838 > > listm.init 10i32 id
00:40:42 v #28839 > > |> from_list
00:40:42 v #28840 > > |> fun f (n : i32) => f n
00:40:42 v #28841 > > |> sum
00:40:42 v #28842 > > |> _assert_eq 45
00:40:42 v #28843 > 00:40:41 d #1564 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d81c93a505bfdf310fe9964c717b72a1c3d911ce73cc1b9a9d431fe2ba954f7/main.spi
00:40:43 v #28844 > >
00:40:43 v #28845 > > ╭─[ 468.74ms - stdout ]────────────────────────────────────────────────────────╮
00:40:43 v #28846 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:40:43 v #28847 > > │                                                                              │
00:40:43 v #28848 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:43 v #28849 > >
00:40:43 v #28850 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:43 v #28851 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:43 v #28852 > > │ ### to_list                                                                  │
00:40:43 v #28853 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:43 v #28854 > >
00:40:43 v #28855 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:43 v #28856 > > inl to_list seq =
00:40:43 v #28857 > >     seq
00:40:43 v #28858 > >     |> fold (fun acc x => x :: acc) [[]]
00:40:43 v #28859 > >     |> listm.rev
00:40:43 v #28860 > >
00:40:43 v #28861 > > inl to_list_ seq =
00:40:43 v #28862 > >     seq
00:40:43 v #28863 > >     |> fold_ (fun acc x => x :: acc) [[]]
00:40:43 v #28864 > >     |> listm.rev
00:40:43 v #28865 > 00:40:42 d #1565 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ff4f5f61f9b8ffcc37abb7ab0c0ba2e816961c76132962daeeba238a7bad483/main.spi
00:40:43 v #28866 > >
00:40:43 v #28867 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:43 v #28868 > > //// test
00:40:43 v #28869 > >
00:40:43 v #28870 > > listm.init 10i32 id
00:40:43 v #28871 > > |> from_list
00:40:43 v #28872 > > |> fun f (n : i32) => f n
00:40:43 v #28873 > > |> to_list
00:40:43 v #28874 > > |> _assert_eq (listm.init 10i32 id)
00:40:43 v #28875 > 00:40:42 d #1566 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7a16dff67ccba407c7e2f61bd91851e7de4e3a32d6adc75c1eedab53647c0c6c/main.spi
00:40:43 v #28876 > >
00:40:43 v #28877 > > ╭─[ 516.33ms - stdout ]────────────────────────────────────────────────────────╮
00:40:43 v #28878 > > │ __assert_eq / actual: UH0_1                                                  │
00:40:43 v #28879 > > │   (0,                                                                        │
00:40:43 v #28880 > > │    UH0_1                                                                     │
00:40:43 v #28881 > > │      (1,                                                                     │
00:40:43 v #28882 > > │       UH0_1                                                                  │
00:40:43 v #28883 > > │         (2,                                                                  │
00:40:43 v #28884 > > │          UH0_1                                                               │
00:40:43 v #28885 > > │            (3,                                                               │
00:40:43 v #28886 > > │             UH0_1                                                            │
00:40:43 v #28887 > > │               (4, UH0_1 (5, UH0_1 (6, UH0_1 (7, UH0_1 (8, UH0_1 (9,          │
00:40:43 v #28888 > > │ UH0_0)))))))))) / expected: UH0_1                                            │
00:40:43 v #28889 > > │   (0,                                                                        │
00:40:43 v #28890 > > │    UH0_1                                                                     │
00:40:43 v #28891 > > │      (1,                                                                     │
00:40:43 v #28892 > > │       UH0_1                                                                  │
00:40:43 v #28893 > > │         (2,                                                                  │
00:40:43 v #28894 > > │          UH0_1                                                               │
00:40:43 v #28895 > > │            (3,                                                               │
00:40:43 v #28896 > > │             UH0_1                                                            │
00:40:43 v #28897 > > │               (4, UH0_1 (5, UH0_1 (6, UH0_1 (7, UH0_1 (8, UH0_1 (9,          │
00:40:43 v #28898 > > │ UH0_0))))))))))                                                              │
00:40:43 v #28899 > > │                                                                              │
00:40:43 v #28900 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:43 v #28901 > >
00:40:43 v #28902 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:43 v #28903 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:43 v #28904 > > │ ### from_array                                                               │
00:40:43 v #28905 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:43 v #28906 > >
00:40:43 v #28907 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:43 v #28908 > > inl from_array forall dim {number; int} el. (array : a dim el) : seq dim el =
00:40:43 v #28909 > >     fun n =>
00:40:43 v #28910 > >         if n >= length array
00:40:43 v #28911 > >         then None
00:40:43 v #28912 > >         else index array n |> Some
00:40:44 v #28913 > 00:40:43 d #1567 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2aad33cfcaf8603dbd056aaa4fe8728128fa325568270ac826f4bfecb1d64791/main.spi
00:40:44 v #28914 > >
00:40:44 v #28915 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:44 v #28916 > > //// test
00:40:44 v #28917 > >
00:40:44 v #28918 > > a ;[[ 1; 2; 3 ]]
00:40:44 v #28919 > > |> from_array
00:40:44 v #28920 > > |> try_item 1i32
00:40:44 v #28921 > > |> _assert_eq (Some 2i32)
00:40:44 v #28922 > 00:40:43 d #1568 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d72170ff48b9a1ad80f25d954a42eabd98b2da8abf752824367b25edb6db1649/main.spi
00:40:44 v #28923 > >
00:40:44 v #28924 > > ╭─[ 581.11ms - stdout ]────────────────────────────────────────────────────────╮
00:40:44 v #28925 > > │ __assert_eq / actual: US0_0 2 / expected: US0_0 2                            │
00:40:44 v #28926 > > │                                                                              │
00:40:44 v #28927 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:44 v #28928 > >
00:40:44 v #28929 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:44 v #28930 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:44 v #28931 > > │ ### to_array                                                                 │
00:40:44 v #28932 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:44 v #28933 > >
00:40:44 v #28934 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:44 v #28935 > > inl to_array seq =
00:40:44 v #28936 > >     inl ar = a ;[[]] |> mut
00:40:44 v #28937 > >     ((), seq)
00:40:44 v #28938 > >     ||> fold fun _ x =>
00:40:44 v #28939 > >         ar <- *ar ++ a ;[[x]]
00:40:44 v #28940 > >     *ar
00:40:44 v #28941 > >
00:40:44 v #28942 > > inl to_array_ seq =
00:40:44 v #28943 > >     inl ar = a ;[[]] |> mut
00:40:44 v #28944 > >     ((), seq)
00:40:44 v #28945 > >     ||> fold_ fun _ x =>
00:40:44 v #28946 > >         ar <- *ar ++ a ;[[x]]
00:40:44 v #28947 > >     *ar
00:40:45 v #28948 > 00:40:44 d #1569 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05660b5c8669c20c5beaae08903818f4ee36dda494a6c39ba4e2f25bc17a4814/main.spi
00:40:45 v #28949 > >
00:40:45 v #28950 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:45 v #28951 > > //// test
00:40:45 v #28952 > >
00:40:45 v #28953 > > listm.init 10i32 id
00:40:45 v #28954 > > |> from_list
00:40:45 v #28955 > > |> fun (x : i32 -> _) => x
00:40:45 v #28956 > > |> to_array
00:40:45 v #28957 > > |> _assert_eq (a ;[[ 0; 1; 2; 3; 4; 5; 6; 7; 8; 9 ]] : _ i32 _)
00:40:45 v #28958 > 00:40:44 d #1570 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5662ce632e41d68b0a91e5b2bd037c745c4607d833001bd1a00e38de1023021c/main.spi
00:40:46 v #28959 > >
00:40:46 v #28960 > > ╭─[ 673.62ms - stdout ]────────────────────────────────────────────────────────╮
00:40:46 v #28961 > > │ __assert_eq / actual: [|0; 1; 2; 3; 4; 5; 6; 7; 8; 9|] / expected: [|0; 1;   │
00:40:46 v #28962 > > │ 2; 3; 4; 5; 6; 7; 8; 9|]                                                     │
00:40:46 v #28963 > > │                                                                              │
00:40:46 v #28964 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:46 v #28965 > >
00:40:46 v #28966 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:46 v #28967 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:46 v #28968 > > │ ### take_while                                                               │
00:40:46 v #28969 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:46 v #28970 > >
00:40:46 v #28971 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:46 v #28972 > > inl take_while cond seq =
00:40:46 v #28973 > >     inl rec loop acc i =
00:40:46 v #28974 > >         match seq i with
00:40:46 v #28975 > >         | Some st when cond st i => loop (st :: acc) (i + 1)
00:40:46 v #28976 > >         | _ => acc |> listm.rev
00:40:46 v #28977 > >     loop [[]] 0
00:40:46 v #28978 > 00:40:45 d #1571 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35a79e5ebc2ffdb9642358ab52864b02cd086e965f0d08065957fa8069909842/main.spi
00:40:46 v #28979 > >
00:40:46 v #28980 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:46 v #28981 > > //// test
00:40:46 v #28982 > >
00:40:46 v #28983 > > listm.init 10i32 id
00:40:46 v #28984 > > |> from_list
00:40:46 v #28985 > > |> take_while (fun n (_ : i32) => n < 5)
00:40:46 v #28986 > > |> listm'.sum
00:40:46 v #28987 > > |> _assert_eq 10
00:40:46 v #28988 > 00:40:45 d #1572 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e759ad02a9842a7f424faf23f3a8777a9374faf321a59d172d440f9bec6c027/main.spi
00:40:46 v #28989 > >
00:40:46 v #28990 > > ╭─[ 489.11ms - stdout ]────────────────────────────────────────────────────────╮
00:40:46 v #28991 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:40:46 v #28992 > > │                                                                              │
00:40:46 v #28993 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:46 v #28994 > >
00:40:46 v #28995 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:46 v #28996 > > //// test
00:40:46 v #28997 > >
00:40:46 v #28998 > > stream.new_finite_stream print_and_return 10i32
00:40:46 v #28999 > > |> flip stream.try_item
00:40:46 v #29000 > > |> take_while (fun n (_ : i32) => n < 5)
00:40:46 v #29001 > > |> listm'.sum
00:40:46 v #29002 > > |> _assert_eq 10
00:40:47 v #29003 > 00:40:46 d #1573 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b79c427b31023f6d0062b45f5fefd975b02ef634db4f7a09b6b9e62a74fdfa1d/main.spi
00:40:47 v #29004 > >
00:40:47 v #29005 > > ╭─[ 436.38ms - stdout ]────────────────────────────────────────────────────────╮
00:40:47 v #29006 > > │ print_and_return / x: 0                                                      │
00:40:47 v #29007 > > │ print_and_return / x: 1                                                      │
00:40:47 v #29008 > > │ print_and_return / x: 1                                                      │
00:40:47 v #29009 > > │ print_and_return / x: 2                                                      │
00:40:47 v #29010 > > │ print_and_return / x: 1                                                      │
00:40:47 v #29011 > > │ print_and_return / x: 2                                                      │
00:40:47 v #29012 > > │ print_and_return / x: 3                                                      │
00:40:47 v #29013 > > │ print_and_return / x: 1                                                      │
00:40:47 v #29014 > > │ print_and_return / x: 2                                                      │
00:40:47 v #29015 > > │ print_and_return / x: 3                                                      │
00:40:47 v #29016 > > │ print_and_return / x: 4                                                      │
00:40:47 v #29017 > > │ print_and_return / x: 1                                                      │
00:40:47 v #29018 > > │ print_and_return / x: 2                                                      │
00:40:47 v #29019 > > │ print_and_return / x: 3                                                      │
00:40:47 v #29020 > > │ print_and_return / x: 4                                                      │
00:40:47 v #29021 > > │ print_and_return / x: 5                                                      │
00:40:47 v #29022 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:40:47 v #29023 > > │                                                                              │
00:40:47 v #29024 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:47 v #29025 > >
00:40:47 v #29026 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:47 v #29027 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:47 v #29028 > > │ ### take_while_                                                              │
00:40:47 v #29029 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:47 v #29030 > >
00:40:47 v #29031 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:47 v #29032 > > inl take_while_ cond seq =
00:40:47 v #29033 > >     let rec loop acc i =
00:40:47 v #29034 > >         match seq i with
00:40:47 v #29035 > >         | Some st when cond st i => loop (st :: acc) (i + 1)
00:40:47 v #29036 > >         | _ => acc |> listm.rev
00:40:47 v #29037 > >     loop [[]] 0
00:40:47 v #29038 > 00:40:46 d #1574 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e45b35aff18c40d59a41845d59f4af1af814d1eacfc7e4ab93e8cc0dc80fa414/main.spi
00:40:47 v #29039 > >
00:40:47 v #29040 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:47 v #29041 > > //// test
00:40:47 v #29042 > >
00:40:47 v #29043 > > stream.new_infinite_stream_ print_and_return
00:40:47 v #29044 > > |> flip stream.try_item
00:40:47 v #29045 > > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:40:47 v #29046 > > |> listm'.sum
00:40:47 v #29047 > > |> _assert_eq 10
00:40:47 v #29048 > 00:40:47 d #1575 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28e49414807381353855a963c6a1455d4674b29406e797c88d3c253f0f469cb6/main.spi
00:40:48 v #29049 > >
00:40:48 v #29050 > > ╭─[ 547.19ms - stdout ]────────────────────────────────────────────────────────╮
00:40:48 v #29051 > > │ print_and_return / x: 0                                                      │
00:40:48 v #29052 > > │ print_and_return / x: 1                                                      │
00:40:48 v #29053 > > │ print_and_return / x: 1                                                      │
00:40:48 v #29054 > > │ print_and_return / x: 2                                                      │
00:40:48 v #29055 > > │ print_and_return / x: 1                                                      │
00:40:48 v #29056 > > │ print_and_return / x: 2                                                      │
00:40:48 v #29057 > > │ print_and_return / x: 3                                                      │
00:40:48 v #29058 > > │ print_and_return / x: 1                                                      │
00:40:48 v #29059 > > │ print_and_return / x: 2                                                      │
00:40:48 v #29060 > > │ print_and_return / x: 3                                                      │
00:40:48 v #29061 > > │ print_and_return / x: 4                                                      │
00:40:48 v #29062 > > │ print_and_return / x: 1                                                      │
00:40:48 v #29063 > > │ print_and_return / x: 2                                                      │
00:40:48 v #29064 > > │ print_and_return / x: 3                                                      │
00:40:48 v #29065 > > │ print_and_return / x: 4                                                      │
00:40:48 v #29066 > > │ print_and_return / x: 5                                                      │
00:40:48 v #29067 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:40:48 v #29068 > > │                                                                              │
00:40:48 v #29069 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:48 v #29070 > >
00:40:48 v #29071 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:48 v #29072 > > //// test
00:40:48 v #29073 > >
00:40:48 v #29074 > > stream.new_infinite_stream_ print_and_return
00:40:48 v #29075 > > |> stream.memoize
00:40:48 v #29076 > > |> fun list =>
00:40:48 v #29077 > >     inl list = list ()
00:40:48 v #29078 > >     fun n =>
00:40:48 v #29079 > >         list |> stream.try_item n
00:40:48 v #29080 > > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:40:48 v #29081 > > |> listm'.sum
00:40:48 v #29082 > > |> _assert_eq 10
00:40:48 v #29083 > 00:40:47 d #1576 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5463d9592570b3c88f729671ebe00ceae972b81b76c3948e6621d19b6ada2ec7/main.spi
00:40:48 v #29084 > >
00:40:48 v #29085 > > ╭─[ 507.82ms - stdout ]────────────────────────────────────────────────────────╮
00:40:48 v #29086 > > │ print_and_return / x: 0                                                      │
00:40:48 v #29087 > > │ print_and_return / x: 1                                                      │
00:40:48 v #29088 > > │ print_and_return / x: 2                                                      │
00:40:48 v #29089 > > │ print_and_return / x: 3                                                      │
00:40:48 v #29090 > > │ print_and_return / x: 4                                                      │
00:40:48 v #29091 > > │ print_and_return / x: 5                                                      │
00:40:48 v #29092 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:40:48 v #29093 > > │                                                                              │
00:40:48 v #29094 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:48 v #29095 > >
00:40:48 v #29096 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:48 v #29097 > > //// test
00:40:48 v #29098 > >
00:40:48 v #29099 > > stream.new_finite_stream print_and_return 10i32
00:40:48 v #29100 > > |> stream.memoize
00:40:48 v #29101 > > |> fun list =>
00:40:48 v #29102 > >     inl list = list ()
00:40:48 v #29103 > >     fun n =>
00:40:48 v #29104 > >         list |> stream.try_item n
00:40:48 v #29105 > > |> take_while_ (fun n (_ : i32) => n < 5)
00:40:48 v #29106 > > |> listm'.sum
00:40:48 v #29107 > > |> _assert_eq 10
00:40:49 v #29108 > 00:40:48 d #1577 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5a71ad5fc5d8fc4e85a6f40068fa60f0372f15ffd43a5705227125e42b2a495/main.spi
00:40:49 v #29109 > >
00:40:49 v #29110 > > ╭─[ 546.15ms - stdout ]────────────────────────────────────────────────────────╮
00:40:49 v #29111 > > │ print_and_return / x: 0                                                      │
00:40:49 v #29112 > > │ print_and_return / x: 1                                                      │
00:40:49 v #29113 > > │ print_and_return / x: 2                                                      │
00:40:49 v #29114 > > │ print_and_return / x: 3                                                      │
00:40:49 v #29115 > > │ print_and_return / x: 4                                                      │
00:40:49 v #29116 > > │ print_and_return / x: 5                                                      │
00:40:49 v #29117 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:40:49 v #29118 > > │                                                                              │
00:40:49 v #29119 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:49 v #29120 > >
00:40:49 v #29121 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:49 v #29122 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:49 v #29123 > > │ ### memoize                                                                  │
00:40:49 v #29124 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:49 v #29125 > >
00:40:49 v #29126 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:49 v #29127 > > inl memoize seq =
00:40:49 v #29128 > >     inl state = mut [[]]
00:40:49 v #29129 > >     fun n =>
00:40:49 v #29130 > >         match *state |> listm'.try_find (fun (n', _) => n' = n) with
00:40:49 v #29131 > >         | Some (_, v) => v
00:40:49 v #29132 > >         | None =>
00:40:49 v #29133 > >             inl new_state = seq n
00:40:49 v #29134 > >             state <- (n, new_state) :: *state
00:40:49 v #29135 > >             new_state
00:40:49 v #29136 > >
00:40:49 v #29137 > > inl memoize_ seq =
00:40:49 v #29138 > >     inl state = mut [[]]
00:40:49 v #29139 > >     fun n =>
00:40:49 v #29140 > >         match *state |> listm'.try_find_ (fun (n', _) => n' = n) with
00:40:49 v #29141 > >         | Some (_, v) => v
00:40:49 v #29142 > >         | None =>
00:40:49 v #29143 > >             inl new_state = seq n
00:40:49 v #29144 > >             state <- (n, new_state) :: *state
00:40:49 v #29145 > >             new_state
00:40:49 v #29146 > 00:40:48 d #1578 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35fa78954ff3aac15a6f236db571b2afabe27b04b04be5e6fd18c3278e3464b5/main.spi
00:40:49 v #29147 > >
00:40:49 v #29148 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:49 v #29149 > > //// test
00:40:49 v #29150 > >
00:40:49 v #29151 > > inl seq =
00:40:49 v #29152 > >     fun n =>
00:40:49 v #29153 > >         n |> print_and_return |> Some
00:40:49 v #29154 > >     |> memoize_
00:40:49 v #29155 > >
00:40:49 v #29156 > > seq
00:40:49 v #29157 > > |> take_while_ (fun n (_ : i32) => n < 5)
00:40:49 v #29158 > > |> listm'.sum
00:40:49 v #29159 > > |> _assert_eq 10
00:40:49 v #29160 > >
00:40:49 v #29161 > > seq
00:40:49 v #29162 > > |> take_while_ (fun n _ => n < 5)
00:40:49 v #29163 > > |> listm'.sum
00:40:49 v #29164 > > |> _assert_eq 10
00:40:49 v #29165 > 00:40:49 d #1579 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bafe14c29090417270d0c7e0366243122fa9f5de8481fa670cfb6afe95e8aa79/main.spi
00:40:50 v #29166 > >
00:40:50 v #29167 > > ╭─[ 553.76ms - stdout ]────────────────────────────────────────────────────────╮
00:40:50 v #29168 > > │ print_and_return / x: 0                                                      │
00:40:50 v #29169 > > │ print_and_return / x: 1                                                      │
00:40:50 v #29170 > > │ print_and_return / x: 2                                                      │
00:40:50 v #29171 > > │ print_and_return / x: 3                                                      │
00:40:50 v #29172 > > │ print_and_return / x: 4                                                      │
00:40:50 v #29173 > > │ print_and_return / x: 5                                                      │
00:40:50 v #29174 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:40:50 v #29175 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:40:50 v #29176 > > │                                                                              │
00:40:50 v #29177 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:50 v #29178 > >
00:40:50 v #29179 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:50 v #29180 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:50 v #29181 > > │ ### iterate                                                                  │
00:40:50 v #29182 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:50 v #29183 > >
00:40:50 v #29184 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:50 v #29185 > > inl iterate f x0 num_steps =
00:40:50 v #29186 > >     inl rec loop x n =
00:40:50 v #29187 > >         if n <= 0
00:40:50 v #29188 > >         then x
00:40:50 v #29189 > >         else loop (f x) (n - 1)
00:40:50 v #29190 > >     loop x0 num_steps
00:40:50 v #29191 > 00:40:49 d #1580 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef443ba48f0b04433b275debb04eeab30f11ccb7ee7df5ba0377dd98e0890c44/main.spi
00:40:50 v #29192 > >
00:40:50 v #29193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:50 v #29194 > > //// test
00:40:50 v #29195 > >
00:40:50 v #29196 > > 10i32 |> iterate ((*) 2) 1i32
00:40:50 v #29197 > > |> _assert_eq 1024
00:40:50 v #29198 > 00:40:50 d #1581 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/730cf1eaebc003ebff1c15877dd951b0a67e0d1aef684886069c5c6cf9269576/main.spi
00:40:51 v #29199 > >
00:40:51 v #29200 > > ╭─[ 433.89ms - stdout ]────────────────────────────────────────────────────────╮
00:40:51 v #29201 > > │ __assert_eq / actual: 1024 / expected: 1024                                  │
00:40:51 v #29202 > > │                                                                              │
00:40:51 v #29203 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:51 v #29204 > >
00:40:51 v #29205 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:51 v #29206 > > inl iterate_ f x0 num_steps =
00:40:51 v #29207 > >     let rec loop x n =
00:40:51 v #29208 > >         if n <= 0
00:40:51 v #29209 > >         then x
00:40:51 v #29210 > >         else loop (f x) (n - 1)
00:40:51 v #29211 > >     loop x0 num_steps
00:40:51 v #29212 > 00:40:50 d #1582 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2adf9274ea41f43b34694f93f758add7a731846c8b62eace25c6a51efc868895/main.spi
00:40:51 v #29213 > >
00:40:51 v #29214 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:51 v #29215 > > //// test
00:40:51 v #29216 > >
00:40:51 v #29217 > > 10i32 |> iterate_ ((*) 2) 1i32
00:40:51 v #29218 > > |> _assert_eq 1024
00:40:51 v #29219 > 00:40:51 d #1583 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2017434d52f486e4b88e57cae22b8f4d64b7d4cfe826d351de9f7015e8de2eff/main.spi
00:40:52 v #29220 > >
00:40:52 v #29221 > > ╭─[ 453.24ms - stdout ]────────────────────────────────────────────────────────╮
00:40:52 v #29222 > > │ __assert_eq / actual: 1024 / expected: 1024                                  │
00:40:52 v #29223 > > │                                                                              │
00:40:52 v #29224 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:52 v #29225 > >
00:40:52 v #29226 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:52 v #29227 > > inl iterate' f x0 num_steps =
00:40:52 v #29228 > >     listm.init num_steps id
00:40:52 v #29229 > >     |> listm.fold (fun x _ => f x) x0
00:40:52 v #29230 > 00:40:51 d #1584 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0af7da457501a52f1a9b9146ed4ef6ddc0632e89870343cf526267df32d75f52/main.spi
00:40:52 v #29231 > >
00:40:52 v #29232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:52 v #29233 > > //// test
00:40:52 v #29234 > >
00:40:52 v #29235 > > 10i32 |> iterate' ((*) 2) 1i32
00:40:52 v #29236 > > |> _assert_eq 1024
00:40:52 v #29237 > 00:40:51 d #1585 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b870f885b4da4960677f426fa1fe358969008719159b762b286bf04ad874b4ed/main.spi
00:40:52 v #29238 > >
00:40:52 v #29239 > > ╭─[ 431.34ms - stdout ]────────────────────────────────────────────────────────╮
00:40:52 v #29240 > > │ __assert_eq / actual: 1024 / expected: 1024                                  │
00:40:52 v #29241 > > │                                                                              │
00:40:52 v #29242 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:52 v #29243 > >
00:40:52 v #29244 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:52 v #29245 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:52 v #29246 > > │ ### find_last                                                                │
00:40:52 v #29247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:52 v #29248 > >
00:40:52 v #29249 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:52 v #29250 > > inl find_last forall item result. fold_fn fn target : option result =
00:40:52 v #29251 > >     fold_fn (fun (item : item) (result : option result) =>
00:40:52 v #29252 > >         match result with
00:40:52 v #29253 > >         | None => fn item
00:40:52 v #29254 > >         | result => result
00:40:52 v #29255 > >     ) target (None : option result)
00:40:52 v #29256 > >
00:40:52 v #29257 > > inl array_find_last forall item result. (fn : item -> option result) (target : a
00:40:52 v #29258 > > i32 item) : option result =
00:40:52 v #29259 > >     find_last am.foldBack fn target
00:40:52 v #29260 > >
00:40:52 v #29261 > > inl list_find_last forall item result. (fn : item -> option result) (target :
00:40:52 v #29262 > > list item) : option result =
00:40:52 v #29263 > >     find_last listm.foldBack fn target
00:40:53 v #29264 > 00:40:52 d #1586 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c763c7cf5035755145751152dca8fa00a7376bbd6cf68ae836f489854e21c369/main.spi
00:40:53 v #29265 > >
00:40:53 v #29266 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:53 v #29267 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:53 v #29268 > > │ ## fsharp                                                                    │
00:40:53 v #29269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:53 v #29270 > >
00:40:53 v #29271 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:53 v #29272 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:53 v #29273 > > │ ### seq'                                                                     │
00:40:53 v #29274 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:53 v #29275 > >
00:40:53 v #29276 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:53 v #29277 > > nominal seq' t = $"backend_switch `({ Fsharp : $"`t seq"; Python : t })"
00:40:53 v #29278 > 00:40:52 d #1587 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b936e3d4b4e65f713b7d14a0f3bf692b25cdfe223f082258cd381ec090ea8bd/main.spi
00:40:53 v #29279 > >
00:40:53 v #29280 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:53 v #29281 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:53 v #29282 > > │ ### of_array'                                                                │
00:40:53 v #29283 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:53 v #29284 > >
00:40:53 v #29285 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:53 v #29286 > > inl of_array' forall dim t. (items : a dim t) : seq' t =
00:40:53 v #29287 > >     backend_switch {
00:40:53 v #29288 > >         Fsharp = fun () => $'seq { for i = 0 to !items.Length - 1 do yield
00:40:53 v #29289 > > !items.[[i]] }' : seq' t
00:40:53 v #29290 > >         Python = fun () => $'!items ' : seq' t
00:40:53 v #29291 > >     }
00:40:53 v #29292 > 00:40:53 d #1588 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/098a0abbdd45fd670910f809371304877e1af3cbceab8a8fbe3443347717ae72/main.spi
00:40:54 v #29293 > >
00:40:54 v #29294 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:54 v #29295 > > //// test
00:40:54 v #29296 > >
00:40:54 v #29297 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:40:54 v #29298 > > |> of_array'
00:40:54 v #29299 > 00:40:53 d #1589 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/600c97d7cafd9f035ccab5cc063769f8f7dc90b311ccfe34e2bd219a91c59484/main.spi
00:40:54 v #29300 > >
00:40:54 v #29301 > > ╭─[ 564.83ms - return value ]──────────────────────────────────────────────────╮
00:40:54 v #29302 > > │ <details open="open" class="dni-treeview"><summary><span                     │
00:40:54 v #29303 > > │ class="dni-code-hint"><code>[ a, b                                           │
00:40:54 v #29304 > > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
00:40:54 v #29305 > > │ CheckClose</td><td><div                                                      │
00:40:54 v #29306 > > │ class="dni-plaintext"><pre>False</pre></div></td></tr><tr><td>LastGenerated< │
00:40:54 v #29307 > > │ /td><td><div                                                                 │
00:40:54 v #29308 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td>v2</td> │
00:40:54 v #29309 > > │ <td><div class="dni-plaintext"><pre>[ a, b                                   │
00:40:54 v #29310 > > │ ]</pre></div></td></tr><tr><td>enum</td><td><div                             │
00:40:54 v #29311 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td>pc</td> │
00:40:54 v #29312 > > │ <td><div                                                                     │
00:40:54 v #29313 > > │ class="dni-plaintext"><pre>0</pre></div></td></tr><tr><td>current</td><td><d │
00:40:54 v #29314 > > │ iv                                                                           │
00:40:54 v #29315 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td><i>(val │
00:40:54 v #29316 > > │ ues)</i></td><td><div class="dni-plaintext"><pre>[ a, b                      │
00:40:54 v #29317 > > │ ]</pre></div></td></tr></tbody></table></div></details><style>               │
00:40:54 v #29318 > > │ .dni-code-hint {                                                             │
00:40:54 v #29319 > > │     font-style: italic;                                                      │
00:40:54 v #29320 > > │     overflow: hidden;                                                        │
00:40:54 v #29321 > > │     white-space: nowrap;                                                     │
00:40:54 v #29322 > > │ }                                                                            │
00:40:54 v #29323 > > │ .dni-treeview {                                                              │
00:40:54 v #29324 > > │     white-space: nowrap;                                                     │
00:40:54 v #29325 > > │ }                                                                            │
00:40:54 v #29326 > > │ .dni-treeview td {                                                           │
00:40:54 v #29327 > > │     vertical-align: top;                                                     │
00:40:54 v #29328 > > │     text-align: start;                                                       │
00:40:54 v #29329 > > │ }                                                                            │
00:40:54 v #29330 > > │ details.dni-treeview {                                                       │
00:40:54 v #29331 > > │     padding-left: 1em;                                                       │
00:40:54 v #29332 > > │ }                                                                            │
00:40:54 v #29333 > > │ table td {                                                                   │
00:40:54 v #29334 > > │     text-align: start;                                                       │
00:40:54 v #29335 > > │ }                                                                            │
00:40:54 v #29336 > > │ table tr {                                                                   │
00:40:54 v #29337 > > │     vertical-align: top;                                                     │
00:40:54 v #29338 > > │     margin: 0em 0px;                                                         │
00:40:54 v #29339 > > │ }                                                                            │
00:40:54 v #29340 > > │ table tr td pre                                                              │
00:40:54 v #29341 > > │ {                                                                            │
00:40:54 v #29342 > > │     vertical-align: top !important;                                          │
00:40:54 v #29343 > > │     margin: 0em 0px !important;                                              │
00:40:54 v #29344 > > │ }                                                                            │
00:40:54 v #29345 > > │ table th {                                                                   │
00:40:54 v #29346 > > │     text-align: start;                                                       │
00:40:54 v #29347 > > │ }                                                                            │
00:40:54 v #29348 > > │ </style>                                                                     │
00:40:54 v #29349 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:54 v #29350 > >
00:40:54 v #29351 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:54 v #29352 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:54 v #29353 > > │ ### of_array                                                                 │
00:40:54 v #29354 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:54 v #29355 > >
00:40:54 v #29356 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:54 v #29357 > > inl of_array forall dim t. (items : a dim t) : seq' t =
00:40:54 v #29358 > >     backend_switch {
00:40:54 v #29359 > >         Fsharp = fun () => $'!items |> Seq.ofArray' : seq' t
00:40:54 v #29360 > >         Python = fun () => $'!items ' : seq' t
00:40:54 v #29361 > >     }
00:40:54 v #29362 > 00:40:54 d #1590 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dfc32706d9a34d1d8f671ab8de6afbb17ec06c82a360351a3a03b666001f1ddf/main.spi
00:40:55 v #29363 > >
00:40:55 v #29364 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:55 v #29365 > > //// test
00:40:55 v #29366 > >
00:40:55 v #29367 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:40:55 v #29368 > > |> of_array
00:40:55 v #29369 > 00:40:54 d #1591 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0f7a2b8c524e4e1fad2a0dc9f462a5d1748d0b32e85922c58c7ef1128e035f03/main.spi
00:40:55 v #29370 > >
00:40:55 v #29371 > > ╭─[ 506.28ms - return value ]──────────────────────────────────────────────────╮
00:40:55 v #29372 > > │ <details open="open" class="dni-treeview"><summary><span                     │
00:40:55 v #29373 > > │ class="dni-code-hint"><code>[ a, b                                           │
00:40:55 v #29374 > > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
00:40:55 v #29375 > > │ f</td><td><details class="dni-treeview"><summary><span                       │
00:40:55 v #29376 > > │ class="dni-code-hint"><code>Microsoft.FSharp.Collections.SeqModule+OfArray@1 │
00:40:55 v #29377 > > │ 010[                                                                         │
00:40:55 v #29378 > > │ System.String]</code></span></summary><div><table><thead><tr></tr></thead><t │
00:40:55 v #29379 > > │ body><tr><td>source</td><td><div class="dni-plaintext"><pre>[ a, b           │
00:40:55 v #29380 > > │ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i> │
00:40:55 v #29381 > > │ (values)</i></td><td><div class="dni-plaintext"><pre>[ a, b                  │
00:40:55 v #29382 > > │ ]</pre></div></td></tr></tbody></table></div></details><style>               │
00:40:55 v #29383 > > │ .dni-code-hint {                                                             │
00:40:55 v #29384 > > │     font-style: italic;                                                      │
00:40:55 v #29385 > > │     overflow: hidden;                                                        │
00:40:55 v #29386 > > │     white-space: nowrap;                                                     │
00:40:55 v #29387 > > │ }                                                                            │
00:40:55 v #29388 > > │ .dni-treeview {                                                              │
00:40:55 v #29389 > > │     white-space: nowrap;                                                     │
00:40:55 v #29390 > > │ }                                                                            │
00:40:55 v #29391 > > │ .dni-treeview td {                                                           │
00:40:55 v #29392 > > │     vertical-align: top;                                                     │
00:40:55 v #29393 > > │     text-align: start;                                                       │
00:40:55 v #29394 > > │ }                                                                            │
00:40:55 v #29395 > > │ details.dni-treeview {                                                       │
00:40:55 v #29396 > > │     padding-left: 1em;                                                       │
00:40:55 v #29397 > > │ }                                                                            │
00:40:55 v #29398 > > │ table td {                                                                   │
00:40:55 v #29399 > > │     text-align: start;                                                       │
00:40:55 v #29400 > > │ }                                                                            │
00:40:55 v #29401 > > │ table tr {                                                                   │
00:40:55 v #29402 > > │     vertical-align: top;                                                     │
00:40:55 v #29403 > > │     margin: 0em 0px;                                                         │
00:40:55 v #29404 > > │ }                                                                            │
00:40:55 v #29405 > > │ table tr td pre                                                              │
00:40:55 v #29406 > > │ {                                                                            │
00:40:55 v #29407 > > │     vertical-align: top !important;                                          │
00:40:55 v #29408 > > │     margin: 0em 0px !important;                                              │
00:40:55 v #29409 > > │ }                                                                            │
00:40:55 v #29410 > > │ table th {                                                                   │
00:40:55 v #29411 > > │     text-align: start;                                                       │
00:40:55 v #29412 > > │ }                                                                            │
00:40:55 v #29413 > > │ </style>                                                                     │
00:40:55 v #29414 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:55 v #29415 > >
00:40:55 v #29416 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:55 v #29417 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:55 v #29418 > > │ ### of_array_base                                                            │
00:40:55 v #29419 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:55 v #29420 > >
00:40:55 v #29421 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:55 v #29422 > > inl of_array_base forall t. (items : array_base t) : seq' t =
00:40:55 v #29423 > >     a items
00:40:55 v #29424 > >     |> fun x => x : _ int _
00:40:55 v #29425 > >     |> of_array
00:40:55 v #29426 > 00:40:55 d #1592 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e60da7722ca864d94f55d215a73e6561e6bed9afa5f0829d5bfddd2f3bae0393/main.spi
00:40:56 v #29427 > >
00:40:56 v #29428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:56 v #29429 > > //// test
00:40:56 v #29430 > >
00:40:56 v #29431 > > ;[[ "a"; "b" ]]
00:40:56 v #29432 > > |> of_array_base
00:40:56 v #29433 > 00:40:55 d #1593 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59ae24d0f7411601fb61ee3eb9ec1991b337fc7bd96c8e97c4bdf5ee4a8f12b6/main.spi
00:40:56 v #29434 > >
00:40:56 v #29435 > > ╭─[ 393.08ms - return value ]──────────────────────────────────────────────────╮
00:40:56 v #29436 > > │ <details open="open" class="dni-treeview"><summary><span                     │
00:40:56 v #29437 > > │ class="dni-code-hint"><code>[ a, b                                           │
00:40:56 v #29438 > > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
00:40:56 v #29439 > > │ f</td><td><details class="dni-treeview"><summary><span                       │
00:40:56 v #29440 > > │ class="dni-code-hint"><code>Microsoft.FSharp.Collections.SeqModule+OfArray@1 │
00:40:56 v #29441 > > │ 010[                                                                         │
00:40:56 v #29442 > > │ System.String]</code></span></summary><div><table><thead><tr></tr></thead><t │
00:40:56 v #29443 > > │ body><tr><td>source</td><td><div class="dni-plaintext"><pre>[ a, b           │
00:40:56 v #29444 > > │ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i> │
00:40:56 v #29445 > > │ (values)</i></td><td><div class="dni-plaintext"><pre>[ a, b                  │
00:40:56 v #29446 > > │ ]</pre></div></td></tr></tbody></table></div></details><style>               │
00:40:56 v #29447 > > │ .dni-code-hint {                                                             │
00:40:56 v #29448 > > │     font-style: italic;                                                      │
00:40:56 v #29449 > > │     overflow: hidden;                                                        │
00:40:56 v #29450 > > │     white-space: nowrap;                                                     │
00:40:56 v #29451 > > │ }                                                                            │
00:40:56 v #29452 > > │ .dni-treeview {                                                              │
00:40:56 v #29453 > > │     white-space: nowrap;                                                     │
00:40:56 v #29454 > > │ }                                                                            │
00:40:56 v #29455 > > │ .dni-treeview td {                                                           │
00:40:56 v #29456 > > │     vertical-align: top;                                                     │
00:40:56 v #29457 > > │     text-align: start;                                                       │
00:40:56 v #29458 > > │ }                                                                            │
00:40:56 v #29459 > > │ details.dni-treeview {                                                       │
00:40:56 v #29460 > > │     padding-left: 1em;                                                       │
00:40:56 v #29461 > > │ }                                                                            │
00:40:56 v #29462 > > │ table td {                                                                   │
00:40:56 v #29463 > > │     text-align: start;                                                       │
00:40:56 v #29464 > > │ }                                                                            │
00:40:56 v #29465 > > │ table tr {                                                                   │
00:40:56 v #29466 > > │     vertical-align: top;                                                     │
00:40:56 v #29467 > > │     margin: 0em 0px;                                                         │
00:40:56 v #29468 > > │ }                                                                            │
00:40:56 v #29469 > > │ table tr td pre                                                              │
00:40:56 v #29470 > > │ {                                                                            │
00:40:56 v #29471 > > │     vertical-align: top !important;                                          │
00:40:56 v #29472 > > │     margin: 0em 0px !important;                                              │
00:40:56 v #29473 > > │ }                                                                            │
00:40:56 v #29474 > > │ table th {                                                                   │
00:40:56 v #29475 > > │     text-align: start;                                                       │
00:40:56 v #29476 > > │ }                                                                            │
00:40:56 v #29477 > > │ </style>                                                                     │
00:40:56 v #29478 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:56 v #29479 > >
00:40:56 v #29480 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:56 v #29481 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:56 v #29482 > > │ ### to_array'                                                                │
00:40:56 v #29483 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:56 v #29484 > >
00:40:56 v #29485 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:56 v #29486 > > inl to_array' forall dim t. (items : seq' t) : a dim t =
00:40:56 v #29487 > >     backend_switch {
00:40:56 v #29488 > >         Fsharp = fun () => items |> $'Seq.toArray' : a dim t
00:40:56 v #29489 > >         Python = fun () => $'!items ' : a dim t
00:40:56 v #29490 > >     }
00:40:56 v #29491 > 00:40:55 d #1594 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8edb0321e050cb33854b1b81af4814f95333c74b2b7929d0403bf897759d4fc4/main.spi
00:40:56 v #29492 > >
00:40:56 v #29493 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:56 v #29494 > > //// test
00:40:56 v #29495 > >
00:40:56 v #29496 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:40:56 v #29497 > > |> of_array'
00:40:56 v #29498 > > |> to_array'
00:40:56 v #29499 > > |> _assert_eq' (a ;[[ "a"; "b" ]] : _ i32 _)
00:40:57 v #29500 > 00:40:56 d #1595 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e81ac38d9c85292bee7a9348dcec5aee224500a964c56b404b426e85dcbf8c18/main.spi
00:40:57 v #29501 > >
00:40:57 v #29502 > > ╭─[ 439.21ms - stdout ]────────────────────────────────────────────────────────╮
00:40:57 v #29503 > > │ __assert_eq' / actual: [|"a"; "b"|] / expected: [|"a"; "b"|]                 │
00:40:57 v #29504 > > │                                                                              │
00:40:57 v #29505 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:57 v #29506 > >
00:40:57 v #29507 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:57 v #29508 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:57 v #29509 > > │ ### of_list'                                                                 │
00:40:57 v #29510 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:57 v #29511 > >
00:40:57 v #29512 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:57 v #29513 > > inl of_list' forall t. (items : listm'.list' t) : seq' t =
00:40:57 v #29514 > >     backend_switch {
00:40:57 v #29515 > >         Fsharp = fun () => $'seq { for i = 0 to !items.Length - 1 do yield
00:40:57 v #29516 > > !items.[[i]] }' : seq' t
00:40:57 v #29517 > >         Python = fun () => $'!items ' : seq' t
00:40:57 v #29518 > >     }
00:40:57 v #29519 > 00:40:56 d #1596 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a7373e984f5da3aad1cd05a5446dfd87a52b2d0e35c6e304c0507eba1766a8f0/main.spi
00:40:57 v #29520 > >
00:40:57 v #29521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:57 v #29522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:57 v #29523 > > │ ### to_list'                                                                 │
00:40:57 v #29524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:57 v #29525 > >
00:40:57 v #29526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:57 v #29527 > > inl to_list' forall t. (items : seq' t) : listm'.list' t =
00:40:57 v #29528 > >     backend_switch {
00:40:57 v #29529 > >         Fsharp = fun () => items |> $'Seq.toList' : listm'.list' t
00:40:57 v #29530 > >         Python = fun () => $'!items ' : listm'.list' t
00:40:57 v #29531 > >     }
00:40:57 v #29532 > 00:40:57 d #1597 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0657a448a457b15340321efab7f721875ffccab07a0dbf5a8e0b4c2fad21b206/main.spi
00:40:58 v #29533 > >
00:40:58 v #29534 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:58 v #29535 > > //// test
00:40:58 v #29536 > >
00:40:58 v #29537 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:40:58 v #29538 > > |> of_array
00:40:58 v #29539 > > |> to_list'
00:40:58 v #29540 > > |> listm'.unbox
00:40:58 v #29541 > > |> _assert_eq ([[ "a"; "b" ]])
00:40:58 v #29542 > 00:40:57 d #1598 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e635c11fda885933f192572060c7cbe0b1a4814f7501160d7f4a2df0bb6b3e9d/main.spi
00:40:58 v #29543 > >
00:40:58 v #29544 > > ╭─[ 482.53ms - stdout ]────────────────────────────────────────────────────────╮
00:40:58 v #29545 > > │ __assert_eq / actual: UH0_1 ("a", UH0_1 ("b", UH0_0)) / expected: UH0_1      │
00:40:58 v #29546 > > │ ("a", UH0_1 ("b", UH0_0))                                                    │
00:40:58 v #29547 > > │                                                                              │
00:40:58 v #29548 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:58 v #29549 > >
00:40:58 v #29550 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:58 v #29551 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:58 v #29552 > > │ ### rev'                                                                     │
00:40:58 v #29553 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:58 v #29554 > >
00:40:58 v #29555 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:58 v #29556 > > inl rev'' forall t u. (items : t) : seq' u =
00:40:58 v #29557 > >     backend_switch {
00:40:58 v #29558 > >         Fsharp = fun () => items |> $'Seq.rev' : seq' u
00:40:58 v #29559 > >         Python = fun () => $'reversed(!items)' : seq' u
00:40:58 v #29560 > >     }
00:40:58 v #29561 > 00:40:58 d #1599 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aabeabef9b535a7351839acc20023a0bb79a4cf8c1051754083c3087f417a918/main.spi
00:40:59 v #29562 > >
00:40:59 v #29563 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:59 v #29564 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:59 v #29565 > > │ ## rust                                                                      │
00:40:59 v #29566 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:59 v #29567 > >
00:40:59 v #29568 > > ── markdown ────────────────────────────────────────────────────────────────────
00:40:59 v #29569 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:40:59 v #29570 > > │ ### fuse                                                                     │
00:40:59 v #29571 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:40:59 v #29572 > >
00:40:59 v #29573 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:40:59 v #29574 > > nominal fuse t =
00:40:59 v #29575 > >     `(
00:40:59 v #29576 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:40:59 v #29577 > > Fable.Core.Emit(\"core::iter::Fuse<$0>\")>]]\n#endif\ntype core_iter_Fuse<'T> =
00:40:59 v #29578 > > class end"
00:40:59 v #29579 > >         $'' : $'core_iter_Fuse<`t>'
00:40:59 v #29580 > >     )
00:40:59 v #29581 > 00:40:58 d #1600 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1428ee39801e3053a9540b81561387ea920d075af4e5c11101cd1ce3a6ca9ef6/main.spi
00:40:59 v #29582 > 00:00:32 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 50263 }
00:40:59 v #29583 > 00:00:32 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:01 v #29584 > 00:00:34 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/seq.dib.ipynb to html
00:41:01 v #29585 > 00:00:34 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:41:01 v #29586 > 00:00:34 v #7 !   validate(nb)
00:41:01 v #29587 > 00:00:34 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:41:01 v #29588 > 00:00:34 v #9 !   return _pygments_highlight(
00:41:02 v #29589 > 00:00:35 v #10 ! [NbConvertApp] Writing 385656 bytes to c:\home\git\polyglot\lib\spiral\seq.dib.html
00:41:02 v #29590 > 00:00:35 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 848 }
00:41:02 v #29591 > 00:00:35 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 848 }
00:41:02 v #29592 > 00:00:35 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/seq.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/seq.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:03 v #29593 > 00:00:36 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:41:03 v #29594 > 00:00:36 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:41:03 v #29595 > 00:00:36 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 51170 }
00:41:03 d #29596 runtime.execute_with_options_async / { exit_code = 0; output_length = 55692 }
00:41:03 d #35 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path seq.dib --retries 3
00:41:03 d #29597 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path env.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path env.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:03 v #29598 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "env.dib", "--retries", "3"])) }
00:41:03 v #29599 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/env.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/env.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/env.dib" --output-path "c:/home/git/polyglot/lib/spiral/env.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:41:04 v #29600 > >
00:41:04 v #29601 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:04 v #29602 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:04 v #29603 > > │ # env                                                                        │
00:41:04 v #29604 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:04 v #29605 > >
00:41:04 v #29606 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:04 v #29607 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:04 v #29608 > > │ ## rust                                                                      │
00:41:04 v #29609 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:04 v #29610 > >
00:41:04 v #29611 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:04 v #29612 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:04 v #29613 > > │ ### var_error                                                                │
00:41:04 v #29614 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:08 v #29615 > >
00:41:08 v #29616 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:08 v #29617 > > nominal var_error =
00:41:08 v #29618 > >     `(
00:41:08 v #29619 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:41:08 v #29620 > > Fable.Core.Emit(\"std::env::VarError\")>]]\n#endif\ntype std_env_VarError =
00:41:08 v #29621 > > class end"
00:41:08 v #29622 > >         $'' : $'std_env_VarError'
00:41:08 v #29623 > >     )
00:41:09 v #29624 > 00:41:08 d #1601 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab8d0c051e87f3689bfe64b63aca0f78ebb6625ac482c092f75813d56447f95d/main.spi
00:41:09 v #29625 > >
00:41:09 v #29626 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:09 v #29627 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:09 v #29628 > > │ ### get_environment_variable_comptime                                        │
00:41:09 v #29629 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:09 v #29630 > >
00:41:09 v #29631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:09 v #29632 > > inl get_environment_variable_comptime (var : string) : string =
00:41:09 v #29633 > >     run_target_args (fun () => var) function
00:41:09 v #29634 > >         | Rust _ => fun var =>
00:41:09 v #29635 > >             open rust.rust_operators
00:41:09 v #29636 > >             !\($'"env\!(\\\"" + !var + "\\\")"')
00:41:09 v #29637 > >             |> sm'.ref_to_std_string
00:41:09 v #29638 > >             |> sm'.from_std_string
00:41:09 v #29639 > >         | target => fun _ => null ()
00:41:10 v #29640 > 00:41:09 d #1602 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d870f6ee2af6f9e002ea13d47b776251cdeaf6e4a7f05935bae93dd2c2809e2/main.spi
00:41:10 v #29641 > >
00:41:10 v #29642 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:10 v #29643 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:10 v #29644 > > │ ## python                                                                    │
00:41:10 v #29645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:10 v #29646 > >
00:41:10 v #29647 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:10 v #29648 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:10 v #29649 > > │ ### os_environ                                                               │
00:41:10 v #29650 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:10 v #29651 > >
00:41:10 v #29652 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:10 v #29653 > > nominal os_environ = any
00:41:10 v #29654 > 00:41:09 d #1603 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/569ffe818cb0830a9ea9557e0f77e15f576c6b0ade82bedf2193e03472766a8d/main.spi
00:41:10 v #29655 > >
00:41:10 v #29656 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:10 v #29657 > > inl os_environ () : os_environ =
00:41:10 v #29658 > >     backend_switch {
00:41:10 v #29659 > >         Fsharp = fun () =>
00:41:10 v #29660 > >             open python_operators
00:41:10 v #29661 > >             global "type IOsEnviron = abstract environ: x: unit -> obj"
00:41:10 v #29662 > >             inl os : $'IOsEnviron' = python.import_all "os"
00:41:10 v #29663 > >             !\($'"!os.environ"') : os_environ
00:41:10 v #29664 > >         Python = fun () =>
00:41:10 v #29665 > >             global "import os"
00:41:10 v #29666 > >             $'os.environ' : os_environ
00:41:10 v #29667 > >     }
00:41:10 v #29668 > 00:41:10 d #1604 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6da26d21906c99eb424f5194df0ddb78bf12acda642e06a1dff8db2beb0a63b0/main.spi
00:41:10 v #29669 > >
00:41:10 v #29670 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:10 v #29671 > > inl environ_get (key : string) (os_environ : os_environ) : string =
00:41:10 v #29672 > >     backend_switch {
00:41:10 v #29673 > >         Fsharp = fun () =>
00:41:10 v #29674 > >             open python_operators
00:41:10 v #29675 > >             !\\(key, $'"!os_environ.get($0)"') : string
00:41:10 v #29676 > >         Python = fun () =>
00:41:10 v #29677 > >             $'!os_environ.get(!key)' : string
00:41:10 v #29678 > >     }
00:41:11 v #29679 > 00:41:10 d #1605 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5624fa6b64e6d72d845958b16f339ef45f66485c6edfe3e59df9950655a9cf94/main.spi
00:41:11 v #29680 > >
00:41:11 v #29681 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:11 v #29682 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:11 v #29683 > > │ ## env                                                                       │
00:41:11 v #29684 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:11 v #29685 > >
00:41:11 v #29686 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:11 v #29687 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:11 v #29688 > > │ ### get_environment_variable                                                 │
00:41:11 v #29689 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:11 v #29690 > >
00:41:11 v #29691 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:11 v #29692 > > let get_environment_variable (var : string) : string =
00:41:11 v #29693 > >     run_target_args (fun () => var) function
00:41:11 v #29694 > >         | Rust _ => fun var =>
00:41:11 v #29695 > >             open rust.rust_operators
00:41:11 v #29696 > >             !\\(var, $'"std::env::var(&*$0)"')
00:41:11 v #29697 > >             |> fun x => x : resultm.result' sm'.std_string var_error
00:41:11 v #29698 > >             |> resultm.map' sm'.from_std_string
00:41:11 v #29699 > >             |> resultm.unwrap_or' (join "")
00:41:11 v #29700 > >         | Fsharp _ => fun var =>
00:41:11 v #29701 > >             var
00:41:11 v #29702 > >             |> $'System.Environment.GetEnvironmentVariable'
00:41:11 v #29703 > >             |> optionm'.of_obj
00:41:11 v #29704 > >             |> optionm'.unbox
00:41:11 v #29705 > >             |> optionm'.default_value ""
00:41:11 v #29706 > >         | TypeScript _ => fun var =>
00:41:11 v #29707 > >             open typescript_operators
00:41:11 v #29708 > >             !\\(var, $'"process.env[[$0]] ?? \\\"\\\""')
00:41:11 v #29709 > >         | Python _ | Cuda _ => fun var =>
00:41:11 v #29710 > >             os_environ ()
00:41:11 v #29711 > >             |> environ_get var
00:41:11 v #29712 > >             |> optionm'.of_obj
00:41:11 v #29713 > >             |> optionm'.unbox
00:41:11 v #29714 > >             |> optionm'.default_value ""
00:41:11 v #29715 > >         | target => fun var => failwith $'$"env.get_environment_variable
00:41:11 v #29716 > > target: {!target} / var: {!var}"'
00:41:11 v #29717 > 00:41:10 d #1606 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/65546cbaa4e137f5008f69047c0bff9501117157e7999ed9613786bf93065937/main.spi
00:41:11 v #29718 > >
00:41:11 v #29719 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:11 v #29720 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:11 v #29721 > > │ ### get_entry_assembly_name                                                  │
00:41:11 v #29722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:11 v #29723 > >
00:41:11 v #29724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:11 v #29725 > > let get_entry_assembly_name () : string =
00:41:11 v #29726 > >     run_target function
00:41:11 v #29727 > >         | Rust _ => fun () =>
00:41:11 v #29728 > >             (join "CARGO_PKG_NAME") |> get_environment_variable
00:41:11 v #29729 > >         | Fsharp _ => fun () =>
00:41:11 v #29730 > >             $'System.Reflection.Assembly.GetEntryAssembly().GetName().Name'
00:41:11 v #29731 > >         | target => fun () => failwith $'$"env.get_entry_assembly_name / target:
00:41:11 v #29732 > > {!target}"'
00:41:11 v #29733 > 00:41:11 d #1607 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dbbb7caad4f67484243d2f0ec62e0ef0c869ea170c53e597eb5f53ff3c1c3b73/main.spi
00:41:12 v #29734 > >
00:41:12 v #29735 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:12 v #29736 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:12 v #29737 > > │ ### append_path                                                              │
00:41:12 v #29738 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:12 v #29739 > >
00:41:12 v #29740 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:12 v #29741 > > inl append_path (path : string) : option string =
00:41:12 v #29742 > >     inl env_path = "PATH" |> get_environment_variable
00:41:12 v #29743 > >     if env_path = ""
00:41:12 v #29744 > >     then None
00:41:12 v #29745 > >     else
00:41:12 v #29746 > >         inl env_sep =
00:41:12 v #29747 > >             if platform.is_windows ()
00:41:12 v #29748 > >             then ";"
00:41:12 v #29749 > >             else ":"
00:41:12 v #29750 > >         Some $'$"{!path}{!env_sep}{!env_path}"'
00:41:12 v #29751 > 00:41:11 d #1608 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a533f7e7b6ac00f623bb2aab39364c5b729f33ce33d9440f59f8a4945446cb0/main.spi
00:41:12 v #29752 > 00:00:09 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 6848 }
00:41:12 v #29753 > 00:00:09 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/env.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/env.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:14 v #29754 > 00:00:10 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/env.dib.ipynb to html
00:41:14 v #29755 > 00:00:10 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:41:14 v #29756 > 00:00:10 v #7 !   validate(nb)
00:41:14 v #29757 > 00:00:11 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:41:14 v #29758 > 00:00:11 v #9 !   return _pygments_highlight(
00:41:14 v #29759 > 00:00:11 v #10 ! [NbConvertApp] Writing 291343 bytes to c:\home\git\polyglot\lib\spiral\env.dib.html
00:41:15 v #29760 > 00:00:11 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 848 }
00:41:15 v #29761 > 00:00:11 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 848 }
00:41:15 v #29762 > 00:00:11 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/env.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/env.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:15 v #29763 > 00:00:12 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:41:15 v #29764 > 00:00:12 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:41:15 v #29765 > 00:00:12 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 7755 }
00:41:15 d #29766 runtime.execute_with_options_async / { exit_code = 0; output_length = 10581 }
00:41:15 d #36 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path env.dib --retries 3
00:41:15 d #29767 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path python.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path python.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:15 v #29768 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "python.dib", "--retries", "3"])) }
00:41:15 v #29769 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/python.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/python.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/python.dib" --output-path "c:/home/git/polyglot/lib/spiral/python.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:41:17 v #29770 > >
00:41:17 v #29771 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:17 v #29772 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:17 v #29773 > > │ # python                                                                     │
00:41:17 v #29774 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:17 v #29775 > >
00:41:17 v #29776 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:17 v #29777 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:17 v #29778 > > │ ### emit_expr                                                                │
00:41:17 v #29779 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:20 v #29780 > >
00:41:20 v #29781 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:20 v #29782 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:41:20 v #29783 > >     real
00:41:20 v #29784 > >         $'Fable.Core.PyInterop.emitPyExpr !args !code ' : t
00:41:21 v #29785 > 00:41:20 d #1609 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5447e0dc10564f04ef577d20fa8f92f247573bd47f061c29042e3e47e071987b/main.spi
00:41:22 v #29786 > >
00:41:22 v #29787 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:22 v #29788 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:22 v #29789 > > │ ###                                                                          │
00:41:22 v #29790 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:22 v #29791 > >
00:41:22 v #29792 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:22 v #29793 > > inl (~!\) forall t. (code : string) : t =
00:41:22 v #29794 > >     emit_expr () code
00:41:22 v #29795 > 00:41:21 d #1610 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b00ac9592ed76583bf0d1c17c0013f6f39638179952e6cbed2d811f62e382264/main.spi
00:41:22 v #29796 > >
00:41:22 v #29797 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:22 v #29798 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:22 v #29799 > > │ ###                                                                          │
00:41:22 v #29800 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:22 v #29801 > >
00:41:22 v #29802 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:22 v #29803 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:41:22 v #29804 > >     emit_expr args code
00:41:22 v #29805 > 00:41:21 d #1611 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc066a710ba31498d2155086d76d96ef6fb4c6287fecc061873365ced829915d/main.spi
00:41:22 v #29806 > >
00:41:22 v #29807 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:22 v #29808 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:22 v #29809 > > │ ###                                                                          │
00:41:22 v #29810 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:22 v #29811 > >
00:41:22 v #29812 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:22 v #29813 > > inl import_all forall t. (file : string) : t =
00:41:22 v #29814 > >     real
00:41:22 v #29815 > >         $'Fable.Core.PyInterop.importAll !file ' : t
00:41:23 v #29816 > 00:41:22 d #1612 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f385c6af6c0dc432908d54e1c558d789b39449adc75e847b1b91b2940f32fb5/main.spi
00:41:23 v #29817 > >
00:41:23 v #29818 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:23 v #29819 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:23 v #29820 > > │ ###                                                                          │
00:41:23 v #29821 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:23 v #29822 > >
00:41:23 v #29823 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:23 v #29824 > > inl import forall t. (name : string) (file : string) : t =
00:41:23 v #29825 > >     real
00:41:23 v #29826 > >         $'Fable.Core.PyInterop.import !name !file ' : t
00:41:23 v #29827 > 00:41:22 d #1613 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75fccd10a6550c424d30c9017eded8c5430744be3810874309cad2aaeedc7a6f/main.spi
00:41:23 v #29828 > 00:00:08 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2867 }
00:41:23 v #29829 > 00:00:08 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/python.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/python.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:25 v #29830 > 00:00:09 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/python.dib.ipynb to html
00:41:25 v #29831 > 00:00:09 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:41:25 v #29832 > 00:00:09 v #7 !   validate(nb)
00:41:25 v #29833 > 00:00:10 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:41:25 v #29834 > 00:00:10 v #9 !   return _pygments_highlight(
00:41:25 v #29835 > 00:00:10 v #10 ! [NbConvertApp] Writing 278614 bytes to c:\home\git\polyglot\lib\spiral\python.dib.html
00:41:26 v #29836 > 00:00:10 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 854 }
00:41:26 v #29837 > 00:00:10 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 854 }
00:41:26 v #29838 > 00:00:10 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/python.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/python.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:26 v #29839 > 00:00:11 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:41:26 v #29840 > 00:00:11 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:41:26 v #29841 > 00:00:11 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 3780 }
00:41:26 d #29842 runtime.execute_with_options_async / { exit_code = 0; output_length = 6451 }
00:41:26 d #37 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path python.dib --retries 3
00:41:26 d #29843 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path typescript.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path typescript.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:26 v #29844 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "typescript.dib", "--retries", "3"])) }
00:41:26 v #29845 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/typescript.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/typescript.dib" --output-path "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:41:28 v #29846 > >
00:41:28 v #29847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:28 v #29848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:28 v #29849 > > │ # typescript                                                                 │
00:41:28 v #29850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:28 v #29851 > >
00:41:28 v #29852 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:28 v #29853 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:28 v #29854 > > │ ### emit_expr                                                                │
00:41:28 v #29855 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:32 v #29856 > >
00:41:32 v #29857 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:32 v #29858 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:41:32 v #29859 > >     real
00:41:32 v #29860 > >         $'Fable.Core.JsInterop.emitJsExpr !args !code ' : t
00:41:32 v #29861 > 00:41:31 d #1614 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffd4addd53f79aa04e68f6f302bd824f16c03e6b0378c0d72008016b3937842c/main.spi
00:41:33 v #29862 > >
00:41:33 v #29863 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:33 v #29864 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:33 v #29865 > > │ ###                                                                          │
00:41:33 v #29866 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:33 v #29867 > >
00:41:33 v #29868 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:33 v #29869 > > inl (~!\) forall t. (code : string) : t =
00:41:33 v #29870 > >     emit_expr () code
00:41:33 v #29871 > 00:41:32 d #1615 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92a275d67df2eba3e649fcfd83691b71189adf20a9eae633febd0fa9139b7336/main.spi
00:41:33 v #29872 > >
00:41:33 v #29873 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:33 v #29874 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:33 v #29875 > > │ ###                                                                          │
00:41:33 v #29876 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:33 v #29877 > >
00:41:33 v #29878 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:33 v #29879 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:41:33 v #29880 > >     emit_expr args code
00:41:33 v #29881 > 00:41:33 d #1616 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a94c8e498193017c7a37098496ec045f58660b4e7e5d36eaf0cef34cd40a2bdc/main.spi
00:41:34 v #29882 > >
00:41:34 v #29883 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:34 v #29884 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:34 v #29885 > > │ ###                                                                          │
00:41:34 v #29886 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:34 v #29887 > >
00:41:34 v #29888 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:34 v #29889 > > inl import_all forall t. (file : string) : t =
00:41:34 v #29890 > >     real
00:41:34 v #29891 > >         $'Fable.Core.JsInterop.importAll !file ' : t
00:41:34 v #29892 > 00:41:33 d #1617 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bb6475de865cc5962b83d816d8a6a2e7fe48128f2411a97c7016f0b49cc6a338/main.spi
00:41:34 v #29893 > >
00:41:34 v #29894 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:34 v #29895 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:34 v #29896 > > │ ###                                                                          │
00:41:34 v #29897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:34 v #29898 > >
00:41:34 v #29899 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:34 v #29900 > > inl import forall t. (name : string) (file : string) : t =
00:41:34 v #29901 > >     real
00:41:34 v #29902 > >         $'Fable.Core.JsInterop.import !name !file ' : t
00:41:34 v #29903 > 00:41:33 d #1618 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/698c6e1e71c7d8bdab2cc6d00031ecfb5301f686bbc38beba7d10a842f6b0be9/main.spi
00:41:34 v #29904 > 00:00:08 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2867 }
00:41:34 v #29905 > 00:00:08 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:36 v #29906 > 00:00:09 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb to html
00:41:36 v #29907 > 00:00:09 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:41:36 v #29908 > 00:00:09 v #7 !   validate(nb)
00:41:37 v #29909 > 00:00:10 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:41:37 v #29910 > 00:00:10 v #9 !   return _pygments_highlight(
00:41:37 v #29911 > 00:00:10 v #10 ! [NbConvertApp] Writing 278630 bytes to c:\home\git\polyglot\lib\spiral\typescript.dib.html
00:41:37 v #29912 > 00:00:10 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 862 }
00:41:37 v #29913 > 00:00:10 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 862 }
00:41:37 v #29914 > 00:00:10 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/typescript.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/typescript.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:37 v #29915 > 00:00:11 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:41:37 v #29916 > 00:00:11 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:41:37 v #29917 > 00:00:11 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 3788 }
00:41:37 d #29918 runtime.execute_with_options_async / { exit_code = 0; output_length = 6495 }
00:41:37 d #38 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path typescript.dib --retries 3
00:41:37 d #29919 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path file_system.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path file_system.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:41:37 v #29920 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "file_system.dib", "--retries", "3"])) }
00:41:37 v #29921 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/file_system.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/file_system.dib" --output-path "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:41:39 v #29922 > >
00:41:39 v #29923 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:39 v #29924 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:39 v #29925 > > │ # file_system                                                                │
00:41:39 v #29926 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:43 v #29927 > >
00:41:43 v #29928 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:43 v #29929 > > open sm'_operators
00:41:43 v #29930 > > open rust
00:41:43 v #29931 > > open rust_operators
00:41:44 v #29932 > 00:41:43 d #1619 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b4ede50952ff9b2eae2f8bc7d71550262141559a045df8d2e9ad44846057ad9b/main.spi
00:41:44 v #29933 > >
00:41:44 v #29934 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:44 v #29935 > > //// test
00:41:44 v #29936 > >
00:41:44 v #29937 > > open testing
00:41:45 v #29938 > 00:41:44 d #1620 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15940ef5d8f85b30ba43e3408c7adc79f0efee53503b522b6d30b2f516c571b5/main.spi
00:41:45 v #29939 > >
00:41:45 v #29940 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:45 v #29941 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:45 v #29942 > > │ ## fsharp                                                                    │
00:41:45 v #29943 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:45 v #29944 > >
00:41:45 v #29945 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:45 v #29946 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:45 v #29947 > > │ ### file_mode                                                                │
00:41:45 v #29948 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:45 v #29949 > >
00:41:45 v #29950 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:45 v #29951 > > nominal file_mode' = $'System.IO.FileMode'
00:41:45 v #29952 > >
00:41:45 v #29953 > > union file_mode =
00:41:45 v #29954 > >     | ModeCreateNew
00:41:45 v #29955 > >     | ModeCreate
00:41:45 v #29956 > >     | ModeOpen
00:41:45 v #29957 > >     | ModeOpenOrCreate
00:41:45 v #29958 > >     | Truncate
00:41:45 v #29959 > >     | Append
00:41:45 v #29960 > >
00:41:45 v #29961 > > inl file_mode = function
00:41:45 v #29962 > >     | ModeCreateNew => $'System.IO.FileMode.CreateNew' : file_mode'
00:41:45 v #29963 > >     | ModeCreate => $'System.IO.FileMode.Create' : file_mode'
00:41:45 v #29964 > >     | ModeOpen => $'System.IO.FileMode.Open' : file_mode'
00:41:45 v #29965 > >     | ModeOpenOrCreate => $'System.IO.FileMode.OpenOrCreate' : file_mode'
00:41:45 v #29966 > >     | Truncate => $'System.IO.FileMode.Truncate' : file_mode'
00:41:45 v #29967 > >     | Append => $'System.IO.FileMode.Append' : file_mode'
00:41:45 v #29968 > 00:41:44 d #1621 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/85394ec7c93880bf225a63e82c06cff18eaa5b59526b208438e0f1cf454a1198/main.spi
00:41:45 v #29969 > >
00:41:45 v #29970 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:45 v #29971 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:45 v #29972 > > │ ### file_access                                                              │
00:41:45 v #29973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:45 v #29974 > >
00:41:45 v #29975 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:45 v #29976 > > nominal file_access' = $'System.IO.FileAccess'
00:41:45 v #29977 > >
00:41:45 v #29978 > > union file_access =
00:41:45 v #29979 > >     | AccessRead
00:41:45 v #29980 > >     | AccessWrite
00:41:45 v #29981 > >     | AccessReadWrite
00:41:45 v #29982 > >
00:41:45 v #29983 > > inl file_access = function
00:41:45 v #29984 > >     | AccessRead => $'System.IO.FileAccess.Read' : file_access'
00:41:45 v #29985 > >     | AccessWrite => $'System.IO.FileAccess.ReadWrite' : file_access'
00:41:45 v #29986 > >     | AccessReadWrite => $'System.IO.FileAccess.ReadWrite' : file_access'
00:41:45 v #29987 > 00:41:45 d #1622 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23fef5975987550817b97e53567204d9ebef17bb6fc4da7f077bf2ba404996f8/main.spi
00:41:46 v #29988 > >
00:41:46 v #29989 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:46 v #29990 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:46 v #29991 > > │ ### file_share                                                               │
00:41:46 v #29992 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:46 v #29993 > >
00:41:46 v #29994 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:46 v #29995 > > nominal file_share' = $'System.IO.FileShare'
00:41:46 v #29996 > >
00:41:46 v #29997 > > union file_share =
00:41:46 v #29998 > >     | ShareNone
00:41:46 v #29999 > >     | ShareRead
00:41:46 v #30000 > >     | ShareWrite
00:41:46 v #30001 > >     | ShareReadWrite
00:41:46 v #30002 > >     | ShareDelete
00:41:46 v #30003 > >
00:41:46 v #30004 > > inl file_share = function
00:41:46 v #30005 > >     | ShareNone => $'System.IO.FileShare.None' : file_share'
00:41:46 v #30006 > >     | ShareRead => $'System.IO.FileShare.Read' : file_share'
00:41:46 v #30007 > >     | ShareWrite => $'System.IO.FileShare.Write' : file_share'
00:41:46 v #30008 > >     | ShareReadWrite => $'System.IO.FileShare.ReadWrite' : file_share'
00:41:46 v #30009 > >     | ShareDelete => $'System.IO.FileShare.Delete' : file_share'
00:41:46 v #30010 > 00:41:45 d #1623 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a31a55856d7c77cd022fd76d85a84657de24b8e54c4a2a1ee703bae89088ed9a/main.spi
00:41:46 v #30011 > >
00:41:46 v #30012 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:46 v #30013 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:46 v #30014 > > │ ### file_stream                                                              │
00:41:46 v #30015 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:46 v #30016 > >
00:41:46 v #30017 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:46 v #30018 > > nominal file_stream' = $'System.IO.FileStream'
00:41:46 v #30019 > >
00:41:46 v #30020 > > inl file_stream (path : string) mode access share : file_stream' =
00:41:46 v #30021 > >     run_target function
00:41:46 v #30022 > >         | Fsharp (Native) => fun () =>
00:41:46 v #30023 > >             inl mode = mode |> file_mode
00:41:46 v #30024 > >             inl access = access |> file_access
00:41:46 v #30025 > >             inl share = share |> file_share
00:41:46 v #30026 > >             $'new System.IO.FileStream (!path, !mode, !access, !share)'
00:41:46 v #30027 > >         | _ => fun () => null ()
00:41:46 v #30028 > 00:41:45 d #1624 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e2fa87e336a2e090ce4d39adcb74eca6ac28b5b8b7ab286a676aed29a5a2e90b/main.spi
00:41:46 v #30029 > >
00:41:46 v #30030 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:46 v #30031 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:46 v #30032 > > │ ### file_info                                                                │
00:41:46 v #30033 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:46 v #30034 > >
00:41:46 v #30035 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:46 v #30036 > > nominal file_info =
00:41:46 v #30037 > >     `(
00:41:46 v #30038 > >         global "#if FABLE_COMPILER\ntype file_info = unit\n#else\ntype file_info
00:41:46 v #30039 > > = System.IO.FileInfo\n#endif\n"
00:41:46 v #30040 > >         $'' : $'file_info'
00:41:46 v #30041 > >     )
00:41:46 v #30042 > >
00:41:46 v #30043 > > inl file_info (path : string) : file_info =
00:41:46 v #30044 > >     run_target function
00:41:46 v #30045 > >         | Fsharp (Native) => fun () =>
00:41:46 v #30046 > >             path |> $'`file_info '
00:41:46 v #30047 > >         | _ => fun () => null ()
00:41:46 v #30048 > 00:41:46 d #1625 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15c8ebf797434b416f788370322f17f11091606807716eab4a59bf4910d04b8f/main.spi
00:41:47 v #30049 > >
00:41:47 v #30050 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:47 v #30051 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:47 v #30052 > > │ ### directory_info                                                           │
00:41:47 v #30053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:47 v #30054 > >
00:41:47 v #30055 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:47 v #30056 > > nominal directory_info = $'System.IO.DirectoryInfo'
00:41:47 v #30057 > >
00:41:47 v #30058 > > inl directory_info (path : string) : directory_info =
00:41:47 v #30059 > >     path |> $'`directory_info '
00:41:47 v #30060 > 00:41:46 d #1626 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b10ac6220b883781f45d8017b591a9c7eed51d0e27a73b3427ab22721c01a1ed/main.spi
00:41:47 v #30061 > >
00:41:47 v #30062 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:47 v #30063 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:47 v #30064 > > │ ### directory_info_exists                                                    │
00:41:47 v #30065 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:47 v #30066 > >
00:41:47 v #30067 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:47 v #30068 > > inl directory_info_exists (info : directory_info) : bool =
00:41:47 v #30069 > >     run_target function
00:41:47 v #30070 > >         | Fsharp (Native) => fun () =>
00:41:47 v #30071 > >             $'!info.Exists'
00:41:47 v #30072 > >         | _ => fun () => null ()
00:41:47 v #30073 > 00:41:46 d #1627 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23b15cffa7c47dbf84b0a01b01d026303bf00e9605332bf46d38cb9fc3c7adec/main.spi
00:41:47 v #30074 > >
00:41:47 v #30075 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:47 v #30076 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:47 v #30077 > > │ ### directory_info_creation_time                                             │
00:41:47 v #30078 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:47 v #30079 > >
00:41:47 v #30080 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:47 v #30081 > > inl directory_info_creation_time (info : directory_info) : date_time.date_time =
00:41:47 v #30082 > >     run_target function
00:41:47 v #30083 > >         | Fsharp (Native) => fun () =>
00:41:47 v #30084 > >             $'!info.CreationTime'
00:41:47 v #30085 > >         | _ => fun () => null ()
00:41:48 v #30086 > 00:41:47 d #1628 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5bdf28f19fd6e7a6e00d8d5fcfff0865543d45d2b27fbb30db4fc10c18236f4d/main.spi
00:41:48 v #30087 > >
00:41:48 v #30088 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:48 v #30089 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:48 v #30090 > > │ ### directory_info_name                                                      │
00:41:48 v #30091 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:48 v #30092 > >
00:41:48 v #30093 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:48 v #30094 > > inl directory_info_name (info : directory_info) : string =
00:41:48 v #30095 > >     run_target function
00:41:48 v #30096 > >         | Fsharp (Native) => fun () =>
00:41:48 v #30097 > >             $'!info.Name'
00:41:48 v #30098 > >         | _ => fun () => null ()
00:41:48 v #30099 > 00:41:47 d #1629 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/529ec15b22087ef7e7b912f4be0f710402ab44e31fed2210906229f87da93132/main.spi
00:41:48 v #30100 > >
00:41:48 v #30101 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:48 v #30102 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:48 v #30103 > > │ ### directory_info_full_name                                                 │
00:41:48 v #30104 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:48 v #30105 > >
00:41:48 v #30106 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:48 v #30107 > > inl directory_info_full_name (info : directory_info) : string =
00:41:48 v #30108 > >     run_target function
00:41:48 v #30109 > >         | Fsharp (Native) => fun () =>
00:41:48 v #30110 > >             $'!info.FullName'
00:41:48 v #30111 > >         | _ => fun () => null ()
00:41:49 v #30112 > 00:41:48 d #1630 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf11abe626b5266f23f5073946815726a9d7d49e60cbf749b6a9611b295bbae3/main.spi
00:41:49 v #30113 > >
00:41:49 v #30114 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:49 v #30115 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:49 v #30116 > > │ ### file_attributes                                                          │
00:41:49 v #30117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:49 v #30118 > >
00:41:49 v #30119 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:49 v #30120 > > nominal file_attributes = $'System.IO.FileAttributes'
00:41:49 v #30121 > 00:41:48 d #1631 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d0f9a5fa550488a37207eb5eb3dcea63dd602c41d128e0286bfda41979a49de/main.spi
00:41:49 v #30122 > >
00:41:49 v #30123 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:49 v #30124 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:49 v #30125 > > │ ### directory_info_attributes                                                │
00:41:49 v #30126 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:49 v #30127 > >
00:41:49 v #30128 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:49 v #30129 > > inl directory_info_attributes (info : directory_info) : file_attributes =
00:41:49 v #30130 > >     run_target function
00:41:49 v #30131 > >         | Fsharp (Native) => fun () =>
00:41:49 v #30132 > >             $'!info.Attributes'
00:41:49 v #30133 > >         | _ => fun () => null ()
00:41:49 v #30134 > 00:41:49 d #1632 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/16211c6937034526b38c53eb0cd2bc74d3171c1272a17c3ccd36c15f72d4fb9c/main.spi
00:41:50 v #30135 > >
00:41:50 v #30136 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:50 v #30137 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:50 v #30138 > > │ ### file_attributes_reparse_point                                            │
00:41:50 v #30139 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:50 v #30140 > >
00:41:50 v #30141 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:50 v #30142 > > inl file_attributes_reparse_point () : file_attributes =
00:41:50 v #30143 > >     run_target function
00:41:50 v #30144 > >         | Fsharp (Native) => fun () =>
00:41:50 v #30145 > >             $'`file_attributes.ReparsePoint'
00:41:50 v #30146 > >         | _ => fun () => null ()
00:41:50 v #30147 > 00:41:49 d #1633 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/654fd4d5bef6588f295102fa288dc2923b127cb81595871cc3938d1f79af21f4/main.spi
00:41:50 v #30148 > >
00:41:50 v #30149 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:50 v #30150 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:50 v #30151 > > │ ### file_attributes_has_flag                                                 │
00:41:50 v #30152 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:50 v #30153 > >
00:41:50 v #30154 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:50 v #30155 > > inl file_attributes_has_flag (flag : file_attributes) (file_attributes :
00:41:50 v #30156 > > file_attributes) : bool =
00:41:50 v #30157 > >     run_target function
00:41:50 v #30158 > >         | Fsharp (Native) => fun () =>
00:41:50 v #30159 > >             $'!file_attributes.HasFlag !flag '
00:41:50 v #30160 > >         | _ => fun () => null ()
00:41:50 v #30161 > 00:41:49 d #1634 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/235ede8c0c1fe4524798b4aeef87c286a28205a0315e6b7e3117d4305da7b95d/main.spi
00:41:50 v #30162 > >
00:41:50 v #30163 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:50 v #30164 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:50 v #30165 > > │ ### create_directory                                                         │
00:41:50 v #30166 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:50 v #30167 > >
00:41:50 v #30168 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:50 v #30169 > > inl create_directory (path : string) : directory_info =
00:41:50 v #30170 > >     run_target function
00:41:50 v #30171 > >         | Fsharp (Native) => fun () =>
00:41:50 v #30172 > >             path |> $'System.IO.Directory.CreateDirectory'
00:41:50 v #30173 > >         | _ => fun () => null ()
00:41:51 v #30174 > 00:41:50 d #1635 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/864e5d959185ee786c010d5367a385b9db3a6d87f4f30f7ca8a90b8f36bb9b64/main.spi
00:41:51 v #30175 > >
00:41:51 v #30176 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:51 v #30177 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:51 v #30178 > > │ ### directory_get_files                                                      │
00:41:51 v #30179 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:51 v #30180 > >
00:41:51 v #30181 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:51 v #30182 > > inl directory_get_files (path : string) : array_base string =
00:41:51 v #30183 > >     run_target function
00:41:51 v #30184 > >         | Fsharp (Native) => fun () =>
00:41:51 v #30185 > >             path |> $'System.IO.Directory.GetFiles'
00:41:51 v #30186 > >         | _ => fun () => null ()
00:41:51 v #30187 > 00:41:50 d #1636 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb44570e218e40bdc7e9ac5c8caf1b1ce02af97b7211f30dc21289e79e0a4df1/main.spi
00:41:51 v #30188 > >
00:41:51 v #30189 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:51 v #30190 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:51 v #30191 > > │ ### file_move                                                                │
00:41:51 v #30192 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:51 v #30193 > >
00:41:51 v #30194 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:51 v #30195 > > inl file_move (new_path : string) (old_path : string) : () =
00:41:51 v #30196 > >     run_target function
00:41:51 v #30197 > >         | Fsharp (Native) => fun () =>
00:41:51 v #30198 > >             $'System.IO.File.Move (!old_path, !new_path)'
00:41:51 v #30199 > >         | _ => fun () => ()
00:41:51 v #30200 > 00:41:51 d #1637 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e198e449864285222118ecd74cc68a1458aa103f666c73b3f65e2d2b0aedebbc/main.spi
00:41:52 v #30201 > >
00:41:52 v #30202 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:52 v #30203 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:52 v #30204 > > │ ### read_all_text_async                                                      │
00:41:52 v #30205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:52 v #30206 > >
00:41:52 v #30207 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:52 v #30208 > > inl read_all_text_async (path : string) : _ string =
00:41:52 v #30209 > >     run_target function
00:41:52 v #30210 > >         | Fsharp (Native) => fun () =>
00:41:52 v #30211 > >             path |> $'System.IO.File.ReadAllTextAsync' |> async.await_task
00:41:52 v #30212 > >         | _ => fun () => null ()
00:41:52 v #30213 > 00:41:51 d #1638 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6514acdf74d472edc0514d20ea6a61682720a2afe49ba3425f92c79f199276ca/main.spi
00:41:52 v #30214 > >
00:41:52 v #30215 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:52 v #30216 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:52 v #30217 > > │ ### write_all_text_async                                                     │
00:41:52 v #30218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:52 v #30219 > >
00:41:52 v #30220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:52 v #30221 > > inl write_all_text_async (path : string) (text : string) : _ () =
00:41:52 v #30222 > >     run_target function
00:41:52 v #30223 > >         | Fsharp (Native) => fun () =>
00:41:52 v #30224 > >             $'System.IO.File.WriteAllTextAsync (!path, !text)' |>
00:41:52 v #30225 > > async.await_task
00:41:52 v #30226 > >         | _ => fun () => null ()
00:41:52 v #30227 > 00:41:51 d #1639 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec3008b23f358debde709e3173697bdcd0bcffb1b6bec130f840fbdd954153f8/main.spi
00:41:52 v #30228 > >
00:41:52 v #30229 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:52 v #30230 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:52 v #30231 > > │ ### file_system_info                                                         │
00:41:52 v #30232 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:52 v #30233 > >
00:41:52 v #30234 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:52 v #30235 > > nominal file_system_info = $'System.IO.FileSystemInfo'
00:41:53 v #30236 > 00:41:52 d #1640 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e80477d9f13944adeff8952b6debc315b4f2f2b699ce7cbe4ca48633b4712c7/main.spi
00:41:53 v #30237 > >
00:41:53 v #30238 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:53 v #30239 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:53 v #30240 > > │ ### get_source_directory                                                     │
00:41:53 v #30241 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:53 v #30242 > >
00:41:53 v #30243 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:53 v #30244 > > inl get_source_directory () =
00:41:53 v #30245 > >     $'__SOURCE_DIRECTORY__' : string
00:41:53 v #30246 > 00:41:52 d #1641 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a9b251c3088e6e2847fc06ca06fc6891cd3658122328d8b06a19f2bef866ad1f/main.spi
00:41:53 v #30247 > >
00:41:53 v #30248 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:53 v #30249 > > //// test
00:41:53 v #30250 > >
00:41:53 v #30251 > > get_source_directory ()
00:41:53 v #30252 > > |> directory_info
00:41:53 v #30253 > > |> directory_info_name
00:41:53 v #30254 > > |> _assert_eq "spiral"
00:41:54 v #30255 > 00:41:53 d #1642 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/01624f07de73eac61aafc1317a7584b731d6af0d6ca1677b284b1c629d8cae40/main.spi
00:41:55 v #30256 > >
00:41:55 v #30257 > > ╭─[ 1.18s - stdout ]───────────────────────────────────────────────────────────╮
00:41:55 v #30258 > > │ __assert_eq / actual: "spiral" / expected: "spiral"                          │
00:41:55 v #30259 > > │                                                                              │
00:41:55 v #30260 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:55 v #30261 > >
00:41:55 v #30262 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:55 v #30263 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:55 v #30264 > > │ ## rust                                                                      │
00:41:55 v #30265 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:55 v #30266 > >
00:41:55 v #30267 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:55 v #30268 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:55 v #30269 > > │ ### display                                                                  │
00:41:55 v #30270 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:55 v #30271 > >
00:41:55 v #30272 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:55 v #30273 > > nominal display =
00:41:55 v #30274 > >     `(
00:41:55 v #30275 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:41:55 v #30276 > > Fable.Core.Emit(\"std::path::Display\")>]]\ntype std_path_Display = class
00:41:55 v #30277 > > end\n#else\ntype std_path_Display = string\n#endif\n"
00:41:55 v #30278 > >         $'' : $'std_path_Display'
00:41:55 v #30279 > >     )
00:41:55 v #30280 > 00:41:54 d #1643 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/324d1becbcfb21c4de2ea698967fe0ca9f11a835d29863688a86a1094bda4e86/main.spi
00:41:55 v #30281 > >
00:41:55 v #30282 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:55 v #30283 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:55 v #30284 > > │ ### path                                                                     │
00:41:55 v #30285 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:55 v #30286 > >
00:41:55 v #30287 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:55 v #30288 > > nominal path =
00:41:55 v #30289 > >     `(
00:41:55 v #30290 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:41:55 v #30291 > > Fable.Core.Emit(\"std::path::Path\")>]]\n#endif\ntype std_path_Path = class end"
00:41:55 v #30292 > >         $'' : $'std_path_Path'
00:41:55 v #30293 > >     )
00:41:55 v #30294 > 00:41:54 d #1644 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1c4d68acb00974b5c7ec6120462369f8da0d6eb1b3c88d92f725d3cae96bbff1/main.spi
00:41:55 v #30295 > >
00:41:55 v #30296 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:55 v #30297 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:55 v #30298 > > │ ### path_buf                                                                 │
00:41:55 v #30299 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:55 v #30300 > >
00:41:55 v #30301 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:55 v #30302 > > nominal path_buf =
00:41:55 v #30303 > >     `(
00:41:55 v #30304 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:41:55 v #30305 > > Fable.Core.Emit(\"std::path::PathBuf\")>]]\ntype std_path_PathBuf = class
00:41:55 v #30306 > > end\n#else\ntype std_path_PathBuf = string\n#endif\n"
00:41:55 v #30307 > >         $'' : $'std_path_PathBuf'
00:41:55 v #30308 > >     )
00:41:56 v #30309 > 00:41:55 d #1645 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb19f49b46973b47e34406f50048830634304a5f4d7653637b27fc64faa9e5d6/main.spi
00:41:56 v #30310 > >
00:41:56 v #30311 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:56 v #30312 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:56 v #30313 > > │ ### new_path_buf                                                             │
00:41:56 v #30314 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:56 v #30315 > >
00:41:56 v #30316 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:56 v #30317 > > inl new_path_buf (path : sm'.std_string) : path_buf =
00:41:56 v #30318 > >     run_target function
00:41:56 v #30319 > >         | Rust _ => fun () => !\\(path, $'"std::path::PathBuf::from($0)"')
00:41:56 v #30320 > >         | _ => fun () => path |> convert
00:41:56 v #30321 > 00:41:55 d #1646 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5bae7c75c6fbd0284852d6f81774d61041432282366a669b1c036a01d8e20262/main.spi
00:41:56 v #30322 > >
00:41:56 v #30323 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:56 v #30324 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:56 v #30325 > > │ ### path_buf_from                                                            │
00:41:56 v #30326 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:56 v #30327 > >
00:41:56 v #30328 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:56 v #30329 > > inl path_buf_from (path : rust.box path) : path_buf =
00:41:56 v #30330 > >     !\\(path, $'"std::path::PathBuf::from($0)"')
00:41:56 v #30331 > 00:41:56 d #1647 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/41654dc5cd7466375a36eedcc9ba3d3901bfc5750ec4206240869eb18d240878/main.spi
00:41:57 v #30332 > >
00:41:57 v #30333 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:57 v #30334 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:57 v #30335 > > │ ### path_buf_join                                                            │
00:41:57 v #30336 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:57 v #30337 > >
00:41:57 v #30338 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:57 v #30339 > > inl path_buf_join (s : string) (path_buf : path_buf) : path_buf =
00:41:57 v #30340 > >     !\\((path_buf, s |> sm'.to_std_string), $'"$0.join($1)"')
00:41:57 v #30341 > 00:41:56 d #1648 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9857f26294732f580d2c5027a730da38a6dc82ea00fca2e3c4fa4bf5db79e669/main.spi
00:41:57 v #30342 > >
00:41:57 v #30343 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:57 v #30344 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:57 v #30345 > > │ ### path_buf_strip_prefix                                                    │
00:41:57 v #30346 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:57 v #30347 > >
00:41:57 v #30348 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:57 v #30349 > > inl path_buf_strip_prefix (s : string) (path_buf : path_buf) : path_buf =
00:41:57 v #30350 > >     !\\((path_buf, s |> sm'.to_std_string),
00:41:57 v #30351 > > $'"$0.strip_prefix($1).unwrap().to_path_buf()"')
00:41:57 v #30352 > 00:41:56 d #1649 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fc0d83f0d5f636fda6c9db4f78b68eacee6a7e328659a756d3c8bea9af6468f4/main.spi
00:41:58 v #30353 > >
00:41:58 v #30354 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:58 v #30355 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:58 v #30356 > > │ ### path_display                                                             │
00:41:58 v #30357 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:58 v #30358 > >
00:41:58 v #30359 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:58 v #30360 > > inl path_display (path : rust.ref path) : display =
00:41:58 v #30361 > >     !\\(path, $'"$0.display()"')
00:41:58 v #30362 > 00:41:57 d #1650 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/360de023dd94bc4272046afdb2aafec6ad93d78da0aade813e42587943fffa4f/main.spi
00:41:58 v #30363 > >
00:41:58 v #30364 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:58 v #30365 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:58 v #30366 > > │ ### path_buf_display                                                         │
00:41:58 v #30367 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:58 v #30368 > >
00:41:58 v #30369 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:58 v #30370 > > inl path_buf_display (path_buf : path_buf) : display =
00:41:58 v #30371 > >     run_target_args (fun () => path_buf) function
00:41:58 v #30372 > >         | Rust _ => fun path_buf => !\\(path_buf, $'"$0.display()"')
00:41:58 v #30373 > >         | _ => fun path_buf => path_buf |> unbox
00:41:58 v #30374 > 00:41:57 d #1651 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/33341247d52d00780b904a1285e376849ed59dc3ed1a51395e1a771715b7bd82/main.spi
00:41:58 v #30375 > >
00:41:58 v #30376 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:58 v #30377 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:58 v #30378 > > │ ### path_buf_file_name                                                       │
00:41:58 v #30379 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:58 v #30380 > >
00:41:58 v #30381 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:58 v #30382 > > inl path_buf_file_name (path : path_buf) : optionm'.option' (rust.ref
00:41:58 v #30383 > > sm'.os_str) =
00:41:58 v #30384 > >     !\\(path, $'"$0.file_name()"')
00:41:59 v #30385 > 00:41:58 d #1652 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e92c5bdc2a143126d91858996199f370c701b6ba8fc9b2f90401842dd4bf7182/main.spi
00:41:59 v #30386 > >
00:41:59 v #30387 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:59 v #30388 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:59 v #30389 > > │ ### path_buf_exists                                                          │
00:41:59 v #30390 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:59 v #30391 > >
00:41:59 v #30392 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:59 v #30393 > > inl path_buf_exists (path_buf : path_buf) : bool =
00:41:59 v #30394 > >     !\\(path_buf, $'"$0.exists()"')
00:41:59 v #30395 > 00:41:58 d #1653 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ad07d3abc194eed94045d4a4f555428d65cdc62b2c852b3377a0f70c74b9d10/main.spi
00:41:59 v #30396 > >
00:41:59 v #30397 > > ── markdown ────────────────────────────────────────────────────────────────────
00:41:59 v #30398 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:41:59 v #30399 > > │ ### path_buf_is_dir                                                          │
00:41:59 v #30400 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:41:59 v #30401 > >
00:41:59 v #30402 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:41:59 v #30403 > > inl path_buf_is_dir (path_buf : path_buf) : bool =
00:41:59 v #30404 > >     !\\(path_buf, $'"$0.is_dir()"')
00:41:59 v #30405 > 00:41:59 d #1654 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef86138dd925d2c8591580460f821542aecc314979b32ff3674684c76cb5a972/main.spi
00:42:00 v #30406 > >
00:42:00 v #30407 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:00 v #30408 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:00 v #30409 > > │ ### path_buf_is_file                                                         │
00:42:00 v #30410 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:00 v #30411 > >
00:42:00 v #30412 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:00 v #30413 > > inl path_buf_is_file (path_buf : path_buf) : bool =
00:42:00 v #30414 > >     !\\(path_buf, $'"$0.is_file()"')
00:42:00 v #30415 > 00:41:59 d #1655 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d808d7a42395fcb88838cf9ee5bc223fab1edb94c9100beef2dec31811c736f8/main.spi
00:42:00 v #30416 > >
00:42:00 v #30417 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:00 v #30418 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:00 v #30419 > > │ ### path_buf_is_symlink                                                      │
00:42:00 v #30420 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:00 v #30421 > >
00:42:00 v #30422 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:00 v #30423 > > inl path_buf_is_symlink (path_buf : path_buf) : bool =
00:42:00 v #30424 > >     !\\(path_buf, $'"$0.is_symlink()"')
00:42:00 v #30425 > 00:41:59 d #1656 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6afe0f40a84d39bfe3d11d1298eec7879ca8ff922aaf899c2ad2a667051a5e08/main.spi
00:42:00 v #30426 > >
00:42:00 v #30427 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:00 v #30428 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:00 v #30429 > > │ ### path_buf_parent                                                          │
00:42:00 v #30430 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:00 v #30431 > >
00:42:00 v #30432 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:00 v #30433 > > inl path_buf_parent (path_buf : path_buf) : optionm'.option' path_buf =
00:42:00 v #30434 > >     !\\(path_buf, $'"$0.parent().map(std::path::PathBuf::from)"')
00:42:01 v #30435 > 00:42:00 d #1657 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d4c5075458a272b01dada419149fce8a0e16010b116586d70a305644f1925eda/main.spi
00:42:01 v #30436 > >
00:42:01 v #30437 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:01 v #30438 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:01 v #30439 > > │ ### dir_entry                                                                │
00:42:01 v #30440 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:01 v #30441 > >
00:42:01 v #30442 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:01 v #30443 > > nominal dir_entry =
00:42:01 v #30444 > >     `(
00:42:01 v #30445 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:42:01 v #30446 > > Fable.Core.Emit(\"async_walkdir::DirEntry\")>]]\n#endif\ntype
00:42:01 v #30447 > > async_walkdir_DirEntry = class end"
00:42:01 v #30448 > >         $'' : $'async_walkdir_DirEntry'
00:42:01 v #30449 > >     )
00:42:01 v #30450 > 00:42:00 d #1658 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/120d044583e08c86970e2a12e3f1c3ce25b81c656d161bf3e5e190d9421764d8/main.spi
00:42:01 v #30451 > >
00:42:01 v #30452 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:01 v #30453 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:01 v #30454 > > │ ### walk_dir                                                                 │
00:42:01 v #30455 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:01 v #30456 > >
00:42:01 v #30457 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:01 v #30458 > > nominal walk_dir =
00:42:01 v #30459 > >     `(
00:42:01 v #30460 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:42:01 v #30461 > > Fable.Core.Emit(\"async_walkdir::WalkDir\")>]]\n#endif\ntype
00:42:01 v #30462 > > async_walkdir_WalkDir = class end"
00:42:01 v #30463 > >         $'' : $'async_walkdir_WalkDir'
00:42:01 v #30464 > >     )
00:42:01 v #30465 > 00:42:01 d #1659 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/46a2bb494c4c57f244653ffd7b5ab1f703f916c30657343d5b2ca2945c22428a/main.spi
00:42:02 v #30466 > >
00:42:02 v #30467 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:02 v #30468 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:02 v #30469 > > │ ### async_walkdir_filtering                                                  │
00:42:02 v #30470 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:02 v #30471 > >
00:42:02 v #30472 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:02 v #30473 > > nominal async_walkdir_filtering =
00:42:02 v #30474 > >     `(
00:42:02 v #30475 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:42:02 v #30476 > > Fable.Core.Emit(\"async_walkdir::Filtering\")>]]\n#endif\ntype
00:42:02 v #30477 > > async_walkdir_Filtering = class end"
00:42:02 v #30478 > >         $'' : $'async_walkdir_Filtering'
00:42:02 v #30479 > >     )
00:42:02 v #30480 > 00:42:01 d #1660 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/485826764b2dac58b641ae289121ad33d1f316c8a9861ea9672317389377c647/main.spi
00:42:02 v #30481 > >
00:42:02 v #30482 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:02 v #30483 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:02 v #30484 > > │ ### filtering                                                                │
00:42:02 v #30485 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:02 v #30486 > >
00:42:02 v #30487 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:02 v #30488 > > union filtering =
00:42:02 v #30489 > >     | Ignore
00:42:02 v #30490 > >     | IgnoreDir
00:42:02 v #30491 > >     | Continue
00:42:02 v #30492 > 00:42:02 d #1661 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3edfa754f8309a67510e4e7241b885d27d8b5e8aea853f08cf3684dfeb6da295/main.spi
00:42:03 v #30493 > >
00:42:03 v #30494 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:03 v #30495 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:03 v #30496 > > │ ### async_walkdir_error                                                      │
00:42:03 v #30497 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:03 v #30498 > >
00:42:03 v #30499 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:03 v #30500 > > nominal async_walkdir_error =
00:42:03 v #30501 > >     `(
00:42:03 v #30502 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:42:03 v #30503 > > Fable.Core.Emit(\"async_walkdir::Error\")>]]\n#endif\ntype async_walkdir_Error =
00:42:03 v #30504 > > class end"
00:42:03 v #30505 > >         $'' : $'async_walkdir_Error'
00:42:03 v #30506 > >     )
00:42:03 v #30507 > 00:42:02 d #1662 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/816e52a8bb1cd81628eeb7138a7ec5e0b25dc24f4904bebc4692086cecdf972f/main.spi
00:42:03 v #30508 > >
00:42:03 v #30509 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:03 v #30510 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:03 v #30511 > > │ ### new_walk_dir                                                             │
00:42:03 v #30512 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:03 v #30513 > >
00:42:03 v #30514 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:03 v #30515 > > inl new_walk_dir (dir : string) : walk_dir =
00:42:03 v #30516 > >     !\\(dir, $'"async_walkdir::WalkDir::new(&*$0)"')
00:42:03 v #30517 > >     // inl walk_dir : walk_dir = walk_dir |> rust.to_mut
00:42:03 v #30518 > >     // (!\($'"true; let mut !walk_dir = !walk_dir"') : bool) |> ignore
00:42:03 v #30519 > 00:42:02 d #1663 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bb3e94b6faf0c76e297ae5cf64556a9f4b0e46eb97d407c9a896eb34750886e4/main.spi
00:42:03 v #30520 > >
00:42:03 v #30521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:03 v #30522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:03 v #30523 > > │ ### walk_dir_filter                                                          │
00:42:03 v #30524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:03 v #30525 > >
00:42:03 v #30526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:03 v #30527 > > inl walk_dir_filter (fn : dir_entry -> async.future_pin_send filtering)
00:42:03 v #30528 > > (walk_dir : walk_dir) : walk_dir =
00:42:03 v #30529 > >     inl fn entry = async.new_future_send fun () =>
00:42:03 v #30530 > >         inl result = fn entry |> async.await_send
00:42:03 v #30531 > >         inl filtering : async_walkdir_filtering =
00:42:03 v #30532 > >             match result with
00:42:03 v #30533 > >             | Ignore => !\($'"async_walkdir::Filtering::Ignore"')
00:42:03 v #30534 > >             | IgnoreDir => !\($'"async_walkdir::Filtering::IgnoreDir"')
00:42:03 v #30535 > >             | Continue => !\($'"async_walkdir::Filtering::Continue"')
00:42:03 v #30536 > >         filtering
00:42:03 v #30537 > >     !\\((walk_dir, fn), $'"async_walkdir::WalkDir::filter($0, |x| $1(x))"')
00:42:04 v #30538 > 00:42:03 d #1664 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3631f5ad84ffc1d41010e2b25914edf6277b3b2bf41a7758403f230765ec7a29/main.spi
00:42:04 v #30539 > >
00:42:04 v #30540 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:04 v #30541 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:04 v #30542 > > │ ### file_type                                                                │
00:42:04 v #30543 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:04 v #30544 > >
00:42:04 v #30545 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:04 v #30546 > > nominal file_type =
00:42:04 v #30547 > >     `(
00:42:04 v #30548 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:42:04 v #30549 > > Fable.Core.Emit(\"std::fs::FileType\")>]]\n#endif\ntype std_fs_FileType = class
00:42:04 v #30550 > > end"
00:42:04 v #30551 > >         $'' : $'std_fs_FileType'
00:42:04 v #30552 > >     )
00:42:04 v #30553 > 00:42:03 d #1665 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/059b10e7305f0c037118f48c282b96366086a33410b72289cdf31c8d40f43e92/main.spi
00:42:04 v #30554 > >
00:42:04 v #30555 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:04 v #30556 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:04 v #30557 > > │ ### dir_entry_file_type                                                      │
00:42:04 v #30558 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:04 v #30559 > >
00:42:04 v #30560 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:04 v #30561 > > inl dir_entry_file_type (dir_entry : dir_entry) : async.future_pin_send
00:42:04 v #30562 > > (resultm.result' file_type stream.io_error) =
00:42:04 v #30563 > >     inl dir_entry = join dir_entry
00:42:04 v #30564 > >     !\($'"Box::pin(async_walkdir::DirEntry::file_type(&!dir_entry))"')
00:42:04 v #30565 > 00:42:04 d #1666 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4afe8b7b1085168f471b997c393c68b9538b00c5ab6f1f365dcc830669c82366/main.spi
00:42:05 v #30566 > >
00:42:05 v #30567 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:05 v #30568 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:05 v #30569 > > │ ### file_type_is_dir                                                         │
00:42:05 v #30570 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:05 v #30571 > >
00:42:05 v #30572 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:05 v #30573 > > inl file_type_is_dir (file_type : file_type) : bool =
00:42:05 v #30574 > >     inl file_type = join file_type
00:42:05 v #30575 > >     !\($'"std::fs::FileType::is_dir(&!file_type)"')
00:42:05 v #30576 > 00:42:04 d #1667 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c28ada703ec1a0a6f216fd83bcb11a8f8a32238e5b28c5c1ea76cb1cfc4fec37/main.spi
00:42:05 v #30577 > >
00:42:05 v #30578 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:05 v #30579 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:05 v #30580 > > │ ### file                                                                     │
00:42:05 v #30581 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:05 v #30582 > >
00:42:05 v #30583 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:05 v #30584 > > nominal file =
00:42:05 v #30585 > >     `(
00:42:05 v #30586 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:42:05 v #30587 > > Fable.Core.Emit(\"std::fs::File\")>]]\n#endif\ntype std_fs_File = class end"
00:42:05 v #30588 > >         $'' : $'std_fs_File'
00:42:05 v #30589 > >     )
00:42:05 v #30590 > 00:42:04 d #1668 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/edc12b43357ee517287e0a4fe00b47ebd1825a019181c4b92013fd6eb2b940d4/main.spi
00:42:05 v #30591 > >
00:42:05 v #30592 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:05 v #30593 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:05 v #30594 > > │ ### file_open                                                                │
00:42:05 v #30595 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:05 v #30596 > >
00:42:05 v #30597 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:05 v #30598 > > inl file_open (path : string) : resultm.result' file stream.io_error =
00:42:05 v #30599 > >     !\($'"std::fs::File::open(&*!path)"')
00:42:06 v #30600 > 00:42:05 d #1669 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/98404ddeccf4ae19393268913434bac84f1bd2e3d4769e30ab4ab6e94fea5305/main.spi
00:42:06 v #30601 > >
00:42:06 v #30602 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:06 v #30603 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:06 v #30604 > > │ ### rename                                                                   │
00:42:06 v #30605 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:06 v #30606 > >
00:42:06 v #30607 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:06 v #30608 > > inl rename (to : string) (path : string) : resultm.result' () stream.io_error =
00:42:06 v #30609 > >     !\($'"std::fs::rename(&*!path, &*!to)"')
00:42:06 v #30610 > 00:42:05 d #1670 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f7e3d0af1feb81b391f6a7ce74631183b6ceb392afe0d3d97182463f9bb56468/main.spi
00:42:06 v #30611 > >
00:42:06 v #30612 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:06 v #30613 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:06 v #30614 > > │ ### dir_entry_path                                                           │
00:42:06 v #30615 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:06 v #30616 > >
00:42:06 v #30617 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:06 v #30618 > > inl dir_entry_path (dir_entry : dir_entry) : path_buf =
00:42:06 v #30619 > >     !\\(dir_entry, $'"async_walkdir::DirEntry::path(&$0)"')
00:42:06 v #30620 > 00:42:06 d #1671 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/968ec83a5469377ad65c196eb61b981cdbb2e16a6d844240b93550b812703adc/main.spi
00:42:07 v #30621 > >
00:42:07 v #30622 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:07 v #30623 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:07 v #30624 > > │ ### create_dir_all                                                           │
00:42:07 v #30625 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:07 v #30626 > >
00:42:07 v #30627 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:07 v #30628 > > inl create_dir_all (path : string) : resultm.result' () stream.io_error =
00:42:07 v #30629 > >     !\\(path, $'"std::fs::create_dir_all(&*$0)"')
00:42:07 v #30630 > 00:42:06 d #1672 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9dfe9216f6aed30765cf0cd3972de3f084bac7e683c5b5c61e343b0d7eae79f3/main.spi
00:42:07 v #30631 > >
00:42:07 v #30632 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:07 v #30633 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:07 v #30634 > > │ ### file_info_link_target                                                    │
00:42:07 v #30635 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:07 v #30636 > >
00:42:07 v #30637 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:07 v #30638 > > inl file_info_link_target (file_info : file_info) : string =
00:42:07 v #30639 > >     run_target function
00:42:07 v #30640 > >         | Fsharp (Native) => fun () =>
00:42:07 v #30641 > >             $'!file_info.LinkTarget'
00:42:07 v #30642 > >         | _ => fun () => null ()
00:42:07 v #30643 > 00:42:06 d #1673 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d19ed5783c355cc9cbd2266276a86cdcc339a03128c3deba3402187b7c02d10/main.spi
00:42:07 v #30644 > >
00:42:07 v #30645 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:07 v #30646 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:07 v #30647 > > │ ### read                                                                     │
00:42:07 v #30648 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:07 v #30649 > >
00:42:07 v #30650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:07 v #30651 > > inl read (path : string) : resultm.result' (am'.vec u8) stream.io_error =
00:42:07 v #30652 > >     !\\(path, $'"std::fs::read(&*$0)"')
00:42:08 v #30653 > 00:42:07 d #1674 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/65ed08da5f6ca294be6dce61f8a58b0c220f4847977ee804a42cb2ccc02736f2/main.spi
00:42:08 v #30654 > >
00:42:08 v #30655 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:08 v #30656 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:08 v #30657 > > │ ## typescript                                                                │
00:42:08 v #30658 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:08 v #30659 > >
00:42:08 v #30660 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:08 v #30661 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:08 v #30662 > > │ ### ts_path_join                                                             │
00:42:08 v #30663 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:08 v #30664 > >
00:42:08 v #30665 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:08 v #30666 > > inl ts_path_join (b : string) (a : string) : string =
00:42:08 v #30667 > >     open typescript_operators
00:42:08 v #30668 > >     global "type IPathJoin = abstract join: [[<System.ParamArray>]] paths:
00:42:08 v #30669 > > string[[]] -> string"
00:42:08 v #30670 > >     inl path : $'IPathJoin' = typescript.import_all "path"
00:42:08 v #30671 > >     !\\((join a, join b), $'"!path.join($0, $1)"')
00:42:08 v #30672 > 00:42:07 d #1675 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab58749a1c54d6e183172272fc9aeab59fef7c9e478da7394a52f94d817bc6c8/main.spi
00:42:08 v #30673 > >
00:42:08 v #30674 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:08 v #30675 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:08 v #30676 > > │ ## file_system                                                               │
00:42:08 v #30677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:08 v #30678 > >
00:42:08 v #30679 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:08 v #30680 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:08 v #30681 > > │ ### (< />)                                                                   │
00:42:08 v #30682 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:08 v #30683 > >
00:42:08 v #30684 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:08 v #30685 > > let (</>) (a : string) (b : string) : string =
00:42:08 v #30686 > >     run_target function
00:42:08 v #30687 > >         | Rust (Contract) => fun () => null ()
00:42:08 v #30688 > >         | Rust (Native) => fun () =>
00:42:08 v #30689 > >             a
00:42:08 v #30690 > >             |> sm'.to_std_string
00:42:08 v #30691 > >             |> new_path_buf
00:42:08 v #30692 > >             |> path_buf_join b
00:42:08 v #30693 > >             |> path_buf_display
00:42:08 v #30694 > >             |> sm'.format'
00:42:08 v #30695 > >             |> sm'.from_std_string
00:42:08 v #30696 > >         | TypeScript (Native) => fun () =>
00:42:08 v #30697 > >             a |> ts_path_join b
00:42:08 v #30698 > >         | Fsharp (Native) => fun () =>
00:42:08 v #30699 > >             $'System.IO.Path.Combine (!a, !b)'
00:42:08 v #30700 > >         | target => fun () => failwith $'$"file_system.(</>) / target: {!target}
00:42:08 v #30701 > > / a: {!a} / b: {!b}"'
00:42:08 v #30702 > 00:42:08 d #1676 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4c1acca35c58ae7ae53f62f800b737f1ba3151d1211765d58ca32edf6d98b10b/main.spi
00:42:09 v #30703 > >
00:42:09 v #30704 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:09 v #30705 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:09 v #30706 > > │ ### get_temp_path                                                            │
00:42:09 v #30707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:09 v #30708 > >
00:42:09 v #30709 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:09 v #30710 > > let get_temp_path () : string =
00:42:09 v #30711 > >     run_target function
00:42:09 v #30712 > >         | Rust (Contract) => fun () => null ()
00:42:09 v #30713 > >         | Rust (Native) => fun () =>
00:42:09 v #30714 > >             !\($'"std::env::temp_dir()"')
00:42:09 v #30715 > >             |> path_buf_display
00:42:09 v #30716 > >             |> sm'.format'
00:42:09 v #30717 > >             |> sm'.from_std_string
00:42:09 v #30718 > >         | Fsharp (Native) => fun () =>
00:42:09 v #30719 > >             $'System.IO.Path.GetTempPath' ()
00:42:09 v #30720 > >         | target => fun () => failwith $'$"file_system.get_temp_path / target:
00:42:09 v #30721 > > {!target}"'
00:42:09 v #30722 > 00:42:08 d #1677 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/17b9e4efbbddd6d4e4e557097429ff1413b8c8c470c01e0da6dc4350ac180dd5/main.spi
00:42:09 v #30723 > >
00:42:09 v #30724 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:09 v #30725 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:09 v #30726 > > │ ### get_file_name                                                            │
00:42:09 v #30727 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:09 v #30728 > >
00:42:09 v #30729 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:09 v #30730 > > let get_file_name (path : string) : string =
00:42:09 v #30731 > >     run_target function
00:42:09 v #30732 > >         | Rust (Contract) => fun () => null ()
00:42:09 v #30733 > >         | Rust (Native) => fun () =>
00:42:09 v #30734 > >             path
00:42:09 v #30735 > >             |> sm'.to_std_string
00:42:09 v #30736 > >             |> new_path_buf
00:42:09 v #30737 > >             |> path_buf_file_name
00:42:09 v #30738 > >             |> optionm'.map' sm'.from_os_str_ref
00:42:09 v #30739 > >             |> optionm'.unbox
00:42:09 v #30740 > >             |> optionm'.default_value ""
00:42:09 v #30741 > >         | Fsharp (Native) => fun () =>
00:42:09 v #30742 > >             path |> $'System.IO.Path.GetFileName'
00:42:09 v #30743 > >         | target => fun () => failwith $'$"file_system.get_file_name / target:
00:42:09 v #30744 > > {!target} / path: {!path}"'
00:42:09 v #30745 > 00:42:09 d #1678 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/01e7b0873f03c6c7edee7085435c6bab8c37d5bac4a36abf36647485fe6a3da9/main.spi
00:42:09 v #30746 > >
00:42:09 v #30747 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:09 v #30748 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:09 v #30749 > > │ ### get_file_name_without_extension                                          │
00:42:09 v #30750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:09 v #30751 > >
00:42:09 v #30752 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:09 v #30753 > > let get_file_name_without_extension (path : string) : string =
00:42:09 v #30754 > >     run_target function
00:42:09 v #30755 > >         | Rust (Contract) => fun () => null ()
00:42:09 v #30756 > >         | Rust (Native) => fun () =>
00:42:09 v #30757 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:42:09 v #30758 > >             inl file_stem = !\\(path_buf, $'"$0.file_stem()"')
00:42:09 v #30759 > >             match file_stem |> optionm'.map' sm'.from_os_str_ref |>
00:42:09 v #30760 > > optionm'.unbox with
00:42:09 v #30761 > >             | Some file_stem => file_stem
00:42:09 v #30762 > >             | None => ""
00:42:09 v #30763 > >         | _ => fun () =>
00:42:09 v #30764 > >             path |> $'System.IO.Path.GetFileNameWithoutExtension'
00:42:10 v #30765 > 00:42:09 d #1679 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0241e60a73804a348271a884f2beebd6a934ba135a20086fc3a38687efcab198/main.spi
00:42:10 v #30766 > >
00:42:10 v #30767 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:10 v #30768 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:10 v #30769 > > │ ### get_directory_name                                                       │
00:42:10 v #30770 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:10 v #30771 > >
00:42:10 v #30772 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:10 v #30773 > > let get_directory_name (path : string) : string =
00:42:10 v #30774 > >     run_target function
00:42:10 v #30775 > >         | Rust (Native) => fun () =>
00:42:10 v #30776 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:42:10 v #30777 > >             inl parent = path_buf |> path_buf_parent
00:42:10 v #30778 > >             parent
00:42:10 v #30779 > >             |> optionm'.map' (path_buf_display >> sm'.format' >>
00:42:10 v #30780 > > sm'.from_std_string)
00:42:10 v #30781 > >             |> optionm'.default_value' ""
00:42:10 v #30782 > >         | Fsharp _ => fun () =>
00:42:10 v #30783 > >             path |> $'System.IO.Path.GetDirectoryName'
00:42:10 v #30784 > >         | _ => fun () => null ()
00:42:10 v #30785 > 00:42:09 d #1680 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b7741e1536da528f7ff233460d351ace21c7d515f0cbc710ad3c8ec55505dcc/main.spi
00:42:10 v #30786 > >
00:42:10 v #30787 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:10 v #30788 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:10 v #30789 > > │ ### get_extension                                                            │
00:42:10 v #30790 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:10 v #30791 > >
00:42:10 v #30792 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:10 v #30793 > > let get_extension (path : string) : string =
00:42:10 v #30794 > >     run_target function
00:42:10 v #30795 > >         | Rust (Contract) => fun () => null ()
00:42:10 v #30796 > >         | Rust (Native) => fun () =>
00:42:10 v #30797 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:42:10 v #30798 > >             !\\(path_buf, $'"$0.extension()"')
00:42:10 v #30799 > >             |> optionm'.unwrap
00:42:10 v #30800 > >             |> sm'.from_os_str_ref
00:42:10 v #30801 > >         | _ => fun () =>
00:42:10 v #30802 > >             path |> $'System.IO.Path.GetExtension'
00:42:10 v #30803 > 00:42:10 d #1681 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d6d06f6d9d626ad41bad81ead1297368ea76087fcd45efcdd686bb75b8a291c/main.spi
00:42:11 v #30804 > >
00:42:11 v #30805 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:11 v #30806 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:11 v #30807 > > │ ### directory_separator_char                                                 │
00:42:11 v #30808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:11 v #30809 > >
00:42:11 v #30810 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:11 v #30811 > > let directory_separator_char () : char =
00:42:11 v #30812 > >     run_target function
00:42:11 v #30813 > >         | Rust (Native) => fun () =>
00:42:11 v #30814 > >             !\($'"std::path::MAIN_SEPARATOR"')
00:42:11 v #30815 > >         | _ => fun () =>
00:42:11 v #30816 > >             $'System.IO.Path.DirectorySeparatorChar'
00:42:11 v #30817 > 00:42:10 d #1682 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc61be437aba5008a79762080651f06d13ebb5d2ec8abc209fbfdb1fe520e3bd/main.spi
00:42:11 v #30818 > >
00:42:11 v #30819 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:11 v #30820 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:11 v #30821 > > │ ### get_current_directory                                                    │
00:42:11 v #30822 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:11 v #30823 > >
00:42:11 v #30824 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:11 v #30825 > > let get_current_directory () : string =
00:42:11 v #30826 > >     run_target function
00:42:11 v #30827 > >         | Rust (Contract | Wasm) => fun () => null ()
00:42:11 v #30828 > >         | Rust (Native) => fun () =>
00:42:11 v #30829 > >             inl current_dir = !\($'"std::env::current_dir()"') : resultm.result'
00:42:11 v #30830 > > path_buf stream.io_error
00:42:11 v #30831 > >             current_dir
00:42:11 v #30832 > >             |> resultm.unwrap'
00:42:11 v #30833 > >             |> path_buf_display
00:42:11 v #30834 > >             |> sm'.format'
00:42:11 v #30835 > >             |> sm'.from_std_string
00:42:11 v #30836 > >         | Fsharp (Native) => fun () =>
00:42:11 v #30837 > >             $'System.IO.Directory.GetCurrentDirectory' ()
00:42:11 v #30838 > >         | _ => fun () => null ()
00:42:11 v #30839 > 00:42:11 d #1683 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e03a020ba4f38669bef859e8ca26f42bdf03b72f8d5401c9ea56305690176f28/main.spi
00:42:11 v #30840 > >
00:42:11 v #30841 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:11 v #30842 > > //// test
00:42:11 v #30843 > >
00:42:11 v #30844 > > get_current_directory ()
00:42:11 v #30845 > > |> _assert_contains (directory_separator_char ())
00:42:12 v #30846 > 00:42:11 d #1684 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/614d3e79a22c0a9c38ee3d774fb03b6d02dd31d00a01d42e36a4c58464213bed/main.spi
00:42:12 v #30847 > >
00:42:12 v #30848 > > ╭─[ 900.35ms - stdout ]────────────────────────────────────────────────────────╮
00:42:12 v #30849 > > │ __assert_contains / actual: "C:\home\git\polyglot\lib\spiral" / expected:    │
00:42:12 v #30850 > > │ '\\'                                                                         │
00:42:12 v #30851 > > │                                                                              │
00:42:12 v #30852 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:12 v #30853 > >
00:42:12 v #30854 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:12 v #30855 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:12 v #30856 > > │ ### directory_exists                                                         │
00:42:12 v #30857 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:12 v #30858 > >
00:42:12 v #30859 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:12 v #30860 > > let directory_exists (path : string) : bool =
00:42:12 v #30861 > >     run_target function
00:42:12 v #30862 > >         | Fsharp (Native) => fun () =>
00:42:12 v #30863 > >             path |> $'System.IO.Directory.Exists'
00:42:12 v #30864 > >         | Rust (Native) => fun () =>
00:42:12 v #30865 > >             inl path = path |> sm'.to_std_string |> new_path_buf
00:42:12 v #30866 > >             path_buf_exists path && path_buf_is_dir path
00:42:12 v #30867 > >         | TypeScript (Native) => fun () =>
00:42:12 v #30868 > >             global "type IFsExistsSync = abstract existsSync: path: string ->
00:42:12 v #30869 > > bool"
00:42:12 v #30870 > >             open typescript_operators
00:42:12 v #30871 > >             inl fs : $'IFsExistsSync' = typescript.import_all "fs"
00:42:12 v #30872 > >             !\\((fs, path), $'"$0.existsSync($1)"')
00:42:12 v #30873 > >         | _ => fun () => null ()
00:42:13 v #30874 > 00:42:12 d #1685 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d91f6da4b401132772613d1b2c1df7b809b1b7c00633a025d085094220081ae/main.spi
00:42:13 v #30875 > >
00:42:13 v #30876 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:13 v #30877 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:13 v #30878 > > │ ### directory_get_parent                                                     │
00:42:13 v #30879 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:13 v #30880 > >
00:42:13 v #30881 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:13 v #30882 > > let directory_get_parent (path : string) : optionm'.option' string =
00:42:13 v #30883 > >     run_target function
00:42:13 v #30884 > >         | Fsharp (Native) => fun () =>
00:42:13 v #30885 > >             inl parent : directory_info = path |>
00:42:13 v #30886 > > $'System.IO.Directory.GetParent'
00:42:13 v #30887 > >             if parent =. null ()
00:42:13 v #30888 > >             then None
00:42:13 v #30889 > >             else parent |> directory_info_full_name |> Some
00:42:13 v #30890 > >         | Rust (Native) => fun () =>
00:42:13 v #30891 > >             path
00:42:13 v #30892 > >             |> get_directory_name
00:42:13 v #30893 > >             |> Some
00:42:13 v #30894 > >         | TypeScript _ => fun () =>
00:42:13 v #30895 > >             open typescript_operators
00:42:13 v #30896 > >             global "type IPathDirname = abstract dirname: path: string ->
00:42:13 v #30897 > > string"
00:42:13 v #30898 > >             inl fs : $'IPathDirname' = typescript.import_all "path"
00:42:13 v #30899 > >             !\\(path, $'"!fs.dirname($0)"') |> Some
00:42:13 v #30900 > >         | _ => fun () => null ()
00:42:13 v #30901 > >     |> optionm'.box
00:42:13 v #30902 > 00:42:12 d #1686 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/878d7823ec5e44c39416d20cde3a9c1438e1ed2178cbb9677ea8bbb4ce4516e8/main.spi
00:42:13 v #30903 > >
00:42:13 v #30904 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:13 v #30905 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:13 v #30906 > > │ ### create_temp_path'                                                        │
00:42:13 v #30907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:13 v #30908 > >
00:42:13 v #30909 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:13 v #30910 > > let create_temp_path' (guid : guid.guid) =
00:42:13 v #30911 > >     run_target function
00:42:13 v #30912 > >         | Rust (Contract) => fun () => null ()
00:42:13 v #30913 > >         | _ => fun () =>
00:42:13 v #30914 > >             get_temp_path ()
00:42:13 v #30915 > >             </> (join "!create_temp_path_")
00:42:13 v #30916 > >             </> (env.get_entry_assembly_name ())
00:42:13 v #30917 > >             </> (guid |> sm'.obj_to_string)
00:42:14 v #30918 > 00:42:13 d #1687 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f3a88034ccddf674f27d4f8cf1922e0a930647c0a034be1ca80a27f7d16cdbf/main.spi
00:42:14 v #30919 > >
00:42:14 v #30920 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:14 v #30921 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:14 v #30922 > > │ ### create_temp_path                                                         │
00:42:14 v #30923 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:14 v #30924 > >
00:42:14 v #30925 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:14 v #30926 > > let create_temp_path () =
00:42:14 v #30927 > >     run_target function
00:42:14 v #30928 > >         | Rust (Contract) => fun () => null ()
00:42:14 v #30929 > >         | _ => fun () =>
00:42:14 v #30930 > >             date_time.now ()
00:42:14 v #30931 > >             |> date_time.new_guid_from_date_time
00:42:14 v #30932 > >             |> create_temp_path'
00:42:14 v #30933 > 00:42:13 d #1688 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bdfdd92fb1cd6c9102aa7c94b1f510bd93a129e61f269853baa2cac6b34ad060/main.spi
00:42:14 v #30934 > >
00:42:14 v #30935 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:14 v #30936 > > //// test
00:42:14 v #30937 > > ///! fsharp
00:42:14 v #30938 > > ///! rust -d chrono
00:42:14 v #30939 > >
00:42:14 v #30940 > > create_temp_path ()
00:42:14 v #30941 > > |> _assert_contains (directory_separator_char ())
00:42:14 v #30942 > 00:42:14 d #1689 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1bfdbc03172b8792f9d126bc12f9ee0230a260749635617c5c5cdf140693a9e5/main.spi
00:42:29 v #30943 > >
00:42:29 v #30944 > > ╭─[ 15.17s - return value ]────────────────────────────────────────────────────╮
00:42:29 v #30945 > > │ .rs output (rust -d chrono):                                                 │
00:42:29 v #30946 > > │ __assert_contains / actual:                                                  │
00:42:29 v #30947 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_5907af2 │
00:42:29 v #30948 > > │ cab94bfda2e5dbb1e645914d8a65ff8ac6b975cf881a267f2c1fb0c27\20241018-1604-0950 │
00:42:29 v #30949 > > │ -8056-0000000904e5" / expected: '\\'                                         │
00:42:29 v #30950 > > │                                                                              │
00:42:29 v #30951 > > │                                                                              │
00:42:29 v #30952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:29 v #30953 > >
00:42:29 v #30954 > > ╭─[ 15.17s - stdout ]──────────────────────────────────────────────────────────╮
00:42:29 v #30955 > > │ .fsx output:                                                                 │
00:42:29 v #30956 > > │ __assert_contains / actual:                                                  │
00:42:29 v #30957 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\20241018-1 │
00:42:29 v #30958 > > │ 604-0997-9762-90030091a5da" / expected: '\\'                                 │
00:42:29 v #30959 > > │                                                                              │
00:42:29 v #30960 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:29 v #30961 > >
00:42:29 v #30962 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:29 v #30963 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:29 v #30964 > > │ ### file_copy                                                                │
00:42:29 v #30965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:29 v #30966 > >
00:42:29 v #30967 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:29 v #30968 > > let file_copy (new_path : string) (old_path : string) : () =
00:42:29 v #30969 > >     run_target function
00:42:29 v #30970 > >         | Fsharp (Native) => fun () =>
00:42:29 v #30971 > >             $'System.IO.File.Copy (!old_path, !new_path, true)'
00:42:29 v #30972 > >         | Rust (Native) => fun () =>
00:42:29 v #30973 > >             inl new_path = join new_path
00:42:29 v #30974 > >             inl result : _ _ stream.io_error = !\\(old_path,
00:42:29 v #30975 > > $'"std::fs::copy(&*$0, &*!new_path)"')
00:42:29 v #30976 > >             match result |> resultm.map_error' sm'.format' |> resultm.unbox with
00:42:29 v #30977 > >             | Ok (result : u64) =>
00:42:29 v #30978 > >                 trace Debug
00:42:29 v #30979 > >                     fun () => "file_system.file_copy"
00:42:29 v #30980 > >                     fun () => { old_path new_path result }
00:42:29 v #30981 > >             | Error error =>
00:42:29 v #30982 > >                 trace Warning
00:42:29 v #30983 > >                     fun () => "file_system.file_copy"
00:42:29 v #30984 > >                     fun () => { old_path new_path error }
00:42:29 v #30985 > >         | _ => fun () => ()
00:42:30 v #30986 > 00:42:29 d #1690 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13092d6d95666f962c5e019afc89587b90c26936e12e30eb79d2dc66ae2be281/main.spi
00:42:30 v #30987 > >
00:42:30 v #30988 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:30 v #30989 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:30 v #30990 > > │ ### file_exists                                                              │
00:42:30 v #30991 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:30 v #30992 > >
00:42:30 v #30993 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:30 v #30994 > > let file_exists (path : string) : bool =
00:42:30 v #30995 > >     run_target function
00:42:30 v #30996 > >         | Fsharp (Native) => fun () =>
00:42:30 v #30997 > >             path |> $'System.IO.File.Exists'
00:42:30 v #30998 > >         | Rust (Native) => fun () =>
00:42:30 v #30999 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:42:30 v #31000 > >             path_buf_exists path_buf && path_buf_is_file path_buf
00:42:30 v #31001 > >         | TypeScript (Native) => fun () =>
00:42:30 v #31002 > >             open typescript_operators
00:42:30 v #31003 > >             global "type IFsExistsSync = abstract existsSync: path: string ->
00:42:30 v #31004 > > bool"
00:42:30 v #31005 > >             inl fs : $'IFsExistsSync' = typescript.import_all "fs"
00:42:30 v #31006 > >             !\\((fs, path), $'"$0.existsSync($1)"')
00:42:30 v #31007 > >         | _ => fun () => null ()
00:42:30 v #31008 > 00:42:29 d #1691 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/816343c6660fb3c9ab126dd34fc599eb8cc77a1d4de5c170ed8cee0f48f8bebc/main.spi
00:42:30 v #31009 > >
00:42:30 v #31010 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:30 v #31011 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:30 v #31012 > > │ ### directory_delete                                                         │
00:42:30 v #31013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:30 v #31014 > >
00:42:30 v #31015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:30 v #31016 > > let directory_delete recursive (path : string) : () =
00:42:30 v #31017 > >     run_target function
00:42:30 v #31018 > >         | Fsharp (Native) => fun () =>
00:42:30 v #31019 > >             $'System.IO.Directory.Delete (!path, !recursive)'
00:42:30 v #31020 > >         | Rust (Native) => fun () =>
00:42:30 v #31021 > >             inl path = join path
00:42:30 v #31022 > >             if path |> directory_exists then
00:42:30 v #31023 > >                 if recursive
00:42:30 v #31024 > >                 then !\\(path, $'"std::fs::remove_dir_all(&*$0).unwrap()"')
00:42:30 v #31025 > >                 else !\\(path, $'"std::fs::remove_dir(&*$0).unwrap()"')
00:42:30 v #31026 > >         | _ => fun () => ()
00:42:30 v #31027 > 00:42:30 d #1692 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92824f7fe81e10982c3df9f9b08324fdb89e90afbe233b2bb908bc7aa04cd3d2/main.spi
00:42:31 v #31028 > >
00:42:31 v #31029 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:31 v #31030 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:31 v #31031 > > │ ### write_all_text                                                           │
00:42:31 v #31032 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:31 v #31033 > >
00:42:31 v #31034 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:31 v #31035 > > inl write_all_text (path : string) (text : string) : () =
00:42:31 v #31036 > >     run_target function
00:42:31 v #31037 > >         | Fsharp (Native) => fun () =>
00:42:31 v #31038 > >             inl text = join text
00:42:31 v #31039 > >             $'System.IO.File.WriteAllText (!path, !text)'
00:42:31 v #31040 > >         | Rust (Native) => fun () =>
00:42:31 v #31041 > >             !\\((path, text), $'"std::fs::write(&*$0, &*$1).unwrap()"')
00:42:31 v #31042 > >         | _ => fun () => ()
00:42:31 v #31043 > 00:42:30 d #1693 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d72909a44fdfc933e374765a374432a1df618e90e0a126e10bae32bd52a0b4d/main.spi
00:42:31 v #31044 > >
00:42:31 v #31045 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:31 v #31046 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:31 v #31047 > > │ ### read_all_bytes                                                           │
00:42:31 v #31048 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:31 v #31049 > >
00:42:31 v #31050 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:31 v #31051 > > inl read_all_bytes (path : string) : am'.vec u8 =
00:42:31 v #31052 > >     run_target function
00:42:31 v #31053 > >         | Fsharp (Native) => fun () =>
00:42:31 v #31054 > >             $'!path |> System.IO.File.ReadAllBytes'
00:42:31 v #31055 > >             |> am'.to_vec
00:42:31 v #31056 > >         | Rust (Native) => fun () =>
00:42:31 v #31057 > >             path |> read |> resultm.unwrap'
00:42:31 v #31058 > >         | _ => fun () => null ()
00:42:31 v #31059 > 00:42:31 d #1694 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92bfa117f0d6a61e7a3be453817119b3b8e417a266e30b323ba0b4aa1147ec55/main.spi
00:42:32 v #31060 > >
00:42:32 v #31061 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:32 v #31062 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:32 v #31063 > > │ ### read_all_text                                                            │
00:42:32 v #31064 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:32 v #31065 > >
00:42:32 v #31066 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:32 v #31067 > > inl read_all_text (path : string) : string =
00:42:32 v #31068 > >     run_target function
00:42:32 v #31069 > >         | Fsharp (Native) => fun () =>
00:42:32 v #31070 > >             $'!path |> System.IO.File.ReadAllText'
00:42:32 v #31071 > >         | Rust (Native) => fun () =>
00:42:32 v #31072 > >             path
00:42:32 v #31073 > >             |> read_all_bytes
00:42:32 v #31074 > >             |> sm'.string_from_utf8
00:42:32 v #31075 > >             |> resultm.unwrap'
00:42:32 v #31076 > >             |> sm'.from_std_string
00:42:32 v #31077 > >         | _ => fun () => null ()
00:42:32 v #31078 > 00:42:31 d #1695 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8fc5d2f76f94ee10ab3211298f1dde6e8dca8f54aff9f81c00b8712bb9485551/main.spi
00:42:32 v #31079 > >
00:42:32 v #31080 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:32 v #31081 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:32 v #31082 > > │ ### directory_create_symbolic_link                                           │
00:42:32 v #31083 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:32 v #31084 > >
00:42:32 v #31085 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:32 v #31086 > > inl directory_create_symbolic_link (target : string) (path : string) : () =
00:42:32 v #31087 > >     run_target function
00:42:32 v #31088 > >         | Fsharp (Native) => fun () =>
00:42:32 v #31089 > >             ($'System.IO.Directory.CreateSymbolicLink (!path, !target)' :
00:42:32 v #31090 > > file_system_info)
00:42:32 v #31091 > >             |> ignore
00:42:32 v #31092 > >         | Rust (Native) => fun () =>
00:42:32 v #31093 > >             (!\\((target, path), $'"true; #[[cfg(windows)]]
00:42:32 v #31094 > > std::os::windows::fs::symlink_dir(&*$0, &*$1).unwrap()"') : bool) |> ignore
00:42:32 v #31095 > >             (!\\((target, path), $'"true; #[[cfg(unix)]]
00:42:32 v #31096 > > std::os::unix::fs::symlink(&*$0, &*$1).unwrap()"') : bool) |> ignore
00:42:32 v #31097 > >         | _ => fun () => ()
00:42:32 v #31098 > 00:42:31 d #1696 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d1445c4249b7917fb371188a923d34802e45cd3d958789a74d10c7e7377c64a/main.spi
00:42:32 v #31099 > >
00:42:32 v #31100 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:32 v #31101 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:32 v #31102 > > │ ### file_create_symbolic_link                                                │
00:42:32 v #31103 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:32 v #31104 > >
00:42:32 v #31105 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:32 v #31106 > > inl file_create_symbolic_link (target : string) (path : string) : () =
00:42:32 v #31107 > >     run_target function
00:42:32 v #31108 > >         | Fsharp (Native) => fun () =>
00:42:32 v #31109 > >             ($'System.IO.File.CreateSymbolicLink (!path, !target)' :
00:42:32 v #31110 > > file_system_info)
00:42:32 v #31111 > >             |> ignore
00:42:32 v #31112 > >         | Rust (Native) => fun () =>
00:42:32 v #31113 > >             (!\\((target, path), $'"true; #[[cfg(windows)]]
00:42:32 v #31114 > > std::os::windows::fs::symlink_file(&*$0, &*$1).unwrap()"') : bool) |> ignore
00:42:32 v #31115 > >             (!\\((target, path), $'"true; #[[cfg(unix)]]
00:42:32 v #31116 > > std::os::unix::fs::symlink(&*$0, &*$1).unwrap()"') : bool) |> ignore
00:42:32 v #31117 > >         | _ => fun () => ()
00:42:33 v #31118 > 00:42:32 d #1697 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf52abc00138271e9380fe1d940ba8acdd9853d93a1d5fbd7a684f1704ed28b3/main.spi
00:42:33 v #31119 > >
00:42:33 v #31120 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:33 v #31121 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:33 v #31122 > > │ ### file_type                                                                │
00:42:33 v #31123 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:33 v #31124 > >
00:42:33 v #31125 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:33 v #31126 > > union file_type =
00:42:33 v #31127 > >     | File
00:42:33 v #31128 > >     | Directory
00:42:33 v #31129 > 00:42:32 d #1698 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7152546c1c4b7514468087ee4a9d0492ae8c4a2be07e8af45fd4d59e01691151/main.spi
00:42:33 v #31130 > >
00:42:33 v #31131 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:33 v #31132 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:33 v #31133 > > │ ### find_parent                                                              │
00:42:33 v #31134 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:33 v #31135 > >
00:42:33 v #31136 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:33 v #31137 > > inl find_parent file_type name root_dir =
00:42:33 v #31138 > >     inl is_file = file_type = File
00:42:33 v #31139 > >     let rec loop dir =
00:42:33 v #31140 > >         if dir </> name |> (if is_file then file_exists else directory_exists)
00:42:33 v #31141 > >         then dir |> Ok
00:42:33 v #31142 > >         else
00:42:33 v #31143 > >             inl result = dir |> (join directory_get_parent)
00:42:33 v #31144 > >             match result |> optionm'.unbox with
00:42:33 v #31145 > >             | Some parent => parent |> loop
00:42:33 v #31146 > >             | None => ($'$"""No parent for {if !is_file then "file" else "dir"}
00:42:33 v #31147 > > \'{!name}\' at \'{!root_dir}\' (until \'{!dir}\')"""' : string) |> Error
00:42:33 v #31148 > >     loop root_dir
00:42:33 v #31149 > 00:42:33 d #1699 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/317d9822a90bba9b83f024f3bba240cf953c0f955639ae5b6133365801ef1030/main.spi
00:42:34 v #31150 > >
00:42:34 v #31151 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:34 v #31152 > > //// test
00:42:34 v #31153 > >
00:42:34 v #31154 > > a ;[[ Directory, ".paket"; File, "paket.dependencies" ]]
00:42:34 v #31155 > > |> am.map fun file_type, file =>
00:42:34 v #31156 > >     get_source_directory ()
00:42:34 v #31157 > >     |> find_parent file_type file
00:42:34 v #31158 > >     |> resultm.get
00:42:34 v #31159 > >     |> directory_info
00:42:34 v #31160 > >     |> directory_info_name
00:42:34 v #31161 > > |> am'.distinct
00:42:34 v #31162 > > |> fun (a x : _ int _) => x
00:42:34 v #31163 > > |> _assert_eq' ;[[ "polyglot" ]]
00:42:34 v #31164 > 00:42:33 d #1700 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/443e03f3d9f3f467086b251b03ea929d230dd3ba5f736dd3ff0b84d7b58a6364/main.spi
00:42:34 v #31165 > >
00:42:34 v #31166 > > ╭─[ 694.96ms - stdout ]────────────────────────────────────────────────────────╮
00:42:34 v #31167 > > │ __assert_eq' / actual: [|"polyglot"|] / expected: [|"polyglot"|]             │
00:42:34 v #31168 > > │                                                                              │
00:42:34 v #31169 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:34 v #31170 > >
00:42:34 v #31171 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:34 v #31172 > > //// test
00:42:34 v #31173 > > ///! rust
00:42:34 v #31174 > >
00:42:34 v #31175 > > a ;[[ Directory, ".paket"; File, "paket.dependencies" ]]
00:42:34 v #31176 > > |> am.map fun file_type, file =>
00:42:34 v #31177 > >     fun () =>
00:42:34 v #31178 > >         join
00:42:34 v #31179 > >             get_source_directory ()
00:42:34 v #31180 > >             |> find_parent file_type file
00:42:34 v #31181 > >             |> resultm.get
00:42:34 v #31182 > >             |> sm'.to_std_string
00:42:34 v #31183 > >             |> new_path_buf
00:42:34 v #31184 > >             |> path_buf_file_name
00:42:34 v #31185 > >             |> optionm'.try'
00:42:34 v #31186 > >             |> sm'.from_os_str_ref
00:42:34 v #31187 > >             |> Some
00:42:34 v #31188 > >             |> optionm'.box
00:42:34 v #31189 > >     |> fun x => x () |> optionm'.unbox
00:42:34 v #31190 > >     |> optionm'.default_value ""
00:42:34 v #31191 > > |> am'.distinct
00:42:34 v #31192 > > |> fun result =>
00:42:34 v #31193 > >     result |> am'.length |> _assert_eq 1i32
00:42:34 v #31194 > >     index result 0i32 |> _assert_eq "polyglot"
00:42:35 v #31195 > 00:42:34 d #1701 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ca82cba8df28ec4661b9efb54813bb622dca6572b9cfaf3fb19c9597de404fd/main.spi
00:42:49 v #31196 > >
00:42:49 v #31197 > > ╭─[ 14.25s - return value ]────────────────────────────────────────────────────╮
00:42:49 v #31198 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:42:49 v #31199 > > │ __assert_eq / actual: "polyglot" / expected: "polyglot"                      │
00:42:49 v #31200 > > │                                                                              │
00:42:49 v #31201 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:49 v #31202 > >
00:42:49 v #31203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:49 v #31204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:49 v #31205 > > │ ### get_workspace_root                                                       │
00:42:49 v #31206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:49 v #31207 > >
00:42:49 v #31208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:49 v #31209 > > inl get_workspace_root () =
00:42:49 v #31210 > >     (None, [[ get_source_directory; get_current_directory ]])
00:42:49 v #31211 > >     ||> listm.fold fun acc path =>
00:42:49 v #31212 > >         match acc with
00:42:49 v #31213 > >         | Some path => Some path
00:42:49 v #31214 > >         | None =>
00:42:49 v #31215 > >             path ()
00:42:49 v #31216 > >             |> find_parent Directory ("polyglot" </> ".devcontainer")
00:42:49 v #31217 > >             |> function
00:42:49 v #31218 > >                 | Ok path => Some path
00:42:49 v #31219 > >                 | Error error =>
00:42:49 v #31220 > >                     trace Warning
00:42:49 v #31221 > >                         fun () => "file_system.get_workspace_root"
00:42:49 v #31222 > >                         fun () => { error }
00:42:49 v #31223 > >                     None
00:42:49 v #31224 > >     |> optionm.value
00:42:49 v #31225 > >     |> fun root => root </> "polyglot"
00:42:49 v #31226 > 00:42:48 d #1702 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/58f1320cf89ad122bc4726436d0325f20ac5bfe798817533d4485ad9dd16a481/main.spi
00:42:49 v #31227 > >
00:42:49 v #31228 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:49 v #31229 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:49 v #31230 > > │ ### get_workspace_root_external                                              │
00:42:49 v #31231 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:49 v #31232 > >
00:42:49 v #31233 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:49 v #31234 > > inl get_workspace_root_external () =
00:42:49 v #31235 > >     inl workspace_root = get_workspace_root ()
00:42:49 v #31236 > >     inl current_dir = get_current_directory () |> sm'.to_lower
00:42:49 v #31237 > >     inl workspace_root = workspace_root |> sm'.to_lower
00:42:49 v #31238 > >     if current_dir |> sm'.starts_with workspace_root
00:42:49 v #31239 > >     then Error workspace_root
00:42:49 v #31240 > >     else Ok workspace_root
00:42:49 v #31241 > 00:42:49 d #1703 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/497f9e8afbb6a555296542d03bde7eb86628d300e9c0a28a2defbb0d45d3e09d/main.spi
00:42:50 v #31242 > >
00:42:50 v #31243 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:50 v #31244 > > //// test
00:42:50 v #31245 > >
00:42:50 v #31246 > > get_workspace_root_external ()
00:42:50 v #31247 > > |> resultm.unwrap_err
00:42:50 v #31248 > > |> get_file_name
00:42:50 v #31249 > > |> _assert_eq "polyglot"
00:42:50 v #31250 > 00:42:49 d #1704 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e3e13d58452fab5f9bbb550cb735fc047409f78733f171c6ba72c8f25aa1b7f4/main.spi
00:42:50 v #31251 > >
00:42:50 v #31252 > > ╭─[ 830.83ms - stdout ]────────────────────────────────────────────────────────╮
00:42:50 v #31253 > > │ __assert_eq / actual: "polyglot" / expected: "polyglot"                      │
00:42:50 v #31254 > > │                                                                              │
00:42:50 v #31255 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:50 v #31256 > >
00:42:50 v #31257 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:50 v #31258 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:50 v #31259 > > │ ### file_delete                                                              │
00:42:50 v #31260 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:50 v #31261 > >
00:42:50 v #31262 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:50 v #31263 > > inl file_delete (path : string) : () =
00:42:50 v #31264 > >     run_target function
00:42:50 v #31265 > >         | Fsharp (Native) => fun () =>
00:42:50 v #31266 > >             path |> $'System.IO.File.Delete'
00:42:50 v #31267 > >         | Rust (Native) => fun () =>
00:42:50 v #31268 > >             !\\(path, $'"std::fs::remove_file(&*$0).unwrap()"')
00:42:50 v #31269 > >         | _ => fun () => ()
00:42:51 v #31270 > 00:42:50 d #1705 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/746d68a9f6e6d879f95e2fb298f939210c7ab1228c353759466b164ffa113868/main.spi
00:42:51 v #31271 > >
00:42:51 v #31272 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:51 v #31273 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:51 v #31274 > > │ ### read_link                                                                │
00:42:51 v #31275 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:51 v #31276 > >
00:42:51 v #31277 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:51 v #31278 > > inl read_link (path : string) : resultm.result' path_buf stream.io_error =
00:42:51 v #31279 > >     inl run loop n error path' =
00:42:51 v #31280 > >         inl name = path' |> get_file_name
00:42:51 v #31281 > >         inl parent = path' |> directory_get_parent |> optionm'.unbox
00:42:51 v #31282 > >         match parent with
00:42:51 v #31283 > >         | _ when n >= 11 =>
00:42:51 v #31284 > >             ($'$"file_system.read_link / path: {!path} / n: {!n} / path\':
00:42:51 v #31285 > > {!path'} / name: {!name}"' : string)
00:42:51 v #31286 > >             |> stream.new_io_error
00:42:51 v #31287 > >             |> resultm.err
00:42:51 v #31288 > >         | Some parent when path' <>. "" =>
00:42:51 v #31289 > >             match loop (n + 1) parent |> resultm.map_error' sm'.format |>
00:42:51 v #31290 > > resultm.unbox with
00:42:51 v #31291 > >             | Ok parent' =>
00:42:51 v #31292 > >                 (parent' |> path_buf_display |> convert) </> name
00:42:51 v #31293 > >                 |> sm'.to_std_string
00:42:51 v #31294 > >                 |> new_path_buf
00:42:51 v #31295 > >                 |> resultm.ok''
00:42:51 v #31296 > >             | Error error' =>
00:42:51 v #31297 > >                 ($'$"file_system.read_link / error\': {!error'} / error:
00:42:51 v #31298 > > {!error} / name: {!name}"' : string)
00:42:51 v #31299 > >                 |> stream.new_io_error
00:42:51 v #31300 > >                 |> resultm.err
00:42:51 v #31301 > >         | _ =>
00:42:51 v #31302 > >             ($'$"file_system.read_link / run / The file or directory is not a
00:42:51 v #31303 > > reparse point. / path: {!path} / error: {!error} / path\': {!path'} / name:
00:42:51 v #31304 > > {!name}"' : string)
00:42:51 v #31305 > >             |> stream.new_io_error
00:42:51 v #31306 > >             |> resultm.err
00:42:51 v #31307 > >     run_target function
00:42:51 v #31308 > >         | Rust _ => fun () =>
00:42:51 v #31309 > >             if path |> directory_exists
00:42:51 v #31310 > >             then !\\(path, $'"std::fs::read_link(&*$0)"')
00:42:51 v #31311 > >             else
00:42:51 v #31312 > >                 inl rec loop n path' =
00:42:51 v #31313 > >                     inl result : _ _ stream.io_error = !\\(path',
00:42:51 v #31314 > > $'"std::fs::read_link(&*$0)"')
00:42:51 v #31315 > >                     inl result = result |> resultm.map_error' sm'.format |>
00:42:51 v #31316 > > resultm.unbox
00:42:51 v #31317 > >                     match result with
00:42:51 v #31318 > >                     | Ok x => x |> resultm.ok''
00:42:51 v #31319 > >                     | Error error => path' |> run loop n error
00:42:51 v #31320 > >                 path |> loop 0u8
00:42:51 v #31321 > >         | TypeScript _ => fun () => null ()
00:42:51 v #31322 > >         | Fsharp _ => fun () =>
00:42:51 v #31323 > >             inl rec loop n path' =
00:42:51 v #31324 > >                 inl result =
00:42:51 v #31325 > >                     path'
00:42:51 v #31326 > >                     |> directory_info
00:42:51 v #31327 > >                     |> directory_info_attributes
00:42:51 v #31328 > >                     |> file_attributes_has_flag (file_attributes_reparse_point
00:42:51 v #31329 > > ())
00:42:51 v #31330 > >                 if result then
00:42:51 v #31331 > >                     path'
00:42:51 v #31332 > >                     |> file_info
00:42:51 v #31333 > >                     |> file_info_link_target
00:42:51 v #31334 > >                     |> convert
00:42:51 v #31335 > >                     |> resultm.ok''
00:42:51 v #31336 > >                 else
00:42:51 v #31337 > >                     inl error = ($'$"file_system.read_link / Fsharp / The file
00:42:51 v #31338 > > or directory is not a reparse point. / path: {!path} / result: {!result}
00:42:51 v #31339 > > path\': {!path'} / n: {!n}"' : string)
00:42:51 v #31340 > >                     inl error = error |> stream.new_io_error
00:42:51 v #31341 > >                     path' |> run loop n error
00:42:51 v #31342 > >             path |> loop 0u8
00:42:51 v #31343 > >         | _ => fun () => $'Unchecked.defaultof<_>'
00:42:51 v #31344 > 00:42:50 d #1706 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc251f7f6a440c8661948f0756c81629b1035ac5d5568bac2d0478e72f796f41/main.spi
00:42:51 v #31345 > >
00:42:51 v #31346 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:51 v #31347 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:51 v #31348 > > │ ### normalize_path                                                           │
00:42:51 v #31349 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:51 v #31350 > >
00:42:51 v #31351 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:51 v #31352 > > let normalize_path (path : string) : string =
00:42:51 v #31353 > >     if path = ""
00:42:51 v #31354 > >     then ""
00:42:51 v #31355 > >     else
00:42:51 v #31356 > >         inl path =
00:42:51 v #31357 > >             match path |> read_link |> resultm.ok' |> optionm'.unbox with
00:42:51 v #31358 > >             | Some path_buf =>
00:42:51 v #31359 > >                 inl result =
00:42:51 v #31360 > >                     path_buf
00:42:51 v #31361 > >                     |> path_buf_display
00:42:51 v #31362 > >                     |> convert
00:42:51 v #31363 > >                 if result = ""
00:42:51 v #31364 > >                 then path
00:42:51 v #31365 > >                 else result
00:42:51 v #31366 > >             | None => path
00:42:51 v #31367 > >         if path = ""
00:42:51 v #31368 > >         then ""
00:42:51 v #31369 > >         else
00:42:51 v #31370 > >             inl path = path |> sm'.replace_regex @"^\\\\\?\\" ""
00:42:51 v #31371 > >             $'$"{!path.[[0]] |> string |> _.ToLower()}{!path.[[1..]]}"' |>
00:42:51 v #31372 > > sm'.replace "\\" "/"
00:42:51 v #31373 > 00:42:51 d #1707 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6a5ac5214731a0ed6b4bce57bd9d9743adfe6f8c67e62dd082ca9b26f9b50559/main.spi
00:42:52 v #31374 > >
00:42:52 v #31375 > > ── markdown ────────────────────────────────────────────────────────────────────
00:42:52 v #31376 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:42:52 v #31377 > > │ ### get_full_path                                                            │
00:42:52 v #31378 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:52 v #31379 > >
00:42:52 v #31380 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:52 v #31381 > > let get_full_path (path : string) : string =
00:42:52 v #31382 > >     run_target_args (fun () => path) function
00:42:52 v #31383 > >         | Fsharp (Native) => fun path =>
00:42:52 v #31384 > >             path |> $'System.IO.Path.GetFullPath'
00:42:52 v #31385 > >         | Rust (Native) => fun path =>
00:42:52 v #31386 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:42:52 v #31387 > >             if path_buf |> path_buf_exists |> not then
00:42:52 v #31388 > >                 inl current_dir = get_current_directory ()
00:42:52 v #31389 > >                 current_dir </> path
00:42:52 v #31390 > >                 |> normalize_path
00:42:52 v #31391 > >                 |> sm'.split "/"
00:42:52 v #31392 > >                 |> fun x =>
00:42:52 v #31393 > >                     ((a x : _ i32 _), (0i32, (a ;[[]] : _ i32 _)))
00:42:52 v #31394 > >                     ||> am.foldBack fun x level, acc =>
00:42:52 v #31395 > >                         match x, level with
00:42:52 v #31396 > >                         | "..", _ => level + 1, acc
00:42:52 v #31397 > >                         | ".", _ => level, acc
00:42:52 v #31398 > >                         | _, 0 when x |> sm'.ends_with ":" => 0, a ;[[
00:42:52 v #31399 > > $'$"{!current_dir.[[0]]}:"' ]] ++ acc
00:42:52 v #31400 > >                         | _, 0 => 0, a ;[[ x ]] ++ acc
00:42:52 v #31401 > >                         | _ => level - 1, acc
00:42:52 v #31402 > >                 |> snd
00:42:52 v #31403 > >                 |> seq.of_array'
00:42:52 v #31404 > >                 |> sm'.concat (directory_separator_char () |> sm'.obj_to_string)
00:42:52 v #31405 > >             else
00:42:52 v #31406 > >                 inl path = !\\(path, $'"std::fs::canonicalize(&*$0)"') :
00:42:52 v #31407 > > resultm.result' path_buf stream.io_error
00:42:52 v #31408 > >                 path
00:42:52 v #31409 > >                 |> resultm.unwrap'
00:42:52 v #31410 > >                 |> path_buf_display
00:42:52 v #31411 > >                 |> sm'.format'
00:42:52 v #31412 > >                 |> sm'.from_std_string
00:42:52 v #31413 > >         | _ => fun _ => null ()
00:42:52 v #31414 > 00:42:51 d #1708 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a370a1ed65b9a96c1ffe3cd6cf14ac0e2cbcb6c30118d782c43ef64d28e575d/main.spi
00:42:52 v #31415 > >
00:42:52 v #31416 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:52 v #31417 > > //// test
00:42:52 v #31418 > >
00:42:52 v #31419 > > "."
00:42:52 v #31420 > > |> get_full_path
00:42:52 v #31421 > > |> directory_info
00:42:52 v #31422 > > |> directory_info_name
00:42:52 v #31423 > > |> _assert_eq "spiral"
00:42:52 v #31424 > 00:42:52 d #1709 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19bac3af3396557532713926d55541533a7cdd8b7cdb501ee225828b0ad71a53/main.spi
00:42:54 v #31425 > >
00:42:54 v #31426 > > ╭─[ 2.31s - stdout ]───────────────────────────────────────────────────────────╮
00:42:54 v #31427 > > │ __assert_eq / actual: "spiral" / expected: "spiral"                          │
00:42:54 v #31428 > > │                                                                              │
00:42:54 v #31429 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:54 v #31430 > >
00:42:54 v #31431 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:54 v #31432 > > //// test
00:42:54 v #31433 > >
00:42:54 v #31434 > > "dir/.././._file"
00:42:54 v #31435 > > |> get_full_path
00:42:54 v #31436 > > |> _assert_eq (get_current_directory () </> "._file")
00:42:55 v #31437 > 00:42:54 d #1710 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b2be0a89e94cc59f4c5107adece56601ff8380a8310f7b69c0bc9dc99569a1c/main.spi
00:42:57 v #31438 > >
00:42:57 v #31439 > > ╭─[ 2.29s - stdout ]───────────────────────────────────────────────────────────╮
00:42:57 v #31440 > > │ __assert_eq / actual: "C:\home\git\polyglot\lib\spiral\._file" / expected:   │
00:42:57 v #31441 > > │ "C:\home\git\polyglot\lib\spiral\._file"                                     │
00:42:57 v #31442 > > │                                                                              │
00:42:57 v #31443 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:42:57 v #31444 > >
00:42:57 v #31445 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:42:57 v #31446 > > //// test
00:42:57 v #31447 > > ///! rust -d regex
00:42:57 v #31448 > >
00:42:57 v #31449 > > "."
00:42:57 v #31450 > > |> get_full_path
00:42:57 v #31451 > > |> sm'.to_std_string
00:42:57 v #31452 > > |> new_path_buf
00:42:57 v #31453 > > |> path_buf_file_name
00:42:57 v #31454 > > |> optionm'.unwrap
00:42:57 v #31455 > > |> sm'.from_os_str_ref
00:42:57 v #31456 > > |> _assert_eq "spiral"
00:42:57 v #31457 > 00:42:56 d #1711 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a4fc45cae36d18fa7fbb55d643494629ce3495954133c3087c2b466d25923c9c/main.spi
00:43:15 v #31458 > >
00:43:15 v #31459 > > ╭─[ 18.41s - return value ]────────────────────────────────────────────────────╮
00:43:15 v #31460 > > │ __assert_eq / actual: "spiral" / expected: "spiral"                          │
00:43:15 v #31461 > > │                                                                              │
00:43:15 v #31462 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:15 v #31463 > >
00:43:15 v #31464 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:15 v #31465 > > //// test
00:43:15 v #31466 > > ///! rust -d regex
00:43:15 v #31467 > >
00:43:15 v #31468 > > "dir/.././._file"
00:43:15 v #31469 > > |> get_full_path
00:43:15 v #31470 > > |> _assert_eq (get_current_directory () </> "._file")
00:43:15 v #31471 > 00:43:15 d #1712 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2a28f3aa0efc45f30dfd5c3154ee9a713541a81dddd68e4e3da51dab2167dc0/main.spi
00:43:34 v #31472 > >
00:43:34 v #31473 > > ╭─[ 18.67s - return value ]────────────────────────────────────────────────────╮
00:43:34 v #31474 > > │ __assert_eq / actual: "C:\home\git\polyglot\lib\spiral\._file" / expected:   │
00:43:34 v #31475 > > │ "C:\home\git\polyglot\lib\spiral\._file"                                     │
00:43:34 v #31476 > > │                                                                              │
00:43:34 v #31477 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:34 v #31478 > >
00:43:34 v #31479 > > ── markdown ────────────────────────────────────────────────────────────────────
00:43:34 v #31480 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:43:34 v #31481 > > │ ### standardize_path                                                         │
00:43:34 v #31482 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:34 v #31483 > >
00:43:34 v #31484 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:34 v #31485 > > let standardize_path path =
00:43:34 v #31486 > >     path |> get_full_path |> normalize_path
00:43:34 v #31487 > 00:43:33 d #1713 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/355b22fb1475f93802f9e56d65bce5a41b6bbe20fd289bbab69ce2e0864320eb/main.spi
00:43:34 v #31488 > >
00:43:34 v #31489 > > ── markdown ────────────────────────────────────────────────────────────────────
00:43:34 v #31490 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:43:34 v #31491 > > │ ### absolute_path                                                            │
00:43:34 v #31492 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:34 v #31493 > >
00:43:34 v #31494 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:34 v #31495 > > let absolute_path path =
00:43:34 v #31496 > >     inl current_dir = get_current_directory ()
00:43:34 v #31497 > >     current_dir </> path |> standardize_path
00:43:35 v #31498 > 00:43:34 d #1714 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/429d46d05a186172ee73c765719b5bde062eb2eeb0b9c51637532adaac266d6a/main.spi
00:43:35 v #31499 > >
00:43:35 v #31500 > > ── markdown ────────────────────────────────────────────────────────────────────
00:43:35 v #31501 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:43:35 v #31502 > > │ ### new_file_uri                                                             │
00:43:35 v #31503 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:35 v #31504 > >
00:43:35 v #31505 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:35 v #31506 > > inl new_file_uri (path : string) : string =
00:43:35 v #31507 > >     inl path = path |> sm'.trim_start [[ '/' ]]
00:43:35 v #31508 > >     $'$"file:///{!path}"'
00:43:35 v #31509 > 00:43:34 d #1715 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a339a4066e93d7c6b39c8630d1f9f66117764e5feec456167b61e75ae40049f/main.spi
00:43:35 v #31510 > >
00:43:35 v #31511 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:35 v #31512 > > //// test
00:43:35 v #31513 > >
00:43:35 v #31514 > > @"\\?\C:\test"
00:43:35 v #31515 > > |> normalize_path
00:43:35 v #31516 > > |> new_file_uri
00:43:35 v #31517 > > |> _assert_eq "file:///c:/test"
00:43:36 v #31518 > 00:43:35 d #1716 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7890b367d6e9b0ea346b86a35f1da7c099a6a7760c51f34e567c3bc2a443a752/main.spi
00:43:38 v #31519 > >
00:43:38 v #31520 > > ╭─[ 2.34s - stdout ]───────────────────────────────────────────────────────────╮
00:43:38 v #31521 > > │ __assert_eq / actual: "file:///c:/test" / expected: "file:///c:/test"        │
00:43:38 v #31522 > > │                                                                              │
00:43:38 v #31523 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:38 v #31524 > >
00:43:38 v #31525 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:38 v #31526 > > //// test
00:43:38 v #31527 > > ///! rust -d regex
00:43:38 v #31528 > >
00:43:38 v #31529 > > @"\\?\C:\test"
00:43:38 v #31530 > > |> normalize_path
00:43:38 v #31531 > > |> new_file_uri
00:43:38 v #31532 > > |> _assert_eq "file:///c:/test"
00:43:38 v #31533 > 00:43:37 d #1717 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b931f6a69dbbf08a2c59d9031f13074b65e149c126f71c69cfd3c3156210255c/main.spi
00:43:56 v #31534 > >
00:43:56 v #31535 > > ╭─[ 18.28s - return value ]────────────────────────────────────────────────────╮
00:43:56 v #31536 > > │ __assert_eq / actual: "file:///c:/test" / expected: "file:///c:/test"        │
00:43:56 v #31537 > > │                                                                              │
00:43:56 v #31538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:56 v #31539 > >
00:43:56 v #31540 > > ── markdown ────────────────────────────────────────────────────────────────────
00:43:56 v #31541 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:43:56 v #31542 > > │ ## fsharp                                                                    │
00:43:56 v #31543 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:56 v #31544 > >
00:43:56 v #31545 > > ── markdown ────────────────────────────────────────────────────────────────────
00:43:56 v #31546 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:43:56 v #31547 > > │ ### file_exists_content_async                                                │
00:43:56 v #31548 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:56 v #31549 > >
00:43:56 v #31550 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:56 v #31551 > > inl file_exists_content_async path content : async.async bool =
00:43:56 v #31552 > >     run_target function
00:43:56 v #31553 > >         | Fsharp (Native) => fun () =>
00:43:56 v #31554 > >             fun () =>
00:43:56 v #31555 > >                 fix_condition
00:43:56 v #31556 > >                     fun () => path |> file_exists |> not
00:43:56 v #31557 > >                     fun () => false |> return
00:43:56 v #31558 > >                     fun () =>
00:43:56 v #31559 > >                         inl existing_content = path |> read_all_text_async |>
00:43:56 v #31560 > > async.let'
00:43:56 v #31561 > >                         content = existing_content |> return
00:43:56 v #31562 > >             |> async.new_async_unit
00:43:56 v #31563 > >         | _ => fun () => null ()
00:43:56 v #31564 > 00:43:55 d #1718 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c0830df545ac54f9d9ab855526595572272ac7031661e3d5dd9cde44f00ff8f7/main.spi
00:43:56 v #31565 > >
00:43:56 v #31566 > > ── markdown ────────────────────────────────────────────────────────────────────
00:43:56 v #31567 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:43:56 v #31568 > > │ ### write_all_text_exists_async                                              │
00:43:56 v #31569 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:56 v #31570 > >
00:43:56 v #31571 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:56 v #31572 > > inl write_all_text_exists_async path contents =
00:43:56 v #31573 > >     fun () =>
00:43:56 v #31574 > >         inl exists' = contents |> file_exists_content_async path |> async.let'
00:43:56 v #31575 > >         if not exists'
00:43:56 v #31576 > >         then contents |> write_all_text_async path |> async.do
00:43:56 v #31577 > >     |> async.new_async
00:43:57 v #31578 > 00:43:56 d #1719 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8551e2d5cec174f1cb439608a9b8d3c7f2dff846ef49bfc3d2ca2781a8e080f0/main.spi
00:43:57 v #31579 > >
00:43:57 v #31580 > > ── markdown ────────────────────────────────────────────────────────────────────
00:43:57 v #31581 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:43:57 v #31582 > > │ ### delete_directory_async                                                   │
00:43:57 v #31583 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:57 v #31584 > >
00:43:57 v #31585 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:57 v #31586 > > inl delete_directory_async path : _ i64 =
00:43:57 v #31587 > >     run_target function
00:43:57 v #31588 > >         | Fsharp (Native) => fun () =>
00:43:57 v #31589 > >             let rec loop (retry : i64) =
00:43:57 v #31590 > >                 fun () =>
00:43:57 v #31591 > >                     try_unit
00:43:57 v #31592 > >                         fun () =>
00:43:57 v #31593 > >                             path |> directory_delete true
00:43:57 v #31594 > >                             retry |> return
00:43:57 v #31595 > >                         fun ex =>
00:43:57 v #31596 > >                             if retry % 100i64 = 0 then
00:43:57 v #31597 > >                                 inl ex = ex |> sm'.format_exception
00:43:57 v #31598 > >                                 trace Debug
00:43:57 v #31599 > >                                     fun () =>
00:43:57 v #31600 > > "file_system.delete_directory_async"
00:43:57 v #31601 > >                                     fun () => { ex path = path |> get_file_name
00:43:57 v #31602 > > }
00:43:57 v #31603 > >                             async.sleep 10i32 |> async.do
00:43:57 v #31604 > >                             loop (retry + 1) |> async.return_await
00:43:57 v #31605 > >                 |> async.new_async
00:43:57 v #31606 > >             loop 0
00:43:57 v #31607 > >         | _ => fun () => null ()
00:43:57 v #31608 > 00:43:56 d #1720 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6e50cf03335d6388134e91f615d65b26047009fb9c8a955d96548533189338af/main.spi
00:43:57 v #31609 > >
00:43:57 v #31610 > > ── markdown ────────────────────────────────────────────────────────────────────
00:43:57 v #31611 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:43:57 v #31612 > > │ ### trace_file                                                               │
00:43:57 v #31613 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:57 v #31614 > >
00:43:57 v #31615 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:57 v #31616 > > let rec trace_file text =
00:43:57 v #31617 > >     run_target function
00:43:57 v #31618 > >     | Fsharp (Native) => fun () =>
00:43:57 v #31619 > >         try_unit
00:43:57 v #31620 > >             fun () =>
00:43:57 v #31621 > >                 inl assembly_name = env.get_entry_assembly_name ()
00:43:57 v #31622 > >                 inl guid = date_time.now () |> date_time.new_guid_from_date_time
00:43:57 v #31623 > >                 inl file_name = $'$"{!assembly_name}_{!guid}.txt"'
00:43:57 v #31624 > >
00:43:57 v #31625 > >                 inl workspace_root = get_workspace_root ()
00:43:57 v #31626 > >                 inl trace_dir = workspace_root </> "target/trace"
00:43:57 v #31627 > >                 trace_dir |> create_directory |> ignore
00:43:57 v #31628 > >                 inl path = trace_dir </> file_name
00:43:57 v #31629 > >                 text |> write_all_text_async path |> async.run_synchronously
00:43:57 v #31630 > >             fun ex =>
00:43:57 v #31631 > >                 trace_file $'$"file_system.trace_file / ex: %A{!ex}"'
00:43:57 v #31632 > >     | _ => fun () => ()
00:43:57 v #31633 > 00:43:57 d #1721 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8834ad0be5155b9786a4d27b05d88a56e8c40e69917f5737ae3d3cc512b5d7e5/main.spi
00:43:58 v #31634 > >
00:43:58 v #31635 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:58 v #31636 > > //// test
00:43:58 v #31637 > >
00:43:58 v #31638 > > inl get_count dir : i64 =
00:43:58 v #31639 > >     inl files = dir |> directory_get_files
00:43:58 v #31640 > >     a files |> am'.length
00:43:58 v #31641 > >
00:43:58 v #31642 > > inl trace_dir = get_workspace_root () </> "target/trace"
00:43:58 v #31643 > > trace_dir |> create_directory |> ignore
00:43:58 v #31644 > >
00:43:58 v #31645 > > inl count = get_count trace_dir
00:43:58 v #31646 > >
00:43:58 v #31647 > > trace_file "test"
00:43:58 v #31648 > >
00:43:58 v #31649 > > get_count trace_dir
00:43:58 v #31650 > > |> _assert_eq (count + 1)
00:43:58 v #31651 > 00:43:57 d #1722 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a90778d54f00bcb2c10328e647e989e6fc533994756bd578fcbc261cb0e322a/main.spi
00:43:59 v #31652 > >
00:43:59 v #31653 > > ╭─[ 1.17s - stdout ]───────────────────────────────────────────────────────────╮
00:43:59 v #31654 > > │ __assert_eq / actual: 41L / expected: 41L                                    │
00:43:59 v #31655 > > │                                                                              │
00:43:59 v #31656 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:59 v #31657 > >
00:43:59 v #31658 > > ── markdown ────────────────────────────────────────────────────────────────────
00:43:59 v #31659 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:43:59 v #31660 > > │ ### init_trace_file                                                          │
00:43:59 v #31661 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:59 v #31662 > >
00:43:59 v #31663 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:59 v #31664 > > inl init_trace_file enabled =
00:43:59 v #31665 > >     inl state_trace_file = get_trace_state_or_init None .trace_file
00:43:59 v #31666 > >     state_trace_file <- if enabled then trace_file else ignore
00:43:59 v #31667 > 00:43:58 d #1723 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0edfe74c7c5b22126d26f139e106680a86cbdada3f85ba6bbc4f91e4cf828d06/main.spi
00:43:59 v #31668 > >
00:43:59 v #31669 > > ── markdown ────────────────────────────────────────────────────────────────────
00:43:59 v #31670 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:43:59 v #31671 > > │ ## file_system                                                               │
00:43:59 v #31672 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:59 v #31673 > >
00:43:59 v #31674 > > ── markdown ────────────────────────────────────────────────────────────────────
00:43:59 v #31675 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:43:59 v #31676 > > │ ### create_dir                                                               │
00:43:59 v #31677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:43:59 v #31678 > >
00:43:59 v #31679 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:43:59 v #31680 > > let create_dir dir =
00:43:59 v #31681 > >     run_target function
00:43:59 v #31682 > >         | Rust (Contract | Wasm) => fun () => null ()
00:43:59 v #31683 > >         | Rust (Native) => fun () =>
00:43:59 v #31684 > >             inl dir = join dir
00:43:59 v #31685 > >             match dir |> create_dir_all |> resultm.map_error' sm'.format' |>
00:43:59 v #31686 > > resultm.unbox with
00:43:59 v #31687 > >             | Ok () =>
00:43:59 v #31688 > >                 trace Verbose
00:43:59 v #31689 > >                     fun () => "file_system.create_dir"
00:43:59 v #31690 > >                     fun () => { dir }
00:43:59 v #31691 > >             | Error error =>
00:43:59 v #31692 > >                 trace Critical
00:43:59 v #31693 > >                     fun () => "file_system.create_dir"
00:43:59 v #31694 > >                     fun () => { dir error }
00:43:59 v #31695 > >             inl disposable : _ () = new_disposable fun () =>
00:43:59 v #31696 > >                 dir
00:43:59 v #31697 > >                 |> directory_delete true
00:43:59 v #31698 > >             disposable
00:43:59 v #31699 > >         | _ => fun () =>
00:43:59 v #31700 > >             inl directory_info = dir |> create_directory
00:43:59 v #31701 > >             inl exists' = directory_info |> directory_info_exists
00:43:59 v #31702 > >             if not exists' then
00:43:59 v #31703 > >                 inl creation_time = directory_info |>
00:43:59 v #31704 > > directory_info_creation_time
00:43:59 v #31705 > >                 inl result = ($'{| Exists = !exists'; CreationTime =
00:43:59 v #31706 > > !creation_time |}' : infer) |> sm'.format_debug
00:43:59 v #31707 > >                 trace Debug
00:43:59 v #31708 > >                     fun () => "file_system.create_dir"
00:43:59 v #31709 > >                     fun () => { dir result }
00:43:59 v #31710 > >             inl disposable : _ () = new_disposable fun () =>
00:43:59 v #31711 > >                 dir
00:43:59 v #31712 > >                 |> delete_directory_async
00:43:59 v #31713 > >                 |> async.ignore
00:43:59 v #31714 > >                 |> async.run_synchronously
00:43:59 v #31715 > >             disposable
00:44:00 v #31716 > 00:43:59 d #1724 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f57ee7a57145d2daac602ed19ad2a2d8dcfc36e7a0dce41de6f2a35c9bc21ef/main.spi
00:44:00 v #31717 > >
00:44:00 v #31718 > > ── markdown ────────────────────────────────────────────────────────────────────
00:44:00 v #31719 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:44:00 v #31720 > > │ ### create_temp_dir                                                          │
00:44:00 v #31721 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:44:00 v #31722 > >
00:44:00 v #31723 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:44:00 v #31724 > > inl create_temp_dir () =
00:44:00 v #31725 > >     inl dir = create_temp_path ()
00:44:00 v #31726 > >     dir, dir |> create_dir
00:44:00 v #31727 > 00:43:59 d #1725 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68dc33639fe81c0daeaa369ca6a7361d746f88c9c52047db903ef86b6497c11d/main.spi
00:44:00 v #31728 > >
00:44:00 v #31729 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:44:00 v #31730 > > //// test
00:44:00 v #31731 > >
00:44:00 v #31732 > > inl path, disposable = create_temp_dir ()
00:44:00 v #31733 > > disposable |> use |> ignore
00:44:00 v #31734 > > path
00:44:00 v #31735 > > |> directory_exists
00:44:00 v #31736 > > |> _assert_eq true
00:44:00 v #31737 > 00:44:00 d #1726 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e52029d4bf8cb4d6faaced3b9f608c6119007a904e682509a7161be05e15ef14/main.spi
00:44:02 v #31738 > >
00:44:02 v #31739 > > ╭─[ 1.40s - stdout ]───────────────────────────────────────────────────────────╮
00:44:02 v #31740 > > │ __assert_eq / actual: true / expected: true                                  │
00:44:02 v #31741 > > │                                                                              │
00:44:02 v #31742 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:44:02 v #31743 > >
00:44:02 v #31744 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:44:02 v #31745 > > //// test
00:44:02 v #31746 > > ///! rust -d chrono
00:44:02 v #31747 > >
00:44:02 v #31748 > > inl path, disposable = create_temp_dir ()
00:44:02 v #31749 > > path
00:44:02 v #31750 > > |> directory_exists
00:44:02 v #31751 > > |> _assert_eq true
00:44:02 v #31752 > > disposable |> use |> ignore
00:44:02 v #31753 > > path
00:44:02 v #31754 > > |> directory_exists
00:44:02 v #31755 > > |> _assert_eq false
00:44:02 v #31756 > 00:44:01 d #1727 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f801edf46e8ce020578787155624d32f63236640abf6a22c9ecb2e7165edcdd7/main.spi
00:44:18 v #31757 > >
00:44:18 v #31758 > > ╭─[ 16.18s - return value ]────────────────────────────────────────────────────╮
00:44:18 v #31759 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:44:18 v #31760 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_ee7b916b │
00:44:18 v #31761 > > │ 419d7e668ad7019e9e930680e58db09abf550d11884b9d99689a5f93\20241018-1605-5846- │
00:44:18 v #31762 > > │ 5359-0000002976f3 }                                                          │
00:44:18 v #31763 > > │ __assert_eq / actual: true / expected: true                                  │
00:44:18 v #31764 > > │ __assert_eq / actual: false / expected: false                                │
00:44:18 v #31765 > > │                                                                              │
00:44:18 v #31766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:44:18 v #31767 > >
00:44:18 v #31768 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:44:18 v #31769 > > //// test
00:44:18 v #31770 > >
00:44:18 v #31771 > > inl lock_directory path =
00:44:18 v #31772 > >     fun () =>
00:44:18 v #31773 > >         trace Debug (fun () => "_1") id
00:44:18 v #31774 > >         "0" |> write_all_text_async (path </> "test.txt") |> async.do
00:44:18 v #31775 > >         file_stream
00:44:18 v #31776 > >             (path </> "test.txt")
00:44:18 v #31777 > >             ModeOpen
00:44:18 v #31778 > >             AccessReadWrite
00:44:18 v #31779 > >             ShareNone
00:44:18 v #31780 > >         |> use
00:44:18 v #31781 > >         |> ignore
00:44:18 v #31782 > >         trace Debug (fun () => "_2") id
00:44:18 v #31783 > >         async.sleep 2000 |> async.do
00:44:18 v #31784 > >         trace Debug (fun () => "_3") id
00:44:18 v #31785 > >         () |> return
00:44:18 v #31786 > >     |> async.new_async
00:44:18 v #31787 > >
00:44:18 v #31788 > > inl temp_dir, disposable = create_temp_dir ()
00:44:18 v #31789 > > disposable |> use |> ignore
00:44:18 v #31790 > > inl path = temp_dir </> "test"
00:44:18 v #31791 > >
00:44:18 v #31792 > > fun () =>
00:44:18 v #31793 > >     trace Debug (fun () => "1") id
00:44:18 v #31794 > >     path |> create_directory |> ignore
00:44:18 v #31795 > >     trace Debug (fun () => "2") id
00:44:18 v #31796 > >     inl child = path |> lock_directory |> async.start_child |> async.let'
00:44:18 v #31797 > >     trace Debug (fun () => "3") id
00:44:18 v #31798 > >     async.sleep 60 |> async.do
00:44:18 v #31799 > >     trace Debug (fun () => "4") id
00:44:18 v #31800 > >     inl retries = path |> delete_directory_async |> async.let'
00:44:18 v #31801 > >     trace Debug (fun () => "5") id
00:44:18 v #31802 > >     child |> async.do
00:44:18 v #31803 > >     trace Debug (fun () => "6") id
00:44:18 v #31804 > >     retries |> return
00:44:18 v #31805 > > |> async.new_async_unit
00:44:18 v #31806 > > |> async.run_with_timeout 3000
00:44:18 v #31807 > > |> fun x => x : _ i64
00:44:18 v #31808 > > |> function
00:44:18 v #31809 > >     | Some (retries : i64) =>
00:44:18 v #31810 > >         retries
00:44:18 v #31811 > >         |> _assert_between
00:44:18 v #31812 > >             (if platform.is_windows () then 50 else 0)
00:44:18 v #31813 > >             (if platform.is_windows () then 180 else 0)
00:44:18 v #31814 > >
00:44:18 v #31815 > >         true
00:44:18 v #31816 > >     | _ => false
00:44:18 v #31817 > > |> _assert_eq true
00:44:18 v #31818 > 00:44:17 d #1728 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/91ca4603d0d990b055116894a0dd8f9a6cb65b601946ee6107fb94dbfd247c03/main.spi
00:44:22 v #31819 > >
00:44:22 v #31820 > > ╭─[ 3.74s - stdout ]───────────────────────────────────────────────────────────╮
00:44:22 v #31821 > > │ 00:00:00 d #1 1                                                         │
00:44:22 v #31822 > > │ 00:00:00 d #2 2                                                         │
00:44:22 v #31823 > > │ 00:00:00 d #3 3                                                         │
00:44:22 v #31824 > > │ 00:00:00 d #4 _1                                                        │
00:44:22 v #31825 > > │ 00:00:00 d #5 _2                                                        │
00:44:22 v #31826 > > │ 00:00:00 d #6 4                                                         │
00:44:22 v #31827 > > │ 00:00:00 d #7 file_system.delete_directory_async / { ex =               │
00:44:22 v #31828 > > │ System.IO.IOException: The process cannot access the file 'test.txt' because │
00:44:22 v #31829 > > │ it is being used by another process.; path = test }                          │
00:44:22 v #31830 > > │ 00:00:01 d #8 file_system.delete_directory_async / { ex =               │
00:44:22 v #31831 > > │ System.IO.IOException: The process cannot access the file 'test.txt' because │
00:44:22 v #31832 > > │ it is being used by another process.; path = test }                          │
00:44:22 v #31833 > > │ 00:00:02 d #9 _3                                                        │
00:44:22 v #31834 > > │ 00:00:02 d #10 5                                                        │
00:44:22 v #31835 > > │ 00:00:02 d #11 6                                                        │
00:44:22 v #31836 > > │ __assert_between / actual: 124L / expected: struct (50L, 180L)               │
00:44:22 v #31837 > > │ __assert_eq / actual: true / expected: true                                  │
00:44:22 v #31838 > > │                                                                              │
00:44:22 v #31839 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:44:22 v #31840 > >
00:44:22 v #31841 > > ── markdown ────────────────────────────────────────────────────────────────────
00:44:22 v #31842 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:44:22 v #31843 > > │ ### create_temp_dir'                                                         │
00:44:22 v #31844 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:44:22 v #31845 > >
00:44:22 v #31846 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:44:22 v #31847 > > inl create_temp_dir' (hash : string) =
00:44:22 v #31848 > >     inl dir = hash |> guid.hash_guid |> create_temp_path'
00:44:22 v #31849 > >     dir, dir |> create_dir
00:44:22 v #31850 > 00:44:21 d #1729 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28dc7393b0a71fb49e1c2837e2ddd6926eff7205fedd84385ee1cfbdc313d57f/main.spi
00:44:22 v #31851 > >
00:44:22 v #31852 > > ── markdown ────────────────────────────────────────────────────────────────────
00:44:22 v #31853 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:44:22 v #31854 > > │ ### link_directory                                                           │
00:44:22 v #31855 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:44:22 v #31856 > >
00:44:22 v #31857 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:44:22 v #31858 > > let link_directory target_path path =
00:44:22 v #31859 > >     if target_path |> directory_exists |> not
00:44:22 v #31860 > >     then target_path |> create_dir |> ignore
00:44:22 v #31861 > >
00:44:22 v #31862 > >     inl lib_dir_path = path |> get_directory_name
00:44:22 v #31863 > >     if lib_dir_path |> directory_exists |> not
00:44:22 v #31864 > >     then lib_dir_path |> create_dir |> ignore
00:44:22 v #31865 > >
00:44:22 v #31866 > >     if (path |> directory_exists)
00:44:22 v #31867 > >         && (path |> read_link |> resultm.is_err) then
00:44:22 v #31868 > >         path |> directory_delete true
00:44:22 v #31869 > >
00:44:22 v #31870 > >     if path |> directory_exists |> not then
00:44:22 v #31871 > >         path |> directory_create_symbolic_link target_path
00:44:22 v #31872 > 00:44:21 d #1730 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5d7d05b1ce7a7248fb2d8ee2564758aaeebd10f59136746ad47419de5bd6e10f/main.spi
00:44:23 v #31873 > >
00:44:23 v #31874 > > ── markdown ────────────────────────────────────────────────────────────────────
00:44:23 v #31875 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:44:23 v #31876 > > │ ### link_file                                                                │
00:44:23 v #31877 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:44:23 v #31878 > >
00:44:23 v #31879 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:44:23 v #31880 > > let link_file target_path path =
00:44:23 v #31881 > >     if (path |> file_exists)
00:44:23 v #31882 > >         && (path |> read_link |> resultm.is_err) then
00:44:23 v #31883 > >         path |> file_delete
00:44:23 v #31884 > >
00:44:23 v #31885 > >     if path |> file_exists |> not then
00:44:23 v #31886 > >         path |> file_create_symbolic_link target_path
00:44:23 v #31887 > 00:44:22 d #1731 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8ce28b00d5699c0ebcc188db28620d7a93afa1edd183d1b7390f81575c98098e/main.spi
00:44:23 v #31888 > >
00:44:23 v #31889 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:44:23 v #31890 > > //// test
00:44:23 v #31891 > > ///! fsharp
00:44:23 v #31892 > > ///! rust -d sha2 regex
00:44:23 v #31893 > >
00:44:23 v #31894 > > inl file_name = "LICENSE"
00:44:23 v #31895 > > inl text = file_name
00:44:23 v #31896 > >
00:44:23 v #31897 > > inl test_hash =
00:44:23 v #31898 > >     (file_name, text)
00:44:23 v #31899 > >     |> sm'.format_debug
00:44:23 v #31900 > >     |> crypto.hash_text
00:44:23 v #31901 > >
00:44:23 v #31902 > > inl workspace_root = get_workspace_root ()
00:44:23 v #31903 > > inl test_dir = workspace_root </> "target/test/file_system" </> test_hash
00:44:23 v #31904 > >
00:44:23 v #31905 > > inl disposable = test_dir |> create_dir
00:44:23 v #31906 > >
00:44:23 v #31907 > > inl dir_path = test_dir </> "dir1"
00:44:23 v #31908 > >
00:44:23 v #31909 > > if dir_path |> directory_exists
00:44:23 v #31910 > > then dir_path |> directory_delete true
00:44:23 v #31911 > >
00:44:23 v #31912 > > dir_path |> create_dir |> ignore
00:44:23 v #31913 > >
00:44:23 v #31914 > > inl path = dir_path </> file_name
00:44:23 v #31915 > > text |> write_all_text path
00:44:23 v #31916 > >
00:44:23 v #31917 > > inl dir_link_path = test_dir </> "link1"
00:44:23 v #31918 > >
00:44:23 v #31919 > > dir_link_path |> link_directory dir_path
00:44:23 v #31920 > >
00:44:23 v #31921 > > inl link_path = dir_link_path </> file_name
00:44:23 v #31922 > >
00:44:23 v #31923 > > link_path
00:44:23 v #31924 > > |> read_all_text
00:44:23 v #31925 > > |> _assert_eq text
00:44:23 v #31926 > >
00:44:23 v #31927 > > dir_link_path
00:44:23 v #31928 > > |> read_link
00:44:23 v #31929 > > |> resultm.unwrap'
00:44:23 v #31930 > > |> path_buf_display
00:44:23 v #31931 > > |> convert
00:44:23 v #31932 > > |> _assert sm'.ends_with "dir1"
00:44:23 v #31933 > >
00:44:23 v #31934 > > link_path
00:44:23 v #31935 > > |> read_link
00:44:23 v #31936 > > |> resultm.unwrap'
00:44:23 v #31937 > > |> path_buf_display
00:44:23 v #31938 > > |> convert
00:44:23 v #31939 > > |> _assert sm'.ends_with "LICENSE"
00:44:23 v #31940 > >
00:44:23 v #31941 > > inl link_name = "LICENSE_"
00:44:23 v #31942 > >
00:44:23 v #31943 > > inl link_path = dir_path </> link_name
00:44:23 v #31944 > >
00:44:23 v #31945 > > link_path |> link_file path
00:44:23 v #31946 > >
00:44:23 v #31947 > > inl link_path' = dir_link_path </> link_name
00:44:23 v #31948 > >
00:44:23 v #31949 > > link_path'
00:44:23 v #31950 > > |> read_all_text
00:44:23 v #31951 > > |> _assert_eq text
00:44:23 v #31952 > >
00:44:23 v #31953 > > link_path
00:44:23 v #31954 > > |> read_link
00:44:23 v #31955 > > |> resultm.unwrap'
00:44:23 v #31956 > > |> path_buf_display
00:44:23 v #31957 > > |> convert
00:44:23 v #31958 > > |> _assert sm'.ends_with "LICENSE"
00:44:23 v #31959 > >
00:44:23 v #31960 > > link_path'
00:44:23 v #31961 > > |> read_link
00:44:23 v #31962 > > |> resultm.unwrap'
00:44:23 v #31963 > > |> path_buf_display
00:44:23 v #31964 > > |> convert
00:44:23 v #31965 > > |> _assert sm'.ends_with "LICENSE"
00:44:23 v #31966 > >
00:44:23 v #31967 > > disposable |> use |> ignore
00:44:23 v #31968 > 00:44:22 d #1732 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/034d6ae7f327dfc722f02c87defc461763654f1673121f1aef6550daf1577a51/main.spi
00:45:03 v #31969 > >
00:45:03 v #31970 > > ╭─[ 39.81s - return value ]────────────────────────────────────────────────────╮
00:45:03 v #31971 > > │                                                                              │
00:45:03 v #31972 > > │ .rs output (rust -d sha2 regex):                                             │
00:45:03 v #31973 > > │ 00:00:00 v #1 file_system.create_dir / { dir =                         │
00:45:03 v #31974 > > │ c:\home\git\polyglot\target/test/file_system\17e16cea7984b0e6f403259e33e4959 │
00:45:03 v #31975 > > │ 2eda85aedd790ed910e9f3e619d9cd257 }                                          │
00:45:03 v #31976 > > │ 00:00:00 v #2 file_system.create_dir / { dir =                         │
00:45:03 v #31977 > > │ c:\home\git\polyglot\target/test/file_system\17e16cea7984b0e6f403259e33e4959 │
00:45:03 v #31978 > > │ 2eda85aedd790ed910e9f3e619d9cd257\dir1 }                                     │
00:45:03 v #31979 > > │ __assert_eq / actual: "LICENSE" / expected: "LICENSE"                        │
00:45:03 v #31980 > > │ __assert / actual: "dir1" / expected:                                        │
00:45:03 v #31981 > > │ "c:\home\git\polyglot\target\test\file_system\17e16cea7984b0e6f403259e33e495 │
00:45:03 v #31982 > > │ 92eda85aedd790ed910e9f3e619d9cd257\dir1"                                     │
00:45:03 v #31983 > > │ __assert / actual: "LICENSE" / expected:                                     │
00:45:03 v #31984 > > │ "c:\home\git\polyglot\target\test\file_system\17e16cea7984b0e6f403259e33e495 │
00:45:03 v #31985 > > │ 92eda85aedd790ed910e9f3e619d9cd257\dir1\LICENSE"                             │
00:45:03 v #31986 > > │ __assert_eq / actual: "LICENSE" / expected: "LICENSE"                        │
00:45:03 v #31987 > > │ __assert / actual: "LICENSE" / expected:                                     │
00:45:03 v #31988 > > │ "c:\home\git\polyglot\target\test\file_system\17e16cea7984b0e6f403259e33e495 │
00:45:03 v #31989 > > │ 92eda85aedd790ed910e9f3e619d9cd257\dir1\LICENSE"                             │
00:45:03 v #31990 > > │ __assert / actual: "LICENSE" / expected:                                     │
00:45:03 v #31991 > > │ "c:\home\git\polyglot\target\test\file_system\17e16cea7984b0e6f403259e33e495 │
00:45:03 v #31992 > > │ 92eda85aedd790ed910e9f3e619d9cd257\dir1\LICENSE"                             │
00:45:03 v #31993 > > │                                                                              │
00:45:03 v #31994 > > │                                                                              │
00:45:03 v #31995 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:03 v #31996 > >
00:45:03 v #31997 > > ╭─[ 39.81s - stdout ]──────────────────────────────────────────────────────────╮
00:45:03 v #31998 > > │ .fsx output:                                                                 │
00:45:03 v #31999 > > │ __assert_eq / actual: "LICENSE" / expected: "LICENSE"                        │
00:45:03 v #32000 > > │ __assert / actual: "dir1" / expected:                                        │
00:45:03 v #32001 > > │ "C:\home\git\polyglot\target\test\file_system\8f260c25ec3f6eaaf0d0d1b67ed9c4 │
00:45:03 v #32002 > > │ 7873a182ca04606835404e641a952871da\dir1"                                     │
00:45:03 v #32003 > > │ __assert / actual: "LICENSE" / expected:                                     │
00:45:03 v #32004 > > │ "C:\home\git\polyglot\target\test\file_system\8f260c25ec3f6eaaf0d0d1b67ed9c4 │
00:45:03 v #32005 > > │ 7873a182ca04606835404e641a952871da\dir1\LICENSE"                             │
00:45:03 v #32006 > > │ __assert_eq / actual: "LICENSE" / expected: "LICENSE"                        │
00:45:03 v #32007 > > │ __assert / actual: "LICENSE" / expected:                                     │
00:45:03 v #32008 > > │ "C:\home\git\polyglot\target\test\file_system\8f260c25ec3f6eaaf0d0d1b67ed9c4 │
00:45:03 v #32009 > > │ 7873a182ca04606835404e641a952871da\dir1\LICENSE"                             │
00:45:03 v #32010 > > │ __assert / actual: "LICENSE" / expected:                                     │
00:45:03 v #32011 > > │ "C:\home\git\polyglot\target\test\file_system\8f260c25ec3f6eaaf0d0d1b67ed9c4 │
00:45:03 v #32012 > > │ 7873a182ca04606835404e641a952871da\dir1\LICENSE"                             │
00:45:03 v #32013 > > │                                                                              │
00:45:03 v #32014 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:03 v #32015 > >
00:45:03 v #32016 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:03 v #32017 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:03 v #32018 > > │ ## rust                                                                      │
00:45:03 v #32019 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:03 v #32020 > >
00:45:03 v #32021 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:03 v #32022 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:03 v #32023 > > │ ### file_exists_content                                                      │
00:45:03 v #32024 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:03 v #32025 > >
00:45:03 v #32026 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:03 v #32027 > > let file_exists_content path content : bool =
00:45:03 v #32028 > >     run_target function
00:45:03 v #32029 > >         | Rust (Native) => fun () =>
00:45:03 v #32030 > >             if path |> file_exists |> not
00:45:03 v #32031 > >             then false
00:45:03 v #32032 > >             else
00:45:03 v #32033 > >                 inl existing_content = path |> read_all_text
00:45:03 v #32034 > >                 content = existing_content
00:45:03 v #32035 > >         | _ => fun () => null ()
00:45:03 v #32036 > 00:45:02 d #1733 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cbf7c9048b3b64339ebc6277c8c8bb4823c0b004fe650d81881a213b41b2606f/main.spi
00:45:03 v #32037 > >
00:45:03 v #32038 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:03 v #32039 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:03 v #32040 > > │ ### write_all_text_exists                                                    │
00:45:03 v #32041 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:03 v #32042 > >
00:45:03 v #32043 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:03 v #32044 > > let write_all_text_exists path contents =
00:45:03 v #32045 > >     inl exists' = contents |> file_exists_content path
00:45:03 v #32046 > >     if not exists' then
00:45:03 v #32047 > >         inl dir = path |> get_directory_name
00:45:03 v #32048 > >         if dir |> directory_exists |> not
00:45:03 v #32049 > >         then dir |> create_dir |> ignore
00:45:03 v #32050 > >         contents |> write_all_text path
00:45:04 v #32051 > 00:45:03 d #1734 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6107549ed2b477642a28c87bfca9542b789b14fde1091168cad6653d7a230033/main.spi
00:45:04 v #32052 > >
00:45:04 v #32053 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:04 v #32054 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:04 v #32055 > > │ ## fsharp                                                                    │
00:45:04 v #32056 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:04 v #32057 > >
00:45:04 v #32058 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:04 v #32059 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:04 v #32060 > > │ ### wait_for_file_access                                                     │
00:45:04 v #32061 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:04 v #32062 > >
00:45:04 v #32063 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:04 v #32064 > > inl wait_for_file_access access path =
00:45:04 v #32065 > >     run_target function
00:45:04 v #32066 > >         | Fsharp (Native) => fun () =>
00:45:04 v #32067 > >             inl file_access, file_share =
00:45:04 v #32068 > >                 access
00:45:04 v #32069 > >                 |> optionm'.default_value (AccessReadWrite, ShareRead)
00:45:04 v #32070 > >             let rec loop (retry : i64) : _ i64 =
00:45:04 v #32071 > >                 fun () =>
00:45:04 v #32072 > >                     try_unit
00:45:04 v #32073 > >                         fun () =>
00:45:04 v #32074 > >                             file_stream
00:45:04 v #32075 > >                                 path
00:45:04 v #32076 > >                                 ModeOpen
00:45:04 v #32077 > >                                 file_access
00:45:04 v #32078 > >                                 file_share
00:45:04 v #32079 > >                             |> use
00:45:04 v #32080 > >                             |> ignore
00:45:04 v #32081 > >                             retry |> return
00:45:04 v #32082 > >                         fun ex =>
00:45:04 v #32083 > >                             if retry > 0 && retry % 100i64 = 0 then
00:45:04 v #32084 > >                                 inl ex = ex |> sm'.format_exception
00:45:04 v #32085 > >                                 trace Debug
00:45:04 v #32086 > >                                     fun () => "file_system.wait_for_file_access"
00:45:04 v #32087 > >                                     fun () => { path = path |> get_file_name;
00:45:04 v #32088 > > retry ex }
00:45:04 v #32089 > >                             async.sleep 10i32 |> async.do
00:45:04 v #32090 > >                             loop (retry + 1) |> async.return_await
00:45:04 v #32091 > >                 |> async.new_async
00:45:04 v #32092 > >             loop 0
00:45:04 v #32093 > >         | _ => fun () => null ()
00:45:04 v #32094 > >
00:45:04 v #32095 > > inl wait_for_file_access_read path =
00:45:04 v #32096 > >     path
00:45:04 v #32097 > >     |> wait_for_file_access (Some (
00:45:04 v #32098 > >         AccessRead,
00:45:04 v #32099 > >         ShareRead
00:45:04 v #32100 > >     ))
00:45:04 v #32101 > 00:45:03 d #1735 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/627d7a8d3e066d3f2876617a490640f222019dc0272dc0ab5c62675633e9143e/main.spi
00:45:04 v #32102 > >
00:45:04 v #32103 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:04 v #32104 > > //// test
00:45:04 v #32105 > >
00:45:04 v #32106 > > inl lock_file path =
00:45:04 v #32107 > >     fun () =>
00:45:04 v #32108 > >         trace Debug (fun () => "_1") id
00:45:04 v #32109 > >         inl stream : file_stream' =
00:45:04 v #32110 > >             file_stream
00:45:04 v #32111 > >                 path
00:45:04 v #32112 > >                 ModeOpen
00:45:04 v #32113 > >                 AccessReadWrite
00:45:04 v #32114 > >                 ShareNone
00:45:04 v #32115 > >             |> use
00:45:04 v #32116 > >         trace Debug (fun () => "_2") id
00:45:04 v #32117 > >         async.sleep 2000 |> async.do
00:45:04 v #32118 > >         trace Debug (fun () => "_3") id
00:45:04 v #32119 > >         ($'!stream.Seek (0L, System.IO.SeekOrigin.Begin)' : i64) |> ignore
00:45:04 v #32120 > >         trace Debug (fun () => "_4") id
00:45:04 v #32121 > >         $'!stream.WriteByte' 49u8
00:45:04 v #32122 > >         trace Debug (fun () => "_5") id
00:45:04 v #32123 > >         stream |> $'_.Flush()'
00:45:04 v #32124 > >         trace Debug (fun () => "_6") id
00:45:04 v #32125 > >     |> async.new_async
00:45:04 v #32126 > >
00:45:04 v #32127 > > inl file_name = "test.txt"
00:45:04 v #32128 > > inl text = "0"
00:45:04 v #32129 > >
00:45:04 v #32130 > > inl temp_dir, disposable =
00:45:04 v #32131 > >     (file_name, text)
00:45:04 v #32132 > >     |> sm'.format_debug
00:45:04 v #32133 > >     |> crypto.hash_text
00:45:04 v #32134 > >     |> create_temp_dir'
00:45:04 v #32135 > > disposable |> use |> ignore
00:45:04 v #32136 > > inl path = temp_dir </> file_name
00:45:04 v #32137 > >
00:45:04 v #32138 > > fun () =>
00:45:04 v #32139 > >     trace Debug (fun () => "1") id
00:45:04 v #32140 > >     text |> write_all_text_async path |> async.do
00:45:04 v #32141 > >     trace Debug (fun () => "2") id
00:45:04 v #32142 > >     inl child = path |> lock_file |> async.start_child |> async.let'
00:45:04 v #32143 > >     trace Debug (fun () => "3") id
00:45:04 v #32144 > >     async.sleep 1 |> async.do
00:45:04 v #32145 > >     trace Debug (fun () => "4") id
00:45:04 v #32146 > >     inl retries = path |> wait_for_file_access None |> async.let'
00:45:04 v #32147 > >     trace Debug (fun () => "5") id
00:45:04 v #32148 > >     inl text = path |> read_all_text_async |> async.let'
00:45:04 v #32149 > >     trace Debug (fun () => "6") id
00:45:04 v #32150 > >     child |> async.do
00:45:04 v #32151 > >     trace Debug (fun () => "7") id
00:45:04 v #32152 > >     (retries, text) |> return
00:45:04 v #32153 > > |> async.new_async_unit
00:45:04 v #32154 > > |> async.run_with_timeout 3000
00:45:04 v #32155 > > |> function
00:45:04 v #32156 > >     | Some ((retries : i64), text) =>
00:45:04 v #32157 > >         retries
00:45:04 v #32158 > >         |> _assert_between
00:45:04 v #32159 > >             (if platform.is_windows () then 50 else 100)
00:45:04 v #32160 > >             (if platform.is_windows () then 180 else 200)
00:45:04 v #32161 > >
00:45:04 v #32162 > >         text |> _assert_eq (join "1")
00:45:04 v #32163 > >
00:45:04 v #32164 > >         true
00:45:04 v #32165 > >     | _ => false
00:45:04 v #32166 > > |> _assert_eq true
00:45:05 v #32167 > 00:45:04 d #1736 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a0b67c6c4b14aa65bc1cd78d6333d36375aa0361c39dc48d74f1a08819989333/main.spi
00:45:08 v #32168 > >
00:45:08 v #32169 > > ╭─[ 4.04s - stdout ]───────────────────────────────────────────────────────────╮
00:45:08 v #32170 > > │ 00:00:00 d #1 1                                                         │
00:45:08 v #32171 > > │ 00:00:00 d #2 2                                                         │
00:45:08 v #32172 > > │ 00:00:00 d #3 3                                                         │
00:45:08 v #32173 > > │ 00:00:00 d #4 _1                                                        │
00:45:08 v #32174 > > │ 00:00:00 d #5 _2                                                        │
00:45:08 v #32175 > > │ 00:00:00 d #6 4                                                         │
00:45:08 v #32176 > > │ 00:00:01 d #7 file_system.wait_for_file_access / { path = test.txt;     │
00:45:08 v #32177 > > │ retry = 100; ex = System.IO.IOException: The process cannot access the file  │
00:45:08 v #32178 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:45:08 v #32179 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:45:08 v #32180 > > │ process. }                                                                   │
00:45:08 v #32181 > > │ 00:00:02 d #8 _3                                                        │
00:45:08 v #32182 > > │ 00:00:02 d #9 _4                                                        │
00:45:08 v #32183 > > │ 00:00:02 d #10 _5                                                       │
00:45:08 v #32184 > > │ 00:00:02 d #11 _6                                                       │
00:45:08 v #32185 > > │ 00:00:02 d #12 5                                                        │
00:45:08 v #32186 > > │ 00:00:02 d #13 6                                                        │
00:45:08 v #32187 > > │ 00:00:02 d #14 7                                                        │
00:45:08 v #32188 > > │ __assert_between / actual: 128L / expected: struct (50L, 180L)               │
00:45:08 v #32189 > > │ __assert_eq / actual: "1" / expected: "1"                                    │
00:45:08 v #32190 > > │ __assert_eq / actual: true / expected: true                                  │
00:45:08 v #32191 > > │                                                                              │
00:45:08 v #32192 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:08 v #32193 > >
00:45:08 v #32194 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:08 v #32195 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:08 v #32196 > > │ ### read_all_text_retry_async                                                │
00:45:08 v #32197 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:08 v #32198 > >
00:45:08 v #32199 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:08 v #32200 > > inl read_all_text_retry_async full_path : async.async (optionm'.option' string)
00:45:08 v #32201 > > =
00:45:08 v #32202 > >     run_target function
00:45:08 v #32203 > >         | Fsharp (Native) => fun () =>
00:45:08 v #32204 > >             let rec loop (retry : i64) =
00:45:08 v #32205 > >                 fun () =>
00:45:08 v #32206 > >                     try_unit
00:45:08 v #32207 > >                         fun () =>
00:45:08 v #32208 > >                             if retry > 0
00:45:08 v #32209 > >                             then
00:45:08 v #32210 > >                                 full_path
00:45:08 v #32211 > >                                 |> wait_for_file_access_read
00:45:08 v #32212 > >                                 |> async.run_with_timeout_async 1000
00:45:08 v #32213 > >                                 |> async.ignore
00:45:08 v #32214 > >                                 |> async.do
00:45:08 v #32215 > >                             full_path |> read_all_text_async |> async.map (Some
00:45:08 v #32216 > > >> optionm'.box) |> async.return_await
00:45:08 v #32217 > >                         fun ex =>
00:45:08 v #32218 > >                             fix_condition
00:45:08 v #32219 > >                                 fun () => retry <> 0
00:45:08 v #32220 > >                                 fun () =>
00:45:08 v #32221 > >                                     inl ex = ex |> sm'.format_exception
00:45:08 v #32222 > >                                     trace Debug
00:45:08 v #32223 > >                                         fun () =>
00:45:08 v #32224 > > "file_system.read_all_text_retry_async"
00:45:08 v #32225 > >                                         fun () => { retry ex }
00:45:08 v #32226 > >                                     (None : _ string) |> optionm'.box |> return
00:45:08 v #32227 > >                                 fun () =>
00:45:08 v #32228 > >                                     loop (retry + 1) |> async.return_await
00:45:08 v #32229 > >                 |> async.new_async
00:45:08 v #32230 > >             loop 0
00:45:08 v #32231 > >         | _ => fun () => null ()
00:45:09 v #32232 > 00:45:08 d #1737 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97324e808f2462f4ad198d6b000160ef86bed097e17faf3a8ae92d2fd35ae5b0/main.spi
00:45:09 v #32233 > >
00:45:09 v #32234 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:09 v #32235 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:09 v #32236 > > │ ### move_file_async                                                          │
00:45:09 v #32237 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:09 v #32238 > >
00:45:09 v #32239 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:09 v #32240 > > inl move_file_async new_path old_path : _ i64 =
00:45:09 v #32241 > >     run_target function
00:45:09 v #32242 > >         | Fsharp (Native) => fun () =>
00:45:09 v #32243 > >             let rec loop (retry : i64) =
00:45:09 v #32244 > >                 fun () =>
00:45:09 v #32245 > >                     try_unit
00:45:09 v #32246 > >                         fun () =>
00:45:09 v #32247 > >                             old_path |> file_move new_path
00:45:09 v #32248 > >                             return retry
00:45:09 v #32249 > >                         fun ex =>
00:45:09 v #32250 > >                             if retry % 100 = 0 then
00:45:09 v #32251 > >
00:45:09 v #32252 > >                                 trace Warning
00:45:09 v #32253 > >                                     fun () => "move_file_async"
00:45:09 v #32254 > >                                     fun () => {
00:45:09 v #32255 > >                                         old_path = old_path |> get_file_name
00:45:09 v #32256 > >                                         new_path = new_path |> get_file_name
00:45:09 v #32257 > >                                         ex
00:45:09 v #32258 > >                                     }
00:45:09 v #32259 > >                             async.sleep 10 |> async.do
00:45:09 v #32260 > >                             loop (retry + 1) |> async.return_await
00:45:09 v #32261 > >                 |> async.new_async_unit
00:45:09 v #32262 > >             loop 0
00:45:09 v #32263 > >         | _ => fun () => null ()
00:45:09 v #32264 > 00:45:08 d #1738 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fc92dbb05941b5c9c837c310acbf8fa8e68c3b49ded17862a51616ce34c43f62/main.spi
00:45:09 v #32265 > >
00:45:09 v #32266 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:09 v #32267 > > //// test
00:45:09 v #32268 > >
00:45:09 v #32269 > > inl lock_file path =
00:45:09 v #32270 > >     fun () =>
00:45:09 v #32271 > >         trace Debug (fun () => "_1") id
00:45:09 v #32272 > >         file_stream
00:45:09 v #32273 > >             path
00:45:09 v #32274 > >             ModeOpen
00:45:09 v #32275 > >             AccessReadWrite
00:45:09 v #32276 > >             ShareNone
00:45:09 v #32277 > >         |> use
00:45:09 v #32278 > >         |> ignore
00:45:09 v #32279 > >         trace Debug (fun () => "_2") id
00:45:09 v #32280 > >         async.sleep 2000 |> async.do
00:45:09 v #32281 > >         trace Debug (fun () => "_3") id
00:45:09 v #32282 > >     |> async.new_async
00:45:09 v #32283 > >
00:45:09 v #32284 > > fun () =>
00:45:09 v #32285 > >     inl file_name = "test.txt"
00:45:09 v #32286 > >     inl text = "0"
00:45:09 v #32287 > >
00:45:09 v #32288 > >     inl temp_dir, disposable =
00:45:09 v #32289 > >         (file_name, text)
00:45:09 v #32290 > >         |> sm'.format_debug
00:45:09 v #32291 > >         |> crypto.hash_text
00:45:09 v #32292 > >         |> create_temp_dir'
00:45:09 v #32293 > >     disposable |> use |> ignore
00:45:09 v #32294 > >     let path = temp_dir </> file_name
00:45:09 v #32295 > >     let new_path = temp_dir </> "test2.txt"
00:45:09 v #32296 > >
00:45:09 v #32297 > >     trace Debug (fun () => "1") id
00:45:09 v #32298 > >     text |> write_all_text_async path |> async.do
00:45:09 v #32299 > >     trace Debug (fun () => "2") id
00:45:09 v #32300 > >     inl child = lock_file path |> async.start_child |> async.let'
00:45:09 v #32301 > >     trace Debug (fun () => "3") id
00:45:09 v #32302 > >     async.sleep 1 |> async.do
00:45:09 v #32303 > >     trace Debug (fun () => "4") id
00:45:09 v #32304 > >     inl retries1 = path |> move_file_async new_path |> async.let'
00:45:09 v #32305 > >     trace Debug (fun () => "5") id
00:45:09 v #32306 > >     inl retries2 = new_path |> wait_for_file_access None |> async.let'
00:45:09 v #32307 > >     trace Debug (fun () => "6") id
00:45:09 v #32308 > >     inl text = new_path |> read_all_text_async |> async.let'
00:45:09 v #32309 > >     trace Debug (fun () => "7") id
00:45:09 v #32310 > >     child |> async.do
00:45:09 v #32311 > >     trace Debug (fun () => "8") id
00:45:09 v #32312 > >     (retries1, retries2, text) |> return
00:45:09 v #32313 > > |> async.new_async_unit
00:45:09 v #32314 > > |> async.run_with_timeout 3000
00:45:09 v #32315 > > |> function
00:45:09 v #32316 > >     | Some (retries1, retries2, text) =>
00:45:09 v #32317 > >         retries1
00:45:09 v #32318 > >         |> _assert_between
00:45:09 v #32319 > >             (if platform.is_windows () then 50i64 else 0)
00:45:09 v #32320 > >             (if platform.is_windows () then 200 else 0)
00:45:09 v #32321 > >
00:45:09 v #32322 > >         retries2
00:45:09 v #32323 > >         |> _assert_between
00:45:09 v #32324 > >             (if platform.is_windows () then 0i64 else 100)
00:45:09 v #32325 > >             (if platform.is_windows () then 0 else 200)
00:45:09 v #32326 > >
00:45:09 v #32327 > >         text |> _assert_eq (join "0")
00:45:09 v #32328 > >
00:45:09 v #32329 > >         true
00:45:09 v #32330 > >     | _ => false
00:45:09 v #32331 > > |> _assert_eq true
00:45:10 v #32332 > 00:45:09 d #1739 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff69742babd0fc476f9eb0bc88587c4c19c8fe1ba3cf61f14b4e1475533cc6a0/main.spi
00:45:14 v #32333 > >
00:45:14 v #32334 > > ╭─[ 4.17s - stdout ]───────────────────────────────────────────────────────────╮
00:45:14 v #32335 > > │ 00:00:00 d #1 1                                                         │
00:45:14 v #32336 > > │ 00:00:00 d #2 2                                                         │
00:45:14 v #32337 > > │ 00:00:00 d #3 3                                                         │
00:45:14 v #32338 > > │ 00:00:00 d #4 _1                                                        │
00:45:14 v #32339 > > │ 00:00:00 d #5 _2                                                        │
00:45:14 v #32340 > > │ 00:00:00 d #6 4                                                         │
00:45:14 v #32341 > > │ 00:00:00 w #7 move_file_async / { old_path = test.txt; new_path =       │
00:45:14 v #32342 > > │ test2.txt; ex = System.IO.IOException: The process cannot access the file    │
00:45:14 v #32343 > > │ because it is being used by another process.                                 │
00:45:14 v #32344 > > │    at System.IO.FileSystem.MoveFile(String sourceFullPath, String            │
00:45:14 v #32345 > > │ destFullPath, Boolean overwrite)                                             │
00:45:14 v #32346 > > │    at FSI_0125.method61@4306-1.Invoke(Unit unitVar)                          │
00:45:14 v #32347 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:45:14 v #32348 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:45:14 v #32349 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:45:14 v #32350 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:45:14 v #32351 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 }                        │
00:45:14 v #32352 > > │ 00:00:01 w #8 move_file_async / { old_path = test.txt; new_path =       │
00:45:14 v #32353 > > │ test2.txt; ex = System.IO.IOException: The process cannot access the file    │
00:45:14 v #32354 > > │ because it is being used by another process.                                 │
00:45:14 v #32355 > > │    at System.IO.FileSystem.MoveFile(String sourceFullPath, String            │
00:45:14 v #32356 > > │ destFullPath, Boolean overwrite)                                             │
00:45:14 v #32357 > > │    at FSI_0125.method61@4306-1.Invoke(Unit unitVar)                          │
00:45:14 v #32358 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:45:14 v #32359 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:45:14 v #32360 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:45:14 v #32361 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:45:14 v #32362 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 }                        │
00:45:14 v #32363 > > │ 00:00:02 d #9 _3                                                        │
00:45:14 v #32364 > > │ 00:00:02 d #10 5                                                        │
00:45:14 v #32365 > > │ 00:00:02 d #11 6                                                        │
00:45:14 v #32366 > > │ 00:00:02 d #12 7                                                        │
00:45:14 v #32367 > > │ 00:00:02 d #13 8                                                        │
00:45:14 v #32368 > > │ __assert_between / actual: 128L / expected: struct (50L, 200L)               │
00:45:14 v #32369 > > │ __assert_between / actual: 0L / expected: struct (0L, 0L)                    │
00:45:14 v #32370 > > │ __assert_eq / actual: "0" / expected: "0"                                    │
00:45:14 v #32371 > > │ __assert_eq / actual: true / expected: true                                  │
00:45:14 v #32372 > > │                                                                              │
00:45:14 v #32373 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:14 v #32374 > >
00:45:14 v #32375 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:14 v #32376 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:14 v #32377 > > │ ### delete_file_async                                                        │
00:45:14 v #32378 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:14 v #32379 > >
00:45:14 v #32380 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:14 v #32381 > > inl delete_file_async path : _ i64 =
00:45:14 v #32382 > >     run_target function
00:45:14 v #32383 > >         | Fsharp (Native) => fun () =>
00:45:14 v #32384 > >             let rec loop (retry : i64) =
00:45:14 v #32385 > >                 fun () =>
00:45:14 v #32386 > >                     try_unit
00:45:14 v #32387 > >                         fun () =>
00:45:14 v #32388 > >                             path |> file_delete
00:45:14 v #32389 > >                             return retry
00:45:14 v #32390 > >                         fun ex =>
00:45:14 v #32391 > >                             if retry % 100 = 0 then
00:45:14 v #32392 > >                                 trace Warning
00:45:14 v #32393 > >                                     fun () => "delete_file_async"
00:45:14 v #32394 > >                                     fun () => { path = path |> get_file_name; ex
00:45:14 v #32395 > > = ex |> sm'.format_exception }
00:45:14 v #32396 > >                             async.sleep 10 |> async.do
00:45:14 v #32397 > >                             loop (retry + 1) |> async.return_await
00:45:14 v #32398 > >                 |> async.new_async
00:45:14 v #32399 > >             loop 0
00:45:14 v #32400 > >         | _ => fun () => null ()
00:45:14 v #32401 > 00:45:13 d #1740 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cad28cd60bb373b6fd16c02bbb6a57b7e59df1ef8e93bd4c64d68a3096068813/main.spi
00:45:14 v #32402 > >
00:45:14 v #32403 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:14 v #32404 > > //// test
00:45:14 v #32405 > >
00:45:14 v #32406 > > inl lock_file path =
00:45:14 v #32407 > >     fun () =>
00:45:14 v #32408 > >         trace Debug (fun () => "_1") id
00:45:14 v #32409 > >         file_stream
00:45:14 v #32410 > >             path
00:45:14 v #32411 > >             ModeOpen
00:45:14 v #32412 > >             AccessReadWrite
00:45:14 v #32413 > >             ShareNone
00:45:14 v #32414 > >         |> use
00:45:14 v #32415 > >         |> ignore
00:45:14 v #32416 > >         trace Debug (fun () => "_2") id
00:45:14 v #32417 > >         async.sleep 2000 |> async.do
00:45:14 v #32418 > >         trace Debug (fun () => "_3") id
00:45:14 v #32419 > >     |> async.new_async
00:45:14 v #32420 > >
00:45:14 v #32421 > > fun () =>
00:45:14 v #32422 > >     inl file_name = "test.txt"
00:45:14 v #32423 > >     inl text = "0"
00:45:14 v #32424 > >
00:45:14 v #32425 > >     inl temp_dir, disposable =
00:45:14 v #32426 > >         (file_name, text)
00:45:14 v #32427 > >         |> sm'.format_debug
00:45:14 v #32428 > >         |> crypto.hash_text
00:45:14 v #32429 > >         |> create_temp_dir'
00:45:14 v #32430 > >     disposable |> use |> ignore
00:45:14 v #32431 > >     inl path = temp_dir </> file_name
00:45:14 v #32432 > >
00:45:14 v #32433 > >     trace Debug (fun () => "1") id
00:45:14 v #32434 > >     text |> write_all_text_async path |> async.do
00:45:14 v #32435 > >     trace Debug (fun () => "2") id
00:45:14 v #32436 > >     inl child = lock_file path |> async.start_child |> async.let'
00:45:14 v #32437 > >     trace Debug (fun () => "3") id
00:45:14 v #32438 > >     async.sleep 1 |> async.do
00:45:14 v #32439 > >     trace Debug (fun () => "4") id
00:45:14 v #32440 > >     inl retries = delete_file_async path |> async.let'
00:45:14 v #32441 > >     trace Debug (fun () => "5") id
00:45:14 v #32442 > >     child |> async.do
00:45:14 v #32443 > >     trace Debug (fun () => "6") id
00:45:14 v #32444 > >     return retries
00:45:14 v #32445 > > |> async.new_async_unit
00:45:14 v #32446 > > |> async.run_with_timeout 3000
00:45:14 v #32447 > > |> function
00:45:14 v #32448 > >     | Some (retries : i64) =>
00:45:14 v #32449 > >         retries
00:45:14 v #32450 > >         |> _assert_between
00:45:14 v #32451 > >             (if platform.is_windows () then 50 else 0)
00:45:14 v #32452 > >             (if platform.is_windows () then 180 else 0)
00:45:14 v #32453 > >
00:45:14 v #32454 > >         true
00:45:14 v #32455 > >     | _ => false
00:45:14 v #32456 > > |> _assert_eq true
00:45:14 v #32457 > 00:45:13 d #1741 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/276868b0fd2f056afb476c2683dab08ddf397942e5a3c52272bd2de5075455aa/main.spi
00:45:18 v #32458 > >
00:45:18 v #32459 > > ╭─[ 3.88s - stdout ]───────────────────────────────────────────────────────────╮
00:45:18 v #32460 > > │ 00:00:00 d #1 1                                                         │
00:45:18 v #32461 > > │ 00:00:00 d #2 2                                                         │
00:45:18 v #32462 > > │ 00:00:00 d #3 3                                                         │
00:45:18 v #32463 > > │ 00:00:00 d #4 _1                                                        │
00:45:18 v #32464 > > │ 00:00:00 d #5 _2                                                        │
00:45:18 v #32465 > > │ 00:00:00 d #6 4                                                         │
00:45:18 v #32466 > > │ 00:00:00 w #7 delete_file_async / { path = test.txt; ex =               │
00:45:18 v #32467 > > │ System.IO.IOException: The process cannot access the file                    │
00:45:18 v #32468 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:45:18 v #32469 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:45:18 v #32470 > > │ process. }                                                                   │
00:45:18 v #32471 > > │ 00:00:01 w #8 delete_file_async / { path = test.txt; ex =               │
00:45:18 v #32472 > > │ System.IO.IOException: The process cannot access the file                    │
00:45:18 v #32473 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:45:18 v #32474 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:45:18 v #32475 > > │ process. }                                                                   │
00:45:18 v #32476 > > │ 00:00:01 d #9 _3                                                        │
00:45:18 v #32477 > > │ 00:00:02 d #10 5                                                        │
00:45:18 v #32478 > > │ 00:00:02 d #11 6                                                        │
00:45:18 v #32479 > > │ __assert_between / actual: 128L / expected: struct (50L, 180L)               │
00:45:18 v #32480 > > │ __assert_eq / actual: true / expected: true                                  │
00:45:18 v #32481 > > │                                                                              │
00:45:18 v #32482 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:18 v #32483 > >
00:45:18 v #32484 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:18 v #32485 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:18 v #32486 > > │ ## main                                                                      │
00:45:18 v #32487 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:18 v #32488 > >
00:45:18 v #32489 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:18 v #32490 > > inl main () =
00:45:18 v #32491 > >     init_trace_state None
00:45:18 v #32492 > >     $'let delete_directory_async x = !delete_directory_async x' : ()
00:45:18 v #32493 > >     $'let wait_for_file_access x = !wait_for_file_access x' : ()
00:45:18 v #32494 > >     $'let wait_for_file_access_read x = !wait_for_file_access_read x' : ()
00:45:18 v #32495 > >     $'let read_all_text_async x = !read_all_text_async x' : ()
00:45:18 v #32496 > >     $'let file_exists_content x = !file_exists_content x' : ()
00:45:18 v #32497 > >     $'let write_all_text_async x = !write_all_text_async x' : ()
00:45:18 v #32498 > >     $'let write_all_text_exists x = !write_all_text_exists_async x' : ()
00:45:18 v #32499 > >     $'let delete_file_async x = !delete_file_async x' : ()
00:45:18 v #32500 > >     $'let move_file_async x = !move_file_async x' : ()
00:45:18 v #32501 > >     $'let read_all_text_retry_async x = !read_all_text_retry_async x' : ()
00:45:18 v #32502 > >     $'let create_temp_path () = !create_temp_path ()' : ()
00:45:18 v #32503 > >     $'let create_temp_dir () = !create_temp_dir ()' : ()
00:45:18 v #32504 > >     $'let create_temp_dir\' x = !create_temp_dir' x' : ()
00:45:18 v #32505 > >     $'let get_source_directory () = !get_source_directory ()' : ()
00:45:18 v #32506 > >     $'let normalize_path x = !normalize_path x' : ()
00:45:18 v #32507 > >     $'let new_file_uri x = !new_file_uri x' : ()
00:45:18 v #32508 > >     $'let get_workspace_root () = !get_workspace_root ()' : ()
00:45:18 v #32509 > >     $'let init_trace_file x = !init_trace_file x' : ()
00:45:18 v #32510 > >     $'let link_directory x = !link_directory x' : ()
00:45:18 v #32511 > >     inl combine x = (</>) x
00:45:18 v #32512 > >     $'let (</>) x = !combine x' : ()
00:45:18 v #32513 > 00:45:17 d #1742 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b29b02b41b95fc2e2db643f04f39b57f4c7060e7e0191e2fe7ac4355c38581d5/main.spi
00:45:24 v #32514 > 00:03:46 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 115506 }
00:45:24 v #32515 > 00:03:46 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:45:26 v #32516 > 00:03:48 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb to html
00:45:26 v #32517 > 00:03:48 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:45:26 v #32518 > 00:03:48 v #7 !   validate(nb)
00:45:26 v #32519 > 00:03:49 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:45:26 v #32520 > 00:03:49 v #9 !   return _pygments_highlight(
00:45:29 v #32521 > 00:03:51 v #10 ! [NbConvertApp] Writing 628067 bytes to c:\home\git\polyglot\lib\spiral\file_system.dib.html
00:45:29 v #32522 > 00:03:51 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 864 }
00:45:29 v #32523 > 00:03:51 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 864 }
00:45:29 v #32524 > 00:03:51 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/file_system.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/file_system.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:45:30 v #32525 > 00:03:52 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:45:30 v #32526 > 00:03:52 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:45:30 v #32527 > 00:03:52 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 116429 }
00:45:30 d #32528 runtime.execute_with_options_async / { exit_code = 0; output_length = 123979 }
00:45:30 d #39 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path file_system.dib --retries 3
00:45:30 d #32529 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path networking.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path networking.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:45:30 v #32530 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "networking.dib", "--retries", "3"])) }
00:45:30 v #32531 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/networking.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/networking.dib" --output-path "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:45:32 v #32532 > >
00:45:32 v #32533 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:32 v #32534 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:32 v #32535 > > │ # networking                                                                 │
00:45:32 v #32536 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:36 v #32537 > >
00:45:36 v #32538 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:36 v #32539 > > open rust.rust_operators
00:45:36 v #32540 > 00:45:36 d #1743 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40daf77a2acec5ac15e1cf56631d4105f4f565759117828320eb559038e65549/main.spi
00:45:37 v #32541 > >
00:45:37 v #32542 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:37 v #32543 > > //// test
00:45:37 v #32544 > >
00:45:37 v #32545 > > open testing
00:45:37 v #32546 > 00:45:37 d #1744 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc76f360fd664f6988ee1c6bc1dc43132802e524aab226e74a21329193e410ca/main.spi
00:45:38 v #32547 > >
00:45:38 v #32548 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:38 v #32549 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:38 v #32550 > > │ ## rust                                                                      │
00:45:38 v #32551 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:38 v #32552 > >
00:45:38 v #32553 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:38 v #32554 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:38 v #32555 > > │ ### reqwest_response                                                         │
00:45:38 v #32556 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:38 v #32557 > >
00:45:38 v #32558 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:38 v #32559 > > nominal reqwest_response =
00:45:38 v #32560 > >     `(
00:45:38 v #32561 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:45:38 v #32562 > > Fable.Core.Emit(\"reqwest_wasm::Response\")>]]\n#endif\ntype reqwest_Response =
00:45:38 v #32563 > > class end"
00:45:38 v #32564 > >         $'' : $'reqwest_Response'
00:45:38 v #32565 > >     )
00:45:38 v #32566 > 00:45:37 d #1745 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2069849e21723337aa7ebc74521637bad7994b376dcdc3c3c1d50d173f939b0/main.spi
00:45:38 v #32567 > >
00:45:38 v #32568 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:38 v #32569 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:38 v #32570 > > │ ### reqwest_error                                                            │
00:45:38 v #32571 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:38 v #32572 > >
00:45:38 v #32573 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:38 v #32574 > > nominal reqwest_error =
00:45:38 v #32575 > >     `(
00:45:38 v #32576 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:45:38 v #32577 > > Fable.Core.Emit(\"reqwest_wasm::Error\")>]]\n#endif\ntype reqwest_Error = class
00:45:38 v #32578 > > end"
00:45:38 v #32579 > >         $'' : $'reqwest_Error'
00:45:38 v #32580 > >     )
00:45:38 v #32581 > 00:45:37 d #1746 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25917d4a38e7ed75f9b1b0ec7af13a83d57077e55ef4d95d8a5fd107cbc00ce1/main.spi
00:45:38 v #32582 > >
00:45:38 v #32583 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:38 v #32584 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:38 v #32585 > > │ ### request_builder                                                          │
00:45:38 v #32586 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:38 v #32587 > >
00:45:38 v #32588 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:38 v #32589 > > nominal request_builder =
00:45:38 v #32590 > >     `(
00:45:38 v #32591 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:45:38 v #32592 > > Fable.Core.Emit(\"reqwest_wasm::RequestBuilder\")>]]\n#endif\ntype
00:45:38 v #32593 > > reqwest_RequestBuilder = class end"
00:45:38 v #32594 > >         $'' : $'reqwest_RequestBuilder'
00:45:38 v #32595 > >     )
00:45:39 v #32596 > 00:45:38 d #1747 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d2c8f36cab87b2e04254e036b2f4d57b7341aca08d3780de76ee15253c6d14e/main.spi
00:45:39 v #32597 > >
00:45:39 v #32598 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:39 v #32599 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:39 v #32600 > > │ ### request_type                                                             │
00:45:39 v #32601 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:39 v #32602 > >
00:45:39 v #32603 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:39 v #32604 > > union request_type =
00:45:39 v #32605 > >     | Get
00:45:39 v #32606 > >     | Post
00:45:39 v #32607 > 00:45:38 d #1748 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5f1f32c1bacec413c3b49b8d0ffda1f2f8a91aebd5270d025dccd40db2b0d55/main.spi
00:45:39 v #32608 > >
00:45:39 v #32609 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:39 v #32610 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:39 v #32611 > > │ ### request                                                                  │
00:45:39 v #32612 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:39 v #32613 > >
00:45:39 v #32614 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:39 v #32615 > > type request =
00:45:39 v #32616 > >     {
00:45:39 v #32617 > >         url : string
00:45:39 v #32618 > >         request_type : request_type
00:45:39 v #32619 > >         body : string
00:45:39 v #32620 > >         json : bool
00:45:39 v #32621 > >         auto_refresh : bool
00:45:39 v #32622 > >     }
00:45:39 v #32623 > 00:45:39 d #1749 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/63a8c772c8d3b585c0a507010befde19bd40e752f276737642272c25fcb2b006/main.spi
00:45:40 v #32624 > >
00:45:40 v #32625 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:40 v #32626 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:40 v #32627 > > │ ### new_request_get                                                          │
00:45:40 v #32628 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:40 v #32629 > >
00:45:40 v #32630 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:40 v #32631 > > inl new_request_get (url : string) : request_builder =
00:45:40 v #32632 > >     inl url = join url
00:45:40 v #32633 > >     inl url = url |> sm'.to_std_string
00:45:40 v #32634 > >     inl url = join url
00:45:40 v #32635 > >     !\($'"reqwest_wasm::Client::builder().build().map_err(|err|
00:45:40 v #32636 > > err.to_string())?.get(!url)"')
00:45:40 v #32637 > 00:45:39 d #1750 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5da4c98545b610d226f81106600c13eba810cfa829b2ef7e8a2dccbbf7c695b/main.spi
00:45:40 v #32638 > >
00:45:40 v #32639 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:40 v #32640 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:40 v #32641 > > │ ### new_request_post                                                         │
00:45:40 v #32642 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:40 v #32643 > >
00:45:40 v #32644 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:40 v #32645 > > inl new_request_post (url : string) : request_builder =
00:45:40 v #32646 > >     inl url = join url
00:45:40 v #32647 > >     inl url = url |> sm'.to_std_string
00:45:40 v #32648 > >     inl url = join url
00:45:40 v #32649 > >     !\($'"reqwest_wasm::Client::builder().build().map_err(|err|
00:45:40 v #32650 > > err.to_string())?.post(!url)"')
00:45:40 v #32651 > 00:45:39 d #1751 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6ecfdb2bd3e1436e475c284a2daffc364aa27c4b77d06ad928377c290b5457b6/main.spi
00:45:40 v #32652 > >
00:45:40 v #32653 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:40 v #32654 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:40 v #32655 > > │ ### request_send                                                             │
00:45:40 v #32656 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:40 v #32657 > >
00:45:40 v #32658 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:40 v #32659 > > inl request_send (request : request_builder) : async.future_pin (resultm.result'
00:45:40 v #32660 > > reqwest_response reqwest_error) =
00:45:40 v #32661 > >     inl request = join request
00:45:40 v #32662 > >     !\($'"Box::pin(reqwest_wasm::RequestBuilder::send(!request))"')
00:45:41 v #32663 > 00:45:40 d #1752 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc71fb06b5afb494651339cff022cdd813c664105c6bac4594f36290676a9796/main.spi
00:45:41 v #32664 > >
00:45:41 v #32665 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:41 v #32666 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:41 v #32667 > > │ ### request_body                                                             │
00:45:41 v #32668 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:41 v #32669 > >
00:45:41 v #32670 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:41 v #32671 > > inl request_body (body : string) (request : request_builder) : request_builder =
00:45:41 v #32672 > >     inl body = body |> sm'.to_std_string
00:45:41 v #32673 > >     !\\(body, $'"reqwest_wasm::RequestBuilder::body(!request, $0)"')
00:45:41 v #32674 > 00:45:40 d #1753 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e98858695328e681b7929ae6c09052ccc7e1de01578c5adc72661515ca357a43/main.spi
00:45:41 v #32675 > >
00:45:41 v #32676 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:41 v #32677 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:41 v #32678 > > │ ### request_header                                                           │
00:45:41 v #32679 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:41 v #32680 > >
00:45:41 v #32681 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:41 v #32682 > > inl request_header (key : string) (value : string) (request : request_builder) :
00:45:41 v #32683 > > request_builder =
00:45:41 v #32684 > >     inl request = join request
00:45:41 v #32685 > >     inl key = key |> sm'.to_std_string
00:45:41 v #32686 > >     inl value = value |> sm'.to_std_string
00:45:41 v #32687 > >     !\\((key, value), $'"reqwest_wasm::RequestBuilder::header(!request, $0,
00:45:41 v #32688 > > $1)"')
00:45:41 v #32689 > 00:45:41 d #1754 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f5add58c6cba57ec9768d8325641d8c5dc19dfeffc48173af4de8a2fcd01fc8e/main.spi
00:45:42 v #32690 > >
00:45:42 v #32691 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:42 v #32692 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:42 v #32693 > > │ ### request_json                                                             │
00:45:42 v #32694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:42 v #32695 > >
00:45:42 v #32696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:42 v #32697 > > inl request_json forall t. (obj : t) (request : request_builder) :
00:45:42 v #32698 > > request_builder =
00:45:42 v #32699 > >     !\($'"reqwest_wasm::RequestBuilder::json(!request, &!obj)"')
00:45:42 v #32700 > 00:45:41 d #1755 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fda71f8f9bc99652840b360ebd4eed58e3e8adad4bdb0152a470a760ac659925/main.spi
00:45:42 v #32701 > >
00:45:42 v #32702 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:42 v #32703 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:42 v #32704 > > │ ### response_text                                                            │
00:45:42 v #32705 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:42 v #32706 > >
00:45:42 v #32707 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:42 v #32708 > > inl response_text (response : reqwest_response) : async.future_pin
00:45:42 v #32709 > > (resultm.result' sm'.std_string reqwest_error) =
00:45:42 v #32710 > >     !\($'"Box::pin(reqwest_wasm::Response::text(!response))"')
00:45:42 v #32711 > 00:45:41 d #1756 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/400f511f9b17fb107f8d46ace6729f7983769d6cbf6e10b1882894c4b2650a77/main.spi
00:45:42 v #32712 > >
00:45:42 v #32713 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:42 v #32714 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:42 v #32715 > > │ ## fsharp                                                                    │
00:45:42 v #32716 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:42 v #32717 > >
00:45:42 v #32718 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:42 v #32719 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:42 v #32720 > > │ ### tcp_client                                                               │
00:45:42 v #32721 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:42 v #32722 > >
00:45:42 v #32723 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:42 v #32724 > > nominal tcp_client = $'System.Net.Sockets.TcpClient'
00:45:43 v #32725 > 00:45:42 d #1757 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/264e01944317a333811e5e907695fd7adc80aa19bd110ad97cbb175bb1cfbe8f/main.spi
00:45:43 v #32726 > >
00:45:43 v #32727 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:43 v #32728 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:43 v #32729 > > │ ### new_tcp_client                                                           │
00:45:43 v #32730 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:43 v #32731 > >
00:45:43 v #32732 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:43 v #32733 > > inl new_tcp_client () : tcp_client =
00:45:43 v #32734 > >     $'new `tcp_client ()'
00:45:43 v #32735 > 00:45:42 d #1758 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e773c0cd315c5e6c70d920069925ee0a162a99dc3c43b80d4d572e82c1d51880/main.spi
00:45:43 v #32736 > >
00:45:43 v #32737 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:43 v #32738 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:43 v #32739 > > │ ### ip_address                                                               │
00:45:43 v #32740 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:43 v #32741 > >
00:45:43 v #32742 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:43 v #32743 > > nominal ip_address = $'System.Net.IPAddress'
00:45:43 v #32744 > 00:45:43 d #1759 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c157e9a477f164ad0ec1ec0a71a12ecd5f19e1124efbcf4086e222df5ea52f95/main.spi
00:45:43 v #32745 > >
00:45:43 v #32746 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:43 v #32747 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:43 v #32748 > > │ ### ip_address_parse                                                         │
00:45:43 v #32749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:43 v #32750 > >
00:45:43 v #32751 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:43 v #32752 > > inl ip_address_parse (s : string) : ip_address =
00:45:43 v #32753 > >     s |> $'`ip_address.Parse'
00:45:44 v #32754 > 00:45:43 d #1760 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c1b3f4cbe17b8b1c481018b65b9c0ea0da75edf331e30741eb9bdb834bd7fa1b/main.spi
00:45:44 v #32755 > >
00:45:44 v #32756 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:44 v #32757 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:44 v #32758 > > │ ### tcp_listener                                                             │
00:45:44 v #32759 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:44 v #32760 > >
00:45:44 v #32761 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:44 v #32762 > > nominal tcp_listener = $'System.Net.Sockets.TcpListener'
00:45:44 v #32763 > 00:45:43 d #1761 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c9e7bb0fea6211456afd3c8ac7d5deb3bc528315df04e68805e399b87671c959/main.spi
00:45:44 v #32764 > >
00:45:44 v #32765 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:44 v #32766 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:44 v #32767 > > │ ### new_tcp_listener                                                         │
00:45:44 v #32768 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:44 v #32769 > >
00:45:44 v #32770 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:44 v #32771 > > inl new_tcp_listener (ip_address : ip_address) (port : i32) : tcp_listener =
00:45:44 v #32772 > >     $'new `tcp_listener (!ip_address, !port)'
00:45:45 v #32773 > 00:45:44 d #1762 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/78addc9c39fd883919f36b788b0c5afe11593281d20d576432eba0b2791ff277/main.spi
00:45:45 v #32774 > >
00:45:45 v #32775 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:45 v #32776 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:45 v #32777 > > │ ### listener_start                                                           │
00:45:45 v #32778 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:45 v #32779 > >
00:45:45 v #32780 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:45 v #32781 > > inl listener_start (listener : tcp_listener) : () =
00:45:45 v #32782 > >     $'!listener.Start' ()
00:45:45 v #32783 > 00:45:44 d #1763 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/408f8f6635f8f2cd507af82a6b3f794ff3cf92de25fd21da4e51b29e0d66254a/main.spi
00:45:45 v #32784 > >
00:45:45 v #32785 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:45 v #32786 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:45 v #32787 > > │ ### listener_stop                                                            │
00:45:45 v #32788 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:45 v #32789 > >
00:45:45 v #32790 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:45 v #32791 > > inl listener_stop (listener : tcp_listener) : () =
00:45:45 v #32792 > >     $'!listener.Stop' ()
00:45:45 v #32793 > 00:45:45 d #1764 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b314bd257832a4913935d2bfc0576c6f270f83ecc5db8dce38f32fb01bb10815/main.spi
00:45:46 v #32794 > >
00:45:46 v #32795 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:46 v #32796 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:46 v #32797 > > │ ### client_connect_async                                                     │
00:45:46 v #32798 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:46 v #32799 > >
00:45:46 v #32800 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:46 v #32801 > > inl client_connect_async
00:45:46 v #32802 > >     (host : string)
00:45:46 v #32803 > >     (port : i32)
00:45:46 v #32804 > >     (ct : threading.cancellation_token)
00:45:46 v #32805 > >     (client : tcp_client)
00:45:46 v #32806 > >     : async.value_task
00:45:46 v #32807 > >     =
00:45:46 v #32808 > >     $'!client.ConnectAsync (!host, !port, !ct)'
00:45:46 v #32809 > 00:45:45 d #1765 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/147f77724e21b0e8d8eba501c28a3fdd6ef2db75c71d6e1a3825e49af38013d8/main.spi
00:45:46 v #32810 > >
00:45:46 v #32811 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:46 v #32812 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:46 v #32813 > > │ ### test_port_open                                                           │
00:45:46 v #32814 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:46 v #32815 > >
00:45:46 v #32816 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:46 v #32817 > > inl test_port_open host port : _ bool = async.new_async fun () =>
00:45:46 v #32818 > >     inl ct = async.cancellation_token () |> async.let'
00:45:46 v #32819 > >     inl client = new_tcp_client () |> use
00:45:46 v #32820 > >     try_unit
00:45:46 v #32821 > >         fun () =>
00:45:46 v #32822 > >             client |> client_connect_async host port ct |>
00:45:46 v #32823 > > async.await_value_task_unit |> async.do
00:45:46 v #32824 > >             return true
00:45:46 v #32825 > >         fun ex =>
00:45:46 v #32826 > >             inl ex = ex |> sm'.format_exception
00:45:46 v #32827 > >             trace Verbose
00:45:46 v #32828 > >                 fun () => "networking.test_port_open"
00:45:46 v #32829 > >                 fun () => { port ex }
00:45:46 v #32830 > >             return false
00:45:46 v #32831 > 00:45:45 d #1766 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35f6264b3fa1d6c1a0080c9486dcb3659eeb347b928b4a661efa0c83eb8ce54e/main.spi
00:45:46 v #32832 > >
00:45:46 v #32833 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:46 v #32834 > > //// test
00:45:46 v #32835 > >
00:45:46 v #32836 > > test_port_open "127.0.0.1" 65536
00:45:46 v #32837 > > |> async.run_with_timeout 120
00:45:46 v #32838 > > |> _assert_eq (Some false)
00:45:47 v #32839 > 00:45:46 d #1767 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffc6b0c5c99206911fe55db76744b97607bd156bedcca7a1b92a732f3d1bb039/main.spi
00:45:49 v #32840 > >
00:45:49 v #32841 > > ╭─[ 2.82s - stdout ]───────────────────────────────────────────────────────────╮
00:45:49 v #32842 > > │ 00:00:00 v #1 networking.test_port_open / { port = 65536; ex =          │
00:45:49 v #32843 > > │ System.ArgumentOutOfRangeException: Specified argument was out of the range  │
00:45:49 v #32844 > > │ of valid values. (Parameter 'port') }                                        │
00:45:49 v #32845 > > │ __assert_eq / actual: US4_0 false / expected: US4_0 false                    │
00:45:49 v #32846 > > │                                                                              │
00:45:49 v #32847 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:49 v #32848 > >
00:45:49 v #32849 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:49 v #32850 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:49 v #32851 > > │ ### test_port_open_timeout                                                   │
00:45:49 v #32852 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:49 v #32853 > >
00:45:49 v #32854 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:49 v #32855 > > inl test_port_open_timeout timeout host port : _ bool = async.new_async_unit fun
00:45:49 v #32856 > > () =>
00:45:49 v #32857 > >     test_port_open host port
00:45:49 v #32858 > >     |> async.run_with_timeout_async timeout
00:45:49 v #32859 > >     |> async.let'
00:45:49 v #32860 > >     |> function
00:45:49 v #32861 > >         | None => false
00:45:49 v #32862 > >         | Some result => result
00:45:49 v #32863 > >     |> return
00:45:49 v #32864 > 00:45:49 d #1768 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d0fdfa100b7352f1a358141fdf868bcebb3e41dee683b087d7082a4581d89f57/main.spi
00:45:50 v #32865 > >
00:45:50 v #32866 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:50 v #32867 > > //// test
00:45:50 v #32868 > >
00:45:50 v #32869 > > test_port_open_timeout 120 "127.0.0.1" 65535
00:45:50 v #32870 > > |> async.run_synchronously
00:45:50 v #32871 > > |> _assert_eq false
00:45:50 v #32872 > 00:45:49 d #1769 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/394d7e888f585d5cc50c35e09d997aad70dca35ea16b583813f3ef00e69b465c/main.spi
00:45:51 v #32873 > >
00:45:51 v #32874 > > ╭─[ 1.21s - stdout ]───────────────────────────────────────────────────────────╮
00:45:51 v #32875 > > │ 00:00:00 v #1 async.run_with_timeout_async / { timeout = 120 }          │
00:45:51 v #32876 > > │ __assert_eq / actual: false / expected: false                                │
00:45:51 v #32877 > > │                                                                              │
00:45:51 v #32878 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:51 v #32879 > >
00:45:51 v #32880 > > ── markdown ────────────────────────────────────────────────────────────────────
00:45:51 v #32881 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:45:51 v #32882 > > │ ### wait_for_port_access                                                     │
00:45:51 v #32883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:45:51 v #32884 > >
00:45:51 v #32885 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:51 v #32886 > > inl wait_for_port_access timeout status host port : _ i64 =
00:45:51 v #32887 > >     let rec loop retry : _ i64 = async.new_async_unit fun () =>
00:45:51 v #32888 > >         inl isPortOpen =
00:45:51 v #32889 > >             match timeout |> optionm'.unbox with
00:45:51 v #32890 > >             | None => test_port_open host port
00:45:51 v #32891 > >             | Some timeout => test_port_open_timeout timeout host port
00:45:51 v #32892 > >             |> async.let'
00:45:51 v #32893 > >
00:45:51 v #32894 > >         fix_condition
00:45:51 v #32895 > >             fun () => isPortOpen = status
00:45:51 v #32896 > >             fun () => retry |> return
00:45:51 v #32897 > >             fun () =>
00:45:51 v #32898 > >                 if retry % 100 = 0 then
00:45:51 v #32899 > >                     trace Verbose
00:45:51 v #32900 > >                         fun () => "networking.wait_for_port_access"
00:45:51 v #32901 > >                         fun () => { port retry timeout status }
00:45:51 v #32902 > >                 async.sleep 10 |> async.do
00:45:51 v #32903 > >                 loop (retry + 1) |> async.return_await
00:45:51 v #32904 > >     loop 1i64
00:45:51 v #32905 > 00:45:50 d #1770 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d97c76a77e8900436862018744e21782f27994c196c47f484e0cad3b51fb451/main.spi
00:45:51 v #32906 > >
00:45:51 v #32907 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:45:51 v #32908 > > //// test
00:45:51 v #32909 > >
00:45:51 v #32910 > > inl lock_port host port = async.new_async fun () =>
00:45:51 v #32911 > >     trace Debug (fun () => "_1") id
00:45:51 v #32912 > >     async.sleep 5000 |> async.do
00:45:51 v #32913 > >     inl listener = new_tcp_listener (host |> ip_address_parse) port |> use
00:45:51 v #32914 > >     trace Debug (fun () => "_2") id
00:45:51 v #32915 > >     listener |> listener_start
00:45:51 v #32916 > >     trace Debug (fun () => "_3") id
00:45:51 v #32917 > >     async.sleep 2000 |> async.do
00:45:51 v #32918 > >     trace Debug (fun () => "_4") id
00:45:51 v #32919 > >     $'!listener.Stop' ()
00:45:51 v #32920 > >     trace Debug (fun () => "_5") id
00:45:51 v #32921 > >
00:45:51 v #32922 > > inl host = "127.0.0.1"
00:45:51 v #32923 > > inl port = 5555i32
00:45:51 v #32924 > >
00:45:51 v #32925 > > fun () =>
00:45:51 v #32926 > >     trace Debug (fun () => "1") id
00:45:51 v #32927 > >     inl child = lock_port host port |> async.start_child |> async.let'
00:45:51 v #32928 > >     trace Debug (fun () => "2") id
00:45:51 v #32929 > >     async.sleep 1 |> async.do
00:45:51 v #32930 > >     trace Debug (fun () => "3") id
00:45:51 v #32931 > >     inl retries1 = wait_for_port_access (None |> optionm'.box) true host port |>
00:45:51 v #32932 > > async.let'
00:45:51 v #32933 > >     trace Debug (fun () => "4") id
00:45:51 v #32934 > >     inl retries2 = wait_for_port_access (None |> optionm'.box) false host port
00:45:51 v #32935 > > |> async.let'
00:45:51 v #32936 > >     trace Debug (fun () => "5") id
00:45:51 v #32937 > >     child |> async.do
00:45:51 v #32938 > >     trace Debug (fun () => "6") id
00:45:51 v #32939 > >     (retries1, retries2) |> return
00:45:51 v #32940 > > |> async.new_async_unit
00:45:51 v #32941 > > |> async.run_with_timeout 20000
00:45:51 v #32942 > > |> function
00:45:51 v #32943 > >     | Some (retries1, retries2) =>
00:45:51 v #32944 > >         retries1
00:45:51 v #32945 > >         |> _assert_between
00:45:51 v #32946 > >             if platform.is_windows () then 2i64 else 2
00:45:51 v #32947 > >             if platform.is_windows () then 5 else 1500
00:45:51 v #32948 > >
00:45:51 v #32949 > >         retries2
00:45:51 v #32950 > >         |> _assert_between
00:45:51 v #32951 > >             if platform.is_windows () then 80i64 else 80
00:45:51 v #32952 > >             if platform.is_windows () then 200 else 600
00:45:51 v #32953 > >
00:45:51 v #32954 > >         true
00:45:51 v #32955 > >     | _ => false
00:45:51 v #32956 > > |> _assert_eq true
00:45:51 v #32957 > 00:45:51 d #1771 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c36ebdd80849e410a033eba512743af28ca7f24673dbe1d0251873ba890f33e5/main.spi
00:46:02 v #32958 > >
00:46:02 v #32959 > > ╭─[ 11.22s - stdout ]──────────────────────────────────────────────────────────╮
00:46:02 v #32960 > > │ 00:00:00 d #1 1                                                         │
00:46:02 v #32961 > > │ 00:00:00 d #2 _1                                                        │
00:46:02 v #32962 > > │ 00:00:00 d #3 2                                                         │
00:46:02 v #32963 > > │ 00:00:00 d #4 3                                                         │
00:46:02 v #32964 > > │ 00:00:02 v #5 networking.test_port_open / { port = 5555; ex =           │
00:46:02 v #32965 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:46:02 v #32966 > > │ be made because the target machine actively refused it.) }                   │
00:46:02 v #32967 > > │ 00:00:04 v #6 networking.test_port_open / { port = 5555; ex =           │
00:46:02 v #32968 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:46:02 v #32969 > > │ be made because the target machine actively refused it.) }                   │
00:46:02 v #32970 > > │ 00:00:05 d #7 _2                                                        │
00:46:02 v #32971 > > │ 00:00:05 d #8 _3                                                        │
00:46:02 v #32972 > > │ 00:00:05 d #9 4                                                         │
00:46:02 v #32973 > > │ 00:00:06 v #10 networking.wait_for_port_access / { port = 5555; retry = │
00:46:02 v #32974 > > │ 100; timeout = None; status = false }                                        │
00:46:02 v #32975 > > │ 00:00:07 d #11 _4                                                       │
00:46:02 v #32976 > > │ 00:00:07 d #12 _5                                                       │
00:46:02 v #32977 > > │ 00:00:09 v #13 networking.test_port_open / { port = 5555; ex =          │
00:46:02 v #32978 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:46:02 v #32979 > > │ be made because the target machine actively refused it.) }                   │
00:46:02 v #32980 > > │ 00:00:09 d #14 5                                                        │
00:46:02 v #32981 > > │ 00:00:09 d #15 6                                                        │
00:46:02 v #32982 > > │ __assert_between / actual: 3L / expected: struct (2L, 5L)                    │
00:46:02 v #32983 > > │ __assert_between / actual: 122L / expected: struct (80L, 200L)               │
00:46:02 v #32984 > > │ __assert_eq / actual: true / expected: true                                  │
00:46:02 v #32985 > > │                                                                              │
00:46:02 v #32986 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:46:02 v #32987 > >
00:46:02 v #32988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:46:02 v #32989 > > //// test
00:46:02 v #32990 > >
00:46:02 v #32991 > > inl lock_port host port = async.new_async_unit fun () =>
00:46:02 v #32992 > >     trace Debug (fun () => "_1") id
00:46:02 v #32993 > >     async.sleep 500 |> async.do
00:46:02 v #32994 > >     inl listener = new_tcp_listener (ip_address_parse host) port |> use
00:46:02 v #32995 > >     trace Debug (fun () => "_2") id
00:46:02 v #32996 > >     listener |> listener_start
00:46:02 v #32997 > >     trace Debug (fun () => "_3") id
00:46:02 v #32998 > >     async.sleep 200 |> async.do
00:46:02 v #32999 > >     trace Debug (fun () => "_4") id
00:46:02 v #33000 > >     listener |> listener_stop
00:46:02 v #33001 > >     trace Debug (fun () => "_5") id
00:46:02 v #33002 > >
00:46:02 v #33003 > > inl host = "127.0.0.1"
00:46:02 v #33004 > > inl port = 5555
00:46:02 v #33005 > >
00:46:02 v #33006 > > fun () =>
00:46:02 v #33007 > >     trace Debug (fun () => "1") id
00:46:02 v #33008 > >     inl child = lock_port host port |> async.start_child |> async.let'
00:46:02 v #33009 > >     trace Debug (fun () => "2") id
00:46:02 v #33010 > >     async.sleep 1 |> async.do
00:46:02 v #33011 > >     trace Debug (fun () => "3") id
00:46:02 v #33012 > >     inl retries1 = wait_for_port_access (Some 60 |> optionm'.box) true host port
00:46:02 v #33013 > > |> async.let'
00:46:02 v #33014 > >     trace Debug (fun () => "4") id
00:46:02 v #33015 > >     inl retries2 = wait_for_port_access (Some 60 |> optionm'.box) false host
00:46:02 v #33016 > > port |> async.let'
00:46:02 v #33017 > >     trace Debug (fun () => "5") id
00:46:02 v #33018 > >     child |> async.do
00:46:02 v #33019 > >     trace Debug (fun () => "6") id
00:46:02 v #33020 > >     (retries1, retries2) |> return
00:46:02 v #33021 > > |> async.new_async_unit
00:46:02 v #33022 > > |> async.run_with_timeout 2000
00:46:02 v #33023 > > |> function
00:46:02 v #33024 > >     | Some (retries1, retries2) =>
00:46:02 v #33025 > >         retries1
00:46:02 v #33026 > >         |> _assert_between
00:46:02 v #33027 > >             if platform.is_windows () then 4i64 else 2
00:46:02 v #33028 > >             if platform.is_windows () then 15 else 150
00:46:02 v #33029 > >
00:46:02 v #33030 > >         retries2
00:46:02 v #33031 > >         |> _assert_between
00:46:02 v #33032 > >             if platform.is_windows () then 5i64 else 0
00:46:02 v #33033 > >             if platform.is_windows () then 20 else 60
00:46:02 v #33034 > >
00:46:02 v #33035 > >         true
00:46:02 v #33036 > >     | _ => false
00:46:02 v #33037 > > |> _assert_eq true
00:46:03 v #33038 > 00:46:02 d #1772 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15b758779e40a0378e9b4e583f18b573650fecc5acc266026f4ce2410ad244fc/main.spi
00:46:05 v #33039 > >
00:46:05 v #33040 > > ╭─[ 2.69s - stdout ]───────────────────────────────────────────────────────────╮
00:46:05 v #33041 > > │ 00:00:00 d #1 1                                                         │
00:46:05 v #33042 > > │ 00:00:00 d #2 2                                                         │
00:46:05 v #33043 > > │ 00:00:00 d #3 _1                                                        │
00:46:05 v #33044 > > │ 00:00:00 d #4 3                                                         │
00:46:05 v #33045 > > │ 00:00:00 v #5 async.run_with_timeout_async / { timeout = 60 }           │
00:46:05 v #33046 > > │ 00:00:00 v #6 async.run_with_timeout_async / { timeout = 60 }           │
00:46:05 v #33047 > > │ 00:00:00 v #7 async.run_with_timeout_async / { timeout = 60 }           │
00:46:05 v #33048 > > │ 00:00:00 v #8 async.run_with_timeout_async / { timeout = 60 }           │
00:46:05 v #33049 > > │ 00:00:00 v #9 async.run_with_timeout_async / { timeout = 60 }           │
00:46:05 v #33050 > > │ 00:00:00 v #10 async.run_with_timeout_async / { timeout = 60 }          │
00:46:05 v #33051 > > │ 00:00:00 d #11 _2                                                       │
00:46:05 v #33052 > > │ 00:00:00 d #12 _3                                                       │
00:46:05 v #33053 > > │ 00:00:00 v #13 async.run_with_timeout_async / { timeout = 60 }          │
00:46:05 v #33054 > > │ 00:00:00 d #14 4                                                        │
00:46:05 v #33055 > > │ 00:00:00 d #15 _4                                                       │
00:46:05 v #33056 > > │ 00:00:00 d #16 _5                                                       │
00:46:05 v #33057 > > │ 00:00:00 v #17 async.run_with_timeout_async / { timeout = 60 }          │
00:46:05 v #33058 > > │ 00:00:00 d #18 5                                                        │
00:46:05 v #33059 > > │ 00:00:00 d #19 6                                                        │
00:46:05 v #33060 > > │ __assert_between / actual: 8L / expected: struct (4L, 15L)                   │
00:46:05 v #33061 > > │ __assert_between / actual: 8L / expected: struct (5L, 20L)                   │
00:46:05 v #33062 > > │ __assert_eq / actual: true / expected: true                                  │
00:46:05 v #33063 > > │                                                                              │
00:46:05 v #33064 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:46:05 v #33065 > >
00:46:05 v #33066 > > ── markdown ────────────────────────────────────────────────────────────────────
00:46:05 v #33067 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:46:05 v #33068 > > │ ### get_available_port                                                       │
00:46:05 v #33069 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:46:05 v #33070 > >
00:46:05 v #33071 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:46:05 v #33072 > > inl get_available_port timeout host initial_port : _ i32 =
00:46:05 v #33073 > >     let rec loop port = async.new_async_unit fun () =>
00:46:05 v #33074 > >         inl is_port_open =
00:46:05 v #33075 > >             match timeout |> optionm'.unbox with
00:46:05 v #33076 > >             | None => test_port_open host port
00:46:05 v #33077 > >             | Some timeout => test_port_open_timeout timeout host port
00:46:05 v #33078 > >             |> async.let'
00:46:05 v #33079 > >         fix_condition
00:46:05 v #33080 > >             fun () => is_port_open |> not
00:46:05 v #33081 > >             fun () => port |> return
00:46:05 v #33082 > >             fun () => loop (port + 1) |> async.return_await
00:46:05 v #33083 > >     loop initial_port
00:46:05 v #33084 > 00:46:05 d #1773 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8139ed3c0378e88d5c45da2976d8831af0487bc3ee53006d02dc4235ebcc06df/main.spi
00:46:05 v #33085 > >
00:46:05 v #33086 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:46:05 v #33087 > > //// test
00:46:05 v #33088 > >
00:46:05 v #33089 > > inl lock_ports host port = async.new_async_unit fun () =>
00:46:05 v #33090 > >     trace Debug (fun () => "_1") id
00:46:05 v #33091 > >     inl listener1 = new_tcp_listener (ip_address_parse host) port |> use
00:46:05 v #33092 > >     inl listener2 = new_tcp_listener (ip_address_parse host) (port + 1) |> use
00:46:05 v #33093 > >     trace Debug (fun () => "_2") id
00:46:05 v #33094 > >     listener1 |> listener_start
00:46:05 v #33095 > >     listener2 |> listener_start
00:46:05 v #33096 > >     trace Debug (fun () => "_3") id
00:46:05 v #33097 > >     async.sleep 4000 |> async.do
00:46:05 v #33098 > >     trace Debug (fun () => "_4") id
00:46:05 v #33099 > >     listener1 |> listener_stop
00:46:05 v #33100 > >     listener2 |> listener_stop
00:46:05 v #33101 > >     trace Debug (fun () => "_5") id
00:46:05 v #33102 > >
00:46:05 v #33103 > > inl host = "127.0.0.1"
00:46:05 v #33104 > > inl port = 5555
00:46:05 v #33105 > >
00:46:05 v #33106 > > fun () =>
00:46:05 v #33107 > >     trace Debug (fun () => "1") id
00:46:05 v #33108 > >     inl child = lock_ports host port |> async.start_child |> async.let'
00:46:05 v #33109 > >     trace Debug (fun () => "2") id
00:46:05 v #33110 > >     async.sleep 240 |> async.do
00:46:05 v #33111 > >     trace Debug (fun () => "3") id
00:46:05 v #33112 > >     inl available_port = get_available_port (None |> optionm'.box) host port |>
00:46:05 v #33113 > > async.let'
00:46:05 v #33114 > >     trace Debug (fun () => "4") id
00:46:05 v #33115 > >     inl retries = wait_for_port_access (None |> optionm'.box) false host port |>
00:46:05 v #33116 > > async.let'
00:46:05 v #33117 > >     trace Debug (fun () => "5") id
00:46:05 v #33118 > >     child |> async.do
00:46:05 v #33119 > >     trace Debug (fun () => "6") id
00:46:05 v #33120 > >     (available_port, retries) |> return
00:46:05 v #33121 > > |> async.new_async_unit
00:46:05 v #33122 > > |> async.run_with_timeout 15000
00:46:05 v #33123 > > |> function
00:46:05 v #33124 > >     | Some (available_port, retries) =>
00:46:05 v #33125 > >         available_port |> _assert_eq (port + 2)
00:46:05 v #33126 > >
00:46:05 v #33127 > >         retries
00:46:05 v #33128 > >         |> _assert_between
00:46:05 v #33129 > >             if platform.is_windows () then 50i64 else 50
00:46:05 v #33130 > >             if platform.is_windows () then 150 else 1200
00:46:05 v #33131 > >
00:46:05 v #33132 > >         true
00:46:05 v #33133 > >     | _ => false
00:46:05 v #33134 > > |> _assert_eq true
00:46:06 v #33135 > 00:46:05 d #1774 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aaffdfdc4a6bc1bb26a722cba23a1eeb77739f4e317f6699802baa3cd8036947/main.spi
00:46:13 v #33136 > >
00:46:13 v #33137 > > ╭─[ 7.96s - stdout ]───────────────────────────────────────────────────────────╮
00:46:13 v #33138 > > │ 00:00:00 d #1 1                                                         │
00:46:13 v #33139 > > │ 00:00:00 d #2 _1                                                        │
00:46:13 v #33140 > > │ 00:00:00 d #3 2                                                         │
00:46:13 v #33141 > > │ 00:00:00 d #4 _2                                                        │
00:46:13 v #33142 > > │ 00:00:00 d #5 _3                                                        │
00:46:13 v #33143 > > │ 00:00:00 d #6 3                                                         │
00:46:13 v #33144 > > │ 00:00:02 v #7 networking.test_port_open / { port = 5557; ex =           │
00:46:13 v #33145 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:46:13 v #33146 > > │ be made because the target machine actively refused it.) }                   │
00:46:13 v #33147 > > │ 00:00:02 d #8 4                                                         │
00:46:13 v #33148 > > │ 00:00:03 v #9 networking.wait_for_port_access / { port = 5555; retry =  │
00:46:13 v #33149 > > │ 100; timeout = None; status = false }                                        │
00:46:13 v #33150 > > │ 00:00:04 d #10 _4                                                       │
00:46:13 v #33151 > > │ 00:00:04 d #11 _5                                                       │
00:46:13 v #33152 > > │ 00:00:06 v #12 networking.test_port_open / { port = 5555; ex =          │
00:46:13 v #33153 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:46:13 v #33154 > > │ be made because the target machine actively refused it.) }                   │
00:46:13 v #33155 > > │ 00:00:06 d #13 5                                                        │
00:46:13 v #33156 > > │ 00:00:06 d #14 6                                                        │
00:46:13 v #33157 > > │ __assert_eq / actual: 5557 / expected: 5557                                  │
00:46:13 v #33158 > > │ __assert_between / actual: 110L / expected: struct (50L, 150L)               │
00:46:13 v #33159 > > │ __assert_eq / actual: true / expected: true                                  │
00:46:13 v #33160 > > │                                                                              │
00:46:13 v #33161 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:46:13 v #33162 > >
00:46:13 v #33163 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:46:13 v #33164 > > //// test
00:46:13 v #33165 > >
00:46:13 v #33166 > > inl lock_ports host port = async.new_async_unit fun () =>
00:46:13 v #33167 > >     trace Debug (fun () => "_1") id
00:46:13 v #33168 > >     inl listener1 = new_tcp_listener (ip_address_parse host) port |> use
00:46:13 v #33169 > >     inl listener2 = new_tcp_listener (ip_address_parse host) (port + 1) |> use
00:46:13 v #33170 > >     trace Debug (fun () => "_2") id
00:46:13 v #33171 > >     listener1 |> listener_start
00:46:13 v #33172 > >     listener2 |> listener_start
00:46:13 v #33173 > >     trace Debug (fun () => "_3") id
00:46:13 v #33174 > >     async.sleep 400 |> async.do
00:46:13 v #33175 > >     trace Debug (fun () => "_4") id
00:46:13 v #33176 > >     listener1 |> listener_stop
00:46:13 v #33177 > >     listener2 |> listener_stop
00:46:13 v #33178 > >     trace Debug (fun () => "_5") id
00:46:13 v #33179 > >
00:46:13 v #33180 > > inl host = "127.0.0.1"
00:46:13 v #33181 > > inl port = 5555
00:46:13 v #33182 > >
00:46:13 v #33183 > > fun () =>
00:46:13 v #33184 > >     trace Debug (fun () => "1") id
00:46:13 v #33185 > >     inl child = lock_ports host port |> async.start_child |> async.let'
00:46:13 v #33186 > >     trace Debug (fun () => "2") id
00:46:13 v #33187 > >     async.sleep 240 |> async.do
00:46:13 v #33188 > >     trace Debug (fun () => "3") id
00:46:13 v #33189 > >     inl available_port = get_available_port (Some 60 |> optionm'.box) host port
00:46:13 v #33190 > > |> async.let'
00:46:13 v #33191 > >     trace Debug (fun () => "4") id
00:46:13 v #33192 > >     inl retries = wait_for_port_access (Some 60 |> optionm'.box) false host port
00:46:13 v #33193 > > |> async.let'
00:46:13 v #33194 > >     trace Debug (fun () => "5") id
00:46:13 v #33195 > >     child |> async.do
00:46:13 v #33196 > >     trace Debug (fun () => "6") id
00:46:13 v #33197 > >     (available_port, retries) |> return
00:46:13 v #33198 > > |> async.new_async_unit
00:46:13 v #33199 > > |> async.run_with_timeout 1500
00:46:13 v #33200 > > |> function
00:46:13 v #33201 > >     | Some (available_port, retries) =>
00:46:13 v #33202 > >         available_port |> _assert_eq (port + 2)
00:46:13 v #33203 > >
00:46:13 v #33204 > >         retries
00:46:13 v #33205 > >         |> _assert_between
00:46:13 v #33206 > >             (if platform.is_windows () then 2i64 else 1)
00:46:13 v #33207 > >             (if platform.is_windows () then 10 else 120)
00:46:13 v #33208 > >
00:46:13 v #33209 > >         true
00:46:13 v #33210 > >     | _ => false
00:46:13 v #33211 > > |> _assert_eq true
00:46:14 v #33212 > 00:46:13 d #1775 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3de1a3f891e8ad6cb7a1abed76bc22edc94062ccae78dbe11e8530efc0363bd6/main.spi
00:46:16 v #33213 > >
00:46:16 v #33214 > > ╭─[ 2.29s - stdout ]───────────────────────────────────────────────────────────╮
00:46:16 v #33215 > > │ 00:00:00 d #1 1                                                         │
00:46:16 v #33216 > > │ 00:00:00 d #2 2                                                         │
00:46:16 v #33217 > > │ 00:00:00 d #3 _1                                                        │
00:46:16 v #33218 > > │ 00:00:00 d #4 _2                                                        │
00:46:16 v #33219 > > │ 00:00:00 d #5 _3                                                        │
00:46:16 v #33220 > > │ 00:00:00 d #6 3                                                         │
00:46:16 v #33221 > > │ 00:00:00 v #7 async.run_with_timeout_async / { timeout = 60 }           │
00:46:16 v #33222 > > │ 00:00:00 d #8 4                                                         │
00:46:16 v #33223 > > │ 00:00:00 d #9 _4                                                        │
00:46:16 v #33224 > > │ 00:00:00 d #10 _5                                                       │
00:46:16 v #33225 > > │ 00:00:00 v #11 async.run_with_timeout_async / { timeout = 60 }          │
00:46:16 v #33226 > > │ 00:00:00 d #12 5                                                        │
00:46:16 v #33227 > > │ 00:00:00 d #13 6                                                        │
00:46:16 v #33228 > > │ __assert_eq / actual: 5557 / expected: 5557                                  │
00:46:16 v #33229 > > │ __assert_between / actual: 3L / expected: struct (2L, 10L)                   │
00:46:16 v #33230 > > │ __assert_eq / actual: true / expected: true                                  │
00:46:16 v #33231 > > │                                                                              │
00:46:16 v #33232 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:46:16 v #33233 > >
00:46:16 v #33234 > > ── markdown ────────────────────────────────────────────────────────────────────
00:46:16 v #33235 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:46:16 v #33236 > > │ ## main                                                                      │
00:46:16 v #33237 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:46:16 v #33238 > >
00:46:16 v #33239 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:46:16 v #33240 > > inl main () =
00:46:16 v #33241 > >     init_trace_state None
00:46:16 v #33242 > >     $'let test_port_open x = !test_port_open x' : ()
00:46:16 v #33243 > >     $'let test_port_open_timeout x = !test_port_open_timeout x' : ()
00:46:16 v #33244 > >     $'let wait_for_port_access x = !wait_for_port_access x' : ()
00:46:16 v #33245 > >     $'let get_available_port x = !get_available_port x' : ()
00:46:16 v #33246 > 00:46:15 d #1776 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a5b688ad50d46c18c8aca5462cf01395e7e971b4de15f1539db47c3d6c27f7e/main.spi
00:46:17 v #33247 > 00:00:47 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 33194 }
00:46:17 v #33248 > 00:00:47 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:46:19 v #33249 > 00:00:49 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/networking.dib.ipynb to html
00:46:19 v #33250 > 00:00:49 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:46:19 v #33251 > 00:00:49 v #7 !   validate(nb)
00:46:20 v #33252 > 00:00:49 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:46:20 v #33253 > 00:00:49 v #9 !   return _pygments_highlight(
00:46:20 v #33254 > 00:00:50 v #10 ! [NbConvertApp] Writing 368819 bytes to c:\home\git\polyglot\lib\spiral\networking.dib.html
00:46:20 v #33255 > 00:00:50 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 862 }
00:46:20 v #33256 > 00:00:50 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 862 }
00:46:20 v #33257 > 00:00:50 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/networking.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/networking.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:46:21 v #33258 > 00:00:50 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:46:21 v #33259 > 00:00:50 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:46:21 v #33260 > 00:00:50 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 34115 }
00:46:21 d #33261 runtime.execute_with_options_async / { exit_code = 0; output_length = 38080 }
00:46:21 d #40 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path networking.dib --retries 3
00:46:21 v #5 async.run_with_timeout_async / { timeout = 100 }
00:00:00 d #1 writeDibCode / output: Spi / path: runtime.dib
00:00:00 d #1 writeDibCode / output: Spi / path: common.dib
00:00:00 d #1 writeDibCode / output: Spi / path: threading.dib
00:00:00 d #1 writeDibCode / output: Spi / path: trace.dib
00:00:00 d #1 writeDibCode / output: Spi / path: testing.dib
00:00:00 d #1 writeDibCode / output: Spi / path: networking.dib
00:00:00 d #1 writeDibCode / output: Spi / path: async.dib
00:00:00 d #1 writeDibCode / output: Spi / path: crypto.dib
00:00:00 d #4 parseDibCode / output: Spi / file: crypto.dib
00:00:00 d #6 parseDibCode / output: Spi / file: threading.dib
00:00:00 d #7 parseDibCode / output: Spi / file: common.dib
00:00:00 d #8 parseDibCode / output: Spi / file: trace.dib
00:00:00 d #10 parseDibCode / output: Spi / file: async.dib
00:00:00 d #10 parseDibCode / output: Spi / file: testing.dib
00:00:00 d #8 parseDibCode / output: Spi / file: networking.dib
00:00:00 d #4 parseDibCode / output: Spi / file: runtime.dib
00:00:00 d #12 writeDibCode / output: Spi / path: base.dib
00:00:00 d #13 writeDibCode / output: Spi / path: parsing.dib
00:00:00 d #14 writeDibCode / output: Spi / path: console.dib
00:00:00 d #14 writeDibCode / output: Spi / path: iter.dib
00:00:00 d #16 writeDibCode / output: Spi / path: env.dib
00:00:00 d #14 writeDibCode / output: Spi / path: resultm.dib
00:00:00 d #19 parseDibCode / output: Spi / file: base.dib
00:00:00 d #20 parseDibCode / output: Spi / file: parsing.dib
00:00:00 d #21 parseDibCode / output: Spi / file: console.dib
00:00:00 d #22 parseDibCode / output: Spi / file: iter.dib
00:00:00 d #23 parseDibCode / output: Spi / file: env.dib
00:00:00 d #24 parseDibCode / output: Spi / file: resultm.dib
00:00:00 d #14 writeDibCode / output: Spi / path: date_time.dib
00:00:00 d #25 writeDibCode / output: Spi / path: file_system.dib
00:00:00 d #26 writeDibCode / output: Spi / path: guid.dib
00:00:00 d #27 parseDibCode / output: Spi / file: date_time.dib
00:00:00 d #28 parseDibCode / output: Spi / file: file_system.dib
00:00:00 d #29 parseDibCode / output: Spi / file: guid.dib
00:00:00 d #30 writeDibCode / output: Spi / path: mapm.dib
00:00:00 d #30 writeDibCode / output: Spi / path: math.dib
00:00:00 d #32 parseDibCode / output: Spi / file: mapm.dib
00:00:00 d #33 parseDibCode / output: Spi / file: math.dib
00:00:00 d #34 writeDibCode / output: Spi / path: optionm'.dib
00:00:00 d #35 writeDibCode / output: Spi / path: sm'.dib
00:00:00 d #36 writeDibCode / output: Spir / path: sm'.dib
00:00:00 d #37 parseDibCode / output: Spi / file: optionm'.dib
00:00:00 d #38 parseDibCode / output: Spi / file: sm'.dib
00:00:00 d #39 writeDibCode / output: Spi / path: am'.dib
00:00:00 d #40 parseDibCode / output: Spir / file: sm'.dib
00:00:00 d #41 parseDibCode / output: Spi / file: am'.dib
00:00:00 d #42 writeDibCode / output: Spi / path: listm'.dib
00:00:00 d #43 parseDibCode / output: Spi / file: listm'.dib
00:00:00 d #44 writeDibCode / output: Spi / path: reflection.dib
00:00:00 d #45 parseDibCode / output: Spi / file: reflection.dib
00:00:00 d #46 writeDibCode / output: Spi / path: python.dib
00:00:00 d #47 parseDibCode / output: Spi / file: python.dib
00:00:00 d #48 writeDibCode / output: Spi / path: typescript.dib
00:00:00 d #49 parseDibCode / output: Spi / file: typescript.dib
00:00:00 d #50 writeDibCode / output: Spi / path: stream.dib
00:00:00 d #51 writeDibCode / output: Spi / path: benchmark.dib
00:00:00 d #52 parseDibCode / output: Spi / file: stream.dib
00:00:00 d #53 parseDibCode / output: Spi / file: benchmark.dib
00:00:00 d #54 writeDibCode / output: Spi / path: seq.dib
00:00:00 d #55 parseDibCode / output: Spi / file: seq.dib
00:00:00 d #56 writeDibCode / output: Spi / path: util.dib
00:00:00 d #57 parseDibCode / output: Spi / file: util.dib
00:00:00 d #58 writeDibCode / output: Spi / path: platform.dib
00:00:00 d #59 parseDibCode / output: Spi / file: platform.dib
00:00:00 d #60 writeDibCode / output: Spi / path: rust/rust.dib
00:00:00 d #61 writeDibCode / output: Spi / path: rust/testing.dib
00:00:00 d #62 parseDibCode / output: Spi / file: rust/testing.dib
00:00:00 d #63 parseDibCode / output: Spi / file: rust/rust.dib
00:00:00 d #64 writeDibCode / output: Spi / path: rust/near.dib
00:00:00 d #65 parseDibCode / output: Spi / file: rust/near.dib
00:00:00 d #66 writeDibCode / output: Spi / path: rust/near_workspaces.dib
00:00:00 d #67 parseDibCode / output: Spi / file: rust/near_workspaces.dib
00:00:00 d #68 writeDibCode / output: Spi / path: physics.dib
00:00:00 d #69 writeDibCode / output: Spi / path: leptos/leptos.dib
00:00:00 d #70 parseDibCode / output: Spi / file: physics.dib
00:00:00 d #71 parseDibCode / output: Spi / file: leptos/leptos.dib
00:00:00 d #72 writeDibCode / output: Spi / path: wasm.dib
00:00:00 d #73 parseDibCode / output: Spi / file: wasm.dib
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:01 v #6 > Server bound to: http://localhost:13805
00:00:02 v #5 async.run_with_timeout_async / { timeout = 180 }
00:00:02 v #8 async.run_with_timeout_async / { timeout = 180 }
00:00:02 v #6 async.run_with_timeout_async / { timeout = 180 }
00:00:02 v #5 async.run_with_timeout_async / { timeout = 180 }
00:00:02 v #9 async.run_with_timeout_async / { timeout = 180 }
00:00:02 d #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02 d #4 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02 d #4 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02 d #6 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02 d #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02 d #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:02 d #9 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:02 d #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:02 d #11 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:02 d #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:02 d #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02 d #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02 d #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02 d #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02 d #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02 v #18 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # networking\nopen rust.rust_operators\n\n/// ## rust\n\n/// ### reqwest...!get_available_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:02 v #19 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # threading\nopen rust\nopen rust_operators\n\n/// ## rust\n\n/// ### sl...new_disposable_token x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:02 v #20 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # trace\n\n/// ## trace\n\n/// ### trace_level\nunion trace_level =\n   ...0027let trace x = !trace x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:02 v #20 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # async\nopen rust\nopen rust_operators\n\n/// ## rust\n\n/// ### future...token_with_default_async x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:02 v #22 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # runtime\nopen rust\nopen rust_operators\nopen sm\u0027_operators\n\n//...t_args x = !split_args x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:02 v #23 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:02 v #23 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:02 v #23 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:02 v #23 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:02 v #25 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:02 d #27 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:02 d #30 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:02 d #27 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:02 d #27 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:02 d #31 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02 d #31 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02 d #29 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:02 d #33 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02 d #34 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02 d #35 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03 d #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03 d #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03 d #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03 d #40 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:03 d #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03 d #41 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:03 d #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03 d #42 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03 d #43 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03 d #44 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03 v #7 > 00:00:02 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/threading.spi
00:00:03 v #8 > 00:00:02 d #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/trace.spi
00:00:03 v #9 > 00:00:02 d #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/networking.spi
00:00:03 v #10 > 00:00:02 d #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/async.spi
00:00:03 v #11 > 00:00:02 d #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/runtime.spi
00:00:03 d #45 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03 d #45 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03 d #45 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03 d #45 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03 d #45 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03 d #49 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03 d #51 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03 d #52 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:03 d #53 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:03 d #49 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04 d #54 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:04 d #54 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:04 d #54 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:04 d #58 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04 d #54 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04 d #60 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04 d #60 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:04 d #59 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:04 d #63 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04 d #59 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:04 d #64 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:04 d #64 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04 d #66 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:04 d #67 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04 d #68 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04 d #69 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:04 d #70 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:04 d #71 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:04 d #72 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04 d #73 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:05 d #74 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:05 d #74 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:05 d #76 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:05 d #77 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:05 d #78 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05 d #79 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:05 d #80 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:05 d #81 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:05 d #82 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:05 d #83 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:05 d #84 Supervisor.buildFile / AsyncSeq.scan / outputContent:
let rec closure0 () (v0 : System.Threading.CancellationToken) : Async<System.Threading.CancellationToken> =
    let v1 : unit = ()
    
#if FABLE_COMP...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v0 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:05 d #85 Supervisor.buildFile / AsyncSeq.scan / outputContent:
type Disposable (f : unit -> unit) = interface System.IDisposable with member _.Dispose () = f ()
type [<Struct>] US0 =
    | US0_0 of f0_0 : System.T...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v0 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:05 d #86 Supervisor.buildFile / takeWhileInclusive / outputContent:
let rec closure0 () (v0 : System.Threading.CancellationToken) : Async<System.Threading.CancellationToken> =
    let v1 : unit = ()
    
#if FABLE_COMP...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v0 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:05 d #87 Supervisor.buildFile / takeWhileInclusive / outputContent:
type Disposable (f : unit -> unit) = interface System.IDisposable with member _.Dispose () = f ()
type [<Struct>] US0 =
    | US0_0 of f0_0 : System.T...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v0 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:05 d #88 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05 d #88 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05 d #89 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...e0()
let v2 : unit = (fun () -> v1 (); v0) ()
let v16 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure3()
let trace x = v16 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:05 d #90 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...e0()
let v2 : unit = (fun () -> v1 (); v0) ()
let v16 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure3()
let trace x = v16 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:05 d #91 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05 d #92 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:05 d #92 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:05 d #94 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:05 d #95 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05 v #10 async.run_with_timeout_async / { timeout = 180 }
00:00:05 v #11 async.run_with_timeout_async / { timeout = 180 }
00:00:05 d #96 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05 d #96 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:05 d #98 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:05 d #98 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:05 d #100 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05 d #101 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:05 v #102 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # crypto\nopen rust\nopen rust_operators\n\n/// ## fsharp\n\n/// ### sha..._port x = !hash_to_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:05 v #103 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # common\n\n/// ## common\n\n/// ### (:\u003E)\nprototype (~:\u003E) r :...et memoize x = !memoize x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:05 v #104 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:05 v #105 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:06 v #12 async.run_with_timeout_async / { timeout = 180 }
00:00:06 d #106 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:06 d #107 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:06 d #108 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:06 v #109 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # date_time\nopen rust.rust_operators\nopen sm\u0027_operators\n\n/// ##... x = !format_iso8601 x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:06 v #110 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:06 d #111 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06 d #112 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06 d #113 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:06 d #114 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06 v #12 > 00:00:05 d #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/crypto.spi
00:00:06 d #115 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:06 d #116 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:06 d #117 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:06 d #118 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06 d #119 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:06 d #120 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:06 v #13 > 00:00:05 d #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/common.spi
00:00:06 d #121 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...ng option)) = closure28()
let execution_options x = v19 x
let v20 : (string -> Result<(string []), string>) = closure29()
let split_args x = v20 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:06 d #122 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...ng option)) = closure28()
let execution_options x = v19 x
let v20 : (string -> Result<(string []), string>) = closure29()
let split_args x = v20 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06 d #123 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06 v #14 > 00:00:05 d #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/date_time.spi
00:00:06 d #124 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:06 d #126 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06 d #125 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06 d #127 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06 v #13 async.run_with_timeout_async / { timeout = 180 }
00:00:06 d #128 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:06 d #129 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:06 d #130 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...
let wait_for_port_access x = v18 x
let v19 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure24()
let get_available_port x = v19 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06 d #131 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...
let wait_for_port_access x = v18 x
let v19 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure24()
let get_available_port x = v19 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06 d #132 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07 d #133 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:07 d #134 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:07 d #135 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:07 d #136 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:07 d #137 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:07 v #138 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # platform\nopen rust.rust_operators\n\n/// ## fsharp\n\n/// ### os_plat...et_executable_suffix ()\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:07 v #139 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:07 v #14 async.run_with_timeout_async / { timeout = 180 }
00:00:07 v #15 > 00:00:06 d #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/platform.spi
00:00:07 d #140 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:07 d #141 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:07 d #142 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:07 v #143 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # file_system\nopen sm\u0027_operators\nopen rust\nopen rust_operators\n...003E) x = !combine x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result:
00:00:07 v #144 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result:
00:00:07 d #145 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:07 d #146 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:07 d #147 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:07 d #148 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:07 d #149 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:07 d #149 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:07 d #151 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:07 d #152 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:07 v #16 > 00:00:06 d #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/file_system.spi
00:00:07 d #153 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:07 d #154 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:07 d #155 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...nit -> unit) -> unit option)) = closure4()
let retry_fn x = v17 x
let v18 : ((unit -> unit) -> (unit -> unit)) = closure15()
let memoize x = v18 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:07 d #156 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...nit -> unit) -> unit option)) = closure4()
let retry_fn x = v17 x
let v18 : ((unit -> unit) -> (unit -> unit)) = closure15()
let memoize x = v18 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:07 d #157 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 d #158 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:08 d #159 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:08 d #160 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("chrono::DateTime<$0>")>]
#endif
type chrono_DateTime<'T> = class end
#if FABLE_COMPILER
[<Fabl...g -> (System.DateTime -> string)) = closure10()
let format x = v6 x
let v7 : (System.DateTime -> string) = closure12()
let format_iso8601 x = v7 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:08 d #161 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("chrono::DateTime<$0>")>]
#endif
type chrono_DateTime<'T> = class end
#if FABLE_COMPILER
[<Fabl...g -> (System.DateTime -> string)) = closure10()
let format x = v6 x
let v7 : (System.DateTime -> string) = closure12()
let format_iso8601 x = v7 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:08 d #162 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 d #163 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:08 d #164 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:08 v #15 async.run_with_timeout_async / { timeout = 180 }
00:00:08 d #165 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:08 d #166 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:08 d #167 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:08 v #168 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # guid\n\n/// ## guid\n\n/// ### guid\nnominal guid_python =\n    \u0060...aw_guid x = !new_raw_guid x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result:
00:00:08 v #169 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result:
00:00:08 d #170 Supervisor.buildFile / AsyncSeq.scan / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v25
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:08 d #171 Supervisor.buildFile / takeWhileInclusive / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v25
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:08 d #172 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 v #17 > 00:00:07 d #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/guid.spi
00:00:08 v #16 async.run_with_timeout_async / { timeout = 180 }
00:00:08 d #173 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:08 d #174 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:08 d #175 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08 d #176 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:08 d #177 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08 v #178 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # sm\u0027\nopen rust\nopen rust_operators\nopen sm\u0027_real\n\n/// ##...tring std_string = from_std_string\n","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result:
00:00:08 v #179 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result:
00:00:08 d #180 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:08 d #181 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:08 d #182 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:08 d #183 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:08 v #18 > 00:00:07 d #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/sm'.spi
00:00:08 d #184 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:08 d #185 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:08 d #186 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.... 1024us
    v52
let v0 : (string -> string) = closure0()
let hash_text x = v0 x
let v1 : (string -> uint16) = closure1()
let hash_to_port x = v1 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:08 d #187 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.... 1024us
    v52
let v0 : (string -> string) = closure0()
let hash_text x = v0 x
let v1 : (string -> uint16) = closure1()
let hash_to_port x = v1 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:08 d #188 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 d #189 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:08 d #190 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08 d #191 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 d #192 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 d #193 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:09 v #17 async.run_with_timeout_async / { timeout = 100 }
00:00:09 c #194 Async.runWithTimeoutAsync** / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\lib\spiral\crypto.fsx' because it is being used by another process.)
 ---> System.IO.IOException: The process cannot access the file 'C:\home\git\polyglot\lib\spiral\crypto.fsx' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.File.WriteToFileAsync(String path, FileMode mode, String contents, Encoding encoding, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Microsoft.FSharp.Control.AsyncResult`1.Commit() in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 454
   at <StartupCode$FSharp-Core>.$Async.AwaitAndBindChildResult@1972-6.Invoke(Boolean ok) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 1974
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 528
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 / timeout: 3600000

# Invoke-Block / $retry: 1/3 / $Location:  / Get-Location: C:\home\git\polyglot\lib\spiral / $OnError: Stop / $exitcode: 1 / $EnvVars: {
  "PATH": "C:\\Users\\i574n\\scoop\\apps\\pwsh\\current;C:\\Users\\i574n\\scoop\\apps\\python312\\current\\Scripts;C:\\Users\\i574n\\scoop\\apps\\python312\\current\\.;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\ProgramData\\scoop\\shims;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\Perforce;C:\\Program Files\\Wasmtime\\bin;C:\\Program Files\\Perforce\\;C:\\Users\\i574n\\scoop\\apps\\vscode-insiders\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\perl\\current\\perl\\site\\bin;C:\\Users\\i574n\\scoop\\apps\\perl\\current\\perl\\bin;C:\\Users\\i574n\\scoop\\apps\\elixir\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\rustup\\current\\.cargo\\bin;C:\\Users\\i574n\\scoop\\apps\\latex\\current\\texmfs\\install\\miktex\\bin\\x64;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk-preview\\current;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk\\current;C:\\Users\\i574n\\scoop\\apps\\gsudo\\current;C:\\Users\\i574n\\scoop\\apps\\python\\current;C:\\Users\\i574n\\scoop\\apps\\nircmd\\current;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n/scoop/buckets/mold/home/windows/path;C:\\Users\\i574n/scoop/persist/rustup/.cargo/bin;C:\\Users\\i574n/scoop/apps/nvm/current/nodejs/nodejs;C:\\Users\\i574n/scoop/apps/cygwin/current/root/bin;C:\\Users\\i574n\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n\\.bun\\bin;C:\\Users\\i574n\\.dotnet\\tools;C:\\Users\\i574n\\scoop\\shims;C:\\Users\\i574n\\.fly\\bin;C:\\Program Files\\Wasmtime\\bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin"
} / $Error: '' / $ScriptBlock:
'. ../../apps/spiral/dist/Supervisor$(_exe) --parallel --build-file async.spi async_.fsx --build-file runtime.spi runtime.fsx --build-file trace.spi trace.fsx --build-file threading.spi threading.fsx --build-file networking.spi networking.fsx --build-file crypto.spi crypto.fsx --build-file common.spi common.fsx --build-file date_time.spi date_time.fsx --build-file platform.spi platform.fsx --build-file file_system.spi file_system.fsx --build-file guid.spi guid.fsx --build-file "sm'.spi" sm.fsx'

00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:01 v #6 > Server bound to: http://localhost:13805
00:00:02 v #5 async.run_with_timeout_async / { timeout = 180 }
00:00:02 v #5 async.run_with_timeout_async / { timeout = 180 }
00:00:02 v #5 async.run_with_timeout_async / { timeout = 180 }
00:00:02 v #9 async.run_with_timeout_async / { timeout = 180 }
00:00:02 v #8 async.run_with_timeout_async / { timeout = 180 }
00:00:02 d #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02 d #4 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02 d #5 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02 d #6 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02 d #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02 d #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:02 d #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:02 d #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:02 d #9 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:02 d #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:02 d #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02 d #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02 d #16 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02 d #14 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02 d #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02 v #18 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # async\nopen rust\nopen rust_operators\n\n/// ## rust\n\n/// ### future...token_with_default_async x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:02 v #20 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # threading\nopen rust\nopen rust_operators\n\n/// ## rust\n\n/// ### sl...new_disposable_token x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:02 v #21 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # networking\nopen rust.rust_operators\n\n/// ## rust\n\n/// ### reqwest...!get_available_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:02 v #19 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # trace\n\n/// ## trace\n\n/// ### trace_level\nunion trace_level =\n   ...0027let trace x = !trace x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:02 v #18 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # runtime\nopen rust\nopen rust_operators\nopen sm\u0027_operators\n\n//...t_args x = !split_args x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:02 v #22 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:02 v #24 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:02 v #24 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:02 v #22 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:02 v #26 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:02 d #27 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:02 d #27 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:02 d #27 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:02 d #31 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02 d #27 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:02 d #32 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02 d #27 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:02 d #33 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02 d #34 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02 d #35 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03 d #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03 d #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03 d #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03 d #37 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03 d #37 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03 d #39 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03 d #40 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03 d #41 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:03 d #42 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:03 d #42 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03 v #7 > 00:00:02 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/threading.spi
00:00:03 v #8 > 00:00:02 d #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/networking.spi
00:00:03 v #9 > 00:00:02 d #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/trace.spi
00:00:03 v #10 > 00:00:02 d #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/runtime.spi
00:00:03 v #11 > 00:00:02 d #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/async.spi
00:00:03 d #44 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03 d #47 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03 d #44 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03 d #45 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03 d #44 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03 d #48 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03 d #49 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03 d #50 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:03 d #51 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03 d #52 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04 d #53 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:04 d #55 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:04 d #54 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04 d #56 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:04 d #57 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04 d #58 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:04 d #59 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:04 d #60 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04 d #61 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04 d #62 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:04 d #63 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:04 d #63 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04 d #67 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:04 d #63 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04 d #63 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:04 d #68 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04 d #63 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:04 d #69 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:04 d #70 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04 d #71 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:05 d #72 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:05 d #72 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:05 d #74 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05 d #75 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:05 d #74 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:05 d #77 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:05 d #78 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:05 d #79 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:05 d #80 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:05 d #81 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:05 d #82 Supervisor.buildFile / AsyncSeq.scan / outputContent:
let rec closure0 () (v0 : System.Threading.CancellationToken) : Async<System.Threading.CancellationToken> =
    let v1 : unit = ()
    
#if FABLE_COMP...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v0 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:05 d #83 Supervisor.buildFile / takeWhileInclusive / outputContent:
let rec closure0 () (v0 : System.Threading.CancellationToken) : Async<System.Threading.CancellationToken> =
    let v1 : unit = ()
    
#if FABLE_COMP...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v0 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:05 d #84 Supervisor.buildFile / AsyncSeq.scan / outputContent:
type Disposable (f : unit -> unit) = interface System.IDisposable with member _.Dispose () = f ()
type [<Struct>] US0 =
    | US0_0 of f0_0 : System.T...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v0 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:05 d #85 Supervisor.buildFile / takeWhileInclusive / outputContent:
type Disposable (f : unit -> unit) = interface System.IDisposable with member _.Dispose () = f ()
type [<Struct>] US0 =
    | US0_0 of f0_0 : System.T...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v0 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:05 d #86 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05 d #86 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05 d #87 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...e0()
let v2 : unit = (fun () -> v1 (); v0) ()
let v16 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure3()
let trace x = v16 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:05 d #88 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...e0()
let v2 : unit = (fun () -> v1 (); v0) ()
let v16 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure3()
let trace x = v16 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:05 d #89 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05 v #10 async.run_with_timeout_async / { timeout = 180 }
00:00:05 v #11 async.run_with_timeout_async / { timeout = 180 }
00:00:05 d #90 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05 d #90 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:05 d #92 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:05 d #93 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:05 d #94 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:05 d #95 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05 v #96 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # crypto\nopen rust\nopen rust_operators\n\n/// ## fsharp\n\n/// ### sha..._port x = !hash_to_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:05 v #97 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # common\n\n/// ## common\n\n/// ### (:\u003E)\nprototype (~:\u003E) r :...et memoize x = !memoize x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:05 v #98 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:05 v #98 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:05 d #100 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:05 d #101 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:05 d #102 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:05 d #103 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05 v #12 async.run_with_timeout_async / { timeout = 180 }
00:00:05 d #104 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:05 d #105 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:05 d #106 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:05 v #107 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # date_time\nopen rust.rust_operators\nopen sm\u0027_operators\n\n/// ##... x = !format_iso8601 x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:05 v #108 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:06 d #109 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:06 d #111 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06 d #110 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:06 d #112 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:06 v #12 > 00:00:05 d #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/crypto.spi
00:00:06 d #113 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06 d #113 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:06 d #115 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06 d #116 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06 d #117 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:06 d #118 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:06 v #13 > 00:00:05 d #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/common.spi
00:00:06 d #119 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...ng option)) = closure28()
let execution_options x = v19 x
let v20 : (string -> Result<(string []), string>) = closure29()
let split_args x = v20 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:06 d #120 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...ng option)) = closure28()
let execution_options x = v19 x
let v20 : (string -> Result<(string []), string>) = closure29()
let split_args x = v20 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06 d #121 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...
let wait_for_port_access x = v18 x
let v19 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure24()
let get_available_port x = v19 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06 d #122 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...
let wait_for_port_access x = v18 x
let v19 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure24()
let get_available_port x = v19 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06 d #123 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06 d #124 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06 v #14 > 00:00:05 d #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/date_time.spi
00:00:06 d #125 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:06 d #126 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06 d #127 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:06 d #128 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:06 v #13 async.run_with_timeout_async / { timeout = 180 }
00:00:06 v #14 async.run_with_timeout_async / { timeout = 180 }
00:00:06 d #129 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:06 d #130 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:06 d #131 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:06 d #132 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:06 d #133 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:06 d #134 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:06 d #135 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:06 d #136 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:06 v #137 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # platform\nopen rust.rust_operators\n\n/// ## fsharp\n\n/// ### os_plat...et_executable_suffix ()\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:06 v #138 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # file_system\nopen sm\u0027_operators\nopen rust\nopen rust_operators\n...003E) x = !combine x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result:
00:00:06 v #139 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:06 v #140 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result:
00:00:07 v #15 > 00:00:06 d #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/platform.spi
00:00:07 d #141 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:07 d #142 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:07 d #143 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:07 d #144 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:07 v #16 > 00:00:06 d #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/file_system.spi
00:00:07 d #145 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:07 d #146 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:07 d #147 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:07 d #148 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:07 d #149 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:07 d #150 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:07 d #151 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...nit -> unit) -> unit option)) = closure4()
let retry_fn x = v17 x
let v18 : ((unit -> unit) -> (unit -> unit)) = closure15()
let memoize x = v18 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:07 d #152 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...nit -> unit) -> unit option)) = closure4()
let retry_fn x = v17 x
let v18 : ((unit -> unit) -> (unit -> unit)) = closure15()
let memoize x = v18 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:07 d #153 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07 v #15 async.run_with_timeout_async / { timeout = 180 }
00:00:07 d #154 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:07 d #155 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:07 d #156 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:07 v #157 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # guid\n\n/// ## guid\n\n/// ### guid\nnominal guid_python =\n    \u0060...aw_guid x = !new_raw_guid x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result:
00:00:07 v #158 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result:
00:00:07 d #159 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:07 d #160 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:07 d #161 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("chrono::DateTime<$0>")>]
#endif
type chrono_DateTime<'T> = class end
#if FABLE_COMPILER
[<Fabl...g -> (System.DateTime -> string)) = closure10()
let format x = v6 x
let v7 : (System.DateTime -> string) = closure12()
let format_iso8601 x = v7 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:07 d #162 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("chrono::DateTime<$0>")>]
#endif
type chrono_DateTime<'T> = class end
#if FABLE_COMPILER
[<Fabl...g -> (System.DateTime -> string)) = closure10()
let format x = v6 x
let v7 : (System.DateTime -> string) = closure12()
let format_iso8601 x = v7 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:07 d #163 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07 v #17 > 00:00:07 d #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/guid.spi
00:00:07 d #164 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:07 d #165 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:07 d #166 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:07 d #167 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:08 v #16 async.run_with_timeout_async / { timeout = 180 }
00:00:08 d #168 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08 d #169 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:08 d #170 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08 v #171 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # sm\u0027\nopen rust\nopen rust_operators\nopen sm\u0027_real\n\n/// ##...tring std_string = from_std_string\n","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result:
00:00:08 d #172 Supervisor.buildFile / AsyncSeq.scan / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v25
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:08 d #173 Supervisor.buildFile / takeWhileInclusive / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v25
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:08 d #174 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 v #175 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result:
00:00:08 d #176 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:08 d #177 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:08 d #178 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:08 d #179 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:08 v #18 > 00:00:07 d #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/sm'.spi
00:00:08 d #180 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:08 d #181 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:08 d #182 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.... 1024us
    v52
let v0 : (string -> string) = closure0()
let hash_text x = v0 x
let v1 : (string -> uint16) = closure1()
let hash_to_port x = v1 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:08 d #183 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.... 1024us
    v52
let v0 : (string -> string) = closure0()
let hash_text x = v0 x
let v1 : (string -> uint16) = closure1()
let hash_to_port x = v1 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:08 d #184 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 d #185 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:08 d #186 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08 d #187 Supervisor.buildFile / AsyncSeq.scan / outputContent:
let rec closure0 () (v0 : string) : System.Guid =
    let v1 : System.Guid = v0 |> System.Guid 
    v1
and method0 (v0 : string) : System.Guid =
    l... = v0 x
let v1 : (string -> System.Guid) = closure1()
let hash_guid x = v1 x
let v2 : (unit -> System.Guid) = closure2()
let new_raw_guid x = v2 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:08 d #188 Supervisor.buildFile / takeWhileInclusive / outputContent:
let rec closure0 () (v0 : string) : System.Guid =
    let v1 : System.Guid = v0 |> System.Guid 
    v1
and method0 (v0 : string) : System.Guid =
    l... = v0 x
let v1 : (string -> System.Guid) = closure1()
let hash_guid x = v1 x
let v2 : (unit -> System.Guid) = closure2()
let new_raw_guid x = v2 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:08 d #189 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 d #190 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::Regex")>]
#endif
type regex_Regex = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa... : (string -> ((string []) -> string)) = closure46()
let join' x = v21 x
let v22 : (string -> (char [])) = closure48()
let to_char_array x = v22 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:08 d #191 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::Regex")>]
#endif
type regex_Regex = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa... : (string -> ((string []) -> string)) = closure46()
let join' x = v21 x
let v22 : (string -> (char [])) = closure48()
let to_char_array x = v22 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08 d #192 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 d #193 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:08 d #194 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:09 d #195 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:09 d #196 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:09 d #197 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:09 d #198 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:10 d #199 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:10 d #200 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:10 d #201 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:10 d #202 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:11 d #203 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:11 d #204 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:11 d #205 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:11 d #206 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:12 d #207 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:12 d #208 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:12 d #209 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:12 d #210 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:13 d #211 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:13 d #212 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:13 d #213 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...(string -> (string -> unit)) = closure56()
let link_directory x = v34 x
let v35 : (string -> (string -> string)) = closure58()
let (</>) x = v35 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:13 d #214 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
type std_string_String = class end
#else
type std_string_String = stri...(string -> (string -> unit)) = closure56()
let link_directory x = v34 x
let v35 : (string -> (string -> string)) = closure58()
let (</>) x = v35 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:13 d #215 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:13 v #17 async.run_with_timeout_async / { timeout = 100 }
In [ ]:
{ pwsh ../apps/scheduler/build.ps1 } | Invoke-Block
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:02 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:02 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:02 v #6 > Server bound to: http://localhost:13805
00:00:02 d #7 runtime.execute_with_options_async / { file_name = ../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path Tasks.dib --retries 3"; options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Tasks.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:02 v #8 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Tasks.dib", "--retries", "3"])) }
00:00:02 v #9 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/scheduler/Tasks.dib", "--output-path", "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/scheduler/Tasks.dib" --output-path "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 v #10 > >
00:00:04 v #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #13 > > │ ## Tasks (Polyglot)                                                          │
00:00:04 v #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 v #15 > >
00:00:07 v #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 v #17 > > //// test
00:00:07 v #18 > >
00:00:07 v #19 > > open testing
00:00:09 v #20 > 00:00:08 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:00:12 v #21 > >
00:00:12 v #22 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 v #23 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 v #24 > > │ ## task_name                                                                 │
00:00:12 v #25 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 v #26 > >
00:00:12 v #27 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 v #28 > > nominal task_name = string
00:00:12 v #29 > 00:00:11 d #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/392f391f9cae28a3678d731595bd7a9f983d74c9c45aae995934db397b070807/main.spi
00:00:13 v #30 > >
00:00:13 v #31 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 v #32 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 v #33 > > │ ## manual_scheduling                                                         │
00:00:13 v #34 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 v #35 > >
00:00:13 v #36 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 v #37 > > union manual_scheduling =
00:00:13 v #38 > >     | WithSuggestion
00:00:13 v #39 > >     | WithoutSuggestion
00:00:13 v #40 > 00:00:12 d #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70c6e2fc87827e0434831213add114042820c20156ea3420be49778d155101a8/main.spi
00:00:13 v #41 > >
00:00:13 v #42 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 v #43 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 v #44 > > │ ## recurrency_offset                                                         │
00:00:13 v #45 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 v #46 > >
00:00:13 v #47 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 v #48 > > union recurrency_offset =
00:00:13 v #49 > >     | Days : i32
00:00:13 v #50 > >     | Weeks : i32
00:00:13 v #51 > >     | Months : i32
00:00:13 v #52 > 00:00:12 d #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cfaa597becde0018bf0ce3912bd79f0f0c0197bc2f800085c9a51deefbf96de/main.spi
00:00:14 v #53 > >
00:00:14 v #54 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 v #55 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 v #56 > > │ ## day_of_week                                                               │
00:00:14 v #57 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 v #58 > >
00:00:14 v #59 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 v #60 > > union day_of_week =
00:00:14 v #61 > >     | Sunday
00:00:14 v #62 > >     | Monday
00:00:14 v #63 > >     | Tuesday
00:00:14 v #64 > >     | Wednesday
00:00:14 v #65 > >     | Thursday
00:00:14 v #66 > >     | Friday
00:00:14 v #67 > >     | Saturday
00:00:14 v #68 > 00:00:13 d #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f1a5d4929df57e32d3b746fffe7c948ab7320f0d175637218dd6f4c62efc25ff/main.spi
00:00:14 v #69 > >
00:00:14 v #70 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 v #71 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 v #72 > > │ ## month                                                                     │
00:00:14 v #73 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 v #74 > >
00:00:14 v #75 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 v #76 > > union month =
00:00:14 v #77 > >     | January
00:00:14 v #78 > >     | February
00:00:14 v #79 > >     | March
00:00:14 v #80 > >     | April
00:00:14 v #81 > >     | May
00:00:14 v #82 > >     | June
00:00:14 v #83 > >     | July
00:00:14 v #84 > >     | August
00:00:14 v #85 > >     | September
00:00:14 v #86 > >     | October
00:00:14 v #87 > >     | November
00:00:14 v #88 > >     | December
00:00:14 v #89 > 00:00:13 d #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/43a16e792314fb2d8ab8badf543b853c5281afbc3545b9b6488eebed5375c738/main.spi
00:00:15 v #90 > >
00:00:15 v #91 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 v #92 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 v #93 > > │ ## day                                                                       │
00:00:15 v #94 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 v #95 > >
00:00:15 v #96 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 v #97 > > nominal day = i32
00:00:15 v #98 > 00:00:14 d #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5935c34341779bf5daaa9ebc662ec0125f988811de2ee4c17ec73e99e3eb1dcb/main.spi
00:00:15 v #99 > >
00:00:15 v #100 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 v #101 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 v #102 > > │ ## year                                                                      │
00:00:15 v #103 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 v #104 > >
00:00:15 v #105 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 v #106 > > nominal year = i32
00:00:15 v #107 > 00:00:14 d #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fcee6fad777bb4f522ee4ea0946c7389722ddbccf9a3c9351638d417ce2373f1/main.spi
00:00:16 v #108 > >
00:00:16 v #109 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 v #110 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 v #111 > > │ ## fixed_recurrency                                                          │
00:00:16 v #112 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 v #113 > >
00:00:16 v #114 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 v #115 > > union fixed_recurrency =
00:00:16 v #116 > >     | Weekly : day_of_week
00:00:16 v #117 > >     | Monthly : day
00:00:16 v #118 > >     | Yearly : day * month
00:00:16 v #119 > 00:00:15 d #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe775993bc85ffdc4e07f65dfac0882e7b662cdc44be2338310107a4cee05f05/main.spi
00:00:16 v #120 > >
00:00:16 v #121 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 v #122 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 v #123 > > │ ## recurrency                                                                │
00:00:16 v #124 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 v #125 > >
00:00:16 v #126 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 v #127 > > union recurrency =
00:00:16 v #128 > >     | Offset : recurrency_offset
00:00:16 v #129 > >     | Fixed : list fixed_recurrency
00:00:16 v #130 > 00:00:15 d #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/522271d5c209e153cfe60ed8bbe82268e8deae47a175d71d46c48f836728dbce/main.spi
00:00:16 v #131 > >
00:00:16 v #132 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 v #133 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 v #134 > > │ ## scheduling                                                                │
00:00:16 v #135 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 v #136 > >
00:00:16 v #137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 v #138 > > union scheduling =
00:00:16 v #139 > >     | Manual : manual_scheduling
00:00:16 v #140 > >     | Recurrent : recurrency
00:00:17 v #141 > 00:00:16 d #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13db759ddd5f002f4a7d216608d9ac256117d86484f1041e6124e9d1bc02ec70/main.spi
00:00:17 v #142 > >
00:00:17 v #143 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 v #144 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 v #145 > > │ ## task                                                                      │
00:00:17 v #146 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 v #147 > >
00:00:17 v #148 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 v #149 > > type task =
00:00:17 v #150 > >     {
00:00:17 v #151 > >         name : task_name
00:00:17 v #152 > >         scheduling : scheduling
00:00:17 v #153 > >     }
00:00:17 v #154 > 00:00:16 d #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e32a314d5c49dd12a3550de36e84cb325f658f62879fb6a961b074d21b44c8c3/main.spi
00:00:17 v #155 > >
00:00:17 v #156 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 v #157 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 v #158 > > │ ## date                                                                      │
00:00:17 v #159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 v #160 > >
00:00:17 v #161 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 v #162 > > type date =
00:00:17 v #163 > >     {
00:00:17 v #164 > >         year : year
00:00:17 v #165 > >         month : month
00:00:17 v #166 > >         day : day
00:00:17 v #167 > >     }
00:00:18 v #168 > 00:00:17 d #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76fbdec1211e9e9d96810fe9e0b651539d18912d84ba64b0635f855c11a3b193/main.spi
00:00:18 v #169 > >
00:00:18 v #170 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 v #171 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 v #172 > > │ ## status                                                                    │
00:00:18 v #173 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 v #174 > >
00:00:18 v #175 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 v #176 > > union status =
00:00:18 v #177 > >     | Postponed : option ()
00:00:18 v #178 > 00:00:17 d #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ae063545d86815f63b847ecdd76326b56c21c74f8e892b61a857c82f1ce4597/main.spi
00:00:18 v #179 > >
00:00:18 v #180 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 v #181 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 v #182 > > │ ## event                                                                     │
00:00:18 v #183 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 v #184 > >
00:00:18 v #185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 v #186 > > type event =
00:00:18 v #187 > >     {
00:00:18 v #188 > >         date : date
00:00:18 v #189 > >         status : status
00:00:18 v #190 > >     }
00:00:19 v #191 > 00:00:18 d #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28572068d4192522ae3e40fc069d15c898acfec7092eccd6fae628de0918f09c/main.spi
00:00:19 v #192 > >
00:00:19 v #193 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 v #194 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 v #195 > > │ ## task_template                                                             │
00:00:19 v #196 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 v #197 > >
00:00:19 v #198 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 v #199 > > type task_template =
00:00:19 v #200 > >     {
00:00:19 v #201 > >         task : task
00:00:19 v #202 > >         events : list event
00:00:19 v #203 > >     }
00:00:19 v #204 > 00:00:18 d #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0be3594557414e4795db3a982d7e5aba2bc2bc49002a0b2a742fb748a1a2231a/main.spi
00:00:19 v #205 > >
00:00:19 v #206 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 v #207 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 v #208 > > │ ## get_tasks (test)                                                          │
00:00:19 v #209 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 v #210 > >
00:00:19 v #211 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 v #212 > > //// test
00:00:19 v #213 > >
00:00:19 v #214 > > inl get_tasks () : list task_template =
00:00:19 v #215 > >     [[
00:00:19 v #216 > >         {
00:00:19 v #217 > >             task =
00:00:19 v #218 > >                 {
00:00:19 v #219 > >                     name = task_name "01"
00:00:19 v #220 > >                     scheduling = Manual WithSuggestion
00:00:19 v #221 > >                 }
00:00:19 v #222 > >             events = [[]]
00:00:19 v #223 > >         }
00:00:19 v #224 > >         {
00:00:19 v #225 > >             task =
00:00:19 v #226 > >                 {
00:00:19 v #227 > >                     name = task_name "02"
00:00:19 v #228 > >                     scheduling = Manual WithSuggestion
00:00:19 v #229 > >                 }
00:00:19 v #230 > >             events = [[]]
00:00:19 v #231 > >         }
00:00:19 v #232 > >         {
00:00:19 v #233 > >             task =
00:00:19 v #234 > >                 {
00:00:19 v #235 > >                     name = task_name "03"
00:00:19 v #236 > >                     scheduling = Manual WithSuggestion
00:00:19 v #237 > >                 }
00:00:19 v #238 > >             events = [[]]
00:00:19 v #239 > >         }
00:00:19 v #240 > >     ]]
00:00:19 v #241 > 00:00:18 d #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/101eb882a39b347486cdd821a580359dbc61398ec86ab60c212111328ed8461b/main.spi
00:00:20 v #242 > >
00:00:20 v #243 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 v #244 > > //// test
00:00:20 v #245 > > ///! fsharp
00:00:20 v #246 > > ///! cuda
00:00:20 v #247 > > ///! rust
00:00:20 v #248 > > ///! typescript
00:00:20 v #249 > > ///! python
00:00:20 v #250 > >
00:00:20 v #251 > > get_tasks ()
00:00:20 v #252 > > |> sm'.format_debug
00:00:20 v #253 > > |> _assert sm'.contains "01"
00:00:20 v #254 > 00:00:19 d #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c823c4ecab2c33bf5f9f4e5d97446ef6578fdda1eb8c469a60e16afb6ee2abec/main.spi
00:00:20 v #255 > 00:00:19 d #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d99a5bfcf2eade8bd1c47a64e27398ed76ca04dd35f96742c97db57c1b199372/main.spi
00:00:40 v #256 > >
00:00:40 v #257 > > ╭─[ 20.73s - return value ]────────────────────────────────────────────────────╮
00:00:40 v #258 > > │ .py output (Cuda):                                                           │
00:00:40 v #259 > > │ __assert / actual: 01 / expected: UH2_1(v0='01', v1=US1_0(v0=US0_0()),       │
00:00:40 v #260 > > │ v2=UH1_0(), v3=UH2_1(v0='02', v1=US1_0(v0=US0_0()), v2=UH1_0(),              │
00:00:40 v #261 > > │ v3=UH2_1(v0='03', v1=US1_0(v0=US0_0()), v2=UH1_0(), v3=UH2_0())))            │
00:00:40 v #262 > > │                                                                              │
00:00:40 v #263 > > │ .rs output:                                                                  │
00:00:40 v #264 > > │ __assert / actual: "01" / expected: "UH2_1("01", US1_0(US0_0), UH1_0,        │
00:00:40 v #265 > > │ UH2_1("02", US1_0(US0_0), UH1_0, UH2_1("03", US1_0(US0_0), UH1_0, UH2_0)))"  │
00:00:40 v #266 > > │                                                                              │
00:00:40 v #267 > > │ .ts output:                                                                  │
00:00:40 v #268 > > │ __assert / actual: 01 / expected: UH2_1 (01, US1_0 US0_0, UH1_0, UH2_1 (02,  │
00:00:40 v #269 > > │ US1_0 US0_0, UH1_0, UH2_1 (03, US1_0 US0_0, UH1_0, UH2_0)))                  │
00:00:40 v #270 > > │                                                                              │
00:00:40 v #271 > > │ .py output:                                                                  │
00:00:40 v #272 > > │ __assert / actual: 01 / expected: UH2_1 ("01", US1_0 US0_0, UH1_0, UH2_1     │
00:00:40 v #273 > > │ ("02", US1_0 US0_0, UH1_0, UH2_1 ("03", US1_0 US0_0, UH1_0, UH2_0)))         │
00:00:40 v #274 > > │                                                                              │
00:00:40 v #275 > > │                                                                              │
00:00:40 v #276 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 v #277 > >
00:00:40 v #278 > > ╭─[ 20.73s - stdout ]──────────────────────────────────────────────────────────╮
00:00:40 v #279 > > │ .fsx output:                                                                 │
00:00:40 v #280 > > │ __assert / actual: "01" / expected: "UH2_1                                   │
00:00:40 v #281 > > │   ("01", US1_0 US0_0, UH1_0,                                                 │
00:00:40 v #282 > > │    UH2_1 ("02", US1_0 US0_0, UH1_0, UH2_1 ("03", US1_0 US0_0, UH1_0,         │
00:00:40 v #283 > > │ UH2_0)))"                                                                    │
00:00:40 v #284 > > │                                                                              │
00:00:40 v #285 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 v #286 > >
00:00:40 v #287 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 v #288 > > //// test
00:00:40 v #289 > > ///! fsharp
00:00:40 v #290 > > ///! cuda
00:00:40 v #291 > > ///! rust
00:00:40 v #292 > > ///! typescript
00:00:40 v #293 > > ///! python
00:00:40 v #294 > >
00:00:40 v #295 > > get_tasks ()
00:00:40 v #296 > > |> listm'.try_item 0i32
00:00:40 v #297 > > |> fun (Some task) => task.task.name
00:00:40 v #298 > > |> _assert_eq (task_name "01")
00:00:40 v #299 > 00:00:39 d #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a2febb984386b511fb9fd61c6cc6d95e8657dd901e167bae3e086dc4876fe69a/main.spi
00:00:41 v #300 > 00:00:40 d #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba5c5eed4e5f003d0e6b2de4eb1a0c8cea2a2a928c99bd8aa4239a6adc690d2e/main.spi
00:00:59 v #301 > >
00:00:59 v #302 > > ╭─[ 18.79s - return value ]────────────────────────────────────────────────────╮
00:00:59 v #303 > > │ .py output (Cuda):                                                           │
00:00:59 v #304 > > │ __assert_eq / actual: 01 / expected: 01                                      │
00:00:59 v #305 > > │                                                                              │
00:00:59 v #306 > > │ .rs output:                                                                  │
00:00:59 v #307 > > │ __assert_eq / actual: "01" / expected: "01"                                  │
00:00:59 v #308 > > │                                                                              │
00:00:59 v #309 > > │ .ts output:                                                                  │
00:00:59 v #310 > > │ __assert_eq / actual: 01 / expected: 01                                      │
00:00:59 v #311 > > │                                                                              │
00:00:59 v #312 > > │ .py output:                                                                  │
00:00:59 v #313 > > │ __assert_eq / actual: 01 / expected: 01                                      │
00:00:59 v #314 > > │                                                                              │
00:00:59 v #315 > > │                                                                              │
00:00:59 v #316 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 v #317 > >
00:00:59 v #318 > > ╭─[ 18.79s - stdout ]──────────────────────────────────────────────────────────╮
00:00:59 v #319 > > │ .fsx output:                                                                 │
00:00:59 v #320 > > │ __assert_eq / actual: "01" / expected: "01"                                  │
00:00:59 v #321 > > │                                                                              │
00:00:59 v #322 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 v #323 > 00:00:57 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 13098 }
00:00:59 v #324 > 00:00:57 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:01 v #325 > 00:00:58 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb to html
00:01:01 v #326 > 00:00:58 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:01 v #327 > 00:00:58 v #7 !   validate(nb)
00:01:01 v #328 > 00:00:59 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:01:01 v #329 > 00:00:59 v #9 !   return _pygments_highlight(
00:01:02 v #330 > 00:00:59 v #10 ! [NbConvertApp] Writing 300420 bytes to c:\home\git\polyglot\apps\scheduler\Tasks.dib.html
00:01:02 v #331 > 00:01:00 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 860 }
00:01:02 v #332 > 00:01:00 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 860 }
00:01:02 v #333 > 00:01:00 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/scheduler/Tasks.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/scheduler/Tasks.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:02 v #334 > 00:01:00 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:02 v #335 > 00:01:00 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:02 v #336 > 00:01:00 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 14017 }
00:01:02 d #337 runtime.execute_with_options_async / { exit_code = 0; output_length = 17191 }
00:01:02 d #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Tasks.dib --retries 3
00:01:02 v #5 async.run_with_timeout_async / { timeout = 100 }
00:00:00 d #1 writeDibCode / output: Spi / path: Tasks.dib
00:00:00 d #2 parseDibCode / output: Spi / file: Tasks.dib
In [ ]:
{ pwsh ../apps/chat/build.ps1 } | Invoke-Block
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:01 v #6 > Server bound to: http://localhost:13805
00:00:01 d #7 runtime.execute_with_options_async / { file_name = ../../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path chat_contract.dib --retries 1"; options = { command = ../../../workspace/target/release/spiral_builder.exe dib --path chat_contract.dib --retries 1; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 v #8 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "chat_contract.dib", "--retries", "1"])) }
00:00:01 v #9 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/chat/contract/chat_contract.dib", "--output-path", "c:/home/git/polyglot/apps/chat/contract/chat_contract.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/chat/contract/chat_contract.dib" --output-path "c:/home/git/polyglot/apps/chat/contract/chat_contract.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 v #10 > >
00:00:04 v #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #13 > > │ # chat_contract                                                              │
00:00:04 v #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 v #15 > >
00:00:08 v #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 v #17 > > open rust
00:00:08 v #18 > > open rust.rust_operators
00:00:09 v #19 > 00:00:08 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8266c97ee08f99dd628d38d34dfdec325b2e42739e161f0fc981fa7038e52f8e/main.spi
00:00:13 v #20 > >
00:00:13 v #21 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 v #22 > > //// test
00:00:13 v #23 > >
00:00:13 v #24 > > open testing
00:00:13 v #25 > 00:00:12 d #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a3a626ef4bf9b0298d493c0dd1473daff6ca9f38ef5fc9c1e506770f76e69687/main.spi
00:00:13 v #26 > >
00:00:13 v #27 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 v #28 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 v #29 > > │ ## chat_contract                                                             │
00:00:13 v #30 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 v #31 > >
00:00:13 v #32 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 v #33 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 v #34 > > │ ### state                                                                    │
00:00:13 v #35 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 v #36 > >
00:00:13 v #37 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 v #38 > > type state =
00:00:13 v #39 > >     {
00:00:13 v #40 > >         version : u32
00:00:13 v #41 > >         account_set : near.iterable_set near.account_id
00:00:13 v #42 > >         alias_set : near.iterable_set sm'.std_string
00:00:13 v #43 > >         account_map : near.lookup_map near.account_id sm'.std_string
00:00:13 v #44 > >         alias_map : near.lookup_map sm'.std_string (mapm.hash_map
00:00:13 v #45 > > near.account_id (u64 * u32))
00:00:13 v #46 > >     }
00:00:13 v #47 > 00:00:13 d #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2bff1cb92316333a09f2bf12677433852254d0374e39c8151336d334cbffc672/main.spi
00:00:14 v #48 > >
00:00:14 v #49 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 v #50 > > //// test
00:00:14 v #51 > > ///! rust -c
00:00:14 v #52 > >
00:00:14 v #53 > > ()
00:00:14 v #54 > 00:00:13 d #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4c830c81e1d08d96c3ef37a207a80ca170a4b83f3b7c845b64ac9010a417a3d3/main.spi
00:01:09 v #55 > >
00:01:09 v #56 > > ╭─[ 55.15s - return value ]────────────────────────────────────────────────────╮
00:01:09 v #57 > > │                                                                              │
00:01:09 v #58 > > │ 00:00:09 i #2 near_workspaces.print_usd / { retry = 1;                 │
00:01:09 v #59 > > │ total_gas_burnt_usd = +0.000808; total_gas_burnt = 1209396494636 }           │
00:01:09 v #60 > > │ 00:00:09 i #3 near_workspaces.print_usd / outcome / { is_success =     │
00:01:09 v #61 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:01:09 v #62 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:01:09 v #63 > > │ 00:00:09 i #4 near_workspaces.print_usd / outcome / { is_success =     │
00:01:09 v #64 > > │ true; gas_burnt_usd = +0.000602; tokens_burnt_usd = +0.000602; gas_burnt =   │
00:01:09 v #65 > > │ 901314635296; tokens_burnt = 90131463529600000000 }                          │
00:01:09 v #66 > > │ 00:00:09 w #5 spiral_wasm.run / Error error / { retry = 1; error = "{  │
00:01:09 v #67 > > │ receipt_outcomes_len = 1; retry = 1; receipt_failures = [] }" }              │
00:01:09 v #68 > > │                                                                              │
00:01:09 v #69 > > │                                                                              │
00:01:09 v #70 > > │                                                                              │
00:01:09 v #71 > > │ 00:00:17 i #8 near_workspaces.print_usd / { retry = 2;                 │
00:01:09 v #72 > > │ total_gas_burnt_usd = +0.000808; total_gas_burnt = 1209396494636 }           │
00:01:09 v #73 > > │ 00:00:17 i #9 near_workspaces.print_usd / outcome / { is_success =     │
00:01:09 v #74 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:01:09 v #75 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:01:09 v #76 > > │ 00:00:17 i #10 near_workspaces.print_usd / outcome / { is_success =    │
00:01:09 v #77 > > │ true; gas_burnt_usd = +0.000602; tokens_burnt_usd = +0.000602; gas_burnt =   │
00:01:09 v #78 > > │ 901314635296; tokens_burnt = 90131463529600000000 }                          │
00:01:09 v #79 > > │ 00:00:17 w #11 spiral_wasm.run / Error error / { retry = 2; error = "{ │
00:01:09 v #80 > > │ receipt_outcomes_len = 1; retry = 2; receipt_failures = [] }" }              │
00:01:09 v #81 > > │                                                                              │
00:01:09 v #82 > > │                                                                              │
00:01:09 v #83 > > │                                                                              │
00:01:09 v #84 > > │ 00:00:24 i #14 near_workspaces.print_usd / { retry = 3;                │
00:01:09 v #85 > > │ total_gas_burnt_usd = +0.000808; total_gas_burnt = 12...error = "{           │
00:01:09 v #86 > > │ receipt_outcomes_len = 1; retry = 3; receipt_failures = [] }" }              │
00:01:09 v #87 > > │                                                                              │
00:01:09 v #88 > > │                                                                              │
00:01:09 v #89 > > │                                                                              │
00:01:09 v #90 > > │ 00:00:31 i #20 near_workspaces.print_usd / { retry = 4;                │
00:01:09 v #91 > > │ total_gas_burnt_usd = +0.000808; total_gas_burnt = 1209396494636 }           │
00:01:09 v #92 > > │ 00:00:31 i #21 near_workspaces.print_usd / outcome / { is_success =    │
00:01:09 v #93 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:01:09 v #94 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:01:09 v #95 > > │ 00:00:31 i #22 near_workspaces.print_usd / outcome / { is_success =    │
00:01:09 v #96 > > │ true; gas_burnt_usd = +0.000602; tokens_burnt_usd = +0.000602; gas_burnt =   │
00:01:09 v #97 > > │ 901314635296; tokens_burnt = 90131463529600000000 }                          │
00:01:09 v #98 > > │ 00:00:31 w #23 spiral_wasm.run / Error error / { retry = 4; error = "{ │
00:01:09 v #99 > > │ receipt_outcomes_len = 1; retry = 4; receipt_failures = [] }" }              │
00:01:09 v #100 > > │                                                                              │
00:01:09 v #101 > > │                                                                              │
00:01:09 v #102 > > │                                                                              │
00:01:09 v #103 > > │ 00:00:38 i #26 near_workspaces.print_usd / { retry = 5;                │
00:01:09 v #104 > > │ total_gas_burnt_usd = +0.000957; total_gas_burnt = 1432579057136 }           │
00:01:09 v #105 > > │ 00:00:38 i #27 near_workspaces.print_usd / outcome / { is_success =    │
00:01:09 v #106 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:01:09 v #107 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:01:09 v #108 > > │ 00:00:38 i #28 near_workspaces.print_usd / outcome / { is_success =    │
00:01:09 v #109 > > │ true; gas_burnt_usd = +0.000602; tokens_burnt_usd = +0.000602; gas_burnt =   │
00:01:09 v #110 > > │ 901314635296; tokens_burnt = 90131463529600000000 }                          │
00:01:09 v #111 > > │ 00:00:38 i #29 near_workspaces.print_usd / outcome / { is_success =    │
00:01:09 v #112 > > │ true; gas_burnt_usd = +0.000149; tokens_burnt_usd = +0.000000; gas_burnt =   │
00:01:09 v #113 > > │ 223182562500; tokens_burnt = 0 }                                             │
00:01:09 v #114 > > │                                                                              │
00:01:09 v #115 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:09 v #116 > >
00:01:09 v #117 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:09 v #118 > > //// test
00:01:09 v #119 > > ///! rust -c
00:01:09 v #120 > >
00:01:09 v #121 > > trace Verbose (fun () => "") id
00:01:09 v #122 > 00:01:08 d #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a40da61525fec7881dcae127261816b6ffa38102fc16d92e119e496ffcdde34a/main.spi
00:02:01 v #123 > >
00:02:01 v #124 > > ╭─[ 52.35s - return value ]────────────────────────────────────────────────────╮
00:02:01 v #125 > > │                                                                              │
00:02:01 v #126 > > │ 00:00:07 i #2 near_workspaces.print_usd / { retry = 1;                 │
00:02:01 v #127 > > │ total_gas_burnt_usd = +0.000883; total_gas_burnt = 1322216933896 }           │
00:02:01 v #128 > > │ 00:00:07 i #3 near_workspaces.print_usd / outcome / { is_success =     │
00:02:01 v #129 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:02:01 v #130 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:02:01 v #131 > > │ 00:00:07 i #4 near_workspaces.print_usd / outcome / { is_success =     │
00:02:01 v #132 > > │ true; gas_burnt_usd = +0.000677; tokens_burnt_usd = +0.000677; gas_burnt =   │
00:02:01 v #133 > > │ 1014135074556; tokens_burnt = 101413507455600000000 }                        │
00:02:01 v #134 > > │ 00:00:07 w #5 spiral_wasm.run / Error error / { retry = 1; error = "{  │
00:02:01 v #135 > > │ receipt_outcomes_len = 1; retry = 1; receipt_failures = [] }" }              │
00:02:01 v #136 > > │                                                                              │
00:02:01 v #137 > > │                                                                              │
00:02:01 v #138 > > │                                                                              │
00:02:01 v #139 > > │ 00:00:14 i #8 near_workspaces.print_usd / { retry = 2;                 │
00:02:01 v #140 > > │ total_gas_burnt_usd = +0.000883; total_gas_burnt = 1322216933896 }           │
00:02:01 v #141 > > │ 00:00:14 i #9 near_workspaces.print_usd / outcome / { is_success =     │
00:02:01 v #142 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:02:01 v #143 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:02:01 v #144 > > │ 00:00:14 i #10 near_workspaces.print_usd / outcome / { is_success =    │
00:02:01 v #145 > > │ true; gas_burnt_usd = +0.000677; tokens_burnt_usd = +0.000677; gas_burnt =   │
00:02:01 v #146 > > │ 1014135074556; tokens_burnt = 101413507455600000000 }                        │
00:02:01 v #147 > > │ 00:00:14 w #11 spiral_wasm.run / Error error / { retry = 2; error = "{ │
00:02:01 v #148 > > │ receipt_outcomes_len = 1; retry = 2; receipt_failures = [] }" }              │
00:02:01 v #149 > > │                                                                              │
00:02:01 v #150 > > │                                                                              │
00:02:01 v #151 > > │                                                                              │
00:02:01 v #152 > > │ 00:00:21 i #14 near_workspaces.print_usd / { retry = 3;                │
00:02:01 v #153 > > │ total_gas_burnt_usd = +0.000883; total_gas_burnt ...r = "{                   │
00:02:01 v #154 > > │ receipt_outcomes_len = 1; retry = 5; receipt_failures = [] }" }              │
00:02:01 v #155 > > │                                                                              │
00:02:01 v #156 > > │                                                                              │
00:02:01 v #157 > > │                                                                              │
00:02:01 v #158 > > │ 00:00:40 i #32 near_workspaces.print_usd / { retry = 6;                │
00:02:01 v #159 > > │ total_gas_burnt_usd = +0.000883; total_gas_burnt = 1322216933896 }           │
00:02:01 v #160 > > │ 00:00:40 i #33 near_workspaces.print_usd / outcome / { is_success =    │
00:02:01 v #161 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:02:01 v #162 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:02:01 v #163 > > │ 00:00:40 i #34 near_workspaces.print_usd / outcome / { is_success =    │
00:02:01 v #164 > > │ true; gas_burnt_usd = +0.000677; tokens_burnt_usd = +0.000677; gas_burnt =   │
00:02:01 v #165 > > │ 1014135074556; tokens_burnt = 101413507455600000000 }                        │
00:02:01 v #166 > > │ 00:00:40 w #35 spiral_wasm.run / Error error / { retry = 6; error = "{ │
00:02:01 v #167 > > │ receipt_outcomes_len = 1; retry = 6; receipt_failures = [] }" }              │
00:02:01 v #168 > > │                                                                              │
00:02:01 v #169 > > │                                                                              │
00:02:01 v #170 > > │                                                                              │
00:02:01 v #171 > > │ 00:00:46 i #38 near_workspaces.print_usd / { retry = 7;                │
00:02:01 v #172 > > │ total_gas_burnt_usd = +0.001032; total_gas_burnt = 1545399496396 }           │
00:02:01 v #173 > > │ 00:00:46 i #39 near_workspaces.print_usd / outcome / { is_success =    │
00:02:01 v #174 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:02:01 v #175 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:02:01 v #176 > > │ 00:00:46 i #40 near_workspaces.print_usd / outcome / { is_success =    │
00:02:01 v #177 > > │ true; gas_burnt_usd = +0.000677; tokens_burnt_usd = +0.000677; gas_burnt =   │
00:02:01 v #178 > > │ 1014135074556; tokens_burnt = 101413507455600000000 }                        │
00:02:01 v #179 > > │ 00:00:46 i #41 near_workspaces.print_usd / outcome / { is_success =    │
00:02:01 v #180 > > │ true; gas_burnt_usd = +0.000149; tokens_burnt_usd = +0.000000; gas_burnt =   │
00:02:01 v #181 > > │ 223182562500; tokens_burnt = 0 }                                             │
00:02:01 v #182 > > │                                                                              │
00:02:01 v #183 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 v #184 > >
00:02:01 v #185 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:01 v #186 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:01 v #187 > > │ ### new                                                                      │
00:02:01 v #188 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 v #189 > >
00:02:01 v #190 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:01 v #191 > > inl new () : state =
00:02:01 v #192 > >     {
00:02:01 v #193 > >         version = 2
00:02:01 v #194 > >         account_set = "account_set" |> sm'.byte_slice |> near.new_iterable_set
00:02:01 v #195 > >         alias_set = "alias_set" |> sm'.byte_slice |> near.new_iterable_set
00:02:01 v #196 > >         account_map = "account_map" |> sm'.byte_slice |> near.new_lookup_map
00:02:01 v #197 > >         alias_map = "alias_map" |> sm'.byte_slice |> near.new_lookup_map
00:02:01 v #198 > >
00:02:01 v #199 > >     }
00:02:01 v #200 > 00:02:01 d #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f29458df2057b942dea17410a35943619855acb276e133a84ae7294d86ffd7f4/main.spi
00:02:02 v #201 > >
00:02:02 v #202 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:02 v #203 > > //// test
00:02:02 v #204 > > ///! rust -c
00:02:02 v #205 > >
00:02:02 v #206 > > inl state = new ()
00:02:02 v #207 > > trace Verbose (fun () => "chat_contract") fun () => { state = state |>
00:02:02 v #208 > > sm'.format_debug }
00:02:02 v #209 > > trace Verbose (fun () => "") id
00:02:02 v #210 > 00:02:01 d #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a5dfee3fcc307684c2f01b9e6c62bb150e27ed74c1a0efa5fae244ae733e1624/main.spi
00:02:24 v #211 > >
00:02:24 v #212 > > ╭─[ 22.15s - return value ]────────────────────────────────────────────────────╮
00:02:24 v #213 > > │ 00:00:00 v #1 chat_contract / { state = (2, IterableSet { elements:    │
00:02:24 v #214 > > │ Vector { len: 0, prefix: [97, 99, 99, 111, 117, 110, 116, 95, 115, 101, 116, │
00:02:24 v #215 > > │ 118] }, index: LookupMap { prefix: [97, 99, 99, 111, 117, 110, 116, 95, 115, │
00:02:24 v #216 > > │ 101, 116, 109] } }, IterableSet { elements: Vector { len: 0, prefix: [97,    │
00:02:24 v #217 > > │ 108, 105, 97, 115, 95, 115, 101, 116, 118] }, index: LookupMap { prefix: [   │
00:02:24 v #218 > > │ 97, 108, 105, 97, 115, 95, 115, 101, 116, 109] } }, LookupMap { prefix: [97, │
00:02:24 v #219 > > │ 99, 99, 111, 117, 110, 116, 95, 109, 97, 112] }, LookupMap { prefix: [97,    │
00:02:24 v #220 > > │ 108, 105, 97, 115, 95, 109, 97, 112] }) }                                    │
00:02:24 v #221 > > │                                                                              │
00:02:24 v #222 > > │ 00:00:07 i #2 near_workspaces.print_usd / { retry = 1;                 │
00:02:24 v #223 > > │ total_gas_burnt_usd = +0.001333; total_gas_burnt = 1995695563667 }           │
00:02:24 v #224 > > │ 00:00:07 i #3 near_workspaces.print_usd / outcome / { is_success =     │
00:02:24 v #225 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:02:24 v #226 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:02:24 v #227 > > │ 00:00:07 i #4 near_workspaces.print_usd / outcome / { is_success =     │
00:02:24 v #228 > > │ true; gas_burnt_usd = +0.001127; tokens_burnt_usd = +0.001127; gas_burnt =   │
00:02:24 v #229 > > │ 1687613704327; tokens_burnt = 168761370432700000000 }                        │
00:02:24 v #230 > > │ 00:00:07 w #5 spiral_wasm.run / Error error / { retry = 1; error = "{  │
00:02:24 v #231 > > │ receipt_outcomes_len = 1; retry = 1; receipt_failures = [] }" }              │
00:02:24 v #232 > > │                                                                              │
00:02:24 v #233 > > │                                                                              │
00:02:24 v #234 > > │ 00:00:00 v #1 chat_contract / { state = (2, IterableSet { elements:    │
00:02:24 v #235 > > │ Vector { len: 0, prefix: [97, 99, 99, 111, 117, 110, 116, 95, 115, 101, 116, │
00:02:24 v #236 > > │ 118] }, index: LookupMap { prefix: [97, 99, 99, 111, 117, 110, 116, 95, 115, │
00:02:24 v #237 > > │ 101, 116, 109] } }, IterableSet { elements: Vector { len: 0, prefix: [97,    │
00:02:24 v #238 > > │ 108, 105, 97, 115, 95, 115, 101, 116, 118] }, index: LookupMap { prefix: [   │
00:02:24 v #239 > > │ 97, 108, 105, 97, 115, 95, 115, 101, 116, 109] } }, LookupMap { prefix: [97, │
00:02:24 v #240 > > │ 99, 99, 111, 117, 110, 116, 95, 109, 97, 112] }, LookupMap { prefix: [97,    │
00:02:24 v #241 > > │ 108, 105, 97, 115, 95, 109, 97, 112] }) }                                    │
00:02:24 v #242 > > │                                                                              │
00:02:24 v #243 > > │ 00:00:14 i #8 near_workspaces.print_usd / { retry = 2;                 │
00:02:24 v #244 > > │ total_gas_burnt_usd = +0.001482; total_gas_burnt = 2218878126167 }           │
00:02:24 v #245 > > │ 00:00:14 i #9 near_workspaces.print_usd / outcome / { is_success =     │
00:02:24 v #246 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:02:24 v #247 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:02:24 v #248 > > │ 00:00:14 i #10 near_workspaces.print_usd / outcome / { is_success =    │
00:02:24 v #249 > > │ true; gas_burnt_usd = +0.001127; tokens_burnt_usd = +0.001127; gas_burnt =   │
00:02:24 v #250 > > │ 1687613704327; tokens_burnt = 168761370432700000000 }                        │
00:02:24 v #251 > > │ 00:00:14 i #11 near_workspaces.print_usd / outcome / { is_success =    │
00:02:24 v #252 > > │ true; gas_burnt_usd = +0.000149; tokens_burnt_usd = +0.000000; gas_burnt =   │
00:02:24 v #253 > > │ 223182562500; tokens_burnt = 0 }                                             │
00:02:24 v #254 > > │                                                                              │
00:02:24 v #255 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:24 v #256 > >
00:02:24 v #257 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:24 v #258 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:24 v #259 > > │ ### is_valid_alias                                                           │
00:02:24 v #260 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:24 v #261 > >
00:02:24 v #262 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:24 v #263 > > inl is_valid_alias (alias : sm'.std_string) : bool =
00:02:24 v #264 > >     inl alias' = alias |> sm'.from_std_string
00:02:24 v #265 > >     inl alias_len = alias' |> sm'.length
00:02:24 v #266 > >
00:02:24 v #267 > >     alias_len > 0i32
00:02:24 v #268 > >         && alias_len < 64
00:02:24 v #269 > >         && (alias' |> sm'.starts_with "-" |> not)
00:02:24 v #270 > >         && (alias' |> sm'.ends_with "-" |> not)
00:02:24 v #271 > >         && (alias' |> sm'.as_str |> sm'.chars |> iter.all (fun c => (c |>
00:02:24 v #272 > > sm'.char_is_alphanumeric) || c = '-'))
00:02:24 v #273 > 00:02:23 d #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/415f676482f191a2d06845a52c2ee3932c792fbad79d44103df39812ad5da6bb/main.spi
00:02:24 v #274 > >
00:02:24 v #275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:24 v #276 > > //// test
00:02:24 v #277 > > ///! rust -c
00:02:24 v #278 > >
00:02:24 v #279 > > ""
00:02:24 v #280 > > |> sm'.to_std_string
00:02:24 v #281 > > |> is_valid_alias
00:02:24 v #282 > > |> _assert_eq false
00:02:24 v #283 > 00:02:24 d #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8250223ac38d4d00dbb37f41226189261fbdfd7552fb119688a930c4ff752d5/main.spi
00:02:43 v #284 > >
00:02:43 v #285 > > ╭─[ 18.79s - return value ]────────────────────────────────────────────────────╮
00:02:43 v #286 > > │                                                                              │
00:02:43 v #287 > > │ 00:00:07 i #2 near_workspaces.print_usd / { retry = 1;                 │
00:02:43 v #288 > > │ total_gas_burnt_usd = +0.000822; total_gas_burnt = 1230963536953 }           │
00:02:43 v #289 > > │ 00:00:07 i #3 near_workspaces.print_usd / outcome / { is_success =     │
00:02:43 v #290 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:02:43 v #291 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:02:43 v #292 > > │ 00:00:07 i #4 near_workspaces.print_usd / outcome / { is_success =     │
00:02:43 v #293 > > │ true; gas_burnt_usd = +0.000616; tokens_burnt_usd = +0.000616; gas_burnt =   │
00:02:43 v #294 > > │ 922881677613; tokens_burnt = 92288167761300000000 }                          │
00:02:43 v #295 > > │ 00:00:07 w #5 spiral_wasm.run / Error error / { retry = 1; error = "{  │
00:02:43 v #296 > > │ receipt_outcomes_len = 1; retry = 1; receipt_failures = [] }" }              │
00:02:43 v #297 > > │                                                                              │
00:02:43 v #298 > > │                                                                              │
00:02:43 v #299 > > │                                                                              │
00:02:43 v #300 > > │ 00:00:14 i #8 near_workspaces.print_usd / { retry = 2;                 │
00:02:43 v #301 > > │ total_gas_burnt_usd = +0.000971; total_gas_burnt = 1454146099453 }           │
00:02:43 v #302 > > │ 00:00:14 i #9 near_workspaces.print_usd / outcome / { is_success =     │
00:02:43 v #303 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:02:43 v #304 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:02:43 v #305 > > │ 00:00:14 i #10 near_workspaces.print_usd / outcome / { is_success =    │
00:02:43 v #306 > > │ true; gas_burnt_usd = +0.000616; tokens_burnt_usd = +0.000616; gas_burnt =   │
00:02:43 v #307 > > │ 922881677613; tokens_burnt = 92288167761300000000 }                          │
00:02:43 v #308 > > │ 00:00:14 i #11 near_workspaces.print_usd / outcome / { is_success =    │
00:02:43 v #309 > > │ true; gas_burnt_usd = +0.000149; tokens_burnt_usd = +0.000000; gas_burnt =   │
00:02:43 v #310 > > │ 223182562500; tokens_burnt = 0 }                                             │
00:02:43 v #311 > > │                                                                              │
00:02:43 v #312 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:43 v #313 > >
00:02:43 v #314 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:43 v #315 > > //// test
00:02:43 v #316 > > ///! rust -c
00:02:43 v #317 > >
00:02:43 v #318 > > "a-"
00:02:43 v #319 > > |> sm'.to_std_string
00:02:43 v #320 > > |> is_valid_alias
00:02:43 v #321 > > |> _assert_eq false
00:02:43 v #322 > 00:02:42 d #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b0b13c6c2b59753c5dcd46e02700b882dcba7c4a4ca8a56ae4864e9a87d0410f/main.spi
00:03:21 v #323 > >
00:03:21 v #324 > > ╭─[ 37.82s - return value ]────────────────────────────────────────────────────╮
00:03:21 v #325 > > │                                                                              │
00:03:21 v #326 > > │ 00:00:07 i #2 near_workspaces.print_usd / { retry = 1;                 │
00:03:21 v #327 > > │ total_gas_burnt_usd = +0.000824; total_gas_burnt = 1232929854376 }           │
00:03:21 v #328 > > │ 00:00:07 i #3 near_workspaces.print_usd / outcome / { is_success =     │
00:03:21 v #329 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:03:21 v #330 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:03:21 v #331 > > │ 00:00:07 i #4 near_workspaces.print_usd / outcome / { is_success =     │
00:03:21 v #332 > > │ true; gas_burnt_usd = +0.000618; tokens_burnt_usd = +0.000618; gas_burnt =   │
00:03:21 v #333 > > │ 924847995036; tokens_burnt = 92484799503600000000 }                          │
00:03:21 v #334 > > │ 00:00:07 w #5 spiral_wasm.run / Error error / { retry = 1; error = "{  │
00:03:21 v #335 > > │ receipt_outcomes_len = 1; retry = 1; receipt_failures = [] }" }              │
00:03:21 v #336 > > │                                                                              │
00:03:21 v #337 > > │                                                                              │
00:03:21 v #338 > > │                                                                              │
00:03:21 v #339 > > │ 00:00:13 i #8 near_workspaces.print_usd / { retry = 2;                 │
00:03:21 v #340 > > │ total_gas_burnt_usd = +0.000824; total_gas_burnt = 1232929854376 }           │
00:03:21 v #341 > > │ 00:00:13 i #9 near_workspaces.print_usd / outcome / { is_success =     │
00:03:21 v #342 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:03:21 v #343 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:03:21 v #344 > > │ 00:00:13 i #10 near_workspaces.print_usd / outcome / { is_success =    │
00:03:21 v #345 > > │ true; gas_burnt_usd = +0.000618; tokens_burnt_usd = +0.000618; gas_burnt =   │
00:03:21 v #346 > > │ 924847995036; tokens_burnt = 92484799503600000000 }                          │
00:03:21 v #347 > > │ 00:00:13 w #11 spiral_wasm.run / Error error / { retry = 2; error = "{ │
00:03:21 v #348 > > │ receipt_outcomes_len = 1; retry = 2; receipt_failures = [] }" }              │
00:03:21 v #349 > > │                                                                              │
00:03:21 v #350 > > │                                                                              │
00:03:21 v #351 > > │                                                                              │
00:03:21 v #352 > > │ 00:00:20 i #14 near_workspaces.print_usd / { retry = 3;                │
00:03:21 v #353 > > │ total_gas_burnt_usd = +0.000824; total_gas_burnt = 12...error = "{           │
00:03:21 v #354 > > │ receipt_outcomes_len = 1; retry = 3; receipt_failures = [] }" }              │
00:03:21 v #355 > > │                                                                              │
00:03:21 v #356 > > │                                                                              │
00:03:21 v #357 > > │                                                                              │
00:03:21 v #358 > > │ 00:00:27 i #20 near_workspaces.print_usd / { retry = 4;                │
00:03:21 v #359 > > │ total_gas_burnt_usd = +0.000824; total_gas_burnt = 1232929854376 }           │
00:03:21 v #360 > > │ 00:00:27 i #21 near_workspaces.print_usd / outcome / { is_success =    │
00:03:21 v #361 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:03:21 v #362 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:03:21 v #363 > > │ 00:00:27 i #22 near_workspaces.print_usd / outcome / { is_success =    │
00:03:21 v #364 > > │ true; gas_burnt_usd = +0.000618; tokens_burnt_usd = +0.000618; gas_burnt =   │
00:03:21 v #365 > > │ 924847995036; tokens_burnt = 92484799503600000000 }                          │
00:03:21 v #366 > > │ 00:00:27 w #23 spiral_wasm.run / Error error / { retry = 4; error = "{ │
00:03:21 v #367 > > │ receipt_outcomes_len = 1; retry = 4; receipt_failures = [] }" }              │
00:03:21 v #368 > > │                                                                              │
00:03:21 v #369 > > │                                                                              │
00:03:21 v #370 > > │                                                                              │
00:03:21 v #371 > > │ 00:00:33 i #26 near_workspaces.print_usd / { retry = 5;                │
00:03:21 v #372 > > │ total_gas_burnt_usd = +0.000973; total_gas_burnt = 1456112416876 }           │
00:03:21 v #373 > > │ 00:00:33 i #27 near_workspaces.print_usd / outcome / { is_success =    │
00:03:21 v #374 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:03:21 v #375 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:03:21 v #376 > > │ 00:00:33 i #28 near_workspaces.print_usd / outcome / { is_success =    │
00:03:21 v #377 > > │ true; gas_burnt_usd = +0.000618; tokens_burnt_usd = +0.000618; gas_burnt =   │
00:03:21 v #378 > > │ 924847995036; tokens_burnt = 92484799503600000000 }                          │
00:03:21 v #379 > > │ 00:00:33 i #29 near_workspaces.print_usd / outcome / { is_success =    │
00:03:21 v #380 > > │ true; gas_burnt_usd = +0.000149; tokens_burnt_usd = +0.000000; gas_burnt =   │
00:03:21 v #381 > > │ 223182562500; tokens_burnt = 0 }                                             │
00:03:21 v #382 > > │                                                                              │
00:03:21 v #383 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:21 v #384 > >
00:03:21 v #385 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:21 v #386 > > //// test
00:03:21 v #387 > > ///! rust -c
00:03:21 v #388 > >
00:03:21 v #389 > > "a-a"
00:03:21 v #390 > > |> sm'.to_std_string
00:03:21 v #391 > > |> is_valid_alias
00:03:21 v #392 > > |> _assert_eq true
00:03:21 v #393 > 00:03:20 d #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b4ed5db76ce37ecad04b1414092f97873e30d27426cffad2795560c8d6ebb37a/main.spi
00:03:32 v #394 > >
00:03:32 v #395 > > ╭─[ 11.75s - return value ]────────────────────────────────────────────────────╮
00:03:32 v #396 > > │                                                                              │
00:03:32 v #397 > > │ 00:00:07 i #2 near_workspaces.print_usd / { retry = 1;                 │
00:03:32 v #398 > > │ total_gas_burnt_usd = +0.000974; total_gas_burnt = 1457706176675 }           │
00:03:32 v #399 > > │ 00:00:07 i #3 near_workspaces.print_usd / outcome / { is_success =     │
00:03:32 v #400 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:03:32 v #401 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:03:32 v #402 > > │ 00:00:07 i #4 near_workspaces.print_usd / outcome / { is_success =     │
00:03:32 v #403 > > │ true; gas_burnt_usd = +0.000619; tokens_burnt_usd = +0.000619; gas_burnt =   │
00:03:32 v #404 > > │ 926441754835; tokens_burnt = 92644175483500000000 }                          │
00:03:32 v #405 > > │ 00:00:07 i #5 near_workspaces.print_usd / outcome / { is_success =     │
00:03:32 v #406 > > │ true; gas_burnt_usd = +0.000149; tokens_burnt_usd = +0.000000; gas_burnt =   │
00:03:32 v #407 > > │ 223182562500; tokens_burnt = 0 }                                             │
00:03:32 v #408 > > │                                                                              │
00:03:32 v #409 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:32 v #410 > >
00:03:32 v #411 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:32 v #412 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:32 v #413 > > │ ### generate_cid                                                             │
00:03:32 v #414 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:32 v #415 > >
00:03:32 v #416 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:32 v #417 > > inl generate_cid (content : am'.vec u8) : sm'.std_string =
00:03:32 v #418 > >     !\($'"  fn encode_u64(value: u64) -> Vec<u8> { //"') : ()
00:03:32 v #419 > >     !\($'"    let mut buffer = unsigned_varint::encode::u64_buffer(); //"') : ()
00:03:32 v #420 > >     !\($'"    unsigned_varint::encode::u64(value, &mut buffer).to_vec() //"') :
00:03:32 v #421 > > ()
00:03:32 v #422 > >     !\($'"  } //"') : ()
00:03:32 v #423 > >
00:03:32 v #424 > >     !\($'"  fn sha256_hash(content: &[[u8]]) -> Vec<u8> { //"') : ()
00:03:32 v #425 > >     !\($'"    let mut hasher: sha2::Sha256 = sha2::Digest::new(); //"') : ()
00:03:32 v #426 > >     !\($'"    sha2::Digest::update(&mut hasher, content); //"') : ()
00:03:32 v #427 > >     !\($'"    sha2::Digest::finalize(hasher).to_vec() //"') : ()
00:03:32 v #428 > >     !\($'"  } //"') : ()
00:03:32 v #429 > >
00:03:32 v #430 > >     !\($'"  let version: u8 = 1; //"') : ()
00:03:32 v #431 > >     !\($'"  let codec_raw: u64 = 0x55; //"') : ()
00:03:32 v #432 > >
00:03:32 v #433 > >     !\($'"  let codec_bytes = encode_u64(codec_raw); //"') : ()
00:03:32 v #434 > >     !\($'"  let hash_result = sha256_hash(&!content); //"') : ()
00:03:32 v #435 > >     !\($'"  let multihash = std::iter::once(0x12) //"') : ()
00:03:32 v #436 > >     !\($'"    .chain(std::iter::once(32)) //"') : ()
00:03:32 v #437 > >     !\($'"    .chain(hash_result.into_iter()) //"') : ()
00:03:32 v #438 > >     !\($'"    .collect(); //"') : ()
00:03:32 v #439 > >     !\($'"  let cid_bytes = [[vec\![[version]], codec_bytes,
00:03:32 v #440 > > multihash]].concat(); //"') : ()
00:03:32 v #441 > >     !\($'"  let result = multibase::encode(multibase::Base::Base32Lower,
00:03:32 v #442 > > &cid_bytes); //"') : ()
00:03:32 v #443 > >     !\($'"result"')
00:03:33 v #444 > 00:03:32 d #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0045283c021e82c5527e832cca1d8b8f6ddc57afaad21e3909959d68a557cf2a/main.spi
00:03:33 v #445 > >
00:03:33 v #446 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:33 v #447 > > //// test
00:03:33 v #448 > > ///! rust -c -d multibase sha2 unsigned-varint
00:03:33 v #449 > >
00:03:33 v #450 > > ;[[]]
00:03:33 v #451 > > |> am'.to_vec
00:03:33 v #452 > > |> generate_cid
00:03:33 v #453 > > |> sm'.from_std_string
00:03:33 v #454 > > |> _assert_eq "bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku"
00:03:33 v #455 > 00:03:32 d #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e5847047e894c5f696479f2ce5b09f44f3c5bfd5159489586fb4854bb7257a25/main.spi
00:04:01 v #456 > >
00:04:01 v #457 > > ╭─[ 28.23s - return value ]────────────────────────────────────────────────────╮
00:04:01 v #458 > > │                                                                              │
00:04:01 v #459 > > │ 00:00:06 i #2 near_workspaces.print_usd / { retry = 1;                 │
00:04:01 v #460 > > │ total_gas_burnt_usd = +0.000876; total_gas_burnt = 1312006740624 }           │
00:04:01 v #461 > > │ 00:00:06 i #3 near_workspaces.print_usd / outcome / { is_success =     │
00:04:01 v #462 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:04:01 v #463 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:04:01 v #464 > > │ 00:00:06 i #4 near_workspaces.print_usd / outcome / { is_success =     │
00:04:01 v #465 > > │ true; gas_burnt_usd = +0.000671; tokens_burnt_usd = +0.000671; gas_burnt =   │
00:04:01 v #466 > > │ 1003924881284; tokens_burnt = 100392488128400000000 }                        │
00:04:01 v #467 > > │ 00:00:06 w #5 spiral_wasm.run / Error error / { retry = 1; error = "{  │
00:04:01 v #468 > > │ receipt_outcomes_len = 1; retry = 1; receipt_failures = [] }" }              │
00:04:01 v #469 > > │                                                                              │
00:04:01 v #470 > > │                                                                              │
00:04:01 v #471 > > │                                                                              │
00:04:01 v #472 > > │ 00:00:14 i #8 near_workspaces.print_usd / { retry = 2;                 │
00:04:01 v #473 > > │ total_gas_burnt_usd = +0.000876; total_gas_burnt = 1312006740624 }           │
00:04:01 v #474 > > │ 00:00:14 i #9 near_workspaces.print_usd / outcome / { is_success =     │
00:04:01 v #475 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:04:01 v #476 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:04:01 v #477 > > │ 00:00:14 i #10 near_workspaces.print_usd / outcome / { is_success =    │
00:04:01 v #478 > > │ true; gas_burnt_usd = +0.000671; tokens_burnt_usd = +0.000671; gas_burnt =   │
00:04:01 v #479 > > │ 1003924881284; tokens_burnt = 100392488128400000000 }                        │
00:04:01 v #480 > > │ 00:00:14 w #11 spiral_wasm.run / Error error / { retry = 2; error = "{ │
00:04:01 v #481 > > │ receipt_outcomes_len = 1; retry = 2; receipt_failures = [] }" }              │
00:04:01 v #482 > > │                                                                              │
00:04:01 v #483 > > │                                                                              │
00:04:01 v #484 > > │                                                                              │
00:04:01 v #485 > > │ 00:00:23 i #14 near_workspaces.print_usd / { retry = 3;                │
00:04:01 v #486 > > │ total_gas_burnt_usd = +0.001026; total_gas_burnt = 1535189303124 }           │
00:04:01 v #487 > > │ 00:00:23 i #15 near_workspaces.print_usd / outcome / { is_success =    │
00:04:01 v #488 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:04:01 v #489 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:04:01 v #490 > > │ 00:00:23 i #16 near_workspaces.print_usd / outcome / { is_success =    │
00:04:01 v #491 > > │ true; gas_burnt_usd = +0.000671; tokens_burnt_usd = +0.000671; gas_burnt =   │
00:04:01 v #492 > > │ 1003924881284; tokens_burnt = 100392488128400000000 }                        │
00:04:01 v #493 > > │ 00:00:23 i #17 near_workspaces.print_usd / outcome / { is_success =    │
00:04:01 v #494 > > │ true; gas_burnt_usd = +0.000149; tokens_burnt_usd = +0.000000; gas_burnt =   │
00:04:01 v #495 > > │ 223182562500; tokens_burnt = 0 }                                             │
00:04:01 v #496 > > │                                                                              │
00:04:01 v #497 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:01 v #498 > >
00:04:01 v #499 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:01 v #500 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:01 v #501 > > │ ### claim_alias                                                              │
00:04:01 v #502 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:01 v #503 > >
00:04:01 v #504 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:01 v #505 > > inl claim_alias (state : rust.ref (rust.mut' state)) (alias : sm'.std_string) :
00:04:01 v #506 > > () =
00:04:01 v #507 > >     inl account_set : rust.ref (rust.mut' (near.iterable_set near.account_id)) =
00:04:01 v #508 > >         !\($'$"&mut !state.1"')
00:04:01 v #509 > >
00:04:01 v #510 > >     inl alias_set : rust.ref (rust.mut' (near.iterable_set sm'.std_string)) =
00:04:01 v #511 > >         !\($'$"&mut !state.2"')
00:04:01 v #512 > >
00:04:01 v #513 > >     inl account_map : rust.ref (rust.mut' (near.lookup_map near.account_id
00:04:01 v #514 > > sm'.std_string)) =
00:04:01 v #515 > >         !\($'$"&mut !state.3"')
00:04:01 v #516 > >
00:04:01 v #517 > >     inl alias_map : rust.ref (rust.mut' (near.lookup_map sm'.std_string
00:04:01 v #518 > > (mapm.hash_map near.account_id (u64 * u32)))) =
00:04:01 v #519 > >         !\($'$"&mut !state.4"')
00:04:01 v #520 > >
00:04:01 v #521 > >     inl signer_account_id = near.signer_account_id ()
00:04:01 v #522 > >     inl predecessor_account_id = near.predecessor_account_id ()
00:04:01 v #523 > >     inl block_timestamp = near.block_timestamp ()
00:04:01 v #524 > >
00:04:01 v #525 > >     trace Debug
00:04:01 v #526 > >         fun () => "chat_contract.claim_alias"
00:04:01 v #527 > >         fun () => {
00:04:01 v #528 > >             alias
00:04:01 v #529 > >             block_timestamp
00:04:01 v #530 > >             signer_account_id = signer_account_id |> sm'.to_string
00:04:01 v #531 > >             predecessor_account_id = predecessor_account_id |> sm'.to_string
00:04:01 v #532 > >         }
00:04:01 v #533 > >
00:04:01 v #534 > >     if alias |> is_valid_alias |> not
00:04:01 v #535 > >     then near.panic_str "chat_contract.claim_alias / invalid alias" . true
00:04:01 v #536 > >     else false
00:04:01 v #537 > >     |> ignore
00:04:01 v #538 > >
00:04:01 v #539 > >     inl account_alias =
00:04:01 v #540 > >         account_map
00:04:01 v #541 > >         |> near.lookup_get signer_account_id
00:04:01 v #542 > >         |> optionm'.cloned
00:04:01 v #543 > >
00:04:01 v #544 > >     match account_alias |> optionm'.unbox with
00:04:01 v #545 > >     | Some account_alias when account_alias =. alias =>
00:04:01 v #546 > >         trace Warning
00:04:01 v #547 > >             fun () => "chat_contract.claim_alias / alias already claimed"
00:04:01 v #548 > >             fun () => { account_alias = account_alias |> sm'.format_debug }
00:04:01 v #549 > >     | account_alias' =>
00:04:01 v #550 > >         trace Debug
00:04:01 v #551 > >             fun () => "chat_contract.claim_alias"
00:04:01 v #552 > >             fun () => { account_alias = account_alias |> sm'.format_debug }
00:04:01 v #553 > >
00:04:01 v #554 > >         match account_alias' with
00:04:01 v #555 > >         | Some account_alias =>
00:04:01 v #556 > >             !\($'"    !alias_map //"') : ()
00:04:01 v #557 > >             !\($'"      .get_mut(&!account_alias) //"') : ()
00:04:01 v #558 > >             !\($'"      .unwrap() //"') : ()
00:04:01 v #559 > >             !\\(signer_account_id, $'"      .remove(&$0); //"') : ()
00:04:01 v #560 > >         | None => ()
00:04:01 v #561 > >
00:04:01 v #562 > >         !\\((signer_account_id, alias), $'"  !account_map.insert($0.clone(),
00:04:01 v #563 > > $1.clone()); //"') : ()
00:04:01 v #564 > >
00:04:01 v #565 > >         account_set |> near.iterable_set_insert signer_account_id |> ignore
00:04:01 v #566 > >         alias_set |> near.iterable_set_insert alias |> ignore
00:04:01 v #567 > >
00:04:01 v #568 > >         !\\(alias, $'"  let new_alias_account_map = match !alias_map.get(&$0) {
00:04:01 v #569 > > //"') : ()
00:04:01 v #570 > >         !\($'"    None => { //"') : ()
00:04:01 v #571 > >         !\($'"      let mut new_map = std::collections::HashMap::new(); //"') :
00:04:01 v #572 > > ()
00:04:01 v #573 > >         !\\((signer_account_id, block_timestamp), $'"      new_map.insert($0,
00:04:01 v #574 > > ($1, 0u32)); //"') : ()
00:04:01 v #575 > >         !\($'"      new_map //"') : ()
00:04:01 v #576 > >         !\($'"    } //"') : ()
00:04:01 v #577 > >         !\($'"    Some(accounts) => { //"') : ()
00:04:01 v #578 > >         !\($'"      let mut accounts_vec = accounts.iter().collect::<Vec<_>>();
00:04:01 v #579 > > //"') : ()
00:04:01 v #580 > >         !\($'"      accounts_vec.sort_unstable_by_key(|(_, (_, index))| index);
00:04:01 v #581 > > //"') : ()
00:04:01 v #582 > >         !\($'"      let mut new_map = accounts_vec //"') : ()
00:04:01 v #583 > >         !\($'"        .iter() //"') : ()
00:04:01 v #584 > >         !\($'"        .enumerate() //"') : ()
00:04:01 v #585 > >         !\($'"        .map(|(i, (signer_account_id, (timestamp, _)))| { //"') :
00:04:01 v #586 > > ()
00:04:01 v #587 > >         !\($'"          ((*signer_account_id).clone(), (*timestamp, i as u32))
00:04:01 v #588 > > //"') : ()
00:04:01 v #589 > >         !\($'"        }) //"') : ()
00:04:01 v #590 > >         !\($'"        .collect::<std::collections::HashMap<_, _>>(); //"') : ()
00:04:01 v #591 > >         !\\(signer_account_id, $'"      new_map.insert($0, (!block_timestamp,
00:04:01 v #592 > > accounts_vec.len() as u32)); //"') : ()
00:04:01 v #593 > >         !\($'"      new_map //"') : ()
00:04:01 v #594 > >         !\($'"    } //"') : ()
00:04:01 v #595 > >         !\($'"  }; //"') : ()
00:04:01 v #596 > >
00:04:01 v #597 > >         !\\(alias, $'"  !alias_map.insert($0, new_alias_account_map); //"') : ()
00:04:01 v #598 > 00:04:01 d #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a322e1d18dfd947e8d3c6c2e2e8c87b424b85377b0808ebe4ebae6fef1485fad/main.spi
00:04:02 v #599 > >
00:04:02 v #600 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:02 v #601 > > //// test
00:04:02 v #602 > > ///! rust -c
00:04:02 v #603 > >
00:04:02 v #604 > > inl state = new ()
00:04:02 v #605 > > inl version = state.version
00:04:02 v #606 > > inl account_set = state.account_set
00:04:02 v #607 > > inl alias_set = state.alias_set
00:04:02 v #608 > > inl account_map = state.account_map
00:04:02 v #609 > > inl alias_map = state.alias_map
00:04:02 v #610 > > inl version = join version
00:04:02 v #611 > > inl account_set = join account_set
00:04:02 v #612 > > inl alias_set = join alias_set
00:04:02 v #613 > > inl account_map = join account_map
00:04:02 v #614 > > inl alias_map = join alias_map
00:04:02 v #615 > > inl state : rust.ref (rust.mut' state) =
00:04:02 v #616 > >     !\\(
00:04:02 v #617 > >         version,
00:04:02 v #618 > >         $'$"&mut ($0, !account_set, !alias_set, !account_map, !alias_map)"'
00:04:02 v #619 > >     )
00:04:02 v #620 > >
00:04:02 v #621 > > "alias1"
00:04:02 v #622 > > |> sm'.to_std_string
00:04:02 v #623 > > |> claim_alias state
00:04:02 v #624 > >
00:04:02 v #625 > > trace Verbose
00:04:02 v #626 > >     fun () => "chat_contract"
00:04:02 v #627 > >     fun () => { state = state |> sm'.format_debug }
00:04:02 v #628 > >
00:04:02 v #629 > > trace Debug (fun () => "") id
00:04:02 v #630 > 00:04:01 d #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d312161915e93cd6ffe7539de9fbe8748b72d9274246438aa7e24f7bf271a8f/main.spi
00:04:29 v #631 > >
00:04:29 v #632 > > ╭─[ 27.30s - return value ]────────────────────────────────────────────────────╮
00:04:29 v #633 > > │ 00:00:00 d #1 chat_contract.claim_alias / { alias = "alias1";          │
00:04:29 v #634 > > │ block_timestamp = 1729278838908227661; signer_account_id =                   │
00:04:29 v #635 > > │ "dev-20241018191357-68233648762299"; predecessor_account_id =                │
00:04:29 v #636 > > │ "dev-20241018191357-68233648762299" }                                        │
00:04:29 v #637 > > │ 00:00:00 d #2 chat_contract.claim_alias / { account_alias = None }     │
00:04:29 v #638 > > │ 00:00:00 v #3 chat_contract / { state = (2, IterableSet { elements:    │
00:04:29 v #639 > > │ Vector { len: 1, prefix: [97, 99, 99, 111, 117, 110, 116, 95, 115, 101, 116, │
00:04:29 v #640 > > │ 118] }, index: LookupMap { prefix: [97, 99, 99, 111, 117, 110, 116, 95, 115, │
00:04:29 v #641 > > │ 101, 116, 109] } }, IterableSet { elements: Vector { len: 1, prefix: [97,    │
00:04:29 v #642 > > │ 108, 105, 97, 115, 95, 115, 101, 116, 118] }, index: LookupMap { prefix: [   │
00:04:29 v #643 > > │ 97, 108, 105, 97, 115, 95, 115, 101, 116, 109] } }, LookupMap { prefix: [97, │
00:04:29 v #644 > > │ 99, 99, 111, 117, 110, 116, 95, 109, 97, 112] }, LookupMap { prefix: [97,    │
00:04:29 v #645 > > │ 108, 105, 97, 115, 95, 109, 97, 112] }) }                                    │
00:04:29 v #646 > > │                                                                              │
00:04:29 v #647 > > │ 00:00:07 i #2 near_workspaces.print_usd / { retry = 1;                 │
00:04:29 v #648 > > │ total_gas_burnt_usd = +0.002552; total_gas_burnt = 3820399258597 }           │
00:04:29 v #649 > > │ 00:00:07 i #3 near_workspaces.print_usd / outcome / { is_success =     │
00:04:29 v #650 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:04:29 v #651 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:04:29 v #652 > > │ 00:00:07 i #4 near_workspaces.print_usd / outcome / { is_success =     │
00:04:29 v #653 > > │ true; gas_burnt_usd = +0.002346; tokens_burnt_usd = +0.002346; gas_burnt =   │
00:04:29 v #654 > > │ 3512317399257; tokens_burnt = 351231739925700000000 }                        │
00:04:29 v #655 > > │ 00:00:07 w #5 spiral_wasm.run / Error error / { retry = 1;             │
00:04:29 v #656 > > │ error...igner_account_id = "dev-20241018191405-28130008197964";              │
00:04:29 v #657 > > │ predecessor_account_id = "dev-20241018191405-28130008197964" }               │
00:04:29 v #658 > > │ 00:00:00 d #2 chat_contract.claim_alias / { account_alias = None }     │
00:04:29 v #659 > > │ 00:00:00 v #3 chat_contract / { state = (2, IterableSet { elements:    │
00:04:29 v #660 > > │ Vector { len: 1, prefix: [97, 99, 99, 111, 117, 110, 116, 95, 115, 101, 116, │
00:04:29 v #661 > > │ 118] }, index: LookupMap { prefix: [97, 99, 99, 111, 117, 110, 116, 95, 115, │
00:04:29 v #662 > > │ 101, 116, 109] } }, IterableSet { elements: Vector { len: 1, prefix: [97,    │
00:04:29 v #663 > > │ 108, 105, 97, 115, 95, 115, 101, 116, 118] }, index: LookupMap { prefix: [   │
00:04:29 v #664 > > │ 97, 108, 105, 97, 115, 95, 115, 101, 116, 109] } }, LookupMap { prefix: [97, │
00:04:29 v #665 > > │ 99, 99, 111, 117, 110, 116, 95, 109, 97, 112] }, LookupMap { prefix: [97,    │
00:04:29 v #666 > > │ 108, 105, 97, 115, 95, 109, 97, 112] }) }                                    │
00:04:29 v #667 > > │                                                                              │
00:04:29 v #668 > > │ 00:00:15 i #8 near_workspaces.print_usd / { retry = 2;                 │
00:04:29 v #669 > > │ total_gas_burnt_usd = +0.002701; total_gas_burnt = 4043581821097 }           │
00:04:29 v #670 > > │ 00:00:15 i #9 near_workspaces.print_usd / outcome / { is_success =     │
00:04:29 v #671 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:04:29 v #672 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:04:29 v #673 > > │ 00:00:15 i #10 near_workspaces.print_usd / outcome / { is_success =    │
00:04:29 v #674 > > │ true; gas_burnt_usd = +0.002346; tokens_burnt_usd = +0.002346; gas_burnt =   │
00:04:29 v #675 > > │ 3512317399257; tokens_burnt = 351231739925700000000 }                        │
00:04:29 v #676 > > │ 00:00:15 i #11 near_workspaces.print_usd / outcome / { is_success =    │
00:04:29 v #677 > > │ true; gas_burnt_usd = +0.000149; tokens_burnt_usd = +0.000000; gas_burnt =   │
00:04:29 v #678 > > │ 223182562500; tokens_burnt = 0 }                                             │
00:04:29 v #679 > > │                                                                              │
00:04:29 v #680 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:29 v #681 > >
00:04:29 v #682 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:29 v #683 > > //// test
00:04:29 v #684 > > ///! rust \"-c=-e=\\\"chat_contract.claim_alias / invalid alias\\\"\"
00:04:29 v #685 > >
00:04:29 v #686 > > ""
00:04:29 v #687 > > |> sm'.to_std_string
00:04:29 v #688 > > |> claim_alias (
00:04:29 v #689 > >     inl state = new ()
00:04:29 v #690 > >     inl version = state.version
00:04:29 v #691 > >     inl account_set = state.account_set
00:04:29 v #692 > >     inl alias_set = state.alias_set
00:04:29 v #693 > >     inl account_map = state.account_map
00:04:29 v #694 > >     inl alias_map = state.alias_map
00:04:29 v #695 > >     !\\(version, $'$"&mut ($0, !account_set, !alias_set, !account_map,
00:04:29 v #696 > > !alias_map)"')
00:04:29 v #697 > > )
00:04:29 v #698 > > trace Debug (fun () => "") id
00:04:29 v #699 > 00:04:28 d #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3eeaee510c93434bb025fe0364d1e33531e2c896652ad523fe7074392df65a6/main.spi
00:04:47 v #700 > >
00:04:47 v #701 > > ╭─[ 17.87s - return value ]────────────────────────────────────────────────────╮
00:04:47 v #702 > > │                                                                              │
00:04:47 v #703 > > │ 00:00:07 i #2 near_workspaces.print_usd / { retry = 1;                 │
00:04:47 v #704 > > │ total_gas_burnt_usd = +0.001313; total_gas_burnt = 1965770447077 }           │
00:04:47 v #705 > > │ 00:00:07 i #3 near_workspaces.print_usd / outcome / { is_success =     │
00:04:47 v #706 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:04:47 v #707 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:04:47 v #708 > > │ 00:00:07 i #4 near_workspaces.print_usd / outcome / { is_success =     │
00:04:47 v #709 > > │ false; gas_burnt_usd = +0.000958; tokens_burnt_usd = +0.000958; gas_burnt =  │
00:04:47 v #710 > > │ 1434506025237; tokens_burnt = 143450602523700000000 }                        │
00:04:47 v #711 > > │ 00:00:07 i #5 near_workspaces.print_usd / outcome / { is_success =     │
00:04:47 v #712 > > │ true; gas_burnt_usd = +0.000149; tokens_burnt_usd = +0.000000; gas_burnt =   │
00:04:47 v #713 > > │ 223182562500; tokens_burnt = 0 }                                             │
00:04:47 v #714 > > │ 00:00:07 c #6 spiral_wasm.run / Ok (Some error) / { retry = 1; error = │
00:04:47 v #715 > > │ { receipt_outcomes_len = 2; retry = 1; receipt_failures = [                  │
00:04:47 v #716 > > │     ExecutionOutcome {                                                       │
00:04:47 v #717 > > │         transaction_hash: GjnS9yq6Dn6h52HyQJxwpCWo75sBuHjw63VZiTMr6hWx,      │
00:04:47 v #718 > > │         block_hash: DfUqMateMaLucQPAqzeg35yn5ZBFBABv5zKifnaaVMfK,            │
00:04:47 v #719 > > │         logs: [],                                                            │
00:04:47 v #720 > > │         receipt_ids: [                                                       │
00:04:47 v #721 > > │             4YG8QxS1uDARj4b6Qvvfeh8m9s4gvcvbiwVBF6pwy6sH,                    │
00:04:47 v #722 > > │         ],                                                                   │
00:04:47 v #723 > > │         gas_burnt: NearGas {                                                 │
00:04:47 v #724 > > │             inner: 1434506025237,                                            │
00:04:47 v #725 > > │         },                                                                   │
00:04:47 v #726 > > │         tokens_burnt: NearToken {                                            │
00:04:47 v #727 > > │             inner: 143450602523700000000,                                    │
00:04:47 v #728 > > │         },                                                                   │
00:04:47 v #729 > > │         executor_id: AccountId(                                              │
00:04:47 v #730 > > │             "dev-20241018191423-55517957508480",                             │
00:04:47 v #731 > > │         ),                                                                   │
00:04:47 v #732 > > │         status: Failure(ActionError(ActionError { index: Some(0), kind:      │
00:04:47 v #733 > > │ FunctionCallError(ExecutionError("Smart contract panicked:                   │
00:04:47 v #734 > > │ chat_contract.claim_alias / invalid alias")) })),                            │
00:04:47 v #735 > > │     },                                                                       │
00:04:47 v #736 > > │ ] } }                                                                        │
00:04:47 v #737 > > │                                                                              │
00:04:47 v #738 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:47 v #739 > >
00:04:47 v #740 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:47 v #741 > > //// test
00:04:47 v #742 > > ///! rust -cd borsh
00:04:47 v #743 > >
00:04:47 v #744 > > inl state' = new ()
00:04:47 v #745 > > inl state = state'
00:04:47 v #746 > > inl version = state.version
00:04:47 v #747 > > inl account_set = state.account_set
00:04:47 v #748 > > inl alias_set = state.alias_set
00:04:47 v #749 > > inl account_map = state.account_map
00:04:47 v #750 > > inl alias_map = state.alias_map
00:04:47 v #751 > > inl version = join version
00:04:47 v #752 > > inl account_set = join account_set
00:04:47 v #753 > > inl alias_set = join alias_set
00:04:47 v #754 > > inl account_map = join account_map
00:04:47 v #755 > > inl alias_map = join alias_map
00:04:47 v #756 > >
00:04:47 v #757 > > inl state =
00:04:47 v #758 > >     !\\(
00:04:47 v #759 > >         (version, account_set, alias_set),
00:04:47 v #760 > >         $'$"&mut ($0, $1, $2, !account_map, !alias_map)"'
00:04:47 v #761 > >     )
00:04:47 v #762 > >
00:04:47 v #763 > > "alias1"
00:04:47 v #764 > > |> sm'.to_std_string
00:04:47 v #765 > > |> claim_alias state
00:04:47 v #766 > >
00:04:47 v #767 > > "alias1"
00:04:47 v #768 > > |> sm'.to_std_string
00:04:47 v #769 > > |> claim_alias state
00:04:47 v #770 > >
00:04:47 v #771 > > "alias1"
00:04:47 v #772 > > |> sm'.to_std_string
00:04:47 v #773 > > |> claim_alias state
00:04:47 v #774 > >
00:04:47 v #775 > > inl account_set' : rust.ref (near.iterable_set near.account_id) =
00:04:47 v #776 > >     !\($'$"&!state.1"')
00:04:47 v #777 > >
00:04:47 v #778 > > inl alias_set' : rust.ref (near.iterable_set sm'.std_string) =
00:04:47 v #779 > >     !\($'$"&!state.2"')
00:04:47 v #780 > >
00:04:47 v #781 > > inl account_set' =
00:04:47 v #782 > >     account_set'
00:04:47 v #783 > >     |> iter.iter_ref''
00:04:47 v #784 > >     |> iter.cloned
00:04:47 v #785 > >     |> iter_collect
00:04:47 v #786 > >
00:04:47 v #787 > > inl alias_set' =
00:04:47 v #788 > >     alias_set'
00:04:47 v #789 > >     |> iter.iter_ref''
00:04:47 v #790 > >     |> iter.cloned
00:04:47 v #791 > >     |> iter_collect
00:04:47 v #792 > >     |> am'.vec_map sm'.from_std_string
00:04:47 v #793 > >
00:04:47 v #794 > > trace Verbose
00:04:47 v #795 > >     fun () => "chat_contract"
00:04:47 v #796 > >     fun () => {
00:04:47 v #797 > >         account_set' = account_set' |> sm'.format_debug
00:04:47 v #798 > >         alias_set' = alias_set' |> sm'.format_debug
00:04:47 v #799 > >         state = state |> sm'.format_debug
00:04:47 v #800 > >     }
00:04:47 v #801 > >
00:04:47 v #802 > > trace Debug (fun () => "") id
00:04:47 v #803 > >
00:04:47 v #804 > > account_set'
00:04:47 v #805 > > |> am'.vec_len
00:04:47 v #806 > > |> convert
00:04:47 v #807 > > |> _assert_eq 1u32
00:04:47 v #808 > >
00:04:47 v #809 > > alias_set'
00:04:47 v #810 > > |> am'.from_vec_base
00:04:47 v #811 > > |> _assert_eq' ;[[ "alias1" ]]
00:04:47 v #812 > 00:04:46 d #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/33412ffc22503d606c4ada5cf47177bc3ca6f428d92d4707ce3037a4bdfa43d0/main.spi
00:05:19 v #813 > >
00:05:19 v #814 > > ╭─[ 32.06s - return value ]────────────────────────────────────────────────────╮
00:05:19 v #815 > > │ 00:00:00 d #1 chat_contract.claim_alias / { alias = "alias1";          │
00:05:19 v #816 > > │ block_timestamp = 1729278883280086149; signer_account_id =                   │
00:05:19 v #817 > > │ "dev-20241018191441-57064216939000"; predecessor_account_id =                │
00:05:19 v #818 > > │ "dev-20241018191441-57064216939000" }                                        │
00:05:19 v #819 > > │ 00:00:00 d #2 chat_contract.claim_alias / { account_alias = None }     │
00:05:19 v #820 > > │ 00:00:00 d #3 chat_contract.claim_alias / { alias = "alias1";          │
00:05:19 v #821 > > │ block_timestamp = 1729278883280086149; signer_account_id =                   │
00:05:19 v #822 > > │ "dev-20241018191441-57064216939000"; predecessor_account_id =                │
00:05:19 v #823 > > │ "dev-20241018191441-57064216939000" }                                        │
00:05:19 v #824 > > │ 00:00:00 d #4 chat_contract.claim_alias / { account_alias =            │
00:05:19 v #825 > > │ Some("alias1") }                                                             │
00:05:19 v #826 > > │ 00:00:00 d #5 chat_contract.claim_alias / { alias = "alias1";          │
00:05:19 v #827 > > │ block_timestamp = 1729278883280086149; signer_account_id =                   │
00:05:19 v #828 > > │ "dev-20241018191441-57064216939000"; predecessor_account_id =                │
00:05:19 v #829 > > │ "dev-20241018191441-57064216939000" }                                        │
00:05:19 v #830 > > │ 00:00:00 d #6 chat_contract.claim_alias / { account_alias =            │
00:05:19 v #831 > > │ Some("alias1") }                                                             │
00:05:19 v #832 > > │ 00:00:00 v #7 chat_contract / { account_set' = [                       │
00:05:19 v #833 > > │ AccountId("dev-20241018191441-57064216939000")]; alias_set' = ["alias1"];    │
00:05:19 v #834 > > │ state = (2, IterableSet { elements: Vector { len: 1, prefix: [97, 99, 99,    │
00:05:19 v #835 > > │ 111, 117, 110, 116, 95, 115, 101, 116, 118] }, index: LookupMap { prefix: [  │
00:05:19 v #836 > > │ 97, 99, 99, 111, 117, 110, 116, 95, 115, 101, 116, 109] } }, IterableSet {   │
00:05:19 v #837 > > │ elements: Vector { len: 1, prefix: [97, 108, 105, 97, 115, 95, 115, 101,     │
00:05:19 v #838 > > │ 116, 118] }, index: LookupMap { prefix: [97, 108, 105, 97, 115, 95, 115,     │
00:05:19 v #839 > > │ 101, 116, 109] } }, LookupMap { prefix: [97, 99, 99, ...2856672251365" }     │
00:05:19 v #840 > > │ 00:00:00 d #6 chat_contract.claim_alias / { account_alias =            │
00:05:19 v #841 > > │ Some("alias1") }                                                             │
00:05:19 v #842 > > │ 00:00:00 v #7 chat_contract / { account_set' = [                       │
00:05:19 v #843 > > │ AccountId("dev-20241018191455-42856672251365")]; alias_set' = ["alias1"];    │
00:05:19 v #844 > > │ state = (2, IterableSet { elements: Vector { len: 1, prefix: [97, 99, 99,    │
00:05:19 v #845 > > │ 111, 117, 110, 116, 95, 115, 101, 116, 118] }, index: LookupMap { prefix: [  │
00:05:19 v #846 > > │ 97, 99, 99, 111, 117, 110, 116, 95, 115, 101, 116, 109] } }, IterableSet {   │
00:05:19 v #847 > > │ elements: Vector { len: 1, prefix: [97, 108, 105, 97, 115, 95, 115, 101,     │
00:05:19 v #848 > > │ 116, 118] }, index: LookupMap { prefix: [97, 108, 105, 97, 115, 95, 115,     │
00:05:19 v #849 > > │ 101, 116, 109] } }, LookupMap { prefix: [97, 99, 99, 111, 117, 110, 116, 95, │
00:05:19 v #850 > > │ 109, 97, 112] }, LookupMap { prefix: [97, 108, 105, 97, 115, 95, 109, 97,    │
00:05:19 v #851 > > │ 112] }) }                                                                    │
00:05:19 v #852 > > │                                                                              │
00:05:19 v #853 > > │ 00:00:21 i #14 near_workspaces.print_usd / { retry = 3;                │
00:05:19 v #854 > > │ total_gas_burnt_usd = +0.004572; total_gas_burnt = 6844553733463 }           │
00:05:19 v #855 > > │ 00:00:21 i #15 near_workspaces.print_usd / outcome / { is_success =    │
00:05:19 v #856 > > │ true; gas_burnt_usd = +0.000206; tokens_burnt_usd = +0.000206; gas_burnt =   │
00:05:19 v #857 > > │ 308081859340; tokens_burnt = 30808185934000000000 }                          │
00:05:19 v #858 > > │ 00:00:21 i #16 near_workspaces.print_usd / outcome / { is_success =    │
00:05:19 v #859 > > │ true; gas_burnt_usd = +0.004217; tokens_burnt_usd = +0.004217; gas_burnt =   │
00:05:19 v #860 > > │ 6313289311623; tokens_burnt = 631328931162300000000 }                        │
00:05:19 v #861 > > │ 00:00:21 i #17 near_workspaces.print_usd / outcome / { is_success =    │
00:05:19 v #862 > > │ true; gas_burnt_usd = +0.000149; tokens_burnt_usd = +0.000000; gas_burnt =   │
00:05:19 v #863 > > │ 223182562500; tokens_burnt = 0 }                                             │
00:05:19 v #864 > > │                                                                              │
00:05:19 v #865 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:19 v #866 > >
00:05:19 v #867 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:19 v #868 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:19 v #869 > > │ ### get_account_info                                                         │
00:05:19 v #870 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:19 v #871 > >
00:05:19 v #872 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:19 v #873 > > inl get_account_info
00:05:19 v #874 > >     (state : rust.ref state)
00:05:19 v #875 > >     (account_id : near.account_id)
00:05:19 v #876 > >     : optionm'.option' (sm'.std_string * (u64 * u32))
00:05:19 v #877 > >     =
00:05:19 v #878 > >     inl account_map : rust.ref (near.lookup_map near.account_id sm'.std_string)
00:05:19 v #879 > > =
00:05:19 v #880 > >         !\($'$"&!state.3"')
00:05:19 v #881 > >
00:05:19 v #882 > >     inl alias_map : rust.ref (near.lookup_map sm'.std_string (mapm.hash_map
00:05:19 v #883 > > near.account_id (u64 * u32))) =
00:05:19 v #884 > >         !\($'$"&!state.4"')
00:05:19 v #885 > >
00:05:19 v #886 > >     !\\(account_id, $'"let result = !account_map.get(&$0).and_then(|alias| {
00:05:19 v #887 > > //"') : ()
00:05:19 v #888 > >     !\($'"    !alias_map //"') : ()
00:05:19 v #889 > >     !\($'"      .get(alias) //"') : ()
00:05:19 v #890 > >     !\($'"      .map(|accounts| { //"') : ()
00:05:19 v #891 > >     !\($'"          let result = (alias.clone(),
00:05:19 v #892 > > *accounts.get(&!account_id).unwrap()); //"') : ()
00:05:19 v #893 > >     !\($'"          (result.0, result.1.0, result.1.1) //"') : ()
00:05:19 v #894 > >     !\($'"      }) //"') : ()
00:05:19 v #895 > >     !\($'"}); //"') : ()
00:05:19 v #896 > >
00:05:19 v #897 > >     inl result = !\($'"result"')
00:05:19 v #898 > >
00:05:19 v #899 > >     trace Debug
00:05:19 v #900 > >         fun () => "chat_contract.get_account_info"
00:05:19 v #901 > >         fun () => { account_id result }
00:05:19 v #902 > >
00:05:19 v #903 > >     trace Debug (fun () => "") id
00:05:19 v #904 > >
00:05:19 v #905 > >     result
00:05:19 v #906 > 00:05:18 d #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b4093514fe40fa7e3206607054540b47d473ca0647f457d3938178eebfbe486e/main.spi
00:05:19 v #907 > >
00:05:19 v #908 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:19 v #909 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:19 v #910 > > │ ### main                                                                     │
00:05:19 v #911 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:19 v #912 > >
00:05:19 v #913 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:19 v #914 > > ///! _
00:05:19 v #915 > >
00:05:19 v #916 > > inl main () =
00:05:19 v #917 > >     !\($'"} //"') : ()
00:05:19 v #918 > >
00:05:19 v #919 > >     !\($'"#[[near_sdk::near_bindgen]] //"') : ()
00:05:19 v #920 > >
00:05:19 v #921 > >     !\($'"#[[derive( //"') : ()
00:05:19 v #922 > >     !\($'"  near_sdk::PanicOnDefault, //"') : ()
00:05:19 v #923 > >     !\($'"  borsh::BorshDeserialize, //"') : ()
00:05:19 v #924 > >     !\($'"  borsh::BorshSerialize, //"') : ()
00:05:19 v #925 > >     !\($'")]] //"') : ()
00:05:19 v #926 > >
00:05:19 v #927 > >     !\($'"pub struct State ( //"') : ()
00:05:19 v #928 > >
00:05:19 v #929 > >     !\($'"/*"') : ()
00:05:19 v #930 > >     (null () : rust.type_emit state) |> ignore
00:05:19 v #931 > >     !\($'"*/ )"') : ()
00:05:19 v #932 > >
00:05:19 v #933 > >     inl new_ () =
00:05:19 v #934 > >         !\($'"#[[init]] //"') : ()
00:05:19 v #935 > >         !\($'"pub fn new() -> Self { // 1"') : ()
00:05:19 v #936 > >
00:05:19 v #937 > >         (!\($'"true; /*"') : bool) |> ignore
00:05:19 v #938 > >
00:05:19 v #939 > >         (null () : rust.type_emit ()) |> ignore
00:05:19 v #940 > >
00:05:19 v #941 > >         (!\($'"true; */"') : bool) |> ignore
00:05:19 v #942 > >
00:05:19 v #943 > >         inl result = new ()
00:05:19 v #944 > >
00:05:19 v #945 > >         $'let _result = !result in _result |> (fun x ->
00:05:19 v #946 > > Fable.Core.RustInterop.emitRustExpr x $"Self($0) // x") // 2' : ()
00:05:19 v #947 > >
00:05:19 v #948 > >         !\($'"} // 2."') : ()
00:05:19 v #949 > >
00:05:19 v #950 > >         !\($'"} // 1."') : ()
00:05:19 v #951 > >
00:05:19 v #952 > >         2
00:05:19 v #953 > >
00:05:19 v #954 > >     inl is_valid_alias () =
00:05:19 v #955 > >         !\($'"fn is_valid_alias(alias: String) -> bool { //"') : ()
00:05:19 v #956 > >         inl alias = !\($'$"alias"')
00:05:19 v #957 > >         inl result = alias |> is_valid_alias
00:05:19 v #958 > >         $'let _result = !result in _result |> (fun x ->
00:05:19 v #959 > > Fable.Core.RustInterop.emitRustExpr x "$0 }") // 2' : ()
00:05:19 v #960 > >         !\($'"} //"') : ()
00:05:19 v #961 > >         1
00:05:19 v #962 > >
00:05:19 v #963 > >     inl generate_cid () =
00:05:19 v #964 > >         !\($'"pub fn generate_cid( //"') : ()
00:05:19 v #965 > >         !\($'"  &self, //"') : ()
00:05:19 v #966 > >         !\($'"  content: Vec<u8>, //"') : ()
00:05:19 v #967 > >         !\($'") -> String { //"') : ()
00:05:19 v #968 > >         inl content = !\($'$"content"')
00:05:19 v #969 > >         inl result = generate_cid content
00:05:19 v #970 > >         $'let _result = !result in _result |> (fun x ->
00:05:19 v #971 > > Fable.Core.RustInterop.emitRustExpr x "$0 }") // 2' : ()
00:05:19 v #972 > >         !\($'"} //"') : ()
00:05:19 v #973 > >         2
00:05:19 v #974 > >
00:05:19 v #975 > >     inl generate_cid_borsh () =
00:05:19 v #976 > >         !\($'"#[[result_serializer(borsh)]] //"') : ()
00:05:19 v #977 > >         !\($'"pub fn generate_cid_borsh( //"') : ()
00:05:19 v #978 > >         !\($'"  &self, //"') : ()
00:05:19 v #979 > >         !\($'"  #[[serializer(borsh)]] content: Vec<u8>, //"') : ()
00:05:19 v #980 > >         !\($'") -> String { //"') : ()
00:05:19 v #981 > >         !\($'"  self.generate_cid(content) //"') : ()
00:05:19 v #982 > >         !\($'"} //"') : ()
00:05:19 v #983 > >         1
00:05:19 v #984 > >
00:05:19 v #985 > >     inl claim_alias () =
00:05:19 v #986 > >         !\($'"pub fn claim_alias( //"') : ()
00:05:19 v #987 > >         !\($'"  &mut self, //"') : ()
00:05:19 v #988 > >         !\($'"  alias: String, //"') : ()
00:05:19 v #989 > >         !\($'") { //"') : ()
00:05:19 v #990 > >
00:05:19 v #991 > >         inl state = !\($'$"&mut self.0"')
00:05:19 v #992 > >         inl alias = !\($'$"alias"')
00:05:19 v #993 > >
00:05:19 v #994 > >         inl result = claim_alias state alias
00:05:19 v #995 > >         trace Debug (fun () => "") (join id)
00:05:19 v #996 > >
00:05:19 v #997 > >         !\($'"} //"') : ()
00:05:19 v #998 > >
00:05:19 v #999 > >         !\($'"} //"') : ()
00:05:19 v #1000 > >
00:05:19 v #1001 > >         !\($'"} //"') : ()
00:05:19 v #1002 > >
00:05:19 v #1003 > >         3
00:05:19 v #1004 > >
00:05:19 v #1005 > >     inl get_account_info () =
00:05:19 v #1006 > >         !\($'"pub fn get_account_info( //"') : ()
00:05:19 v #1007 > >         !\($'"  &self, //"') : ()
00:05:19 v #1008 > >         !\($'"  account_id: near_sdk::AccountId, //"') : ()
00:05:19 v #1009 > >         !\($'") -> Option<(String, u64, u32)> { //"') : ()
00:05:19 v #1010 > >
00:05:19 v #1011 > >         inl state = !\($'$"&self.0"')
00:05:19 v #1012 > >         inl account_id : near.account_id = !\($'$"account_id"')
00:05:19 v #1013 > >
00:05:19 v #1014 > >         inl result = account_id |> get_account_info state
00:05:19 v #1015 > >         $'let _result = !result in _result |> (fun x ->
00:05:19 v #1016 > > Fable.Core.RustInterop.emitRustExpr x "$0 } // 4") // 3' : ()
00:05:19 v #1017 > >
00:05:19 v #1018 > >         !\($'"} // 2"') : ()
00:05:19 v #1019 > >
00:05:19 v #1020 > >         !\($'"} // 1"') : ()
00:05:19 v #1021 > >
00:05:19 v #1022 > >         2
00:05:19 v #1023 > >
00:05:19 v #1024 > >     inl get_alias_map () =
00:05:19 v #1025 > >         !\($'"pub fn get_alias_map( //"') : ()
00:05:19 v #1026 > >         !\($'"  &self, //"') : ()
00:05:19 v #1027 > >         !\($'"  alias: String, //"') : ()
00:05:19 v #1028 > >         !\($'") -> Option<std::collections::HashMap<near_sdk::AccountId, (u64,
00:05:19 v #1029 > > u32)>> { //"') : ()
00:05:19 v #1030 > >
00:05:19 v #1031 > >         inl alias_map : rust.ref (near.lookup_map sm'.std_string (mapm.hash_map
00:05:19 v #1032 > > near.account_id (u64 * u32))) =
00:05:19 v #1033 > >             !\($'$"&self.0.4"')
00:05:19 v #1034 > >
00:05:19 v #1035 > >         inl alias : sm'.std_string = !\($'$"alias"')
00:05:19 v #1036 > >
00:05:19 v #1037 > >         trace Debug
00:05:19 v #1038 > >             fun () => "chat_contract.get_alias_map"
00:05:19 v #1039 > >             fun () => { alias }
00:05:19 v #1040 > >
00:05:19 v #1041 > >         trace Debug (fun () => "") (join id)
00:05:19 v #1042 > >
00:05:19 v #1043 > >         !\\(alias, $'"  !alias_map.get(&$0).cloned() //"') : ()
00:05:19 v #1044 > >         !\($'"} //"') : ()
00:05:19 v #1045 > >
00:05:19 v #1046 > >         !\($'"} //"') : ()
00:05:19 v #1047 > >
00:05:19 v #1048 > >         2
00:05:19 v #1049 > >
00:05:19 v #1050 > >     inl get_alias_map_borsh () =
00:05:19 v #1051 > >         !\($'"#[[result_serializer(borsh)]] //"') : ()
00:05:19 v #1052 > >         !\($'"pub fn get_alias_map_borsh( //"') : ()
00:05:19 v #1053 > >         !\($'"  &self, //"') : ()
00:05:19 v #1054 > >         !\($'"  #[[serializer(borsh)]] alias: String, //"') : ()
00:05:19 v #1055 > >         !\($'") -> Option<std::collections::HashMap<near_sdk::AccountId, (u64,
00:05:19 v #1056 > > u32)>> { //"') : ()
00:05:19 v #1057 > >         !\($'"  self.get_alias_map(alias) //"') : ()
00:05:19 v #1058 > >         !\($'"} //"') : ()
00:05:19 v #1059 > >         1
00:05:19 v #1060 > >
00:05:19 v #1061 > >     inl fns =
00:05:19 v #1062 > >         [[
00:05:19 v #1063 > >             new_
00:05:19 v #1064 > >             is_valid_alias
00:05:19 v #1065 > >             generate_cid
00:05:19 v #1066 > >             generate_cid_borsh
00:05:19 v #1067 > >             claim_alias
00:05:19 v #1068 > >             get_account_info
00:05:19 v #1069 > >             get_alias_map
00:05:19 v #1070 > >             get_alias_map_borsh
00:05:19 v #1071 > >         ]]
00:05:19 v #1072 > >
00:05:19 v #1073 > >     inl rec loop acc fns i =
00:05:19 v #1074 > >         match fns with
00:05:19 v #1075 > >         | [[]] => acc
00:05:19 v #1076 > >         | x :: xs =>
00:05:19 v #1077 > >             !\($'"#[[near_sdk::near_bindgen]] //"') : ()
00:05:19 v #1078 > >             !\($'"impl State { //"') : ()
00:05:19 v #1079 > >             inl n = x ()
00:05:19 v #1080 > >             !\($'"} /* c"') : ()
00:05:19 v #1081 > >             inl rec loop' i' =
00:05:19 v #1082 > >                 if i' <> 1 // <= n
00:05:19 v #1083 > >                 then (!\($'"true; */ // ???? / i: !i / i\': !i' / acc: !acc / n:
00:05:19 v #1084 > > !n"') : bool) |> ignore
00:05:19 v #1085 > >                 else
00:05:19 v #1086 > >                     (!\($'"true; // ??? / i: !i / i\': !i' / acc: !acc / n:
00:05:19 v #1087 > > !n"') : bool) |> ignore
00:05:19 v #1088 > >                     loop' (i' + 1)
00:05:19 v #1089 > >             loop' 1u8
00:05:19 v #1090 > >             loop (acc + n) xs (i + 1)
00:05:19 v #1091 > >     inl n = loop 0u8 fns 1u8
00:05:19 v #1092 > >
00:05:19 v #1093 > >
00:05:19 v #1094 > >     // !\($'"/* a"') : ()
00:05:19 v #1095 > >
00:05:19 v #1096 > >     // !\($'"} // b"') : ()
00:05:19 v #1097 > >
00:05:19 v #1098 > >     !\($'"fn _main() //"') : ()
00:05:19 v #1099 > >     !\($'"{ { //"') : ()
00:05:19 v #1100 > >
00:05:19 v #1101 > >     inl rec loop' i' =
00:05:19 v #1102 > >         if i' <= n
00:05:19 v #1103 > >         then
00:05:19 v #1104 > >             (!\($'"true; { (); // ?? / i\': !i' / n: !n"') : bool) |> ignore
00:05:19 v #1105 > >             loop' (i' + 1)
00:05:19 v #1106 > >         else
00:05:19 v #1107 > >             (!\($'"true; { { (); // ? / i\': !i' / n: !n"') : bool) |> ignore
00:05:19 v #1108 > >             // (!\($'"true; */ // ?? / i\': !i' / n: !n"') : bool) |> ignore
00:05:19 v #1109 > >     loop' 1u8
00:05:19 v #1110 > >
00:05:19 v #1111 > > inl main () =
00:05:19 v #1112 > >     $'!main |> ignore' : ()
00:05:20 v #1113 > 00:05:19 d #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0784ea6a9f11af82bdd89ee4322945ab2f525e637137f3f7eb9c1d530de193ea/main.spi
00:05:20 v #1114 > 00:05:18 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 57207 }
00:05:20 v #1115 > 00:05:18 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/chat/contract/chat_contract.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/chat/contract/chat_contract.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:22 v #1116 > 00:05:20 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/chat/contract/chat_contract.dib.ipynb to html
00:05:22 v #1117 > 00:05:20 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:05:22 v #1118 > 00:05:20 v #7 !   validate(nb)
00:05:23 v #1119 > 00:05:21 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:05:23 v #1120 > 00:05:21 v #9 !   return _pygments_highlight(
00:05:24 v #1121 > 00:05:22 v #10 ! [NbConvertApp] Writing 394378 bytes to c:\home\git\polyglot\apps\chat\contract\chat_contract.dib.html
00:05:24 v #1122 > 00:05:22 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 884 }
00:05:24 v #1123 > 00:05:22 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 884 }
00:05:24 v #1124 > 00:05:22 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/chat/contract/chat_contract.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/chat/contract/chat_contract.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:24 v #1125 > 00:05:22 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:05:24 v #1126 > 00:05:22 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:05:24 v #1127 > 00:05:22 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 58150 }
00:05:24 d #1128 runtime.execute_with_options_async / { exit_code = 0; output_length = 63014 }
00:05:24 d #3 main / executeCommand / exitCode: 0 / command: ../../../workspace/target/release/spiral_builder.exe dib --path chat_contract.dib --retries 1
00:05:24 v #5 async.run_with_timeout_async / { timeout = 100 }
00:00:00 d #1 writeDibCode / output: Spi / path: chat_contract.dib
00:00:00 d #2 parseDibCode / output: Spi / file: chat_contract.dib
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:02 v #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:02 v #2 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:02 v #6 > Server bound to: http://localhost:13805
00:00:02 v #5 async.run_with_timeout_async / { timeout = 180 }
00:00:02 d #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:02 d #4 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:02 d #5 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:02 v #6 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # chat_contract\nopen rust\nopen rust.rust_operators\n\n/// ## chat_cont...03E ignore\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/apps/chat/contract/chat_contract.spi"}} / result:
00:00:02 v #7 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/chat/contract/chat_contract.spi"}} / result:
00:00:02 d #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:02 d #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:03 v #7 > 00:00:02 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/apps/chat/contract/chat_contract.spi
00:00:03 d #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:03 d #11 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:03 d #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:03 d #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:04 d #14 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:04 d #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:04 d #16 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:04 d #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:05 d #18 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:05 d #19 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:05 d #20 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:05 d #21 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:06 d #22 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:06 d #23 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:06 d #24 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:06 d #25 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:07 d #26 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:07 d #27 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:07 d #28 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("*/ $0 /*")>]
#endif
type TypeEmit<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable... / i': 15uy / n: 14uy"
    let v803 : bool = Fable.Core.RustInterop.emitRustExpr () v802 
    ()
let v0 : (unit -> unit) = closure0()
v0 |> ignore
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:07 d #29 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("*/ $0 /*")>]
#endif
type TypeEmit<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable... / i': 15uy / n: 14uy"
    let v803 : bool = Fable.Core.RustInterop.emitRustExpr () v802 
    ()
let v0 : (unit -> unit) = closure0()
v0 |> ignore
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:07 d #30 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07 v #6 async.run_with_timeout_async / { timeout = 100 }
00:00:00 d #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: chat_contract / hash:  / code.Length: 113471
00:00:00 d #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  "publish "C:\home\git\polyglot\target/Builder\chat_contract\chat_contract.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\chat\contract\dist" --runtime linux-x64"; options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\chat_contract\chat_contract.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\chat\contract\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\chat_contract" } }
00:00:00 v #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 v #3 >   Determining projects to restore...
00:00:02 v #4 >   Restored C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj (in 414 ms).
00:00:02 v #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj]
00:00:10 v #6 > C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fs(2576,15): warning FS0025: Incomplete pattern matches on this expression. For example, the value 'US4_0 (_)' may indicate a case not covered by the pattern(s). [C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj]
00:00:16 v #7 >   chat_contract -> C:\home\git\polyglot\target\Builder\chat_contract\bin\Release\net9.0\linux-x64\chat_contract.dll
00:00:17 v #8 >   chat_contract -> C:\home\git\polyglot\apps\chat\contract\dist\
00:00:17 d #9 runtime.execute_with_options_async / { exit_code = 0; output_length = 1018 }
00:00:17 d #10 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  "publish "C:\home\git\polyglot\target/Builder\chat_contract\chat_contract.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\chat\contract\dist" --runtime win-x64"; options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\chat_contract\chat_contract.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\chat\contract\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\chat_contract" } }
00:00:18 v #11 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:18 v #12 >   Determining projects to restore...
00:00:19 v #13 >   Restored C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj (in 550 ms).
00:00:19 v #14 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj]
00:00:28 v #15 > C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fs(2576,15): warning FS0025: Incomplete pattern matches on this expression. For example, the value 'US4_0 (_)' may indicate a case not covered by the pattern(s). [C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj]
00:00:33 v #16 >   chat_contract -> C:\home\git\polyglot\target\Builder\chat_contract\bin\Release\net9.0\win-x64\chat_contract.dll
00:00:35 v #17 >   chat_contract -> C:\home\git\polyglot\apps\chat\contract\dist\
00:00:35 d #18 runtime.execute_with_options_async / { exit_code = 0; output_length = 1016 }
targetDir: C:\home\git\polyglot\target\Builder\chat_contract
Fable 4.21.0: F# to Rust compiler (status: alpha)

Thanks to the contributor! @Choc13
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\chat_contract\chat_contract.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 182ms

Started Fable compilation...

Fable compilation finished in 10783ms

.\target\Builder\chat_contract\chat_contract.fs(2576,15): (2576,19) warning FSHARP: Incomplete pattern matches on this expression. For example, the value 'US4_0 (_)' may indicate a case not covered by the pattern(s). (code 25)
.\lib\spiral\common.fsx(1475,0): (1475,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\sm.fsx(452,0): (452,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1629,0): (1629,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(997,0): (997,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\async_.fsx(76,0): (76,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(127,0): (127,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(3673,0): (3673,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(104,0): (104,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(4709,0): (4709,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(55639,0): (55639,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1505,0): (1505,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\target\Builder\chat_contract\chat_contract.fs(2794,6): (2794,12) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
   Compiling proc-macro2 v1.0.88
   Compiling unicode-ident v1.0.13
   Compiling once_cell v1.20.2
   Compiling hashbrown v0.15.0
   Compiling wasm-bindgen-shared v0.2.95
   Compiling typenum v1.17.0
   Compiling serde_json v1.0.129
   Compiling rustversion v1.0.18
   Compiling wasm-bindgen v0.2.95
   Compiling heck v0.5.0
   Compiling const-oid v0.10.0-rc.2
   Compiling indexmap v2.6.0
   Compiling quote v1.0.37
   Compiling syn v2.0.79
   Compiling syn v1.0.109
   Compiling proc-macro-error-attr v1.0.4
   Compiling toml_edit v0.22.22
   Compiling proc-macro-error v1.0.4
   Compiling hybrid-array v0.2.0-rc.11
   Compiling data-encoding-macro-internal v0.1.13
   Compiling crypto-common v0.2.0-rc.1
   Compiling block-buffer v0.11.0-rc.2
   Compiling data-encoding-macro v0.1.15
   Compiling multibase v0.9.1
   Compiling proc-macro-crate v3.2.0
   Compiling digest v0.11.0-pre.9
   Compiling sha2 v0.11.0-pre.4
   Compiling wasm-bindgen-backend v0.2.95
   Compiling darling_core v0.20.10
   Compiling serde_derive v1.0.210
   Compiling syn_derive v0.1.8
   Compiling strum_macros v0.26.4
   Compiling wasm-bindgen-macro-support v0.2.95
   Compiling borsh-derive v1.5.1
   Compiling wasm-bindgen-macro v0.2.95
   Compiling darling_macro v0.20.10
   Compiling borsh v1.5.1
   Compiling darling v0.20.10
   Compiling js-sys v0.3.72
   Compiling serde v1.0.210
   Compiling near-gas v0.3.0
   Compiling near-account-id v1.0.0
   Compiling near-token v0.3.0
   Compiling near-sdk-macros v5.5.0
   Compiling getrandom v0.2.15
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling near-sdk v5.5.0
   Compiling chat_contract v0.0.1 (C:\home\git\polyglot\apps\chat\contract)
    Finished `release` profile [optimized] target(s) in 46.63s
   Compiling proc-macro2 v1.0.88
   Compiling libc v0.2.161
   Compiling typenum v1.17.0
   Compiling rustversion v1.0.18
   Compiling serde_json v1.0.129
   Compiling anyhow v1.0.90
   Compiling quote v1.0.37
   Compiling syn v2.0.79
   Compiling jobserver v0.1.32
   Compiling syn v1.0.109
   Compiling getrandom v0.2.15
   Compiling cc v1.1.30
   Compiling proc-macro-error-attr v1.0.4
   Compiling axum-core v0.3.4
   Compiling axum v0.6.20
   Compiling parking_lot_core v0.9.10
   Compiling signal-hook-registry v1.4.2
   Compiling mio v1.0.2
   Compiling parking_lot v0.12.3
   Compiling socket2 v0.5.7
   Compiling rand_core v0.6.4
   Compiling openssl-src v300.3.2+3.3.2
   Compiling dirs-sys-next v0.1.2
   Compiling io-lifetimes v1.0.11
   Compiling filetime v0.2.25
   Compiling rustix v0.37.27
   Compiling dirs-next v2.0.0
   Compiling polling v2.8.0
   Compiling socket2 v0.4.10
   Compiling vte_generate_state_changes v0.1.2
   Compiling zstd-sys v2.0.13+zstd.1.5.6
   Compiling ring v0.17.8
   Compiling bzip2-sys v0.1.11+1.0.8
   Compiling openssl-sys v0.9.104
   Compiling proc-macro-error v1.0.4
   Compiling darling_core v0.20.10
   Compiling secp256k1-sys v0.8.1
   Compiling serde_derive_internals v0.29.1
   Compiling serde_derive v1.0.210
   Compiling generic-array v0.14.7
   Compiling tokio-macros v2.4.0
   Compiling tracing-attributes v0.1.27
   Compiling crypto-common v0.1.6
   Compiling futures-macro v0.3.31
   Compiling tokio v1.40.0
   Compiling futures-util v0.3.31
   Compiling tracing v0.1.40
   Compiling block-buffer v0.10.4
   Compiling zerocopy-derive v0.7.35
   Compiling digest v0.10.7
   Compiling syn_derive v0.1.8
   Compiling serde v1.0.210
   Compiling zerocopy v0.7.35
   Compiling borsh-derive v1.5.1
   Compiling thiserror-impl v1.0.64
   Compiling ppv-lite86 v0.2.20
   Compiling rand_chacha v0.3.1
   Compiling tokio-util v0.7.12
   Compiling indexmap v2.6.0
   Compiling rand v0.8.5
   Compiling thiserror v1.0.64
   Compiling sha2 v0.10.8
   Compiling hex v0.4.3
   Compiling async-trait v0.1.83
   Compiling deranged v0.3.11
   Compiling borsh v1.5.1
   Compiling pin-project-internal v1.1.6
   Compiling serde_repr v0.1.19
   Compiling time v0.3.36
   Compiling near-account-id v1.0.0
   Compiling h2 v0.3.26
   Compiling futures-executor v0.3.31
   Compiling tracing-subscriber v0.3.18
   Compiling tokio-stream v0.1.16
   Compiling pin-project v1.1.6
   Compiling derive_more v0.99.18
   Compiling derive_arbitrary v1.3.2
   Compiling curve25519-dalek-derive v0.1.1
   Compiling enum-map-derive v0.17.0
   Compiling curve25519-dalek v4.1.3
   Compiling arbitrary v1.3.2
   Compiling hyper v0.14.31
   Compiling enum-map v2.7.3
   Compiling tower v0.4.13
   Compiling opentelemetry v0.22.0
   Compiling num-rational v0.3.2
   Compiling tokio-io-timeout v1.2.0
   Compiling block-padding v0.3.3
   Compiling darling_macro v0.20.10
   Compiling strum_macros v0.24.3
   Compiling prost-derive v0.12.6
   Compiling async-stream-impl v0.3.6
   Compiling hyper-timeout v0.4.1
   Compiling darling v0.20.10
   Compiling async-stream v0.3.6
   Compiling near-primitives-core v0.23.0
   Compiling opentelemetry_sdk v0.22.1
   Compiling inout v0.1.3
   Compiling ed25519-dalek v2.1.1
   Compiling strum v0.24.1
   Compiling uint v0.9.5
   Compiling prost v0.12.6
   Compiling openssl-macros v0.1.1
   Compiling schemars_derive v0.8.21
   Compiling secp256k1 v0.27.0
   Compiling primitive-types v0.10.1
   Compiling cipher v0.4.4
   Compiling near-config-utils v0.23.0
   Compiling actix-rt v2.10.0
   Compiling blake2 v0.10.6
   Compiling hmac v0.12.1
   Compiling actix_derive v0.6.2
   Compiling actix-macros v0.2.4
   Compiling zstd-safe v7.2.1
   Compiling near-crypto v0.23.0
   Compiling url v2.5.2
   Compiling tonic v0.11.0
   Compiling actix v0.13.5
   Compiling sha1 v0.10.6
   Compiling clap_derive v4.5.18
   Compiling zvariant_utils v1.0.1
   Compiling aes v0.8.4
   Compiling tracing-opentelemetry v0.23.0
   Compiling serde_with_macros v3.11.0
   Compiling tracing-appender v0.2.3
   Compiling near-time v0.23.0
   Compiling futures v0.3.31
   Compiling near-rpc-error-core v0.23.0
   Compiling serde_yaml v0.9.34+deprecated
   Compiling h2 v0.4.6
   Compiling clap v4.5.20
   Compiling opentelemetry-proto v0.5.0
   Compiling prometheus v0.13.4
   Compiling semver v1.0.23
   Compiling enumflags2_derive v0.7.10
   Compiling opentelemetry-otlp v0.15.0
   Compiling enumflags2 v0.7.10
   Compiling near-o11y v0.23.0
   Compiling hyper v1.5.0
   Compiling serde_with v3.11.0
   Compiling near-parameters v0.23.0
   Compiling near-rpc-error-macro v0.23.0
   Compiling near-performance-metrics v0.23.0
   Compiling zvariant_derive v3.15.2
   Compiling zstd v0.13.2
   Compiling near-fmt v0.23.0
   Compiling chrono v0.4.38
   Compiling bytesize v1.3.0
   Compiling sha3 v0.10.8
   Compiling smart-default v0.6.0
   Compiling near-async-derive v0.23.0
   Compiling zvariant v3.15.2
   Compiling rustls-webpki v0.102.8
   Compiling near-primitives v0.23.0
   Compiling near-async v0.23.0
   Compiling hyper-util v0.1.9
   Compiling schemars v0.8.21
   Compiling zstd-safe v5.0.2+zstd.1.5.2
   Compiling rustls v0.23.15
   Compiling http-body-util v0.1.2
   Compiling interactive-clap-derive v0.2.10
   Compiling backtrace v0.3.71
   Compiling password-hash v0.4.2
   Compiling zstd v0.11.2+zstd.1.5.2
   Compiling zbus_names v2.6.1
   Compiling interactive-clap v0.2.10
   Compiling bzip2 v0.4.4
   Compiling zbus_macros v3.15.2
   Compiling tracing-error v0.2.0
   Compiling serde_urlencoded v0.7.1
   Compiling digest v0.9.0
   Compiling derivative v2.2.0
   Compiling async-recursion v1.1.1
   Compiling async-io v1.13.0
   Compiling vte v0.11.1
   Compiling nix v0.26.4
   Compiling signal-hook v0.3.17
   Compiling mio v0.8.11
   Compiling xdg-home v1.3.0
   Compiling ureq v2.10.1
   Compiling zip v0.6.6
   Compiling color-spantrace v0.2.1
   Compiling dirs-sys v0.4.1
   Compiling tar v0.4.42
   Compiling signal-hook-mio v0.2.4
   Compiling vt100 v0.15.2
   Compiling zbus v3.15.2
   Compiling ahash v0.8.11
   Compiling pbkdf2 v0.11.0
   Compiling near-abi v0.4.3
   Compiling near_schemafy_core v0.7.0
   Compiling near-chain-configs v0.23.0
   Compiling hkdf v0.12.4
   Compiling cbc v0.1.2
   Compiling serde_spanned v0.6.8
   Compiling toml_datetime v0.6.8
   Compiling block-buffer v0.9.0
   Compiling crypto-mac v0.9.1
   Compiling scroll_derive v0.11.1
   Compiling console v0.15.8
   Compiling fs2 v0.4.3
   Compiling binary-install v0.2.0
   Compiling scroll v0.11.0
   Compiling indicatif v0.17.8
   Compiling string_cache v0.8.7
   Compiling toml_edit v0.22.22
   Compiling sha2 v0.9.9
   Compiling csv v1.3.0
   Compiling near-jsonrpc-primitives v0.23.0
   Compiling near_schemafy_lib v0.7.0
   Compiling secret-service v3.1.0
   Compiling hmac v0.9.0
   Compiling hashbrown v0.14.5
   Compiling color-eyre v0.6.3
   Compiling crossterm v0.25.0
   Compiling dirs v5.0.1
   Compiling near-token v0.2.1
   Compiling term v0.7.0
   Compiling is-terminal v0.4.13
   Compiling linux-keyutils v0.2.4
   Compiling memmap2 v0.5.10
   Compiling near-sandbox-utils v0.8.0
   Compiling prettytable v0.10.0
   Compiling elementtree v0.7.0
   Compiling open v5.3.0
   Compiling goblin v0.5.4
   Compiling inquire v0.7.5
   Compiling keyring v2.3.3
   Compiling symbolic-common v8.8.0
   Compiling shellexpand v3.1.0
   Compiling near-abi-client-impl v0.1.1
   Compiling wasmparser v0.211.1
   Compiling slipped10 v0.4.6
   Compiling toml v0.8.19
   Compiling tracing-indicatif v0.3.6
   Compiling rust_decimal v1.36.0
   Compiling bip39 v2.1.0
   Compiling camino v1.1.9
   Compiling near-gas v0.2.5
   Compiling zip v0.5.13
   Compiling linked-hash-map v0.5.6
   Compiling cargo-platform v0.1.8
   Compiling smart-default v0.7.1
   Compiling near-abi-client-macros v0.1.1
   Compiling cargo_metadata v0.18.1
   Compiling symbolic-debuginfo v8.8.0
   Compiling near-workspaces v0.11.1
   Compiling names v0.14.0
   Compiling rustc_version v0.4.1
   Compiling jsonptr v0.4.7
   Compiling strum_macros v0.26.4
   Compiling atty v0.2.14
   Compiling json-patch v2.0.0
   Compiling near-sandbox-utils v0.9.0
   Compiling tokio-retry v0.3.0
   Compiling near-token v0.3.0
   Compiling near-gas v0.3.0
   Compiling near-sandbox-utils v0.11.0
   Compiling near-abi-client v0.1.1
   Compiling near-sdk-macros v5.5.0
   Compiling near-sdk v5.5.0
   Compiling openssl v0.10.68
   Compiling native-tls v0.2.12
   Compiling crypto-hash v0.3.4
   Compiling cargo-util v0.1.2
   Compiling tokio-native-tls v0.3.1
   Compiling hyper-tls v0.6.0
   Compiling reqwest v0.12.8
   Compiling near-jsonrpc-client v0.10.1
   Compiling near-socialdb-client v0.3.2
   Compiling near-cli-rs v0.11.1
   Compiling cargo-near v0.6.4
   Compiling chat_contract_tests v0.0.1 (/mnt/c/home/git/polyglot/apps/chat/contract/tests)
    Finished `release` profile [optimized] target(s) in 18m 31s
     Running `/mnt/c/home/git/polyglot/workspace/target/release/chat_contract_tests`


new: ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 1864931778995,
    },
    transaction: ExecutionOutcome {
        transaction_hash: AfAvY2q5qHEH2Ag6bGJaaMz1NksDdetyFJvbntfdprd4,
        block_hash: GMQUaUxKexTw4XzrDF4sLYSULF7Tf9RBBEdVHcKL8m65,
        logs: [],
        receipt_ids: [
            BQNwH3ZKd9RVae9dqFJYnuC4jLRTytYDYTsDFQmB78m5,
        ],
        gas_burnt: NearGas {
            inner: 308066207802,
        },
        tokens_burnt: NearToken {
            inner: 30806620780200000000,
        },
        executor_id: AccountId(
            "dev-20241018193535-44246696841275",
        ),
        status: SuccessReceiptId(BQNwH3ZKd9RVae9dqFJYnuC4jLRTytYDYTsDFQmB78m5),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: BQNwH3ZKd9RVae9dqFJYnuC4jLRTytYDYTsDFQmB78m5,
            block_hash: GMQUaUxKexTw4XzrDF4sLYSULF7Tf9RBBEdVHcKL8m65,
            logs: [],
            receipt_ids: [
                Fftak39sK6VymUn5WLJVDyjHZUamxzme3qcSGhi4vPSy,
            ],
            gas_burnt: NearGas {
                inner: 1333683008693,
            },
            tokens_burnt: NearToken {
                inner: 133368300869300000000,
            },
            executor_id: AccountId(
                "dev-20241018193535-44246696841275",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: Fftak39sK6VymUn5WLJVDyjHZUamxzme3qcSGhi4vPSy,
            block_hash: Azfru2hvyddRyddDoDoia5na99cu2K8vbHd1CXXKdnVD,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20241018193535-44246696841275",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.00124577442836866
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205788226811736
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.0008909002498069239
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


claim_alias(contract, ''): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 2167967404080,
    },
    transaction: ExecutionOutcome {
        transaction_hash: FaqvB8sc6bANVfJgCTtsmU96Q8KVUy5bQ9c38ojh3fnd,
        block_hash: HxBNLz5zZuXJ1dhThoYYJ6oUUN94iJDNZBFd3umkZYG9,
        logs: [],
        receipt_ids: [
            46pXYwfYtGRYMfqGNVpXLFDavCuRmW3ojoAVd7m16VRY,
        ],
        gas_burnt: NearGas {
            inner: 308110926482,
        },
        tokens_burnt: NearToken {
            inner: 30811092648200000000,
        },
        executor_id: AccountId(
            "dev-20241018193535-44246696841275",
        ),
        status: SuccessReceiptId(46pXYwfYtGRYMfqGNVpXLFDavCuRmW3ojoAVd7m16VRY),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 46pXYwfYtGRYMfqGNVpXLFDavCuRmW3ojoAVd7m16VRY,
            block_hash: HxBNLz5zZuXJ1dhThoYYJ6oUUN94iJDNZBFd3umkZYG9,
            logs: [],
            receipt_ids: [
                2YnbCrRSshz5jRNijHSC4hxtPmus8PNumUzUKChucMD3,
            ],
            gas_burnt: NearGas {
                inner: 1636673915098,
            },
            tokens_burnt: NearToken {
                inner: 163667391509800000000,
            },
            executor_id: AccountId(
                "dev-20241018193535-44246696841275",
            ),
            status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: chat_contract.claim_alias / invalid alias")) })),
        },
        ExecutionOutcome {
            transaction_hash: 2YnbCrRSshz5jRNijHSC4hxtPmus8PNumUzUKChucMD3,
            block_hash: 6dAw5RQjVdeDNVR3fxPHEeSmNTjXU11VtKoA3UffAwS1,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20241018193535-44246696841275",
            ),
            status: SuccessValue(''),
        },
    ],
    status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: chat_contract.claim_alias / invalid alias")) })),
}
total_gas_burnt_usd: 0.0014482022259254398
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205818098889976
  outcome_tokens_burnt_usd: 0.0
outcome (success: false):
  outcome_gas_burnt_usd: 0.0010932981752854638
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


dev_create_account(account1): Account {
    id: AccountId(
        "dev-20241018193538-23866905354581",
    ),
}


generate_cid_borsh(account1): ViewResultDetails { result: [59, 0, 0, 0, 98, 97, 102, 107, 114, 101, 105, 104, 100, 119, 100, 99, 101, 102, 103, 104, 52, 100, 113, 107, 106, 118, 54, 55, 117, 122, 99, 109, 119, 55, 111, 106, 101, 101, 54, 120, 101, 100, 122, 100, 101, 116, 111, 106, 117, 122, 106, 101, 118, 116, 101, 110, 120, 113, 117, 118, 121, 107, 117], logs: [] }


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 3549542430468,
    },
    transaction: ExecutionOutcome {
        transaction_hash: Bx6ikC7C8MFD8UvijiVU5PvvRFXjJW3dVqjEbwtXPdXN,
        block_hash: 7EhJ43J8QVsm1vNPrVfAsRUwUs8Q5DzjNsArcjNEeZsE,
        logs: [],
        receipt_ids: [
            rU5HJFU3qyrEzzjcyN4UvrLA5CD9YiBK7iZXJ57rQUC,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20241018193538-23866905354581",
        ),
        status: SuccessReceiptId(rU5HJFU3qyrEzzjcyN4UvrLA5CD9YiBK7iZXJ57rQUC),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: rU5HJFU3qyrEzzjcyN4UvrLA5CD9YiBK7iZXJ57rQUC,
            block_hash: 5aRgLDMkxem8m51mk6VSNRLp73ptDuLgKJYeaXSH1rju,
            logs: [
                "19:35:39 \u{1b}[94md\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias1\"; block_timestamp = 1729280139915595761; signer_account_id = \"dev-20241018193538-23866905354581\"; predecessor_account_id = \"dev-20241018193538-23866905354581\" }\n19:35:39 \u{1b}[94md\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = None }",
            ],
            receipt_ids: [
                4WPMFnf5URELthWYLeXEkE31xwngrGmTk5o5vwL2tEjn,
            ],
            gas_burnt: NearGas {
                inner: 3018235525882,
            },
            tokens_burnt: NearToken {
                inner: 301823552588200000000,
            },
            executor_id: AccountId(
                "dev-20241018193535-44246696841275",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 4WPMFnf5URELthWYLeXEkE31xwngrGmTk5o5vwL2tEjn,
            block_hash: ERAunPqMBeDF6hAQgqEU16AUznRK8Axwd4kCgL4YQ7XX,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20241018193538-23866905354581",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.002371094343552624
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.002016181331289176
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 3681763622874,
    },
    transaction: ExecutionOutcome {
        transaction_hash: ETKBmgssaH4Yk3Y6Ea7PWZCo1QnqyAAsk7AJR7D1rRMB,
        block_hash: 8eoQPd4ttwLJJza3UWHjeU4ej7QUJgjSQsL1ngUhMMAN,
        logs: [],
        receipt_ids: [
            AXQv2M4kNZVW1ufFTKmbqigN6foknBALP4aNXxujN1ZG,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20241018193538-23866905354581",
        ),
        status: SuccessReceiptId(AXQv2M4kNZVW1ufFTKmbqigN6foknBALP4aNXxujN1ZG),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: AXQv2M4kNZVW1ufFTKmbqigN6foknBALP4aNXxujN1ZG,
            block_hash: Hv82cbarK5i6kmYoogVjgvKHWySYU2Vcg8BLGNY59vG9,
            logs: [
                "19:35:40 \u{1b}[94md\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias1\"; block_timestamp = 1729280140948420025; signer_account_id = \"dev-20241018193538-23866905354581\"; predecessor_account_id = \"dev-20241018193538-23866905354581\" }\n19:35:40 \u{1b}[94md\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = Some(\"alias1\") }",
            ],
            receipt_ids: [
                71un18vofW3irF23gDzkL6MHbSAYTyhBsb9cr17dXymu,
            ],
            gas_burnt: NearGas {
                inner: 3150456718288,
            },
            tokens_burnt: NearToken {
                inner: 315045671828800000000,
            },
            executor_id: AccountId(
                "dev-20241018193535-44246696841275",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 71un18vofW3irF23gDzkL6MHbSAYTyhBsb9cr17dXymu,
            block_hash: A3HnWgte5E8tqHQrVN3T1hcL2WADxsdCmppAhxYqoJUb,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20241018193538-23866905354581",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.002459418100079832
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.002104505087816384
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias1",
        1729280140948420025,
        0,
    ),
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20241018193538-23866905354581",
        ): (
            1729280140948420025,
            0,
        ),
    },
)


dev_create_account(account2): Account {
    id: AccountId(
        "dev-20241018193541-84710533796451",
    ),
}


claim_alias(alias2): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 3781525901580,
    },
    transaction: ExecutionOutcome {
        transaction_hash: DCwFbRuqS7gH2hjEQ4jbRrCrwWAdwoDie9VYVibpBc3s,
        block_hash: FhjjmjvnnGoPDcHNhP5WS2g1cpJky5vjnfA4u26znr39,
        logs: [],
        receipt_ids: [
            7wFqHQ7FZqtpvHNv9GR1KQTTfSJbwjpRaPPpGkLhRPh,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20241018193541-84710533796451",
        ),
        status: SuccessReceiptId(7wFqHQ7FZqtpvHNv9GR1KQTTfSJbwjpRaPPpGkLhRPh),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 7wFqHQ7FZqtpvHNv9GR1KQTTfSJbwjpRaPPpGkLhRPh,
            block_hash: FuHMjk2RsWs8bA2DPqXWwN4D5pRNorVaPwqKBQ5Co2wn,
            logs: [
                "19:35:43 \u{1b}[94md\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias2\"; block_timestamp = 1729280143001494306; signer_account_id = \"dev-20241018193541-84710533796451\"; predecessor_account_id = \"dev-20241018193541-84710533796451\" }\n19:35:43 \u{1b}[94md\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = None }",
            ],
            receipt_ids: [
                3KW2Ez3fPWUpbeDoJJPGDfApSxM4rZD2d8EickR1uE91,
            ],
            gas_burnt: NearGas {
                inner: 3250218996994,
            },
            tokens_burnt: NearToken {
                inner: 325021899699400000000,
            },
            executor_id: AccountId(
                "dev-20241018193535-44246696841275",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 3KW2Ez3fPWUpbeDoJJPGDfApSxM4rZD2d8EickR1uE91,
            block_hash: 6Ta89noR5h6tCMmBr4So2Up4yoevA2mQGXx8fpFbJvLN,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20241018193541-84710533796451",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.0025260593022554396
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.002171146289991992
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account2): Some(
    (
        "alias2",
        1729280143001494306,
        0,
    ),
)


get_alias_map_borsh(alias2): Some(
    {
        AccountId(
            "dev-20241018193541-84710533796451",
        ): (
            1729280143001494306,
            0,
        ),
    },
)


claim_alias(account2, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 3971202859299,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 7Uj3ZwxhQKB87zEJCzJBvCnQPDXHSPYH9XJ5hVxky34V,
        block_hash: G6AnQt8Zjbq2Lqz6zNYzJ4mQ8QM9DtcfxvTMH3QEiV67,
        logs: [],
        receipt_ids: [
            9WwNZWNpph1vnqBvoYkrpSKgZn5HL8sCZXtSXaPBaw1P,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20241018193541-84710533796451",
        ),
        status: SuccessReceiptId(9WwNZWNpph1vnqBvoYkrpSKgZn5HL8sCZXtSXaPBaw1P),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 9WwNZWNpph1vnqBvoYkrpSKgZn5HL8sCZXtSXaPBaw1P,
            block_hash: EfvUetEuo19CDG9FyrWToqpwk3BNpDzUGwjsM8eZ1Tim,
            logs: [
                "19:35:44 \u{1b}[94md\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias1\"; block_timestamp = 1729280144017723696; signer_account_id = \"dev-20241018193541-84710533796451\"; predecessor_account_id = \"dev-20241018193541-84710533796451\" }\n19:35:44 \u{1b}[94md\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = Some(\"alias2\") }",
            ],
            receipt_ids: [
                3ALr533VagUkroB7VULvhqzUJHTtZkEBcAYSHKhE4QrU,
            ],
            gas_burnt: NearGas {
                inner: 3439895954713,
            },
            tokens_burnt: NearToken {
                inner: 343989595471300000000,
            },
            executor_id: AccountId(
                "dev-20241018193535-44246696841275",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 3ALr533VagUkroB7VULvhqzUJHTtZkEBcAYSHKhE4QrU,
            block_hash: 4YMsuSLZrP4aDCYeJYTB15WdjmoCEnjP9C1Jf847KZM8,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20241018193541-84710533796451",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.002652763510011732
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.0022978504977482837
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account2): Some(
    (
        "alias1",
        1729280144017723696,
        1,
    ),
)


get_alias_map(account2, alias1): Some(
    {
        AccountId(
            "dev-20241018193541-84710533796451",
        ): (
            1729280144017723696,
            1,
        ),
        AccountId(
            "dev-20241018193538-23866905354581",
        ): (
            1729280140948420025,
            0,
        ),
    },
)


get_alias_map(account2, alias2): Some(
    {},
)


claim_alias(account1, alias2): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 3745787480139,
    },
    transaction: ExecutionOutcome {
        transaction_hash: H4gRBKhoJEvVsy844ZKuYRzThCf2rvb8UNwxttCF46uh,
        block_hash: 2fsFYtPiRLABc9oAVtbihe4ZLvGFNGDSpnNGT9DGSEGr,
        logs: [],
        receipt_ids: [
            H3cg2Gt5ULnWu8WCL4Phe9qvTwvZmX2dAu3PcHThYjaM,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20241018193538-23866905354581",
        ),
        status: SuccessReceiptId(H3cg2Gt5ULnWu8WCL4Phe9qvTwvZmX2dAu3PcHThYjaM),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: H3cg2Gt5ULnWu8WCL4Phe9qvTwvZmX2dAu3PcHThYjaM,
            block_hash: GcxmfrZGetCxfr6YFTCLK3c5hjSyom6hV4RnUrLGZdd5,
            logs: [
                "19:35:45 \u{1b}[94md\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias2\"; block_timestamp = 1729280145034045987; signer_account_id = \"dev-20241018193538-23866905354581\"; predecessor_account_id = \"dev-20241018193538-23866905354581\" }\n19:35:45 \u{1b}[94md\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = Some(\"alias1\") }",
            ],
            receipt_ids: [
                G5N5xuMvzYsamsY9pQYYpkgdVmDUrRqbfLxF74kYjxev,
            ],
            gas_burnt: NearGas {
                inner: 3437663138053,
            },
            tokens_burnt: NearToken {
                inner: 343766313805300000000,
            },
            executor_id: AccountId(
                "dev-20241018193535-44246696841275",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.002502186036732852
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.002296358976219404
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias2",
        1729280145034045987,
        0,
    ),
)


get_alias_map(account1, alias2): Some(
    {
        AccountId(
            "dev-20241018193538-23866905354581",
        ): (
            1729280145034045987,
            0,
        ),
    },
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20241018193541-84710533796451",
        ): (
            1729280144017723696,
            1,
        ),
    },
)


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 3971132102283,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 8WZBtAJSk3aLVBdJKGbSbVM4xu5k2syED69gg3CKV9xj,
        block_hash: 93NorN9EmvdtmXRDS6weJzEJFfvyQNr1g3fiWxdUoSfE,
        logs: [],
        receipt_ids: [
            54UF6ar1YtvzWFv7zGZeqLsQbe4y6vmSsfC1DDz9N2fi,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20241018193538-23866905354581",
        ),
        status: SuccessReceiptId(54UF6ar1YtvzWFv7zGZeqLsQbe4y6vmSsfC1DDz9N2fi),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 54UF6ar1YtvzWFv7zGZeqLsQbe4y6vmSsfC1DDz9N2fi,
            block_hash: BLwebAcN3ZayewH2LSfrSy4iKCbWa9eUN1iYeAudNvwT,
            logs: [
                "19:35:45 \u{1b}[94md\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias1\"; block_timestamp = 1729280145642972581; signer_account_id = \"dev-20241018193538-23866905354581\"; predecessor_account_id = \"dev-20241018193538-23866905354581\" }\n19:35:45 \u{1b}[94md\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = Some(\"alias2\") }",
            ],
            receipt_ids: [
                43v4qGSuKSsVm9sRo4y6hQucVvExE2HV9mB6aPmtQPNV,
            ],
            gas_burnt: NearGas {
                inner: 3439825197697,
            },
            tokens_burnt: NearToken {
                inner: 343982519769700000000,
            },
            executor_id: AccountId(
                "dev-20241018193535-44246696841275",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 43v4qGSuKSsVm9sRo4y6hQucVvExE2HV9mB6aPmtQPNV,
            block_hash: 6iqpdzwm14e5drPaNXAyvVrdUDtJwcfUPMq3K6ra9at5,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20241018193538-23866905354581",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.002652716244325044
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.002297803232061596
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias1",
        1729280145642972581,
        1,
    ),
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20241018193538-23866905354581",
        ): (
            1729280145642972581,
            1,
        ),
        AccountId(
            "dev-20241018193541-84710533796451",
        ): (
            1729280144017723696,
            0,
        ),
    },
)


get_alias_map(account1, alias2): Some(
    {},
)
In [ ]:
{ pwsh ../apps/spiral/temp/extension/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

Checked 11 installs across 13 packages (no changes) [94.00ms]
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
   Compiling proc-macro2 v1.0.88
   Compiling unicode-ident v1.0.13
   Compiling autocfg v1.4.0
   Compiling serde v1.0.210
   Compiling once_cell v1.20.2
   Compiling wasm-bindgen-shared v0.2.95
   Compiling cfg-if v1.0.0
   Compiling bumpalo v3.16.0
   Compiling log v0.4.22
   Compiling version_check v0.9.5
   Compiling wasm-bindgen v0.2.95
   Compiling thiserror v1.0.64
   Compiling memchr v2.7.4
   Compiling pin-project-lite v0.2.14
   Compiling smallvec v1.13.2
   Compiling futures-core v0.3.31
   Compiling windows_x86_64_msvc v0.52.6
   Compiling futures-sink v0.3.31
   Compiling itoa v1.0.11
   Compiling parking_lot_core v0.9.10
   Compiling lock_api v0.4.12
   Compiling slab v0.4.9
   Compiling futures-channel v0.3.31
   Compiling percent-encoding v2.3.1
   Compiling futures-io v0.3.31
   Compiling windows-targets v0.52.6
   Compiling futures-task v0.3.31
   Compiling pin-utils v0.1.0
   Compiling unicode-xid v0.2.6
   Compiling serde_json v1.0.129
   Compiling quote v1.0.37
   Compiling ryu v1.0.18
   Compiling proc-macro-error-attr v1.0.4
   Compiling tinyvec_macros v0.1.1
   Compiling hashbrown v0.15.0
   Compiling equivalent v1.0.1
   Compiling tinyvec v1.8.0
   Compiling proc-macro-error v1.0.4
   Compiling bytes v1.7.2
   Compiling syn v2.0.79
   Compiling unicode-segmentation v1.12.0
   Compiling fnv v1.0.7
   Compiling proc-macro-utils v0.10.0
   Compiling proc-macro-utils v0.8.0
   Compiling indexmap v2.6.0
   Compiling convert_case v0.6.0
   Compiling form_urlencoded v1.2.1
   Compiling unicode-normalization v0.1.22
   Compiling windows-sys v0.59.0
   Compiling const_format_proc_macros v0.2.33
   Compiling proc-macro2-diagnostics v0.10.1
   Compiling unicode-bidi v0.3.17
   Compiling xxhash-rust v0.8.12
   Compiling manyhow-macros v0.10.4
   Compiling slotmap v1.0.7
   Compiling half v2.4.1
   Compiling idna v0.5.0
   Compiling anyhow v1.0.90
   Compiling camino v1.1.9
   Compiling scopeguard v1.2.0
   Compiling winapi-util v0.1.9
   Compiling paste v1.0.15
   Compiling yansi v1.0.1
   Compiling const_format v0.2.33
   Compiling ciborium-io v0.2.2
   Compiling ciborium-ll v0.2.2
   Compiling same-file v1.0.6
   Compiling url v2.5.2
   Compiling http v1.1.0
   Compiling tracing-core v0.1.32
   Compiling prettyplease v0.2.22
   Compiling hashbrown v0.14.5
   Compiling collection_literals v1.0.1
   Compiling interpolator v0.5.0
   Compiling winnow v0.6.20
   Compiling dashmap v5.5.3
   Compiling parking_lot v0.12.3
   Compiling wasm-bindgen-backend v0.2.95
   Compiling server_fn_macro v0.6.15
   Compiling manyhow v0.10.4
   Compiling walkdir v2.5.0
   Compiling wasm-bindgen-macro-support v0.2.95
   Compiling proc-macro-error-attr2 v2.0.0
   Compiling getrandom v0.2.15
   Compiling aho-corasick v1.1.3
   Compiling send_wrapper v0.6.0
   Compiling lazy_static v1.5.0
   Compiling base64 v0.22.1
   Compiling minimal-lexical v0.2.1
   Compiling either v1.13.0
   Compiling utf8-width v0.1.7
   Compiling regex-syntax v0.8.5
   Compiling self_cell v1.0.4
   Compiling rustc-hash v1.1.0
   Compiling html-escape v0.2.13
   Compiling nom v7.1.3
   Compiling itertools v0.12.1
   Compiling proc-macro-error2 v2.0.1
   Compiling uuid v1.11.0
   Compiling pathdiff v0.2.2
   Compiling num-traits v0.2.19
   Compiling regex-automata v0.4.8
   Compiling pad-adapter v0.1.1
   Compiling drain_filter_polyfill v0.1.3
   Compiling inventory v0.3.15
   Compiling cfg_aliases v0.2.1
   Compiling tokio v1.40.0
   Compiling borsh v1.5.1
   Compiling http v0.2.12
   Compiling tower-service v0.3.3
   Compiling base64 v0.13.1
   Compiling serde_derive v1.0.210
   Compiling wasm-bindgen-macro v0.2.95
   Compiling thiserror-impl v1.0.64
   Compiling futures-macro v0.3.31
   Compiling tracing-attributes v0.1.27
   Compiling pin-project-internal v1.1.6
   Compiling quote-use-macros v0.8.4
   Compiling js-sys v0.3.72
   Compiling futures-util v0.3.31
   Compiling quote-use v0.8.4
   Compiling syn_derive v0.1.8
   Compiling attribute-derive-macro v0.9.2
   Compiling pin-project v1.1.6
   Compiling derive-where v1.2.7
   Compiling rstml v0.11.2
   Compiling tracing v0.1.40
   Compiling server_fn_macro_default v0.6.15
   Compiling futures-executor v0.3.31
   Compiling typed-builder-macro v0.18.2
   Compiling futures v0.3.31
   Compiling regex v1.11.0
   Compiling async-recursion v1.1.1
   Compiling console_error_panic_hook v0.1.7
   Compiling attribute-derive v0.9.2
   Compiling typed-builder v0.18.2
   Compiling web-sys v0.3.72
   Compiling wasm-bindgen-futures v0.4.45
   Compiling serde_spanned v0.6.8
   Compiling toml_datetime v0.6.8
   Compiling oco_ref v0.1.1
   Compiling serde-wasm-bindgen v0.6.5
   Compiling serde_qs v0.12.0
   Compiling toml_edit v0.22.22
   Compiling ciborium v0.2.2
   Compiling leptos_hot_reload v0.6.15
   Compiling serde_test v1.0.177
   Compiling serde_qs v0.13.0
   Compiling linear-map v1.2.0
   Compiling serde_urlencoded v0.7.1
   Compiling leptos_macro v0.6.15
   Compiling toml v0.8.19
   Compiling config v0.14.0
   Compiling leptos_config v0.6.15
   Compiling gloo-utils v0.2.0
   Compiling leptos_reactive v0.6.15
   Compiling idb v0.6.4
   Compiling console_log v1.0.0
   Compiling reqwest-wasm v0.11.16
   Compiling gloo-net v0.6.0
   Compiling wasm-streams v0.4.1
   Compiling rexie v0.6.2
   Compiling server_fn v0.6.15
   Compiling leptos_server v0.6.15
   Compiling leptos_dom v0.6.15
   Compiling leptos v0.6.15
   Compiling leptos_router v0.6.15
   Compiling leptos_meta v0.6.15
   Compiling spiral_temp_extension v0.0.1 (C:\home\git\polyglot\apps\spiral\temp\extension)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 11s
[INFO]: ⬇️  Installing wasm-bindgen...
[INFO]: Optional field missing from Cargo.toml: 'description'. This is not necessary, but recommended
[INFO]: origin crate has no LICENSE
[INFO]: ✨   Done in 2m 25s
[INFO]: 📦   Your wasm pkg is ready to publish at C:\home\git\polyglot\apps\spiral\temp\extension\pkg.
▲ [WARNING] "import.meta" is not available with the "iife" output format and will be empty [empty-import-meta]

    pkg/spiral_temp_extension.js:1472:66:
      1472 │ ...ath = new URL('spiral_temp_extension_bg.wasm', import.meta.url);
           ╵                                                   ~~~~~~~~~~~

  You need to set the output format to "esm" for "import.meta" to work correctly.

1 warning

  dist\spiral_temp_extension_bg-GT2E46IO.wasm   4.5mb ⚠️
  dist\devtools.js                             29.0kb
  dist\content_script.js                       26.6kb
  dist\service_worker.js                        2.2kb

⚡ Done in 57ms
$ playwright test
[WebServer]  Resolving dependencies

[WebServer]  Resolved, downloaded and extracted [164]

[WebServer]  Saved lockfile


Running 3 tests using 3 workers

[1/3] [Desktop Chrome] › extension.spec.ts:13:5 › libgen
[2/3] [Desktop Chrome] › extension.spec.ts:3:5 › popup localhost
[3/3] [Desktop Chrome] › extension.spec.ts:8:5 › popup extension
  3 passed (32.9s)

To open last HTML report run:

  npx playwright show-report

In [ ]:
{ pwsh ../apps/spiral/temp/test/build.ps1 } | Invoke-Block
00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00 d #1 runtime.execute_with_options_async / { file_name = dotnet; arguments = US1_0
  ""C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"; options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@595-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 v #2 > 00:00:00 d #1 pwd: C:\home\git\polyglot
00:00:01 v #3 > 00:00:00 d #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 v #4 > 00:00:00 d #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 v #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #3 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 v #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 v #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 d #1 Async.runWithTimeoutAsync / timeout: 500
00:00:02 v #2 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:02 v #3 Supervisor.awaitCompiler / Ping / result: 'Some null' / port: 13805 / retry: 1
00:00:02 v #6 > Server bound to: http://localhost:13805
00:00:02 d #7 runtime.execute_with_options_async / { file_name = ../../../../workspace/target/release/spiral_builder.exe; arguments = US1_0 "dib --path build.dib"; options = { command = ../../../../workspace/target/release/spiral_builder.exe dib --path build.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:02 v #8 > 00:00:00 d #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "build.dib"])) }
00:00:02 v #9 > 00:00:00 d #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/temp/test/build.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/temp/test/build.dib" --output-path "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 v #10 > >
00:00:04 v #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #13 > > │ # test                                                                       │
00:00:04 v #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 v #15 > >
00:00:04 v #16 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #17 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #18 > > │ ## include scripts                                                           │
00:00:04 v #19 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 v #20 > >
00:00:04 v #21 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #22 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #23 > > │ ### include notebook core                                                    │
00:00:04 v #24 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 v #25 > >
00:00:04 v #26 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:04 v #27 > > . ../../../../scripts/nbs_header.ps1
00:00:04 v #28 > >
00:00:04 v #29 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #30 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #31 > > │ ### Include core functions script                                            │
00:00:04 v #32 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 v #33 > >
00:00:04 v #34 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:04 v #35 > > . ../../../../scripts/core.ps1
00:00:04 v #36 > >
00:00:04 v #37 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #38 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #39 > > │ ### Include spiral library                                                   │
00:00:04 v #40 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 v #41 > >
00:00:04 v #42 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:04 v #43 > > . ../../../../lib/spiral/lib.ps1
00:00:04 v #44 > >
00:00:04 v #45 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #46 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #47 > > │ ## execute project commands                                                  │
00:00:04 v #48 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 v #49 > >
00:00:04 v #50 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 v #51 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 v #52 > > │ ### run notebook with retries using spiral supervisor                        │
00:00:04 v #53 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 v #54 > >
00:00:04 v #55 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:04 v #56 > > { . ../../../../apps/spiral/dist/Supervisor$(_exe) --execute-command
00:00:04 v #57 > > "../../../../workspace/target/release/spiral_builder$(_exe) dib --path test.dib
00:00:04 v #58 > > --retries 3" } | Invoke-Block
00:00:13 v #59 > 00:00:12 d #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:00:17 v #60 > 00:00:16 d #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce990c2052584bdfe3d9095a6f66f3692ed9d22db4dfe9c0572634f2ad4150ae/main.spi
00:00:21 v #61 > 00:00:20 d #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe0c2514da1c8580e6109e31362282ad2ab3a7239f752cd4b1aee48fbab1b1b8/main.spi
00:00:21 v #62 > 00:00:21 d #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/178adaa8563fb65ff883d10755bcf85f8b120a85a2cb7d9c92ec7d8259bf1906/main.spi
00:00:22 v #63 > <test>
00:00:22 v #64 > </test>
00:00:26 v #65 > >
00:00:26 v #66 > > ╭─[ 21.07s - stdout ]──────────────────────────────────────────────────────────╮
00:00:26 v #67 > > │ 00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }          │
00:00:26 v #68 > > │ 00:00:01 d #1 runtime.execute_with_options_async / { file_name =        │
00:00:26 v #69 > > │ ../../../../workspace/target/release/spiral_builder.exe; arguments = US1_0   │
00:00:26 v #70 > > │ "dib --path test.dib --retries 3"; options = { command =                     │
00:00:26 v #71 > > │ ../../../../workspace/target/release/spiral_builder.exe dib --path test.dib  │
00:00:26 v #72 > > │ --retries 3; cancellation_token = Some System.Threading.CancellationToken;   │
00:00:26 v #73 > > │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
00:00:26 v #74 > > │ working_directory = None } }                                                 │
00:00:26 v #75 > > │ 00:00:01 v #2 > 00:00:00 d #1 spiral_builder.main / { args =      │
00:00:26 v #76 > > │ Array(MutCell(["dib", "--path", "test.dib", "--retries", "3"])) }            │
00:00:26 v #77 > > │ 00:00:01 v #3 > 00:00:00 d #2 runtime.execute_with_options / {    │
00:00:26 v #78 > > │ file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run",        │
00:00:26 v #79 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib", "--output-path",      │
00:00:26 v #80 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb"]; options = {    │
00:00:26 v #81 > > │ command = dotnet repl --exit-after-run --run                                 │
00:00:26 v #82 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib" --output-path          │
00:00:26 v #83 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb";                 │
00:00:26 v #84 > > │ cancellation_token = None; environment_variables = Array(MutCell([           │
00:00:26 v #85 > > │ ("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin │
00:00:26 v #86 > > │ = None; trace = false; working_directory = None } }                          │
00:00:26 v #87 > > │ 00:00:03 v #4 > >                                                       │
00:00:26 v #88 > > │ 00:00:03 v #5 > > ── markdown                                           │
00:00:26 v #89 > > │ ────────────────────────────────────────────────────────────────────         │
00:00:26 v #90 > > │ 00:00:03 v #6 > >                                                       │
00:00:26 v #91 > > │ ╭─────────────────────────────────────────────────────────────────────────── │
00:00:26 v #92 > > │ ───╮                                                                         │
00:00:26 v #93 > > │ 00:00:03 v #7 > > │ # test (Polyglot)                                   │
00:00:26 v #94 > > │ │                                                                            │
00:00:26 v #95 > > │ 00:00:03 v #8 > >                                                       │
00:00:26 v #96 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:00:26 v #97 > > │ ───╯                                                                         │
00:00:26 v #98 > > │ 00:00:07 v #9 > >                                                       │
00:00:26 v #99 > > │ 00:00:07 v #10 > > ── spiral                                            │
00:00:26 v #100 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:26 v #101 > > │ 00:00:07 v #11 > > //// test                                            │
00:00:26 v #102 > > │ 00:00:07 v #12 > >                                                      │
00:00:26 v #103 > > │ 00:00:07 v #13 > > open testing                                         │
00:00:26 v #104 > > │ 00:00:11 v #14 > >                                                      │
00:00:26 v #105 > > │ 00:00:11 v #15 > > ── spiral                                            │
00:00:26 v #106 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:26 v #107 > > │ 00:00:11 v #16 > > nominal i = ()                                       │
00:00:26 v #108 > > │ 00:00:11 v #17 > > nominal e = ()                                       │
00:00:26 v #109 > > │ 00:00:11 v #18 > > nominal s = ()                                       │
00:00:26 v #110 > > │ 00:00:11 v #19 > > nominal n = ()                                       │
00:00:26 v #111 > > │ 00:00:11 v #20 > > nominal t = ()                                       │
00:00:26 v #112 > > │ 00:00:11 v #21 > > nominal f = ()                                       │
00:00:26 v #113 > > │ 00:00:11 v #22 > > nominal j = ()                                       │
00:00:26 v #114 > > │ 00:00:11 v #23 > > nominal p = ()                                       │
00:00:26 v #115 > > │ 00:00:11 v #24 > >                                                      │
00:00:26 v #116 > > │ 00:00:11 v #25 > > union sensing =                                      │
00:00:26 v #117 > > │ 00:00:11 v #26 > >     | Si : s * i                                     │
00:00:26 v #118 > > │ 00:00:11 v #27 > >     | Se : s * e                                     │
00:00:26 v #119 > > │ 00:00:11 v #28 > >                                                      │
00:00:26 v #120 > > │ 00:00:11 v #29 > > union intuition =                                    │
00:00:26 v #121 > > │ 00:00:11 v #30 > >     | Ni : n * i                                     │
00:00:26 v #122 > > │ 00:00:11 v #31 > >     | Ne : n * e                                     │
00:00:26 v #123 > > │ 00:00:11 v #32 > >                                                      │
00:00:26 v #124 > > │ 00:00:11 v #33 > > union thinking =                                     │
00:00:26 v #125 > > │ 00:00:11 v #34 > >     | Ti : t * i                                     │
00:00:26 v #126 > > │ 00:00:11 v #35 > >     | Te : t * e                                     │
00:00:26 v #127 > > │ 00:00:11 v #36 > >                                                      │
00:00:26 v #128 > > │ 00:00:11 v #37 > > union feeling =                                      │
00:00:26 v #129 > > │ 00:00:11 v #38 > >     | Fi : f * i                                     │
00:00:26 v #130 > > │ 00:00:11 v #39 > >     | Fe : f * e                                     │
00:00:26 v #131 > > │ 00:00:11 v #40 > >                                                      │
00:00:26 v #132 > > │ 00:00:11 v #41 > > union function_stack =                               │
00:00:26 v #133 > > │ 00:00:11 v #42 > >     | FS : sensing * intuition * thinking * feeling  │
00:00:26 v #134 > > │ 00:00:11 v #43 > >                                                      │
00:00:26 v #135 > > │ 00:00:11 v #44 > > union personality_type =                             │
00:00:26 v #136 > > │ 00:00:11 v #45 > >     | ISTJ : i * s * t * j * function_stack          │
00:00:26 v #137 > > │ 00:00:11 v #46 > >     | ISFJ : i * s * f * j * function_stack          │
00:00:26 v #138 > > │ 00:00:11 v #47 > >     | INFJ : i * n * f * j * function_stack          │
00:00:26 v #139 > > │ 00:00:11 v #48 > >     | INTJ : i * n * t * j * function_stack          │
00:00:26 v #140 > > │ 00:00:11 v #49 > >     | ISTP : i * s * t * p * function_stack          │
00:00:26 v #141 > > │ 00:00:11 v #50 > >     | ISFP : i * s * f * p * function_stack          │
00:00:26 v #142 > > │ 00:00:11 v #51 > >     | INFP : i * n * f * p * function_stack          │
00:00:26 v #143 > > │ 00:00:11 v #52 > >     | INTP : i * n * t * p * function_stack          │
00:00:26 v #144 > > │ 00:00:11 v #53 > >     | ESTP : e * s * t * p * function_stack          │
00:00:26 v #145 > > │ 00:00:11 v #54 > >     | ESFP : e * s * f * p * function_stack          │
00:00:26 v #146 > > │ 00:00:11 v #55 > >     | ENFP : e * n * f * p * function_stack          │
00:00:26 v #147 > > │ 00:00:11 v #56 > >     | ENTP : e * n * t * p * function_stack          │
00:00:26 v #148 > > │ 00:00:11 v #57 > >     | ESTJ : e * s * t * j * function_stack          │
00:00:26 v #149 > > │ 00:00:11 v #58 > >     | ESFJ : e * s * f * j * function_stack          │
00:00:26 v #150 > > │ 00:00:11 v #59 > >     | ENFJ : e * n * f * j * function_stack          │
00:00:26 v #151 > > │ 00:00:11 v #60 > >     | ENTJ : e * n * t * j * function_stack          │
00:00:26 v #152 > > │ 00:00:11 v #61 > >                                                      │
00:00:26 v #153 > > │ 00:00:11 v #62 > >                                                      │
00:00:26 v #154 > > │ 00:00:11 v #63 > > inl main () =                                        │
00:00:26 v #155 > > │ 00:00:11 v #64 > >     inl istj_stack = FS ((Si (s, i)), Ne (n, e), (Te │
00:00:26 v #156 > > │ (t, e)), (Fi (f, i)))                                                        │
00:00:26 v #157 > > │ 00:00:11 v #65 > >     inl istj_personality = ISTJ (i, s, t, j,         │
00:00:26 v #158 > > │ istj_stack)                                                                  │
00:00:26 v #159 > > │ 00:00:11 v #66 > >     // inl isfj_stack = FS ((Si (s, i)), Ne (n, e),  │
00:00:26 v #160 > > │ (Fe (f, e)), (Ti (t, i)))                                                    │
00:00:26 v #161 > > │ 00:00:11 v #67 > >     // inl isfj_personality = ISFJ (i, s, f, j,      │
00:00:26 v #162 > > │ isfj_stack)                                                                  │
00:00:26 v #163 > > │ 00:00:11 v #68 > >                                                      │
00:00:26 v #164 > > │ 00:00:11 v #69 > >     ;[[                                              │
00:00:26 v #165 > > │ 00:00:11 v #70 > >         istj_personality                             │
00:00:26 v #166 > > │ 00:00:11 v #71 > >     ]]                                               │
00:00:26 v #167 > > │ 00:00:11 v #72 > >     |> fun x => $'$"%A{!x}"' : string                │
00:00:26 v #168 > > │ 00:00:11 v #73 > >     |> console.write_line                            │
00:00:26 v #169 > > │ 00:00:11 v #74 > >                                                      │
00:00:26 v #170 > > │ 00:00:11 v #75 > > inl main () =                                        │
00:00:26 v #171 > > │ 00:00:11 v #76 > >     $'!main ()' : ()                                 │
00:00:26 v #172 > > │ 00:00:13 v #77 > >                                                      │
00:00:26 v #173 > > │ 00:00:13 v #78 > > ╭─[ 1.92s - stdout                                   │
00:00:26 v #174 > > │ ]───────────────────────────────────────────────────────────╮                │
00:00:26 v #175 > > │ 00:00:13 v #79 > > │ [|US5_0 (US4_0 (US0_0, US1_1, US2_1, US3_0))|]     │
00:00:26 v #176 > > │ │                                                                            │
00:00:26 v #177 > > │ 00:00:13 v #80 > > │                                                    │
00:00:26 v #178 > > │                                                                              │
00:00:26 v #179 > > │ │                                                                            │
00:00:26 v #180 > > │ 00:00:13 v #81 > >                                                      │
00:00:26 v #181 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:00:26 v #182 > > │ ───╯                                                                         │
00:00:26 v #183 > > │ 00:00:14 v #82 > >                                                      │
00:00:26 v #184 > > │ 00:00:14 v #83 > > ── fsharp                                            │
00:00:26 v #185 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:26 v #186 > > │ 00:00:14 v #84 > > type PhonologicalFeature =                           │
00:00:26 v #187 > > │ 00:00:14 v #85 > >     | VowelFeature of                                │
00:00:26 v #188 > > │ 00:00:14 v #86 > >         height: Height                               │
00:00:26 v #189 > > │ 00:00:14 v #87 > >         * backness: Backness                         │
00:00:26 v #190 > > │ 00:00:14 v #88 > >         * roundedness: Roundedness                   │
00:00:26 v #191 > > │ 00:00:14 v #89 > >         * tone: Option<Tone>                         │
00:00:26 v #192 > > │ 00:00:14 v #90 > >         * stress: Option<Stress>                     │
00:00:26 v #193 > > │ 00:00:14 v #91 > >         * length: Option<Length>                     │
00:00:26 v #194 > > │ 00:00:14 v #92 > >     | ConsonantFeature of                            │
00:00:26 v #195 > > │ 00:00:14 v #93 > >         place: PlaceOfArticulation                   │
00:00:26 v #196 > > │ 00:00:14 v #94 > >         * manner: MannerOfArticulation               │
00:00:26 v #197 > > │ 00:00:14 v #95 > >         * voicing: Voicing                           │
00:00:26 v #198 > > │ 00:00:14 v #96 > >         * length: Option<Length>                     │
00:00:26 v #199 > > │ 00:00:14 v #97 > >     | VowelHarmonyFeature                            │
00:00:26 v #200 > > │ 00:00:14 v #98 > >     | PitchAccentFeature                             │
00:00:26 v #201 > > │ 00:00:14 v #99 > >                                                      │
00:00:26 v #202 > > │ 00:00:14 v #100 > > and Stress = Primary | Secondary                    │
00:00:26 v #203 > > │ 00:00:14 v #101 > > and Length = Long | Short | HalfLong                │
00:00:26 v #204 > > │ 00:00:14 v #102 > >                                                     │
00:00:26 v #205 > > │ 00:00:14 v #103 > > and Height =                                        │
00:00:26 v #206 > > │ 00:00:14 v #104 > >     | High | NearHigh | HighMid                     │
00:00:26 v #207 > > │ 00:00:14 v #105 > >     | Mid | LowMid | NearLow                        │
00:00:26 v #208 > > │ 00:00:14 v #106 > >     | Low                                           │
00:00:26 v #209 > > │ 00:00:14 v #107 > >                                                     │
00:00:26 v #210 > > │ 00:00:14 v #108 > > and Backness = Front | Central | Back               │
00:00:26 v #211 > > │ 00:00:14 v #109 > >                                                     │
00:00:26 v #212 > > │ 00:00:14 v #110 > > and Roundedness = Rounded | Unrounded               │
00:00:26 v #213 > > │ 00:00:14 v #111 > >                                                     │
00:00:26 v #214 > > │ 00:00:14 v #112 > > and PlaceOfArticulation =                           │
00:00:26 v #215 > > │ 00:00:14 v #113 > >     | Bilabial | Labiodental | Dental               │
00:00:26 v #216 > > │ 00:00:14 v #114 > >     | Alveolar | Postalveolar | Retroflex           │
00:00:26 v #217 > > │ 00:00:14 v #115 > >     | Palatal | Velar | Uvular                      │
00:00:26 v #218 > > │ 00:00:14 v #116 > >     | Pharyngeal | Epiglottal | Glottal             │
00:00:26 v #219 > > │ 00:00:14 v #117 > >                                                     │
00:00:26 v #220 > > │ 00:00:14 v #118 > > and MannerOfArticulation =                          │
00:00:26 v #221 > > │ 00:00:14 v #119 > >     | Plosive | Nasal | Trill                       │
00:00:26 v #222 > > │ 00:00:14 v #120 > >     | TapOrFlap | Fricative | LateralFricative      │
00:00:26 v #223 > > │ 00:00:14 v #121 > >     | Approximant | LateralApproximant              │
00:00:26 v #224 > > │ 00:00:14 v #122 > >                                                     │
00:00:26 v #225 > > │ 00:00:14 v #123 > > and Voicing = Voiced | Voiceless                    │
00:00:26 v #226 > > │ 00:00:14 v #124 > >                                                     │
00:00:26 v #227 > > │ 00:00:14 v #125 > > and SecondaryArticulation =                         │
00:00:26 v #228 > > │ 00:00:14 v #126 > >     | Labialization | Palatalization | Velarization │
00:00:26 v #229 > > │ 00:00:14 v #127 > >     | Pharyngealization | Aspiration                │
00:00:26 v #230 > > │ 00:00:14 v #128 > >                                                     │
00:00:26 v #231 > > │ 00:00:14 v #129 > > and Tone =                                          │
00:00:26 v #232 > > │ 00:00:14 v #130 > >     | LevelTone of int                              │
00:00:26 v #233 > > │ 00:00:14 v #131 > >     | ContourTone of int list                       │
00:00:26 v #234 > > │ 00:00:14 v #132 > >                                                     │
00:00:26 v #235 > > │ 00:00:14 v #133 > > and MorphologicalFeature =                          │
00:00:26 v #236 > > │ 00:00:14 v #134 > >     | RootFeature of string                         │
00:00:26 v #237 > > │ 00:00:14 v #135 > >     | AffixFeature of AffixType * string            │
00:00:26 v #238 > > │ 00:00:14 v #136 > >     | IncorporationFeature of string *              │
00:00:26 v #239 > > │ MorphologicalFeature                                                         │
00:00:26 v #240 > > │ 00:00:14 v #137 > >     | NonConcatenativePattern of string * string    │
00:00:26 v #241 > > │ 00:00:14 v #138 > >     | AgglutinativeAffixFeature of                  │
00:00:26 v #242 > > │ AgglutinativeAffixType * string                                              │
00:00:26 v #243 > > │ 00:00:14 v #139 > >     | HonorificFeature of HonorificType * string    │
00:00:26 v #244 > > │ 00:00:14 v #140 > >                                                     │
00:00:26 v #245 > > │ 00:00:14 v #141 > > and AgglutinativeAffixType = Suffix | Prefix        │
00:00:26 v #246 > > │ 00:00:14 v #142 > >                                                     │
00:00:26 v #247 > > │ 00:00:14 v #143 > > and HonorificType = VerbHonorific | NounHonorific   │
00:00:26 v #248 > > │ 00:00:14 v #144 > >                                                     │
00:00:26 v #249 > > │ 00:00:14 v #145 > > and AffixType =                                     │
00:00:26 v #250 > > │ 00:00:14 v #146 > >     | Prefix | Suffix | Infix                       │
00:00:26 v #251 > > │ 00:00:14 v #147 > >     | Circumfix                                     │
00:00:26 v #252 > > │ 00:00:14 v #148 > >                                                     │
00:00:26 v #253 > > │ 00:00:14 v #149 > > type SyntacticFeature =                             │
00:00:26 v #254 > > │ 00:00:14 v #150 > >     | WordFeature of MorphologicalFeature list *    │
00:00:26 v #255 > > │ LexicalCategory                                                              │
00:00:26 v #256 > > │ 00:00:14 v #151 > >     | PhraseFeature of PhraseType *                 │
00:00:26 v #257 > > │ SyntacticFeature list                                                        │
00:00:26 v #258 > > │ 00:00:14 v #152 > >     | GrammaticalRelation of                        │
00:00:26 v #259 > > │ GrammaticalRelationType * SyntacticFeature list                              │
00:00:26 v #260 > > │ 00:00:14 v #153 > >     | SOVOrderFeature                               │
00:00:26 v #261 > > │ 00:00:14 v #154 > >     | TopicCommentFeature                           │
00:00:26 v #262 > > │ 00:00:14 v #155 > >                                                     │
00:00:26 v #263 > > │ 00:00:14 v #156 > > and GrammaticalRelationType =                       │
00:00:26 v #264 > > │ 00:00:14 v #157 > >     | Ergative | Absolutive | Nominative            │
00:00:26 v #265 > > │ 00:00:14 v #158 > >     | Accusative                                    │
00:00:26 v #266 > > │ 00:00:14 v #159 > >                                                     │
00:00:26 v #267 > > │ 00:00:14 v #160 > > and LexicalCategory =                               │
00:00:26 v #268 > > │ 00:00:14 v #161 > >     | Noun | Verb | Adjective                       │
00:00:26 v #269 > > │ 00:00:14 v #162 > >     | Adverb | Pronoun | Preposition                │
00:00:26 v #270 > > │ 00:00:14 v #163 > >     | Conjunction | Determiner | Interjection       │
00:00:26 v #271 > > │ 00:00:14 v #164 > >                                                     │
00:00:26 v #272 > > │ 00:00:14 v #165 > > and PhraseType =                                    │
00:00:26 v #273 > > │ 00:00:14 v #166 > >     | NP | VP | AP                                  │
00:00:26 v #274 > > │ 00:00:14 v #167 > >     | PP | CP                                       │
00:00:26 v #275 > > │ 00:00:14 v #168 > >                                                     │
00:00:26 v #276 > > │ 00:00:14 v #169 > > and SemanticFeature =                               │
00:00:26 v #277 > > │ 00:00:14 v #170 > >     | Meaning of string                             │
00:00:26 v #278 > > │ 00:00:14 v #171 > >     | SemanticRole of SemanticRoleType *            │
00:00:26 v #279 > > │ SemanticFeature                                                              │
00:00:26 v #280 > > │ 00:00:14 v #172 > >                                                     │
00:00:26 v #281 > > │ 00:00:14 v #173 > > and SemanticRoleType =                              │
00:00:26 v #282 > > │ 00:00:14 v #174 > >     | Agent | Patient | Instrument                  │
00:00:26 v #283 > > │ 00:00:14 v #175 > >     | Location | Time | Cause                       │
00:00:26 v #284 > > │ 00:00:14 v #176 > >                                                     │
00:00:26 v #285 > > │ 00:00:14 v #177 > > and PragmaticFeature =                              │
00:00:26 v #286 > > │ 00:00:14 v #178 > >     | UseContext of string                          │
00:00:26 v #287 > > │ 00:00:14 v #179 > >     | PolitenessLevel of Politeness                 │
00:00:26 v #288 > > │ 00:00:14 v #180 > >     | SpeechAct of SpeechActType                    │
00:00:26 v #289 > > │ 00:00:14 v #181 > >     | SpeechLevel of SpeechLevelType                │
00:00:26 v #290 > > │ 00:00:14 v #182 > >                                                     │
00:00:26 v #291 > > │ 00:00:14 v #183 > > and Politeness = Formal | Informal | Neutral        │
00:00:26 v #292 > > │ 00:00:14 v #184 > >                                                     │
00:00:26 v #293 > > │ 00:00:14 v #185 > > and SpeechActType =                                 │
00:00:26 v #294 > > │ 00:00:14 v #186 > >     | Assertive | Directive | Commissive            │
00:00:26 v #295 > > │ 00:00:14 v #187 > >     | Expressive | Declarative                      │
00:00:26 v #296 > > │ 00:00:14 v #188 > >                                                     │
00:00:26 v #297 > > │ 00:00:14 v #189 > > and SpeechLevelType =                               │
00:00:26 v #298 > > │ 00:00:14 v #190 > >     | FormalHigh | FormalLow | InformalHigh         │
00:00:26 v #299 > > │ 00:00:14 v #191 > >     | InformalLow | Neutral                         │
00:00:26 v #300 > > │ 00:00:14 v #192 > >                                                     │
00:00:26 v #301 > > │ 00:00:14 v #193 > > type LinguisticFeature =                            │
00:00:26 v #302 > > │ 00:00:14 v #194 > >     | Phonological of PhonologicalFeature           │
00:00:26 v #303 > > │ 00:00:14 v #195 > >     | Morphological of MorphologicalFeature         │
00:00:26 v #304 > > │ 00:00:14 v #196 > >     | Syntactic of SyntacticFeature                 │
00:00:26 v #305 > > │ 00:00:14 v #197 > >     | Semantic of SemanticFeature                   │
00:00:26 v #306 > > │ 00:00:14 v #198 > >     | Pragmatic of PragmaticFeature                 │
00:00:26 v #307 > > │ 00:00:14 v #199 > >                                                     │
00:00:26 v #308 > > │ 00:00:14 v #200 > > type LanguageConstruct =                            │
00:00:26 v #309 > > │ 00:00:14 v #201 > >     | LanguageElement of LinguisticFeature          │
00:00:26 v #310 > > │ 00:00:14 v #202 > >     | LanguageStructure of LanguageConstruct list   │
00:00:26 v #311 > > │ 00:00:14 v #203 > >     | TranslationElement of TranslationFeature      │
00:00:26 v #312 > > │ 00:00:14 v #204 > >                                                     │
00:00:26 v #313 > > │ 00:00:14 v #205 > > and TranslationFeature =                            │
00:00:26 v #314 > > │ 00:00:14 v #206 > >     | LinkedPhonological of PhonologicalFeature *   │
00:00:26 v #315 > > │ PhonologicalFeature                                                          │
00:00:26 v #316 > > │ 00:00:14 v #207 > >     | LinkedMorphological of MorphologicalFeature * │
00:00:26 v #317 > > │ MorphologicalFeature                                                         │
00:00:26 v #318 > > │ 00:00:14 v #208 > >     | LinkedSyntactic of SyntacticFeature *         │
00:00:26 v #319 > > │ SyntacticFeature                                                             │
00:00:26 v #320 > > │ 00:00:14 v #209 > >     | LinkedSemantic of SemanticFeature *           │
00:00:26 v #321 > > │ SemanticFeature                                                              │
00:00:26 v #322 > > │ 00:00:14 v #210 > >                                                     │
00:00:26 v #323 > > │ 00:00:14 v #211 > > type Discourse = DiscourseUnit of LanguageConstruct │
00:00:26 v #324 > > │ list                                                                         │
00:00:26 v #325 > > │ 00:00:14 v #212 > >                                                     │
00:00:26 v #326 > > │ 00:00:14 v #213 > > type LanguageModel =                                │
00:00:26 v #327 > > │ 00:00:14 v #214 > >     | Model of discourse: Discourse                 │
00:00:26 v #328 > > │ 00:00:15 v #215 > >                                                     │
00:00:26 v #329 > > │ 00:00:15 v #216 > > ── fsharp                                           │
00:00:26 v #330 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:26 v #331 > > │ 00:00:15 v #217 > > let testEnglish =                                   │
00:00:26 v #332 > > │ 00:00:15 v #218 > >     Model(                                          │
00:00:26 v #333 > > │ 00:00:15 v #219 > >         DiscourseUnit [[                            │
00:00:26 v #334 > > │ 00:00:15 v #220 > >             LanguageElement (Phonological           │
00:00:26 v #335 > > │ (ConsonantFeature (Alveolar, Nasal,                                          │
00:00:26 v #336 > > │ 00:00:15 v #221 > > Voiced, Some(HalfLong))));                          │
00:00:26 v #337 > > │ 00:00:15 v #222 > >             LanguageElement (Phonological           │
00:00:26 v #338 > > │ (VowelFeature (High, Front, Unrounded,                                       │
00:00:26 v #339 > > │ 00:00:15 v #223 > > Some(LevelTone 1), Some(Primary), Some(Short))));   │
00:00:26 v #340 > > │ 00:00:15 v #224 > >             LanguageElement (Phonological           │
00:00:26 v #341 > > │ (VowelFeature (Low, Front, Unrounded,                                        │
00:00:26 v #342 > > │ 00:00:15 v #225 > > Some(LevelTone 2), Some(Secondary), Some(Long))));  │
00:00:26 v #343 > > │ 00:00:15 v #226 > >             LanguageElement (Phonological           │
00:00:26 v #344 > > │ (ConsonantFeature (Velar, Plosive,                                           │
00:00:26 v #345 > > │ 00:00:15 v #227 > > Voiceless, Some(HalfLong))));                       │
00:00:26 v #346 > > │ 00:00:15 v #228 > >             LanguageElement (Morphological          │
00:00:26 v #347 > > │ (RootFeature "I"));                                                          │
00:00:26 v #348 > > │ 00:00:15 v #229 > >             LanguageElement (Morphological          │
00:00:26 v #349 > > │ (RootFeature "see"));                                                        │
00:00:26 v #350 > > │ 00:00:15 v #230 > >             LanguageElement (Morphological          │
00:00:26 v #351 > > │ (RootFeature "a"));                                                          │
00:00:26 v #352 > > │ 00:00:15 v #231 > >             LanguageElement (Morphological          │
00:00:26 v #353 > > │ (RootFeature "cat"));                                                        │
00:00:26 v #354 > > │ 00:00:15 v #232 > >             LanguageElement (Syntactic              │
00:00:26 v #355 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:26 v #356 > > │ 00:00:15 v #233 > > ([[RootFeature "I"]], Pronoun)]])));                │
00:00:26 v #357 > > │ 00:00:15 v #234 > >             LanguageElement (Syntactic              │
00:00:26 v #358 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:00:26 v #359 > > │ 00:00:15 v #235 > > ([[RootFeature "see"]], Verb)]])));                 │
00:00:26 v #360 > > │ 00:00:15 v #236 > >             LanguageElement (Syntactic              │
00:00:26 v #361 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:26 v #362 > > │ 00:00:15 v #237 > > ([[RootFeature "a"; RootFeature "cat"]],            │
00:00:26 v #363 > > │ Noun)]])));                                                                  │
00:00:26 v #364 > > │ 00:00:15 v #238 > >             LanguageElement (Semantic (Meaning      │
00:00:26 v #365 > > │ "Perception act of a feline by                                               │
00:00:26 v #366 > > │ 00:00:15 v #239 > > the speaker"));                                     │
00:00:26 v #367 > > │ 00:00:15 v #240 > >             LanguageElement (Pragmatic (UseContext  │
00:00:26 v #368 > > │ "Statement of an action being                                                │
00:00:26 v #369 > > │ 00:00:15 v #241 > > observed"))                                         │
00:00:26 v #370 > > │ 00:00:15 v #242 > >         ]]                                          │
00:00:26 v #371 > > │ 00:00:15 v #243 > >     )                                               │
00:00:26 v #372 > > │ 00:00:15 v #244 > >                                                     │
00:00:26 v #373 > > │ 00:00:15 v #245 > > let testPortuguese =                                │
00:00:26 v #374 > > │ 00:00:15 v #246 > >     Model(                                          │
00:00:26 v #375 > > │ 00:00:15 v #247 > >         DiscourseUnit [[                            │
00:00:26 v #376 > > │ 00:00:15 v #248 > >             LanguageElement (Phonological           │
00:00:26 v #377 > > │ (VowelFeature (High, Front, Unrounded,                                       │
00:00:26 v #378 > > │ 00:00:15 v #249 > > Some(LevelTone 1), Some(Primary), Some(Short))));   │
00:00:26 v #379 > > │ 00:00:15 v #250 > >             LanguageElement (Phonological           │
00:00:26 v #380 > > │ (VowelFeature (Low, Front, Unrounded,                                        │
00:00:26 v #381 > > │ 00:00:15 v #251 > > Some(LevelTone 2), Some(Secondary), Some(Long))));  │
00:00:26 v #382 > > │ 00:00:15 v #252 > >             LanguageElement (Phonological           │
00:00:26 v #383 > > │ (VowelFeature (Mid, Back, Rounded,                                           │
00:00:26 v #384 > > │ 00:00:15 v #253 > > Some(LevelTone 3), Some(Primary), Some(Short))));   │
00:00:26 v #385 > > │ 00:00:15 v #254 > >             LanguageElement (Phonological           │
00:00:26 v #386 > > │ (ConsonantFeature (Velar, Plosive,                                           │
00:00:26 v #387 > > │ 00:00:15 v #255 > > Voiceless, Some(HalfLong))));                       │
00:00:26 v #388 > > │ 00:00:15 v #256 > >             LanguageElement (Morphological          │
00:00:26 v #389 > > │ (RootFeature "Eu"));                                                         │
00:00:26 v #390 > > │ 00:00:15 v #257 > >             LanguageElement (Morphological          │
00:00:26 v #391 > > │ (RootFeature "ver" |> ignore;                                                │
00:00:26 v #392 > > │ 00:00:15 v #258 > > AffixFeature (Suffix, "o")));                       │
00:00:26 v #393 > > │ 00:00:15 v #259 > >             LanguageElement (Morphological          │
00:00:26 v #394 > > │ (RootFeature "um"));                                                         │
00:00:26 v #395 > > │ 00:00:15 v #260 > >             LanguageElement (Morphological          │
00:00:26 v #396 > > │ (RootFeature "gato"));                                                       │
00:00:26 v #397 > > │ 00:00:15 v #261 > >             LanguageElement (Syntactic              │
00:00:26 v #398 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:26 v #399 > > │ 00:00:15 v #262 > > ([[RootFeature "Eu"]], Pronoun)]])));               │
00:00:26 v #400 > > │ 00:00:15 v #263 > >             LanguageElement (Syntactic              │
00:00:26 v #401 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:00:26 v #402 > > │ 00:00:15 v #264 > > ([[RootFeature "vejo"]], Verb)]])));                │
00:00:26 v #403 > > │ 00:00:15 v #265 > >             LanguageElement (Syntactic              │
00:00:26 v #404 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:26 v #405 > > │ 00:00:15 v #266 > > ([[RootFeature "um"; RootFeature "gato"]],          │
00:00:26 v #406 > > │ Noun)]])));                                                                  │
00:00:26 v #407 > > │ 00:00:15 v #267 > >             LanguageElement (Semantic (Meaning      │
00:00:26 v #408 > > │ "Ação de percepção de um felino                                              │
00:00:26 v #409 > > │ 00:00:15 v #268 > > pelo falante"));                                    │
00:00:26 v #410 > > │ 00:00:15 v #269 > >             LanguageElement (Pragmatic (UseContext  │
00:00:26 v #411 > > │ "Declaração de uma ação sendo                                                │
00:00:26 v #412 > > │ 00:00:15 v #270 > > observada"))                                        │
00:00:26 v #413 > > │ 00:00:15 v #271 > >         ]]                                          │
00:00:26 v #414 > > │ 00:00:15 v #272 > >     )                                               │
00:00:26 v #415 > > │ 00:00:15 v #273 > >                                                     │
00:00:26 v #416 > > │ 00:00:15 v #274 > > let testKorean =                                    │
00:00:26 v #417 > > │ 00:00:15 v #275 > >     Model(                                          │
00:00:26 v #418 > > │ 00:00:15 v #276 > >         DiscourseUnit [[                            │
00:00:26 v #419 > > │ 00:00:15 v #277 > >             LanguageElement (Phonological           │
00:00:26 v #420 > > │ (ConsonantFeature (Alveolar, Nasal,                                          │
00:00:26 v #421 > > │ 00:00:15 v #278 > > Voiced, Some(Short))));                             │
00:00:26 v #422 > > │ 00:00:15 v #279 > >             LanguageElement (Phonological           │
00:00:26 v #423 > > │ (VowelFeature (High, Back, Rounded,                                          │
00:00:26 v #424 > > │ 00:00:15 v #280 > > None, None, Some(Short))));                         │
00:00:26 v #425 > > │ 00:00:15 v #281 > >             LanguageElement (Phonological           │
00:00:26 v #426 > > │ (VowelFeature (Mid, Front, Unrounded,                                        │
00:00:26 v #427 > > │ 00:00:15 v #282 > > None, None, Some(Long))));                          │
00:00:26 v #428 > > │ 00:00:15 v #283 > >             LanguageElement (Phonological           │
00:00:26 v #429 > > │ (ConsonantFeature (Bilabial, Plosive,                                        │
00:00:26 v #430 > > │ 00:00:15 v #284 > > Voiceless, Some(Short))));                          │
00:00:26 v #431 > > │ 00:00:15 v #285 > >             LanguageElement (Morphological          │
00:00:26 v #432 > > │ (RootFeature "나"));                                                         │
00:00:26 v #433 > > │ 00:00:15 v #286 > >             LanguageElement (Morphological          │
00:00:26 v #434 > > │ (RootFeature "보다"));                                                       │
00:00:26 v #435 > > │ 00:00:15 v #287 > >             LanguageElement (Morphological          │
00:00:26 v #436 > > │ (AffixFeature (Suffix, "아")));                                              │
00:00:26 v #437 > > │ 00:00:15 v #288 > >             LanguageElement (Morphological          │
00:00:26 v #438 > > │ (RootFeature "고양이"));                                                     │
00:00:26 v #439 > > │ 00:00:15 v #289 > >             LanguageElement (Syntactic              │
00:00:26 v #440 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:26 v #441 > > │ 00:00:15 v #290 > > ([[RootFeature "나"]], Pronoun)]])));               │
00:00:26 v #442 > > │ 00:00:15 v #291 > >             LanguageElement (Syntactic              │
00:00:26 v #443 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:00:26 v #444 > > │ 00:00:15 v #292 > > ([[RootFeature "보다"; AffixFeature (Suffix,        │
00:00:26 v #445 > > │ "아")]], Verb)]])));                                                         │
00:00:26 v #446 > > │ 00:00:15 v #293 > >             LanguageElement (Syntactic              │
00:00:26 v #447 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:26 v #448 > > │ 00:00:15 v #294 > > ([[RootFeature "고양이"]], Noun)]])));              │
00:00:26 v #449 > > │ 00:00:15 v #295 > >             LanguageElement (Semantic (Meaning      │
00:00:26 v #450 > > │ "화자에 의한 고양이의 관찰                                                   │
00:00:26 v #451 > > │ 00:00:15 v #296 > > 행위"));                                            │
00:00:26 v #452 > > │ 00:00:15 v #297 > >             LanguageElement (Pragmatic (UseContext  │
00:00:26 v #453 > > │ "관찰되고 있는 행동의 진술"))                                                │
00:00:26 v #454 > > │ 00:00:15 v #298 > >         ]]                                          │
00:00:26 v #455 > > │ 00:00:15 v #299 > >     )                                               │
00:00:26 v #456 > > │ 00:00:15 v #300 > >                                                     │
00:00:26 v #457 > > │ 00:00:15 v #301 > > ── markdown                                         │
00:00:26 v #458 > > │ ────────────────────────────────────────────────────────────────────         │
00:00:26 v #459 > > │ 00:00:15 v #302 > >                                                     │
00:00:26 v #460 > > │ ╭─────────────────────────────────────────────────────────────────────────── │
00:00:26 v #461 > > │ ───╮                                                                         │
00:00:26 v #462 > > │ 00:00:15 v #303 > > │ ## main                                           │
00:00:26 v #463 > > │ │                                                                            │
00:00:26 v #464 > > │ 00:00:15 v #304 > >                                                     │
00:00:26 v #465 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:00:26 v #466 > > │ ───╯                                                                         │
00:00:26 v #467 > > │ 00:00:15 v #305 > >                                                     │
00:00:26 v #468 > > │ 00:00:15 v #306 > > ── spiral                                           │
00:00:26 v #469 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:26 v #470 > > │ 00:00:15 v #307 > > inl main (_args : array_base string) =              │
00:00:26 v #471 > > │ 00:00:15 v #308 > >     0i32                                            │
00:00:26 v #472 > > │ 00:00:15 v #309 > >                                                     │
00:00:26 v #473 > > │ 00:00:15 v #310 > > inl main () =                                       │
00:00:26 v #474 > > │ 00:00:15 v #311 > >     $'let main args = !main args' : ()              │
00:00:26 v #475 > > │ 00:00:16 v #312 > >                                                     │
00:00:26 v #476 > > │ 00:00:16 v #313 > > ── spiral                                           │
00:00:26 v #477 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:26 v #478 > > │ 00:00:16 v #314 > > inl app () =                                        │
00:00:26 v #479 > > │ 00:00:16 v #315 > >     "test" |> console.write_line                    │
00:00:26 v #480 > > │ 00:00:16 v #316 > >     0i32                                            │
00:00:26 v #481 > > │ 00:00:16 v #317 > >                                                     │
00:00:26 v #482 > > │ 00:00:16 v #318 > > inl main () =                                       │
00:00:26 v #483 > > │ 00:00:16 v #319 > >     print_static "<test>"                           │
00:00:26 v #484 > > │ 00:00:16 v #320 > >                                                     │
00:00:26 v #485 > > │ 00:00:16 v #321 > >     app                                             │
00:00:26 v #486 > > │ 00:00:16 v #322 > >     |> dyn                                          │
00:00:26 v #487 > > │ 00:00:16 v #323 > >     |> ignore                                       │
00:00:26 v #488 > > │ 00:00:16 v #324 > >                                                     │
00:00:26 v #489 > > │ 00:00:16 v #325 > >     print_static "</test>"                          │
00:00:26 v #490 > > │ 00:00:17 v #326 > 00:00:15 v #3 runtime.execute_with_options /    │
00:00:26 v #491 > > │ result / { exit_code = 0; std_trace_length = 10945 }                         │
00:00:26 v #492 > > │ 00:00:17 v #327 > 00:00:15 d #4 runtime.execute_with_options / {  │
00:00:26 v #493 > > │ file_name = jupyter; arguments = ["nbconvert",                               │
00:00:26 v #494 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb", "--to", "html", │
00:00:26 v #495 > > │ "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert        │
00:00:26 v #496 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb" --to html        │
00:00:26 v #497 > > │ --HTMLExporter.theme=dark; cancellation_token = None; environment_variables  │
00:00:26 v #498 > > │ = Array(MutCell([])); on_line = None; stdin = None; trace = true;            │
00:00:26 v #499 > > │ working_directory = None } }                                                 │
00:00:26 v #500 > > │ 00:00:19 v #328 > 00:00:17 v #5 ! [NbConvertApp] Converting       │
00:00:26 v #501 > > │ notebook c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb to html   │
00:00:26 v #502 > > │ 00:00:19 v #329 > 00:00:17 v #6 !                                 │
00:00:26 v #503 > > │ C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__ini │
00:00:26 v #504 > > │ t__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will     │
00:00:26 v #505 > > │ become a hard error in future nbformat versions. You may want to use         │
00:00:26 v #506 > > │ `normalize()` on your notebooks before validations (available since nbformat │
00:00:26 v #507 > > │ 5.1.4). Previous versions of nbformat are fixing this issue transparently,   │
00:00:26 v #508 > > │ and will stop doing so in the future.                                        │
00:00:26 v #509 > > │ 00:00:19 v #330 > 00:00:17 v #7 !   validate(nb)                  │
00:00:26 v #510 > > │ 00:00:19 v #331 > 00:00:18 v #8 !                                 │
00:00:26 v #511 > > │ C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filt │
00:00:26 v #512 > > │ ers\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back   │
00:00:26 v #513 > > │ on Python 3                                                                  │
00:00:26 v #514 > > │ 00:00:19 v #332 > 00:00:18 v #9 !   return _pygments_highlight(   │
00:00:26 v #515 > > │ 00:00:20 v #333 > 00:00:19 v #10 ! [NbConvertApp] Writing 318992  │
00:00:26 v #516 > > │ bytes to c:\home\git\polyglot\apps\spiral\temp\test\test.dib.html            │
00:00:26 v #517 > > │ 00:00:20 v #334 > 00:00:19 v #11 runtime.execute_with_options /   │
00:00:26 v #518 > > │ result / { exit_code = 0; std_trace_length = 872 }                           │
00:00:26 v #519 > > │ 00:00:20 v #335 > 00:00:19 d #12 spiral_builder.run / dib /       │
00:00:26 v #520 > > │ jupyter nbconvert / { exit_code = 0; jupyter_result_length = 872 }           │
00:00:26 v #521 > > │ 00:00:20 v #336 > 00:00:19 d #13 runtime.execute_with_options / { │
00:00:26 v #522 > > │ file_name = pwsh; arguments = ["-c", "$counter = 1; $path =                  │
00:00:26 v #523 > > │ 'c:/home/git/polyglot/apps/spiral/temp/test/test.dib.html'; (Get-Content     │
00:00:26 v #524 > > │ $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value │
00:00:26 v #525 > > │ + $counter++ } | Set-Content $path"]; options = { command = pwsh -c          │
00:00:26 v #526 > > │ "$counter = 1; $path =                                                       │
00:00:26 v #527 > > │ 'c:/home/git/polyglot/apps/spiral/temp/test/test.dib.html'; (Get-Content     │
00:00:26 v #528 > > │ $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + │
00:00:26 v #529 > > │ $counter++ } | Set-Content $path"; cancellation_token = None;                │
00:00:26 v #530 > > │ environment_variables = Array(MutCell([])); on_line = None; stdin = None;    │
00:00:26 v #531 > > │ trace = true; working_directory = None } }                                   │
00:00:26 v #532 > > │ 00:00:20 v #337 > 00:00:19 v #14 runtime.execute_with_options /   │
00:00:26 v #533 > > │ result / { exit_code = 0; std_trace_length = 0 }                             │
00:00:26 v #534 > > │ 00:00:20 v #338 > 00:00:19 d #15 spiral_builder.run / dib / html  │
00:00:26 v #535 > > │ cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }            │
00:00:26 v #536 > > │ 00:00:20 v #339 > 00:00:19 d #16 spiral_builder.run / dib / {     │
00:00:26 v #537 > > │ exit_code = 0; result_length = 11876 }                                       │
00:00:26 v #538 > > │ 00:00:20 d #340 runtime.execute_with_options_async / { exit_code = 0;   │
00:00:26 v #539 > > │ output_length = 15157 }                                                      │
00:00:26 v #540 > > │ 00:00:20 d #1 main / executeCommand / exitCode: 0 / command:            │
00:00:26 v #541 > > │ ../../../../workspace/target/release/spiral_builder.exe dib --path test.dib  │
00:00:26 v #542 > > │ --retries 3                                                                  │
00:00:26 v #543 > > │                                                                              │
00:00:26 v #544 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #545 > >
00:00:26 v #546 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 v #547 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 v #548 > > │ ### parse the .dib file into .spi format with dibparser                      │
00:00:26 v #549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #550 > >
00:00:26 v #551 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:26 v #552 > > { . ../../../../apps/parser/dist/DibParser$(_exe) test.dib spi } | Invoke-Block
00:00:26 v #553 > >
00:00:26 v #554 > > ╭─[ 574.97ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 v #555 > > │ 00:00:00 d #1 writeDibCode / output: Spi / path: test.dib               │
00:00:26 v #556 > > │ 00:00:00 d #2 parseDibCode / output: Spi / file: test.dib               │
00:00:26 v #557 > > │                                                                              │
00:00:26 v #558 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #559 > >
00:00:26 v #560 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 v #561 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 v #562 > > │ ### build .fsx file from .spi using supervisor                               │
00:00:26 v #563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 v #564 > >
00:00:26 v #565 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:26 v #566 > > { . ../../../../apps/spiral/dist/Supervisor$(_exe) --build-file test.spi
00:00:26 v #567 > > test.fsx } | Invoke-Block
00:00:28 v #568 > 00:00:27 d #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/apps/spiral/temp/test/test.spi
00:00:28 v #569 > <test>
00:00:28 v #570 > </test>
00:00:28 v #571 > >
00:00:28 v #572 > > ╭─[ 1.72s - stdout ]───────────────────────────────────────────────────────────╮
00:00:28 v #573 > > │ 00:00:00 v #1 async.run_with_timeout_async / { timeout = 180 }          │
00:00:28 v #574 > > │ 00:00:01 v #2 async.run_with_timeout_async / { timeout = 180 }          │
00:00:28 v #575 > > │ 00:00:01 d #1 Supervisor.buildFile / takeWhileInclusive /               │
00:00:28 v #576 > > │ outputContent:                                                               │
00:00:28 v #577 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:00:28 v #578 > > │ 00:00:01 d #2 Supervisor.buildFile / AsyncSeq.scan / outputContent:     │
00:00:28 v #579 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:00:28 v #580 > > │ error:  / path: test.spi                                                     │
00:00:28 v #581 > > │ 00:00:01 d #3 Supervisor.buildFile / takeWhileInclusive /               │
00:00:28 v #582 > > │ outputContent:                                                               │
00:00:28 v #583 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:00:28 v #584 > > │ 00:00:01 v #4 Supervisor.sendJson / port: 13805 / json:                 │
00:00:28 v #585 > > │ {"FileOpen":{"spiText":"/// # test (Polyglot)\nnominal i = ()\nnominal e =   │
00:00:28 v #586 > > │ ()\nnominal s =                                                              │
00:00:28 v #587 > > │ ()\nnomin...0022\u003C/test\u003E\u0022\n","uri":"file:///c:/home/git/polygl │
00:00:28 v #588 > > │ ot/apps/spiral/temp/test/test.spi"}} / result:                               │
00:00:28 v #589 > > │ 00:00:01 v #5 Supervisor.sendJson / port: 13805 / json:                 │
00:00:28 v #590 > > │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/sp │
00:00:28 v #591 > > │ iral/temp/test/test.spi"}} / result:                                         │
00:00:28 v #592 > > │ 00:00:01 d #6 Supervisor.buildFile / AsyncSeq.scan / outputContent:     │
00:00:28 v #593 > > │ let rec closure1 () () : unit =                                              │
00:00:28 v #594 > > │     let v0 : (string -> unit) = System.Console.WriteLine                     │
00:00:28 v #595 > > │     let v1 : string = "test"                                                 │
00:00:28 v #596 > > │     v0 v1                                                                    │
00:00:28 v #597 > > │ and closure0 () () : i...t v0 : unit = ()                                    │
00:00:28 v #598 > > │     let v1 : (unit -> unit) = closure1()                                     │
00:00:28 v #599 > > │     let v2 : unit = (fun () -> v1 (); v0) ()                                 │
00:00:28 v #600 > > │     0                                                                        │
00:00:28 v #601 > > │ let v0 : (unit -> int32) = closure0()                                        │
00:00:28 v #602 > > │ ()                                                                           │
00:00:28 v #603 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:00:28 v #604 > > │ error:  / path: test.spi                                                     │
00:00:28 v #605 > > │ 00:00:01 d #7 Supervisor.buildFile / takeWhileInclusive /               │
00:00:28 v #606 > > │ outputContent:                                                               │
00:00:28 v #607 > > │ let rec closure1 () () : unit =                                              │
00:00:28 v #608 > > │     let v0 : (string -> unit) = System.Console.WriteLine                     │
00:00:28 v #609 > > │     let v1 : string = "test"                                                 │
00:00:28 v #610 > > │     v0 v1                                                                    │
00:00:28 v #611 > > │ and closure0 () () : i...t v0 : unit = ()                                    │
00:00:28 v #612 > > │     let v1 : (unit -> unit) = closure1()                                     │
00:00:28 v #613 > > │     let v2 : unit = (fun () -> v1 (); v0) ()                                 │
00:00:28 v #614 > > │     0                                                                        │
00:00:28 v #615 > > │ let v0 : (unit -> int32) = closure0()                                        │
00:00:28 v #616 > > │ ()                                                                           │
00:00:28 v #617 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:00:28 v #618 > > │ 00:00:01 d #8 FileSystem.watchWithFilter / Disposing watch stream /     │
00:00:28 v #619 > > │ filter: FileName, LastWrite                                                  │
00:00:28 v #620 > > │                                                                              │
00:00:28 v #621 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 v #622 > >
00:00:28 v #623 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 v #624 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 v #625 > > │ ## compile and format the project                                            │
00:00:28 v #626 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 v #627 > >
00:00:28 v #628 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 v #629 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 v #630 > > │ ### compile project with fable targeting optimized rust                      │
00:00:28 v #631 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 v #632 > >
00:00:28 v #633 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:28 v #634 > > dotnet fable --optimize --lang rs --extension .rs
00:00:32 v #635 > >
00:00:32 v #636 > > ╭─[ 3.72s - stdout ]───────────────────────────────────────────────────────────╮
00:00:32 v #637 > > │ Fable 4.21.0: F# to Rust compiler (status: alpha)                            │
00:00:32 v #638 > > │                                                                              │
00:00:32 v #639 > > │ Thanks to the contributor! @delneg                                           │
00:00:32 v #640 > > │ Stand with Ukraine! https://standwithukraine.com.ua/                         │
00:00:32 v #641 > > │                                                                              │
00:00:32 v #642 > > │ Parsing test.fsproj...                                                       │
00:00:32 v #643 > > │ Retrieving project options from cache, in case of issues run `dotnet fable   │
00:00:32 v #644 > > │ clean` or try `--noCache` option.                                            │
00:00:32 v #645 > > │ Project and references (1 source files) parsed in 189ms                      │
00:00:32 v #646 > > │                                                                              │
00:00:32 v #647 > > │ Started Fable compilation...                                                 │
00:00:32 v #648 > > │                                                                              │
00:00:32 v #649 > > │ Fable compilation finished in 1686ms                                         │
00:00:32 v #650 > > │                                                                              │
00:00:32 v #651 > > │ .\test.fsx(11,0): (11,2) warning FABLE: For Rust, support for F# static and  │
00:00:32 v #652 > > │ module do bindings is disabled by default. It can be enabled with the        │
00:00:32 v #653 > > │ 'static_do_bindings' feature. Use at your own risk!                          │
00:00:32 v #654 > > │                                                                              │
00:00:32 v #655 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #656 > >
00:00:32 v #657 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #658 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #659 > > │ ### fix formatting issues in the .rs file using regex and set-content        │
00:00:32 v #660 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #661 > >
00:00:32 v #662 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:32 v #663 > > (Get-Content test.rs) `
00:00:32 v #664 > >     -replace [[regex]]::Escape("),);"), "));" `
00:00:32 v #665 > >     | FixRust `
00:00:32 v #666 > > | Set-Content test.rs
00:00:32 v #667 > >
00:00:32 v #668 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #669 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #670 > > │ ### format the rust code using cargo fmt                                     │
00:00:32 v #671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #672 > >
00:00:32 v #673 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:32 v #674 > > cargo fmt --
00:00:32 v #675 > >
00:00:32 v #676 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #677 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #678 > > │ ## build and test the project                                                │
00:00:32 v #679 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #680 > >
00:00:32 v #681 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 v #682 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 v #683 > > │ ### build the project in release mode using nightly rust compiler            │
00:00:32 v #684 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 v #685 > >
00:00:32 v #686 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:32 v #687 > > cargo build --release
00:00:54 v #688 > >
00:00:54 v #689 > > ╭─[ 21.96s - stdout ]──────────────────────────────────────────────────────────╮
00:00:54 v #690 > > │    Compiling proc-macro2 v1.0.88                                      │
00:00:54 v #691 > > │    Compiling unicode-ident v1.0.13                                    │
00:00:54 v #692 > > │    Compiling once_cell v1.20.2                                        │
00:00:54 v #693 > > │    Compiling num-traits v0.2.19                                       │
00:00:54 v #694 > > │    Compiling fastrand v2.1.1                                          │
00:00:54 v #695 > > │    Compiling rand_core v0.6.4                                         │
00:00:54 v #696 > > │    Compiling libm v0.2.8                                              │
00:00:54 v #697 > > │    Compiling windows-sys v0.59.0                                      │
00:00:54 v #698 > > │    Compiling bit-vec v0.6.3                                           │
00:00:54 v #699 > > │    Compiling quick-error v1.2.3                                       │
00:00:54 v #700 > > │    Compiling fnv v1.0.7                                               │
00:00:54 v #701 > > │    Compiling wait-timeout v0.2.0                                      │
00:00:54 v #702 > > │    Compiling bit-set v0.5.3                                           │
00:00:54 v #703 > > │    Compiling rand_xorshift v0.3.0                                     │
00:00:54 v #704 > > │    Compiling lazy_static v1.5.0                                       │
00:00:54 v #705 > > │    Compiling minimal-lexical v0.2.1                                   │
00:00:54 v #706 > > │    Compiling bitflags v2.6.0                                          │
00:00:54 v #707 > > │    Compiling unarray v0.1.4                                           │
00:00:54 v #708 > > │    Compiling memchr v2.7.4                                            │
00:00:54 v #709 > > │    Compiling fable_library_rust v0.1.0                                  │
00:00:54 v #710 > > │ (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)     │
00:00:54 v #711 > > │    Compiling quote v1.0.37                                            │
00:00:54 v #712 > > │    Compiling nom v7.1.3                                               │
00:00:54 v #713 > > │    Compiling syn v2.0.79                                              │
00:00:54 v #714 > > │    Compiling tempfile v3.13.0                                         │
00:00:54 v #715 > > │    Compiling rusty-fork v0.3.0                                        │
00:00:54 v #716 > > │    Compiling zerocopy-derive v0.7.35                                  │
00:00:54 v #717 > > │    Compiling thiserror-impl v1.0.64                                   │
00:00:54 v #718 > > │    Compiling zerocopy v0.7.35                                         │
00:00:54 v #719 > > │    Compiling thiserror v1.0.64                                        │
00:00:54 v #720 > > │    Compiling ppv-lite86 v0.2.20                                       │
00:00:54 v #721 > > │    Compiling rand_chacha v0.3.1                                       │
00:00:54 v #722 > > │    Compiling rand v0.8.5                                              │
00:00:54 v #723 > > │    Compiling proptest v1.5.0                                          │
00:00:54 v #724 > > │    Compiling spiral_temp_test v0.0.1                                    │
00:00:54 v #725 > > │ (C:\home\git\polyglot\apps\spiral\temp\test)                               │
00:00:54 v #726 > > │ warning: struct `Cart` is never constructed                           │
00:00:54 v #727 > > │   --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:41:8       │
00:00:54 v #728 > > │    |                                                                  │
00:00:54 v #729 > > │ 41 | struct Cart {                                                    │
00:00:54 v #730 > > │    |        ^^^^                                                      │
00:00:54 v #731 > > │    |                                                                  │
00:00:54 v #732 > > │    = note: `#[warn(dead_code)]` on by default                         │
00:00:54 v #733 > > │                                                                       │
00:00:54 v #734 > > │ warning: associated items `new`, `add_item`, and `remove_item` are      │
00:00:54 v #735 > > │ never used                                                                 │
00:00:54 v #736 > > │   --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:46:8       │
00:00:54 v #737 > > │    |                                                                  │
00:00:54 v #738 > > │ 45 | impl Cart {                                                      │
00:00:54 v #739 > > │    | --------- associated items in this implementation                │
00:00:54 v #740 > > │ 46 |     fn new() -> Cart {                                           │
00:00:54 v #741 > > │    |        ^^^                                                       │
00:00:54 v #742 > > │ ...                                                                   │
00:00:54 v #743 > > │ 50 |     fn add_item(&mut self, item: Item) {                         │
00:00:54 v #744 > > │    |        ^^^^^^^^                                                  │
00:00:54 v #745 > > │ ...                                                                   │
00:00:54 v #746 > > │ 56 |     fn remove_item(&mut self, item: &Item) {                     │
00:00:54 v #747 > > │    |        ^^^^^^^^^^^                                               │
00:00:54 v #748 > > │                                                                       │
00:00:54 v #749 > > │ warning: function `parse_comment` is never used                       │
00:00:54 v #750 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:124:4     │
00:00:54 v #751 > > │     |                                                                 │
00:00:54 v #752 > > │ 124 | fn parse_comment(input: &str) -> IResult<&str, SpiralToken> {   │
00:00:54 v #753 > > │     |    ^^^^^^^^^^^^^                                                │
00:00:54 v #754 > > │                                                                       │
00:00:54 v #755 > > │ warning: function `parse_string` is never used                        │
00:00:54 v #756 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:130:4     │
00:00:54 v #757 > > │     |                                                                 │
00:00:54 v #758 > > │ 130 | fn parse_string(input: &str) -> IResult<&str, SpiralToken> {    │
00:00:54 v #759 > > │     |    ^^^^^^^^^^^^                                                 │
00:00:54 v #760 > > │                                                                       │
00:00:54 v #761 > > │ warning: function `parse_identifier` is never used                    │
00:00:54 v #762 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:145:4     │
00:00:54 v #763 > > │     |                                                                 │
00:00:54 v #764 > > │ 145 | fn parse_identifier(input: &str) -> IResult<&str, SpiralToken> {[  │
00:00:54 v #765 > > │ 0m                                                                           │
00:00:54 v #766 > > │     |    ^^^^^^^^^^^^^^^^                                             │
00:00:54 v #767 > > │                                                                       │
00:00:54 v #768 > > │ warning: function `parse_integer` is never used                       │
00:00:54 v #769 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:157:4     │
00:00:54 v #770 > > │     |                                                                 │
00:00:54 v #771 > > │ 157 | fn parse_integer(input: &str) -> IResult<&str, SpiralToken> {   │
00:00:54 v #772 > > │     |    ^^^^^^^^^^^^^                                                │
00:00:54 v #773 > > │                                                                       │
00:00:54 v #774 > > │ warning: function `parse_operator` is never used                      │
00:00:54 v #775 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:165:4     │
00:00:54 v #776 > > │     |                                                                 │
00:00:54 v #777 > > │ 165 | fn parse_operator(input: &str) -> IResult<&str, SpiralToken> {  │
00:00:54 v #778 > > │     |    ^^^^^^^^^^^^^^                                               │
00:00:54 v #779 > > │                                                                       │
00:00:54 v #780 > > │ warning: function `parse_token` is never used                         │
00:00:54 v #781 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:170:4     │
00:00:54 v #782 > > │     |                                                                 │
00:00:54 v #783 > > │ 170 | fn parse_token(input: &str) -> IResult<&str, SpiralToken> {     │
00:00:54 v #784 > > │     |    ^^^^^^^^^^^                                                  │
00:00:54 v #785 > > │                                                                       │
00:00:54 v #786 > > │ warning: function `format_token` is never used                        │
00:00:54 v #787 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:180:4     │
00:00:54 v #788 > > │     |                                                                 │
00:00:54 v #789 > > │ 180 | fn format_token(token: &SpiralToken) -> String {                │
00:00:54 v #790 > > │     |    ^^^^^^^^^^^^                                                 │
00:00:54 v #791 > > │                                                                       │
00:00:54 v #792 > > │ warning: function `parse_expression` is never used                    │
00:00:54 v #793 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:201:4     │
00:00:54 v #794 > > │     |                                                                 │
00:00:54 v #795 > > │ 201 | fn parse_expression(input: &str) -> IResult<&str, SpiralToken> {[  │
00:00:54 v #796 > > │ 0m                                                                           │
00:00:54 v #797 > > │     |    ^^^^^^^^^^^^^^^^                                             │
00:00:54 v #798 > > │                                                                       │
00:00:54 v #799 > > │ warning: `spiral_temp_test` (bin "spiral_temp_test") generated 10       │
00:00:54 v #800 > > │ warnings                                                                   │
00:00:54 v #801 > > │     Finished `release` profile [optimized] target(s) in 21.82s        │
00:00:54 v #802 > > │                                                                              │
00:00:54 v #803 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 v #804 > >
00:00:54 v #805 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 v #806 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 v #807 > > │ ### run release tests with output enabled                                    │
00:00:54 v #808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 v #809 > >
00:00:54 v #810 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:54 v #811 > > { cargo test --release -- --show-output } | Invoke-Block
00:01:27 v #812 > >
00:01:27 v #813 > > ╭─[ 33.43s - stdout ]──────────────────────────────────────────────────────────╮
00:01:27 v #814 > > │    Compiling once_cell v1.20.2                                        │
00:01:27 v #815 > > │    Compiling fastrand v2.1.1                                          │
00:01:27 v #816 > > │    Compiling bit-vec v0.6.3                                           │
00:01:27 v #817 > > │    Compiling quick-error v1.2.3                                       │
00:01:27 v #818 > > │    Compiling wait-timeout v0.2.0                                      │
00:01:27 v #819 > > │    Compiling fnv v1.0.7                                               │
00:01:27 v #820 > > │    Compiling windows-sys v0.59.0                                      │
00:01:27 v #821 > > │    Compiling zerocopy v0.7.35                                         │
00:01:27 v #822 > > │    Compiling num-traits v0.2.19                                       │
00:01:27 v #823 > > │    Compiling rand_xorshift v0.3.0                                     │
00:01:27 v #824 > > │    Compiling minimal-lexical v0.2.1                                   │
00:01:27 v #825 > > │    Compiling bit-set v0.5.3                                           │
00:01:27 v #826 > > │    Compiling lazy_static v1.5.0                                       │
00:01:27 v #827 > > │    Compiling bitflags v2.6.0                                          │
00:01:27 v #828 > > │    Compiling memchr v2.7.4                                            │
00:01:27 v #829 > > │    Compiling unarray v0.1.4                                           │
00:01:27 v #830 > > │    Compiling fable_library_rust v0.1.0                                  │
00:01:27 v #831 > > │ (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)     │
00:01:27 v #832 > > │    Compiling thiserror v1.0.64                                        │
00:01:27 v #833 > > │    Compiling ppv-lite86 v0.2.20                                       │
00:01:27 v #834 > > │    Compiling nom v7.1.3                                               │
00:01:27 v #835 > > │    Compiling rand_chacha v0.3.1                                       │
00:01:27 v #836 > > │    Compiling tempfile v3.13.0                                         │
00:01:27 v #837 > > │    Compiling rand v0.8.5                                              │
00:01:27 v #838 > > │    Compiling rusty-fork v0.3.0                                        │
00:01:27 v #839 > > │    Compiling proptest v1.5.0                                          │
00:01:27 v #840 > > │    Compiling spiral_temp_test v0.0.1                                    │
00:01:27 v #841 > > │ (C:\home\git\polyglot\apps\spiral\temp\test)                               │
00:01:27 v #842 > > │     Finished `release` profile [optimized] target(s) in 33.10s        │
00:01:27 v #843 > > │      Running unittests main.rs                                          │
00:01:27 v #844 > > │ (C:\home\git\polyglot\workspace\target\release\deps\spiral_temp_test-98ee53c │
00:01:27 v #845 > > │ 37a2e3040.exe)                                                             │
00:01:27 v #846 > > │                                                                              │
00:01:27 v #847 > > │ running 3 tests                                                              │
00:01:27 v #848 > > │ test test_parse_number ... ok                                                │
00:01:27 v #849 > > │ test prop_parse_format_idempotent ... ok                                     │
00:01:27 v #850 > > │ test                                                                         │
00:01:27 v #851 > > │ adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged ... │
00:01:27 v #852 > > │ ok                                                                           │
00:01:27 v #853 > > │                                                                              │
00:01:27 v #854 > > │ successes:                                                                   │
00:01:27 v #855 > > │                                                                              │
00:01:27 v #856 > > │ ---- prop_parse_format_idempotent stdout ----                                │
00:01:27 v #857 > > │ input=StringLiteral("=gDl%W$D")                                              │
00:01:27 v #858 > > │ input=Comment("~&/14%85#1<JEf5")                                             │
00:01:27 v #859 > > │ input=Comment("p Q{w")                                                       │
00:01:27 v #860 > > │ input=Comment("|?QK:+6:<")                                                   │
00:01:27 v #861 > > │ input=Identifier("oUL37mqsukaEFbjJImR3WwpymY032DR")                          │
00:01:27 v #862 > > │ input=Operator("+")                                                          │
00:01:27 v #863 > > │ input=Comment("]#/h{[U!*:ec/*20G#&")                                         │
00:01:27 v #864 > > │ input=StringLiteral("T:2`/$f!=SF5BC<$^")                                     │
00:01:27 v #865 > > │ input=Identifier("NC9fQLS59AJ0")                                             │
00:01:27 v #866 > > │ input=Identifier("rlX4J13f7wZ9V93jskfpzY3YFne")                              │
00:01:27 v #867 > > │ input=Comment("H")                                                           │
00:01:27 v #868 > > │ input=StringLiteral("R$*{*%f'T :f`R&T`Fvzp.{h")                              │
00:01:27 v #869 > > │ input=Operator("=")                                                          │
00:01:27 v #870 > > │ input=Identifier("wdyEYy0")                                                  │
00:01:27 v #871 > > │ input=Operator("=")                                                          │
00:01:27 v #872 > > │ input=Comment("^^.\\")                                                       │
00:01:27 v #873 > > │ input=Operator("=")                                                          │
00:01:27 v #874 > > │ input=Integer(-39135973993010713)                                            │
00:01:27 v #875 > > │ input=Operator("+")                                                          │
00:01:27 v #876 > > │ input=StringLiteral("#:jgpk{<")                                              │
00:01:27 v #877 > > │ input=Comment("<pOi")                                                        │
00:01:27 v #878 > > │ input=Operator("+")                                                          │
00:01:27 v #879 > > │ input=StringLiteral("yS")                                                    │
00:01:27 v #880 > > │ input=Integer(2783147676559788730)                                           │
00:01:27 v #881 > > │ input=Identifier("qOKiwoU")                                                  │
00:01:27 v #882 > > │ input=StringLiteral("&<$Iio/")                                               │
00:01:27 v #883 > > │ input=Operator("(")                                                          │
00:01:27 v #884 > > │ input=Identifier("gJDRj6Y5R")                                                │
00:01:27 v #885 > > │ input=StringLiteral("WL%H~'")                                                │
00:01:27 v #886 > > │ input=StringLiteral("K<mL'`zX~})P6B|S&@>D%FN")                               │
00:01:27 v #887 > > │ input=Operator(")")                                                          │
00:01:27 v #888 > > │ input=Comment("v/9A?")                                                       │
00:01:27 v #889 > > │ input=Identifier("Pm51EU")                                                   │
00:01:27 v #890 > > │ input=Identifier("gcI")                                                      │
00:01:27 v #891 > > │ input=StringLiteral("=}Q0n.]i<?((n*:8N5v")                                   │
00:01:27 v #892 > > │ input=Integer(-7844397233699181633)                                          │
00:01:27 v #893 > > │ input=Operator("+")                                                          │
00:01:27 v #894 > > │ input=Comment("X?g$S-d.=T#n&\"t7Az,*Gt%.2^@%")                               │
00:01:27 v #895 > > │ input=Integer(-2552168369792868529)                                          │
00:01:27 v #896 > > │ input=StringLiteral("=}+%{y@$u$St{z{Tb%")                                    │
00:01:27 v #897 > > │ input=StringLiteral("m/l<`u&&`[y*}:r")                                       │
00:01:27 v #898 > > │ input=Comment("5&{\"iXF$:[/{P*:&+U&)T$=Tgmq")                                │
00:01:27 v #899 > > │ input=Comment(":{]W<adv=Ua*:M'r>")                                           │
00:01:27 v #900 > > │ input=Operator("(")                                                          │
00:01:27 v #901 > > │ input=Integer(1922702837369939894)                                           │
00:01:27 v #902 > > │ input=Operator("-")                                                          │
00:01:27 v #903 > > │ input=Identifier("wDX4IJDT2F4")                                              │
00:01:27 v #904 > > │ input=Identifier("UiMELqX4dnsey")                                            │
00:01:27 v #905 > > │ input=Integer(-6432184447591526326)                                          │
00:01:27 v #906 > > │ input=Integer(1618317288397818246)                                           │
00:01:27 v #907 > > │ input=StringLiteral("%(Iti{*R{")                                             │
00:01:27 v #908 > > │ input=StringLiteral("8?nS")                                                  │
00:01:27 v #909 > > │ input=Identifier("w7KPt1PY8lG4cp2H6O43B4pgh9xKPz42z")                        │
00:01:27 v #910 > > │ input=Integer(-3871716662170222868)                                          │
00:01:27 v #911 > > │ input=Comment("<sJ%=:.!h>A)=%NW*$uG'")                                       │
00:01:27 v #912 > > │ input=Comment("I>39rL3a8d>.")                                                │
00:01:27 v #913 > > │ input=Operator("+")                                                          │
00:01:27 v #914 > > │ input=Operator("/")                                                          │
00:01:27 v #915 > > │ input=Operator("*")                                                          │
00:01:27 v #916 > > │ input=Integer(610500455084884329)                                            │
00:01:27 v #917 > > │ input=Comment("\\$8:]\\J)$z-{")                                              │
00:01:27 v #918 > > │ input=Operator("/")                                                          │
00:01:27 v #919 > > │ input=Operator("*")                                                          │
00:01:27 v #920 > > │ input=Identifier("QLA4JS52Uis")                                              │
00:01:27 v #921 > > │ input=Identifier("tEuc")                                                     │
00:01:27 v #922 > > │ input=Operator("+")                                                          │
00:01:27 v #923 > > │ input=Integer(6908458130512796421)                                           │
00:01:27 v #924 > > │ input=Integer(-7560360890883218576)                                          │
00:01:27 v #925 > > │ input=StringLiteral("J/:'&yyY:Z&sF[cA?=PW{!g")                               │
00:01:27 v #926 > > │ input=StringLiteral("X*sZU/2U&%WgG,`'x/&_")                                  │
00:01:27 v #927 > > │ input=Identifier("GSyMq8K7BJ4ds")                                            │
00:01:27 v #928 > > │ input=Identifier("Pm0Qg2GE1qGOwnORmg")                                       │
00:01:27 v #929 > > │ input=Integer(2343730488876466287)                                           │
00:01:27 v #930 > > │ input=Identifier("Xbo7NFmQ652naA1r5qd63AeC0QYZeUqx2")                        │
00:01:27 v #931 > > │ input=Identifier("AlAjTXoe9")                                                │
00:01:27 v #932 > > │ input=Comment(".X/Pf,xxF,<0%/\\")                                            │
00:01:27 v #933 > > │ input=Integer(-9137445438932774809)                                          │
00:01:27 v #934 > > │ input=Comment("\"\\{V.XLADX|")                                               │
00:01:27 v #935 > > │ input=Operator("=")                                                          │
00:01:27 v #936 > > │ input=Operator("+")                                                          │
00:01:27 v #937 > > │ input=StringLiteral("r=0|'$.=aV{/'")                                         │
00:01:27 v #938 > > │ input=Comment("`YFxh%")                                                      │
00:01:27 v #939 > > │ input=StringLiteral("2!dj@;s'_?%MyO%{(KKPs;%3yKz:sp")                        │
00:01:27 v #940 > > │ input=Integer(-3061556411537268794)                                          │
00:01:27 v #941 > > │ input=StringLiteral("/%xJLj!4''wKy,$SKQ.{5Q")                                │
00:01:27 v #942 > > │ input=Comment("<GJ{\"s`NK*&3:m/C\\&{=H= 'EdN`\\O?0")                         │
00:01:27 v #943 > > │ input=Operator("-")                                                          │
00:01:27 v #944 > > │ input=Operator("+")                                                          │
00:01:27 v #945 > > │ input=StringLiteral("{qOQk{}b.*}@ORl<`a{{`")                                 │
00:01:27 v #946 > > │ input=Comment("m*")                                                          │
00:01:27 v #947 > > │ input=Comment(">=y/{$@`={")                                                  │
00:01:27 v #948 > > │ input=Operator(")")                                                          │
00:01:27 v #949 > > │ input=Comment("=\"Ws$=,'#jk}-#")                                             │
00:01:27 v #950 > > │ input=Operator("*")                                                          │
00:01:27 v #951 > > │ input=Identifier("v")                                                        │
00:01:27 v #952 > > │ input=Integer(-3655759116183993583)                                          │
00:01:27 v #953 > > │ input=Comment("=?{b/.r%PDW*r@<<*mA\"p'.")                                    │
00:01:27 v #954 > > │ input=StringLiteral("_u^RBQ%e`7<$=b:y>:%J.<py5w/.n@z")                       │
00:01:27 v #955 > > │ input=Identifier("KMc470n2ae8abfolLm")                                       │
00:01:27 v #956 > > │ input=StringLiteral("N2?^r[&{")                                              │
00:01:27 v #957 > > │ input=StringLiteral("=(WEj +f%i%")                                           │
00:01:27 v #958 > > │ input=Integer(-5810351634864111828)                                          │
00:01:27 v #959 > > │ input=Operator("=")                                                          │
00:01:27 v #960 > > │ input=Integer(1617013218986244447)                                           │
00:01:27 v #961 > > │ input=Identifier("ku")                                                       │
00:01:27 v #962 > > │ input=Comment("R=<%W@j!`/@s:{=M,m%")                                         │
00:01:27 v #963 > > │ input=Operator("*")                                                          │
00:01:27 v #964 > > │ input=Comment("Z!:uRmX1wa.t=^?0m$O?Eq/")                                     │
00:01:27 v #965 > > │ input=StringLiteral(":t'J/[{?$#;*g%_s*hus9Om'&3g.0h:")                       │
00:01:27 v #966 > > │ input=Integer(-5907736971942360550)                                          │
00:01:27 v #967 > > │ input=Comment("%#U4\";<C<^<4,+bsu*d;>.\\$#Z/MY")                             │
00:01:27 v #968 > > │ input=Comment("'(-= I$Y`[='=o6iE_Me={a%7mU/I=6")                             │
00:01:27 v #969 > > │ input=StringLiteral("{'SMY_])x_{iUA")                                        │
00:01:27 v #970 > > │ input=StringLiteral("w")                                                     │
00:01:27 v #971 > > │ input=Operator(")")                                                          │
00:01:27 v #972 > > │ input=Comment("XeS:xR^Tp\\\"\\iq*aE+")                                       │
00:01:27 v #973 > > │ input=Integer(-7652811115507331456)                                          │
00:01:27 v #974 > > │ input=Identifier("Gxj4twq")                                                  │
00:01:27 v #975 > > │ input=Comment("#}5[-o`AHa#ea`~<_%`p`LL=eF{`6I'&")                            │
00:01:27 v #976 > > │ input=Comment("&]?\\\"'#H")                                                  │
00:01:27 v #977 > > │ input=Comment("?.s=t*iY{$$3<<o*`aZ&S:(`=c%u{?")                              │
00:01:27 v #978 > > │ input=Identifier("M3mD81J54lMIpF1721RNE425mK")                               │
00:01:27 v #979 > > │ input=Comment(".{1")                                                         │
00:01:27 v #980 > > │ input=Identifier("w0k88TctQejlYvNz1508eKf2edgE")                             │
00:01:27 v #981 > > │ input=Operator("(")                                                          │
00:01:27 v #982 > > │ input=Identifier("q3")                                                       │
00:01:27 v #983 > > │ input=Integer(9023529324714526922)                                           │
00:01:27 v #984 > > │ input=StringLiteral("RG}XZsAmg`y*lZIC:Ohj-$q.0M")                            │
00:01:27 v #985 > > │ input=StringLiteral("l4'X?$V,S?'e&*_E3tr")                                   │
00:01:27 v #986 > > │ input=Operator("*")                                                          │
00:01:27 v #987 > > │ input=StringLiteral("U")                                                     │
00:01:27 v #988 > > │ input=Identifier("cqkU0cx7xLNmQNKhC7rp21310C1Jnd")                           │
00:01:27 v #989 > > │ input=StringLiteral("b6`;@</-SH^/<E=^>w/hj |7.$.=")                          │
00:01:27 v #990 > > │ input=Operator("+")                                                          │
00:01:27 v #991 > > │ input=StringLiteral("TZ&R^<Ln7J?kEk)S-)>/")                                  │
00:01:27 v #992 > > │ input=Comment("Xj:vM{e>/|#")                                                 │
00:01:27 v #993 > > │ input=Integer(-6368670201394589013)                                          │
00:01:27 v #994 > > │ input=Comment("=")                                                           │
00:01:27 v #995 > > │ input=Identifier("yA0BrDl4F4m3O")                                            │
00:01:27 v #996 > > │ input=Comment("")                                                            │
00:01:27 v #997 > > │ input=StringLiteral("q{E}<<?}e9j$")                                          │
00:01:27 v #998 > > │ input=StringLiteral("w/.YcMD9~DMu36`_b:OR.WpAYY>k?C")                        │
00:01:27 v #999 > > │ input=Operator("-")                                                          │
00:01:27 v #1000 > > │ input=StringLiteral("VU.Y?VGW")                                              │
00:01:27 v #1001 > > │ input=Comment("{\"etpPr`=45$\\")                                             │
00:01:27 v #1002 > > │ input=Comment("+:`/")                                                        │
00:01:27 v #1003 > > │ input=Identifier("aKR7lhPR")                                                 │
00:01:27 v #1004 > > │ input=Identifier("SzR3M")                                                    │
00:01:27 v #1005 > > │ input=Comment("o/V/ZP&.q[\"/Ksl`$ZUuboNr`c")                                 │
00:01:27 v #1006 > > │ input=StringLiteral("q-<:%QG^^aRpc%c/K}:G'<&e")                              │
00:01:27 v #1007 > > │ input=Identifier("dx0mGW5a56")                                               │
00:01:27 v #1008 > > │ input=Identifier("C9e7oAXT86nxcf1g86n6jDj04a")                               │
00:01:27 v #1009 > > │ input=Comment("b\".PR~\\{ \\Z$'}rp~\\")                                      │
00:01:27 v #1010 > > │ input=Identifier("VdW4l8ga4KhGhYyRLtD6a3f")                                  │
00:01:27 v #1011 > > │ input=StringLiteral("K8;OnP]mo0.{%-&}r")                                     │
00:01:27 v #1012 > > │ input=Operator("=")                                                          │
00:01:27 v #1013 > > │ input=Comment("EO=M<~*/fH,el4")                                              │
00:01:27 v #1014 > > │ input=StringLiteral("EQ`_-#@u:iR")                                           │
00:01:27 v #1015 > > │ input=Comment("#*'M[)Qtzc&")                                                 │
00:01:27 v #1016 > > │ input=StringLiteral("$^ql%hDe4/U',*7>Pn&>I.:?=7jNa}")                        │
00:01:27 v #1017 > > │ input=Identifier("i")                                                        │
00:01:27 v #1018 > > │ input=Operator("-")                                                          │
00:01:27 v #1019 > > │ input=Operator("*")                                                          │
00:01:27 v #1020 > > │ input=Integer(1591183249591596070)                                           │
00:01:27 v #1021 > > │ input=Integer(-7400473802862976640)                                          │
00:01:27 v #1022 > > │ input=Operator("-")                                                          │
00:01:27 v #1023 > > │ input=Integer(-6563383029713679541)                                          │
00:01:27 v #1024 > > │ input=Identifier("YJVNCCZjeYYno0nmkVuYWi94d")                                │
00:01:27 v #1025 > > │ input=Integer(-4574453652785043130)                                          │
00:01:27 v #1026 > > │ input=Integer(-4770697891662599905)                                          │
00:01:27 v #1027 > > │ input=StringLiteral(":<WiOk:$N&A:1=opm_*!R/")                                │
00:01:27 v #1028 > > │ input=Identifier("KZ8I3NY0nkP08cz50dMmTCV7wlgeH")                            │
00:01:27 v #1029 > > │ input=Operator("*")                                                          │
00:01:27 v #1030 > > │ input=Comment("}78\"iqsjY")                                                  │
00:01:27 v #1031 > > │ input=Comment("2`:@\\<BusQ8-u\\srH7\"_8V/-:\\")                              │
00:01:27 v #1032 > > │ input=Integer(357750514457598346)                                            │
00:01:27 v #1033 > > │ input=Operator("(")                                                          │
00:01:27 v #1034 > > │ input=StringLiteral("hE$%*u/4zWyveKLDdNuwR?K}r_C")                           │
00:01:27 v #1035 > > │ input=StringLiteral("v`I5`3UE")                                              │
00:01:27 v #1036 > > │ input=Operator(")")                                                          │
00:01:27 v #1037 > > │ input=StringLiteral("`w")                                                    │
00:01:27 v #1038 > > │ input=Operator("*")                                                          │
00:01:27 v #1039 > > │ input=Integer(-5425257788469519075)                                          │
00:01:27 v #1040 > > │ input=StringLiteral("5.H*[A8TDA={u8a?)bBpL;'s?{7")                           │
00:01:27 v #1041 > > │ input=Integer(-3749444598382213353)                                          │
00:01:27 v #1042 > > │ input=Integer(2738836581164370115)                                           │
00:01:27 v #1043 > > │ input=Comment("%&br*H:S{z/?\"CqD%71&F")                                      │
00:01:27 v #1044 > > │ input=Comment("EF/@/Qg2J{/{g_%'\"j/IT&")                                     │
00:01:27 v #1045 > > │ input=StringLiteral("Gc`q[.L# &%%{9?!&o:=")                                  │
00:01:27 v #1046 > > │ input=Identifier("YW")                                                       │
00:01:27 v #1047 > > │ input=Operator("-")                                                          │
00:01:27 v #1048 > > │ input=Operator("+")                                                          │
00:01:27 v #1049 > > │ input=Integer(130226500234403823)                                            │
00:01:27 v #1050 > > │ input=StringLiteral(" FUc}{qi)8wd'/[m^S'P^xHYdRm")                           │
00:01:27 v #1051 > > │ input=Operator("(")                                                          │
00:01:27 v #1052 > > │ input=Comment("$R=v")                                                        │
00:01:27 v #1053 > > │ input=StringLiteral("h2`N")                                                  │
00:01:27 v #1054 > > │ input=Identifier("U7414xY4urnR2U6bbU5zOATp9er")                              │
00:01:27 v #1055 > > │ input=Operator("(")                                                          │
00:01:27 v #1056 > > │ input=Operator("=")                                                          │
00:01:27 v #1057 > > │ input=StringLiteral("7.{%$3c2Y;")                                            │
00:01:27 v #1058 > > │ input=Integer(8452070445771095524)                                           │
00:01:27 v #1059 > > │ input=StringLiteral("s;?.=HV0?)'7?}G/!MH=sPG")                               │
00:01:27 v #1060 > > │ input=StringLiteral("KuH:'^V")                                               │
00:01:27 v #1061 > > │ input=StringLiteral("[?gPa.?2[E*5F7'`X@OEwuL")                               │
00:01:27 v #1062 > > │ input=Comment("%E#")                                                         │
00:01:27 v #1063 > > │ input=Integer(-7576084165569638482)                                          │
00:01:27 v #1064 > > │ input=Integer(5020090820066201910)                                           │
00:01:27 v #1065 > > │ input=StringLiteral(":Du??#n1")                                              │
00:01:27 v #1066 > > │ input=Comment("=\\<&L~[:.{wh($?E_$")                                         │
00:01:27 v #1067 > > │ input=Integer(-6993064496301679964)                                          │
00:01:27 v #1068 > > │ input=StringLiteral("<:(o&$]/^^")                                            │
00:01:27 v #1069 > > │ input=Integer(4972015458876010671)                                           │
00:01:27 v #1070 > > │ input=Operator(")")                                                          │
00:01:27 v #1071 > > │ input=Integer(-7938332718698690637)                                          │
00:01:27 v #1072 > > │ input=StringLiteral("`I<i5j1%A`B/U[67Dya.*)_R<{jY3K")                        │
00:01:27 v #1073 > > │ input=StringLiteral("tL'SpyWuF*O.@Z:&9eP.r*")                                │
00:01:27 v #1074 > > │ input=Comment("2%!?Wd/1B!\"mpsnt')laIy-5L(?r0")                              │
00:01:27 v #1075 > > │ input=StringLiteral(")tj.a0osB}@D`Oi/VJ{L#xPd`R{")                           │
00:01:27 v #1076 > > │ input=Operator("(")                                                          │
00:01:27 v #1077 > > │ input=Integer(-8669184879734294987)                                          │
00:01:27 v #1078 > > │ input=Comment("K:_x&36K%\\pT")                                               │
00:01:27 v #1079 > > │ input=Operator("/")                                                          │
00:01:27 v #1080 > > │ input=Operator("(")                                                          │
00:01:27 v #1081 > > │ input=Identifier("Ee41hgeXnKzR2l1")                                          │
00:01:27 v #1082 > > │ input=Operator("*")                                                          │
00:01:27 v #1083 > > │ input=Identifier("fBiI11xvtv9O4RP1RTnr9W")                                   │
00:01:27 v #1084 > > │ input=Identifier("k9u8cirrKurir8Z7a2QStqZ9w4L5v")                            │
00:01:27 v #1085 > > │ input=Integer(8626597973553086818)                                           │
00:01:27 v #1086 > > │ input=Operator("(")                                                          │
00:01:27 v #1087 > > │ input=StringLiteral("<!=v{")                                                 │
00:01:27 v #1088 > > │ input=Operator("(")                                                          │
00:01:27 v #1089 > > │ input=Integer(3325036444428992078)                                           │
00:01:27 v #1090 > > │ input=StringLiteral("`VL@`Jx")                                               │
00:01:27 v #1091 > > │ input=StringLiteral("U/J~?2.B?*j")                                           │
00:01:27 v #1092 > > │ input=Integer(-5453524217208289566)                                          │
00:01:27 v #1093 > > │ input=Identifier("R2sOF63u02C84ZL65Hjd")                                     │
00:01:27 v #1094 > > │ input=Comment("`(")                                                          │
00:01:27 v #1095 > > │ input=StringLiteral("")                                                      │
00:01:27 v #1096 > > │ input=StringLiteral("8pp1l.")                                                │
00:01:27 v #1097 > > │ input=Identifier("knkoBB8vapBq")                                             │
00:01:27 v #1098 > > │ input=Integer(3396786360568379486)                                           │
00:01:27 v #1099 > > │ input=StringLiteral(":)}/:5=C'[j$I/=K")                                      │
00:01:27 v #1100 > > │ input=Integer(4498683703685745685)                                           │
00:01:27 v #1101 > > │ input=Integer(4593743617077076298)                                           │
00:01:27 v #1102 > > │ input=Operator("-")                                                          │
00:01:27 v #1103 > > │ input=Operator("+")                                                          │
00:01:27 v #1104 > > │ input=Integer(4945018329834009713)                                           │
00:01:27 v #1105 > > │ input=StringLiteral("H4/T18'/D7:.D=+%OZ`z.wXe0>D.&(")                        │
00:01:27 v #1106 > > │ input=Integer(-1977611975530147837)                                          │
00:01:27 v #1107 > > │ input=Comment("1*%Hin:gS&Oh/<t+wN\"")                                        │
00:01:27 v #1108 > > │ input=Operator("*")                                                          │
00:01:27 v #1109 > > │ input=Integer(-9206341032086878184)                                          │
00:01:27 v #1110 > > │ input=Comment("u\" e4U/;/E\\")                                               │
00:01:27 v #1111 > > │ input=Operator("=")                                                          │
00:01:27 v #1112 > > │ input=Operator("+")                                                          │
00:01:27 v #1113 > > │                                                                              │
00:01:27 v #1114 > > │                                                                              │
00:01:27 v #1115 > > │ successes:                                                                   │
00:01:27 v #1116 > > │     adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged │
00:01:27 v #1117 > > │     prop_parse_format_idempotent                                             │
00:01:27 v #1118 > > │     test_parse_number                                                        │
00:01:27 v #1119 > > │                                                                              │
00:01:27 v #1120 > > │ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │
00:01:27 v #1121 > > │ finished in 0.18s                                                            │
00:01:27 v #1122 > > │                                                                              │
00:01:27 v #1123 > > │                                                                              │
00:01:27 v #1124 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:27 v #1125 > >
00:01:27 v #1126 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:27 v #1127 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:27 v #1128 > > │ ### execute the binary in release mode                                       │
00:01:27 v #1129 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:27 v #1130 > >
00:01:27 v #1131 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:01:27 v #1132 > > { . $ScriptDir/../../../../workspace/target/release/spiral_temp_test$(_exe) } |
00:01:27 v #1133 > > Invoke-Block
00:01:27 v #1134 > >
00:01:27 v #1135 > > ╭─[ 20.01ms - stdout ]─────────────────────────────────────────────────────────╮
00:01:27 v #1136 > > │ app=test                                                                     │
00:01:27 v #1137 > > │                                                                              │
00:01:27 v #1138 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:28 v #1139 > 00:01:25 v #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 89086 }
00:01:28 v #1140 > 00:01:25 d #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:29 v #1141 > 00:01:27 v #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb to html
00:01:29 v #1142 > 00:01:27 v #6 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbformat\__init__.py:96: MissingIDFieldWarning: Cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:29 v #1143 > 00:01:27 v #7 !   validate(nb)
00:01:30 v #1144 > 00:01:27 v #8 ! C:\Users\i574n\scoop\apps\python312\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:01:30 v #1145 > 00:01:27 v #9 !   return _pygments_highlight(
00:01:30 v #1146 > 00:01:28 v #10 ! [NbConvertApp] Writing 357606 bytes to c:\home\git\polyglot\apps\spiral\temp\test\build.dib.html
00:01:30 v #1147 > 00:01:28 v #11 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 874 }
00:01:30 v #1148 > 00:01:28 d #12 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 874 }
00:01:30 v #1149 > 00:01:28 d #13 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/temp/test/build.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/temp/test/build.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:31 v #1150 > 00:01:28 v #14 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:31 v #1151 > 00:01:28 d #15 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:31 v #1152 > 00:01:28 d #16 spiral_builder.run / dib / { exit_code = 0; result_length = 90019 }
00:01:31 d #1153 runtime.execute_with_options_async / { exit_code = 0; output_length = 94887 }
00:01:31 d #4 main / executeCommand / exitCode: 0 / command: ../../../../workspace/target/release/spiral_builder.exe dib --path build.dib
00:01:31 v #6 async.run_with_timeout_async / { timeout = 100 }
In [ ]:
{ pwsh ../apps/spiral/vscode/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

Checked 203 installs across 191 packages (no changes) [156.00ms]
Symlink already exists: C:\home\git\polyglot\apps\spiral\vscode\LICENSE -> C:\home\git\polyglot\LICENSE

  out\src\extension.js                  2.4kb
  out\media\cellOutputScrollButtons.js  1.9kb

⚡ Done in 7ms
 DONE  Packaged: out\spiral-vscode-0.0.1.vsix (26 files, 98.15KB)
In [ ]:
{ pwsh ../apps/ipfs/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

 Done! Checked 220 packages (no changes) [171.00ms]
In [ ]:
{ pwsh ./outdated.ps1 } | Invoke-Block
Paket version 8.1.0-alpha004+7aa412f49b32de979c3d5acde07e88e6d47c965b
Resolving dependency graph...
Outdated packages found:
  Group: Main
    * Expecto 10.2.1 -> 11.0.0-alpha2
    * Expecto.FsCheck 10.2.1-fscheck3 -> 11.0.0-alpha2-fscheck2
    * FsCheck 3.0.0-rc3 -> 2.16.6
    * FSharp.Core 8.0.300-beta.24080.5 -> 9.0.100-beta.24466.6
    * Microsoft.AspNetCore.Connections.Abstractions 7.0 -> 9.0.0-rc.2.24474.3
    * Microsoft.AspNetCore.Http.Connections.Client 7.0 -> 9.0.0-rc.2.24474.3
    * Microsoft.AspNetCore.Http.Connections.Common 7.0 -> 9.0.0-rc.2.24474.3
    * Microsoft.AspNetCore.SignalR.Client 7.0 -> 9.0.0-rc.2.24474.3
    * Microsoft.AspNetCore.SignalR.Client.Core 7.0 -> 9.0.0-rc.2.24474.3
    * Microsoft.AspNetCore.SignalR.Common 7.0 -> 9.0.0-rc.2.24474.3
    * Microsoft.AspNetCore.SignalR.Protocols.Json 7.0 -> 9.0.0-rc.2.24474.3
    * Microsoft.Extensions.DependencyInjection 8.0 -> 9.0.0-rc.2.24473.5
    * Microsoft.Extensions.DependencyInjection.Abstractions 8.0.1 -> 9.0.0-rc.2.24473.5
    * Microsoft.Extensions.Features 7.0 -> 9.0.0-rc.2.24474.3
    * Microsoft.Extensions.Logging 8.0 -> 9.0.0-rc.2.24473.5
    * Microsoft.Extensions.Logging.Abstractions 8.0.1 -> 9.0.0-rc.2.24473.5
    * Microsoft.Extensions.Options 8.0.2 -> 9.0.0-rc.2.24473.5
    * Microsoft.Extensions.Primitives 8.0 -> 9.0.0-rc.2.24473.5
    * Mono.Cecil 0.11.5 -> 0.11.6
    * System.CodeDom 8.0 -> 9.0.0-rc.2.24473.5
    * System.Configuration.ConfigurationManager 8.0 -> 8.0.1
    * System.Diagnostics.EventLog 8.0 -> 8.0.1
    * System.Management 7.0 -> 9.0.0-rc.2.24473.5
    * System.Threading.Channels 8.0 -> 9.0.0-rc.2.24473.5
Total time taken: 50 seconds

CheckToml / toml: C:\home\git\polyglot\workspace\Cargo.toml
chat_contract_tests
================
Name                        Project  Compat   Latest   Kind    Platform
----                        -------  ------   ------   ----    --------
android-tzdata              0.1.1    ---      Removed  Normal  cfg(target_os = "android")
android_system_properties   0.1.5    ---      Removed  Normal  cfg(target_os = "android")
autocfg                     1.4.0    ---      Removed  Build   ---
bumpalo                     3.16.0   ---      Removed  Normal  ---
cc                          1.1.30   ---      Removed  Build   ---
cfg-if                      1.0.0    ---      Removed  Normal  ---
chrono                      0.4.38   ---      Removed  Normal  ---
core-foundation-sys         0.8.7    ---      Removed  Normal  cfg(any(target_os = "macos", target_os = "ios"))
equivalent                  1.0.1    Removed  Removed  Normal  ---
hashbrown                   0.15.0   0.12.3   0.12.3   Normal  ---
iana-time-zone              0.1.61   ---      Removed  Normal  cfg(unix)
iana-time-zone-haiku        0.1.2    ---      Removed  Normal  cfg(target_os = "haiku")
indexmap                    2.6.0    1.9.3    1.9.3    Normal  ---
jobserver                   0.1.32   ---      Removed  Normal  ---
js-sys                      0.3.72   ---      Removed  Normal  cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))
js-sys                      0.3.72   ---      Removed  Normal  cfg(all(target_arch = "wasm32", target_os = "unknown"))
libc                        0.2.161  ---      Removed  Normal  ---
libc                        0.2.161  ---      Removed  Normal  cfg(unix)
libm                        0.2.8    ---      Removed  Normal  ---
log                         0.4.22   ---      Removed  Normal  ---
near-sandbox-utils          0.8.0    ---      0.9.0    Build   ---
near-sandbox-utils          0.9.0    0.8.0    ---      Normal  ---
num-traits                  0.2.19   ---      Removed  Normal  ---
once_cell                   1.20.2   ---      Removed  Normal  ---
proc-macro2                 1.0.88   ---      Removed  Normal  ---
quote                       1.0.37   ---      Removed  Normal  ---
serde                       1.0.210  ---      Removed  Normal  ---
serde_derive                1.0.210  ---      Removed  Normal  ---
shlex                       1.3.0    ---      Removed  Normal  ---
syn                         2.0.79   ---      Removed  Normal  ---
unicode-ident               1.0.13   ---      Removed  Normal  ---
wasm-bindgen                0.2.95   ---      Removed  Normal  ---
wasm-bindgen                0.2.95   ---      Removed  Normal  cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))
wasm-bindgen                0.2.95   ---      Removed  Normal  cfg(all(target_arch = "wasm32", target_os = "unknown"))
wasm-bindgen-backend        0.2.95   ---      Removed  Normal  ---
wasm-bindgen-macro          0.2.95   ---      Removed  Normal  ---
wasm-bindgen-macro-support  0.2.95   ---      Removed  Normal  ---
wasm-bindgen-shared         0.2.95   ---      Removed  Normal  ---
windows-core                0.52.0   ---      Removed  Normal  cfg(target_os = "windows")
windows-targets             0.52.6   ---      Removed  Normal  ---
windows-targets             0.52.6   ---      Removed  Normal  cfg(windows)
windows_aarch64_gnullvm     0.52.6   ---      Removed  Normal  aarch64-pc-windows-gnullvm
windows_aarch64_msvc        0.52.6   ---      Removed  Normal  cfg(all(target_arch = "aarch64", target_env = "msvc", not(windows_raw_dylib)))
windows_i686_gnu            0.52.6   ---      Removed  Normal  cfg(all(target_arch = "x86", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib)))
windows_i686_gnullvm        0.52.6   ---      Removed  Normal  i686-pc-windows-gnullvm
windows_i686_msvc           0.52.6   ---      Removed  Normal  cfg(all(target_arch = "x86", target_env = "msvc", not(windows_raw_dylib)))
windows_x86_64_gnu          0.52.6   ---      Removed  Normal  cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib)))
windows_x86_64_gnullvm      0.52.6   ---      Removed  Normal  x86_64-pc-windows-gnullvm
windows_x86_64_msvc         0.52.6   ---      Removed  Normal  cfg(all(any(target_arch = "x86_64", target_arch = "arm64ec"), target_env = "msvc", not(windows_raw_dylib)))

spiral_wasm
================
Name                        Project  Compat   Latest   Kind    Platform
----                        -------  ------   ------   ----    --------
android-tzdata              0.1.1    ---      Removed  Normal  cfg(target_os = "android")
android_system_properties   0.1.5    ---      Removed  Normal  cfg(target_os = "android")
autocfg                     1.4.0    ---      Removed  Build   ---
bumpalo                     3.16.0   ---      Removed  Normal  ---
cc                          1.1.30   ---      Removed  Build   ---
cfg-if                      1.0.0    ---      Removed  Normal  ---
chrono                      0.4.38   ---      Removed  Normal  ---
core-foundation-sys         0.8.7    ---      Removed  Normal  cfg(any(target_os = "macos", target_os = "ios"))
equivalent                  1.0.1    Removed  Removed  Normal  ---
hashbrown                   0.15.0   0.12.3   0.12.3   Normal  ---
iana-time-zone              0.1.61   ---      Removed  Normal  cfg(unix)
iana-time-zone-haiku        0.1.2    ---      Removed  Normal  cfg(target_os = "haiku")
indexmap                    2.6.0    1.9.3    1.9.3    Normal  ---
jobserver                   0.1.32   ---      Removed  Normal  ---
js-sys                      0.3.72   ---      Removed  Normal  cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))
js-sys                      0.3.72   ---      Removed  Normal  cfg(all(target_arch = "wasm32", target_os = "unknown"))
libc                        0.2.161  ---      Removed  Normal  ---
libc                        0.2.161  ---      Removed  Normal  cfg(unix)
libm                        0.2.8    ---      Removed  Normal  ---
log                         0.4.22   ---      Removed  Normal  ---
near-sandbox-utils          0.8.0    ---      0.9.0    Build   ---
near-sandbox-utils          0.9.0    0.8.0    ---      Normal  ---
num-traits                  0.2.19   ---      Removed  Normal  ---
once_cell                   1.20.2   ---      Removed  Normal  ---
proc-macro2                 1.0.88   ---      Removed  Normal  ---
quote                       1.0.37   ---      Removed  Normal  ---
serde                       1.0.210  ---      Removed  Normal  ---
serde_derive                1.0.210  ---      Removed  Normal  ---
shlex                       1.3.0    ---      Removed  Normal  ---
syn                         2.0.79   ---      Removed  Normal  ---
unicode-ident               1.0.13   ---      Removed  Normal  ---
wasm-bindgen                0.2.95   ---      Removed  Normal  ---
wasm-bindgen                0.2.95   ---      Removed  Normal  cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))
wasm-bindgen                0.2.95   ---      Removed  Normal  cfg(all(target_arch = "wasm32", target_os = "unknown"))
wasm-bindgen-backend        0.2.95   ---      Removed  Normal  ---
wasm-bindgen-macro          0.2.95   ---      Removed  Normal  ---
wasm-bindgen-macro-support  0.2.95   ---      Removed  Normal  ---
wasm-bindgen-shared         0.2.95   ---      Removed  Normal  ---
windows-core                0.52.0   ---      Removed  Normal  cfg(target_os = "windows")
windows-targets             0.52.6   ---      Removed  Normal  ---
windows-targets             0.52.6   ---      Removed  Normal  cfg(windows)
windows_aarch64_gnullvm     0.52.6   ---      Removed  Normal  aarch64-pc-windows-gnullvm
windows_aarch64_msvc        0.52.6   ---      Removed  Normal  cfg(all(target_arch = "aarch64", target_env = "msvc", not(windows_raw_dylib)))
windows_i686_gnu            0.52.6   ---      Removed  Normal  cfg(all(target_arch = "x86", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib)))
windows_i686_gnullvm        0.52.6   ---      Removed  Normal  i686-pc-windows-gnullvm
windows_i686_msvc           0.52.6   ---      Removed  Normal  cfg(all(target_arch = "x86", target_env = "msvc", not(windows_raw_dylib)))
windows_x86_64_gnu          0.52.6   ---      Removed  Normal  cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib)))
windows_x86_64_gnullvm      0.52.6   ---      Removed  Normal  x86_64-pc-windows-gnullvm
windows_x86_64_msvc         0.52.6   ---      Removed  Normal  cfg(all(any(target_arch = "x86_64", target_arch = "arm64ec"), target_env = "msvc", not(windows_raw_dylib)))

CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\Cargo.toml
Name                         Project  Compat   Latest   Kind    Platform
----                         -------  ------   ------   ----    --------
near-sdk->serde_json         1.0.129  1.0.130  1.0.130  Normal  ---
near-sdk-macros->serde_json  1.0.129  1.0.130  1.0.130  Normal  ---

CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\tests\Cargo.toml
Name                                              Project                        Compat   Latest   Kind    Platform
----                                              -------                        ------   ------   ----    --------
ahash->getrandom                                  0.2.15                         Removed  Removed  Normal  cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
ahash->once_cell                                  1.20.2                         Removed  Removed  Normal  cfg(not(all(target_arch = "arm", target_os = "none")))
ahash->version_check                              0.9.5                          Removed  Removed  Build   ---
cargo-near->serde_json                            1.0.129                        1.0.130  1.0.130  Normal  ---
cargo_metadata->serde_json                        1.0.129                        1.0.130  1.0.130  Normal  ---
getrandom->cfg-if                                 1.0.0                          Removed  Removed  Normal  ---
getrandom->js-sys                                 0.3.72                         Removed  Removed  Normal  cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
getrandom->libc                                   0.2.161                        Removed  Removed  Normal  cfg(unix)
getrandom->wasi                                   0.11.0+wasi-snapshot-preview1  Removed  Removed  Normal  cfg(target_os = "wasi")
getrandom->wasm-bindgen                           0.2.95                         Removed  Removed  Normal  cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
hashbrown->ahash                                  0.7.8                          Removed  Removed  Normal  ---
indexmap->autocfg                                 1.4.0                          Removed  Removed  Build   ---
indexmap->hashbrown                               0.12.3                         0.15.0   0.15.0   Normal  ---
js-sys->wasm-bindgen                              0.2.95                         Removed  Removed  Normal  ---
json-patch->serde_json                            1.0.129                        1.0.130  1.0.130  Normal  ---
jsonptr->serde_json                               1.0.129                        1.0.130  1.0.130  Normal  ---
near-abi-client-impl->serde_json                  1.0.129                        1.0.130  1.0.130  Normal  ---
near-async->serde_json                            1.0.129                        1.0.130  1.0.130  Normal  ---
near-chain-configs->serde_json                    1.0.129                        1.0.130  1.0.130  Normal  ---
near-cli-rs->serde_json                           1.0.129                        1.0.130  1.0.130  Normal  ---
near-crypto->serde_json                           1.0.129                        1.0.130  1.0.130  Normal  ---
near-jsonrpc-client->serde_json                   1.0.129                        1.0.130  1.0.130  Normal  ---
near-jsonrpc-primitives->serde_json               1.0.129                        1.0.130  1.0.130  Normal  ---
near-o11y->serde_json                             1.0.129                        1.0.130  1.0.130  Normal  ---
near-primitives->serde_json                       1.0.129                        1.0.130  1.0.130  Normal  ---
near-sdk->serde_json                              1.0.129                        1.0.130  1.0.130  Normal  ---
near-sdk-macros->serde_json                       1.0.129                        1.0.130  1.0.130  Normal  ---
near-socialdb-client->serde_json                  1.0.129                        1.0.130  1.0.130  Normal  ---
near-workspaces->near-sandbox-utils               0.9.0                          0.8.0    0.8.0    Normal  ---
near-workspaces->serde_json                       1.0.129                        1.0.130  1.0.130  Normal  ---
near_schemafy_core->serde_json                    1.0.129                        1.0.130  1.0.130  Normal  ---
near_schemafy_lib->serde_json                     1.0.129                        1.0.130  1.0.130  Normal  ---
proc-macro2->unicode-ident                        1.0.13                         Removed  Removed  Normal  ---
quote->proc-macro2                                1.0.88                         Removed  Removed  Normal  ---
reqwest->serde_json                               1.0.129                        1.0.130  1.0.130  Normal  ---
rust_decimal->serde_json                          1.0.129                        1.0.130  1.0.130  Normal  ---
schemars->serde_json                              1.0.129                        1.0.130  1.0.130  Normal  ---
serde_json                                        1.0.129                        1.0.130  1.0.130  Normal  ---
serde_with->indexmap                              1.9.3                          2.6.0    2.6.0    Normal  ---
serde_with->serde_json                            1.0.129                        1.0.130  1.0.130  Normal  ---
symbolic-debuginfo->serde_json                    1.0.129                        1.0.130  1.0.130  Normal  ---
syn->proc-macro2                                  1.0.88                         Removed  Removed  Normal  ---
syn->quote                                        1.0.37                         Removed  Removed  Normal  ---
syn->unicode-ident                                1.0.13                         Removed  Removed  Normal  ---
wasm-bindgen->cfg-if                              1.0.0                          Removed  Removed  Normal  ---
wasm-bindgen->once_cell                           1.20.2                         Removed  Removed  Normal  ---
wasm-bindgen->wasm-bindgen-macro                  0.2.95                         Removed  Removed  Normal  ---
wasm-bindgen-backend->bumpalo                     3.16.0                         Removed  Removed  Normal  ---
wasm-bindgen-backend->log                         0.4.22                         Removed  Removed  Normal  ---
wasm-bindgen-backend->once_cell                   1.20.2                         Removed  Removed  Normal  ---
wasm-bindgen-backend->proc-macro2                 1.0.88                         Removed  Removed  Normal  ---
wasm-bindgen-backend->quote                       1.0.37                         Removed  Removed  Normal  ---
wasm-bindgen-backend->syn                         2.0.79                         Removed  Removed  Normal  ---
wasm-bindgen-backend->wasm-bindgen-shared         0.2.95                         Removed  Removed  Normal  ---
wasm-bindgen-macro->quote                         1.0.37                         Removed  Removed  Normal  ---
wasm-bindgen-macro->wasm-bindgen-macro-support    0.2.95                         Removed  Removed  Normal  ---
wasm-bindgen-macro-support->proc-macro2           1.0.88                         Removed  Removed  Normal  ---
wasm-bindgen-macro-support->quote                 1.0.37                         Removed  Removed  Normal  ---
wasm-bindgen-macro-support->syn                   2.0.79                         Removed  Removed  Normal  ---
wasm-bindgen-macro-support->wasm-bindgen-backend  0.2.95                         Removed  Removed  Normal  ---
wasm-bindgen-macro-support->wasm-bindgen-shared   0.2.95                         Removed  Removed  Normal  ---

CheckToml / toml: C:\home\git\polyglot\apps\plot\Cargo.toml
Name        Project  Compat   Latest   Kind    Platform
----        -------  ------   ------   ----    --------
serde_json  1.0.129  1.0.130  1.0.130  Normal  ---

CheckJson / json: C:/home/git/polyglot
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\package.json

CheckJson / json: C:/home/git/polyglot/apps/ipfs
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\ipfs\package.json

CheckJson / json: C:/home/git/polyglot/apps/spiral/temp/extension
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\spiral\temp\extension\package.json

CheckJson / json: C:/home/git/polyglot/apps/spiral/vscode
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\spiral\vscode\package.json

CheckJson / json: C:/home/git/polyglot/deps/The-Spiral-Language/VS Code Plugin
$ npm-check-updates --target greatest
Checking C:\home\git\polyglot\deps\The-Spiral-Language\VS Code Plugin\package.json